MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / createDialog

Method createDialog

src/app/script/api/app_script.cpp:130–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128 }
129
130 ScriptObject* createDialog(const std::string& id) {
131 auto dialog = getEngine()->create<ui::Dialog>();
132 if (!dialog)
133 return nullptr;
134
135 if (!id.empty())
136 dialog->set("id", id);
137
138 return dialog;
139 }
140
141 void documentation() {
142 std::stringstream out;

Callers 4

Heightmap.jsFile · 0.80
constructorMethod · 0.80
ai.jsFile · 0.80

Calls 2

emptyMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected