Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/gui/GUIManager.h
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | public: | ||||
shared_ptr<ScriptInterface> GetScriptInterface() | shared_ptr<ScriptInterface> GetScriptInterface() | ||||
{ | { | ||||
return m_ScriptInterface; | return m_ScriptInterface; | ||||
} | } | ||||
shared_ptr<ScriptRuntime> GetRuntime() { return m_ScriptRuntime; } | shared_ptr<ScriptRuntime> GetRuntime() { return m_ScriptRuntime; } | ||||
shared_ptr<CGUI> GetActiveGUI() { return top(); } | shared_ptr<CGUI> GetActiveGUI() { return top(); } | ||||
/** | /** | ||||
* Returns whether there are any current pages. | * Returns the number of currently open GUI pages. | ||||
*/ | */ | ||||
bool HasPages(); | size_t GetPageCount() const; | ||||
/** | /** | ||||
* Load a new GUI page and make it active. All current pages will be destroyed. | * Load a new GUI page and make it active. All current pages will be destroyed. | ||||
*/ | */ | ||||
void SwitchPage(const CStrW& name, ScriptInterface* srcScriptInterface, JS::HandleValue initData); | void SwitchPage(const CStrW& name, ScriptInterface* srcScriptInterface, JS::HandleValue initData); | ||||
/** | /** | ||||
* Load a new GUI page and make it active. All current pages will be retained, | * Load a new GUI page and make it active. All current pages will be retained, | ||||
▲ Show 20 Lines • Show All 124 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator