Changeset View
Changeset View
Standalone View
Standalone View
source/gui/scripting/ScriptFunctions.cpp
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* This file defines a set of functions that are available to GUI scripts, to allow | * This file defines a set of functions that are available to GUI scripts, to allow | ||||
* interaction with the rest of the engine. | * interaction with the rest of the engine. | ||||
* Functions are exposed to scripts within the global object 'Engine', so | * Functions are exposed to scripts within the global object 'Engine', so | ||||
* scripts should call "Engine.FunctionName(...)" etc. | * scripts should call "Engine.FunctionName(...)" etc. | ||||
*/ | */ | ||||
void GuiScriptingInit(ScriptInterface& scriptInterface) | void GuiScriptingInit(ScriptInterface& scriptInterface) | ||||
{ | { | ||||
JSI_IGUIObject::init(scriptInterface); | JSI_IGUIObject::RegisterScriptClass(scriptInterface); | ||||
JSI_GUITypes::init(scriptInterface); | JSI_GUIColor::RegisterScriptClass(scriptInterface); | ||||
JSI_GUISize::RegisterScriptClass(scriptInterface); | |||||
JSI_ConfigDB::RegisterScriptFunctions(scriptInterface); | JSI_ConfigDB::RegisterScriptFunctions(scriptInterface); | ||||
JSI_Console::RegisterScriptFunctions(scriptInterface); | JSI_Console::RegisterScriptFunctions(scriptInterface); | ||||
JSI_Debug::RegisterScriptFunctions(scriptInterface); | JSI_Debug::RegisterScriptFunctions(scriptInterface); | ||||
JSI_GUIManager::RegisterScriptFunctions(scriptInterface); | JSI_GUIManager::RegisterScriptFunctions(scriptInterface); | ||||
JSI_Game::RegisterScriptFunctions(scriptInterface); | JSI_Game::RegisterScriptFunctions(scriptInterface); | ||||
JSI_GameView::RegisterScriptFunctions(scriptInterface); | JSI_GameView::RegisterScriptFunctions(scriptInterface); | ||||
JSI_L10n::RegisterScriptFunctions(scriptInterface); | JSI_L10n::RegisterScriptFunctions(scriptInterface); | ||||
Show All 13 Lines |
Wildfire Games · Phabricator