| 33 | } |
| 34 | |
| 35 | void EventState::AddEvent(const Nz::WindowEvent& event) |
| 36 | { |
| 37 | if (m_events.size() > 9) |
| 38 | m_events.pop_front(); |
| 39 | |
| 40 | m_events.push_back(Nz::String::Number(m_count) + " - " + ToString(event)); |
| 41 | |
| 42 | Nz::String content; |
| 43 | for (auto&& currentEvent : m_events) |
| 44 | { |
| 45 | content += currentEvent + "\n"; |
| 46 | } |
| 47 | content += "\nM for Menu"; |
| 48 | m_text.SetContent(content, 36); |
| 49 | } |
| 50 | |
| 51 | void EventState::DrawMenu() |
| 52 | { |
nothing calls this directly
no test coverage detected