Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/gui/GUIManager.cpp
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | CGUIManager::CGUIManager() | ||||
RegisterFileReloadFunc(ReloadChangedFileCB, this); | RegisterFileReloadFunc(ReloadChangedFileCB, this); | ||||
} | } | ||||
CGUIManager::~CGUIManager() | CGUIManager::~CGUIManager() | ||||
{ | { | ||||
UnregisterFileReloadFunc(ReloadChangedFileCB, this); | UnregisterFileReloadFunc(ReloadChangedFileCB, this); | ||||
} | } | ||||
bool CGUIManager::HasPages() | size_t CGUIManager::GetPageCount() const | ||||
{ | { | ||||
return !m_PageStack.empty(); | return m_PageStack.size(); | ||||
} | } | ||||
void CGUIManager::SwitchPage(const CStrW& pageName, ScriptInterface* srcScriptInterface, JS::HandleValue initData) | void CGUIManager::SwitchPage(const CStrW& pageName, ScriptInterface* srcScriptInterface, JS::HandleValue initData) | ||||
{ | { | ||||
// The page stack is cleared (including the script context where initData came from), | // The page stack is cleared (including the script context where initData came from), | ||||
// therefore we have to clone initData. | // therefore we have to clone initData. | ||||
shared_ptr<ScriptInterface::StructuredClone> initDataClone; | shared_ptr<ScriptInterface::StructuredClone> initDataClone; | ||||
▲ Show 20 Lines • Show All 337 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator