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

Method displayed

source/frontend/StarScriptPane.cpp:36–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void ScriptPane::displayed() {
37 auto world = m_client->worldClient();
38 if (world && world->inWorld()) {
39 m_script.setLuaRoot(world->luaRoot());
40 m_script.addCallbacks("world", LuaBindings::makeWorldCallbacks(world.get()));
41 }
42 BaseScriptPane::displayed();
43}
44
45void ScriptPane::dismissed() {
46 BaseScriptPane::dismissed();

Callers

nothing calls this directly

Calls 7

makeWorldCallbacksFunction · 0.85
worldClientMethod · 0.80
setLuaRootMethod · 0.80
inWorldMethod · 0.45
luaRootMethod · 0.45
addCallbacksMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected