| 278 | }; |
| 279 | |
| 280 | void textInput(const char* const message, const char* const text, std::function<void(char* newText)> action) |
| 281 | { |
| 282 | MenuOverlay* const overlay = new MenuOverlay; |
| 283 | overlay->bgColor = nvgRGBAf(0, 0, 0, 0.33); |
| 284 | |
| 285 | AsyncTextInput* const dialog = new AsyncTextInput(message, text, action); |
| 286 | overlay->addChild(dialog); |
| 287 | |
| 288 | APP->scene->addChild(overlay); |
| 289 | } |
| 290 | |
| 291 | } |
no test coverage detected