Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/gui/GUIManager.cpp
Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | void CGUIManager::SwitchPage(const CStrW& pageName, ScriptInterface* srcScriptInterface, JS::HandleValue initData) | ||||
PushPage(pageName, initDataClone); | PushPage(pageName, initDataClone); | ||||
} | } | ||||
void CGUIManager::PushPage(const CStrW& pageName, shared_ptr<ScriptInterface::StructuredClone> initData) | void CGUIManager::PushPage(const CStrW& pageName, shared_ptr<ScriptInterface::StructuredClone> initData) | ||||
{ | { | ||||
// Push the page prior to loading its contents, because that may push | // Push the page prior to loading its contents, because that may push | ||||
// another GUI page on init which should be pushed on top of this new page. | // another GUI page on init which should be pushed on top of this new page. | ||||
m_PageStack.emplace_back(SGUIPage(pageName, initData)); | m_PageStack.emplace_back(pageName, initData); | ||||
m_PageStack.back().LoadPage(m_ScriptRuntime); | m_PageStack.back().LoadPage(m_ScriptRuntime); | ||||
ResetCursor(); | ResetCursor(); | ||||
} | } | ||||
void CGUIManager::PopPage() | void CGUIManager::PopPage() | ||||
{ | { | ||||
if (m_PageStack.size() < 2) | if (m_PageStack.size() < 2) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 318 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator