MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / PopupInterface

Method PopupInterface

source/frontend/StarPopupInterface.cpp:10–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8namespace Star {
9
10PopupInterface::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
21void PopupInterface::displayMessage(String const& message, String const& title, String const& subtitle, Maybe<String> const& onShowSound) {
22 setTitleString(title, subtitle);

Callers

nothing calls this directly

Calls 5

singletonClass · 0.85
assetsMethod · 0.80
jsonMethod · 0.80
registerCallbackMethod · 0.45
constructMethod · 0.45

Tested by

no test coverage detected