| 8 | namespace Star { |
| 9 | |
| 10 | PopupInterface::PopupInterface() { |
| 11 | auto assets = Root::singleton().assets(); |
| 12 | |
| 13 | GuiReader reader; |
| 14 | |
| 15 | reader.registerCallback("close", [=](Widget*) { dismiss(); }); |
| 16 | reader.registerCallback("ok", [=](Widget*) { dismiss(); }); |
| 17 | |
| 18 | reader.construct(assets->json("/interface/windowconfig/popup.config:paneLayout"), this); |
| 19 | } |
| 20 | |
| 21 | void PopupInterface::displayMessage(String const& message, String const& title, String const& subtitle, Maybe<String> const& onShowSound) { |
| 22 | setTitleString(title, subtitle); |
nothing calls this directly
no test coverage detected