MCPcopy Create free account
hub / github.com/MyGUI/mygui / notifyFrameStart

Method notifyFrameStart

Tools/SkinEditor/StatisticInfoControl.cpp:47–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 }
46
47 void StatisticInfoControl::notifyFrameStart(float _time)
48 {
49 static float time = 0;
50 time += _time;
51 if (time > 1)
52 {
53 time -= 1;
54
55 std::string value;
56
57 MyGUI::MapString statistic = Application::getInstance().getStatistic();
58 for (MyGUI::MapString::const_iterator info = statistic.begin(); info != statistic.end(); info++)
59 {
60 if (!value.empty())
61 value += "\n";
62 value += (*info).first + " : " + (*info).second;
63 }
64
65 mText->setCaption(value);
66 }
67 }
68
69}

Callers

nothing calls this directly

Calls 5

getStatisticMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45
setCaptionMethod · 0.45

Tested by

no test coverage detected