| 189 | } |
| 190 | |
| 191 | void UI::Hud::onTextInput(const std::string& text) |
| 192 | { |
| 193 | if (m_Engine.getConsole().isOpen()) |
| 194 | m_Engine.getConsole().onTextInput(text); |
| 195 | else if (!m_MenuChain.empty()) |
| 196 | m_MenuChain.back()->onTextInput(text); |
| 197 | } |
| 198 | |
| 199 | void UI::Hud::setupKeyBindings() { |
| 200 |