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

Method construct

source/frontend/StarBaseScriptPane.cpp:153–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153void BaseScriptPane::construct(Json config) {
154 m_reader->construct(config, this);
155
156 for (auto pair : m_config.getObject("canvasClickCallbacks", {}))
157 m_canvasClickCallbacks.set(findChild<CanvasWidget>(pair.first), pair.second.toString());
158 for (auto pair : m_config.getObject("canvasKeyCallbacks", {}))
159 m_canvasKeyCallbacks.set(findChild<CanvasWidget>(pair.first), pair.second.toString());
160
161 m_script.setScripts(jsonToStringList(m_config.get("scripts", JsonArray())));
162 m_script.setUpdateDelta(m_config.getUInt("scriptDelta", 1));
163}
164
165}

Callers 15

BaseScriptPaneMethod · 0.95
SongbookInterfaceMethod · 0.45
PopupInterfaceMethod · 0.45
CraftingPaneMethod · 0.45
setupTooltipMethod · 0.45
OptionsMenuMethod · 0.45
displayRequestMethod · 0.45
TeleportDialogMethod · 0.45
GraphicsMenuMethod · 0.45
QuestTrackerPaneMethod · 0.45
AiInterfaceMethod · 0.45
ActionBarMethod · 0.45

Calls 8

jsonToStringListFunction · 0.85
setScriptsMethod · 0.80
setUpdateDeltaMethod · 0.80
getUIntMethod · 0.80
getObjectMethod · 0.45
setMethod · 0.45
toStringMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected