| 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 | } |
nothing calls this directly
no test coverage detected