Changeset View
Changeset View
Standalone View
Standalone View
source/gui/GUIManager.h
Show First 20 Lines • Show All 143 Lines • ▼ Show 20 Lines | struct SGUIPage | ||||
*/ | */ | ||||
void SetCallbackFunction(ScriptInterface& scriptInterface, JS::HandleValue callbackFunc); | void SetCallbackFunction(ScriptInterface& scriptInterface, JS::HandleValue callbackFunc); | ||||
/** | /** | ||||
* Execute the stored callback function with the given arguments. | * Execute the stored callback function with the given arguments. | ||||
*/ | */ | ||||
void PerformCallbackFunction(ScriptInterface::StructuredClone args); | void PerformCallbackFunction(ScriptInterface::StructuredClone args); | ||||
CStrW name; | CStrW m_Name; | ||||
std::unordered_set<VfsPath> inputs; // for hotloading | std::unordered_set<VfsPath> inputs; // for hotloading | ||||
ScriptInterface::StructuredClone initData; // data to be passed to the init() function | ScriptInterface::StructuredClone initData; // data to be passed to the init() function | ||||
shared_ptr<CGUI> gui; // the actual GUI page | shared_ptr<CGUI> gui; // the actual GUI page | ||||
/** | /** | ||||
* Function executed by this parent GUI page when the child GUI page it pushed is popped. | * Function executed by this parent GUI page when the child GUI page it pushed is popped. | ||||
* Notice that storing it in the SGUIPage instead of CGUI means that it will survive the hotloading CGUI reset. | * Notice that storing it in the SGUIPage instead of CGUI means that it will survive the hotloading CGUI reset. | ||||
*/ | */ | ||||
Show All 21 Lines |
Wildfire Games · Phabricator