Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/gui/GUIManager.h
Show First 20 Lines • Show All 142 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* Retrieve the requested template, used for displaying faction specificities. | * Retrieve the requested template, used for displaying faction specificities. | ||||
*/ | */ | ||||
const CParamNode& GetTemplate(const std::string& templateName); | const CParamNode& GetTemplate(const std::string& templateName); | ||||
private: | private: | ||||
struct SGUIPage | struct SGUIPage | ||||
{ | { | ||||
// COPYABLE, because event handlers may invalidate page stack iterators by open or close pages, | |||||
// and event handlers need to be called for the entire stack. | |||||
SGUIPage(const CStrW& pageName, const shared_ptr<ScriptInterface::StructuredClone> initData); | SGUIPage(const CStrW& pageName, const shared_ptr<ScriptInterface::StructuredClone> initData); | ||||
void LoadPage(shared_ptr<ScriptRuntime> scriptRuntime); | void LoadPage(shared_ptr<ScriptRuntime> scriptRuntime); | ||||
CStrW name; | CStrW name; | ||||
boost::unordered_set<VfsPath> inputs; // for hotloading | boost::unordered_set<VfsPath> inputs; // for hotloading | ||||
shared_ptr<ScriptInterface::StructuredClone> initData; // data to be passed to the init() function | shared_ptr<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 | ||||
}; | }; | ||||
Show All 17 Lines |
Wildfire Games · Phabricator