Changeset View
Changeset View
Standalone View
Standalone View
source/ps/GameSetup/GameSetup.cpp
Show First 20 Lines • Show All 176 Lines • ▼ Show 20 Lines | |||||
//---------------------------------------------------------------------------- | //---------------------------------------------------------------------------- | ||||
// GUI integration | // GUI integration | ||||
//---------------------------------------------------------------------------- | //---------------------------------------------------------------------------- | ||||
// display progress / description in loading screen | // display progress / description in loading screen | ||||
void GUI_DisplayLoadProgress(int percent, const wchar_t* pending_task) | void GUI_DisplayLoadProgress(int percent, const wchar_t* pending_task) | ||||
{ | { | ||||
g_GUI->GetActiveGUI()->GetScriptInterface()->SetGlobal("g_Progress", percent, true); | g_GUI->GetActiveGUI()->GetScriptInterface()->SetGlobal("g_Progress", percent, true, false, true); | ||||
g_GUI->GetActiveGUI()->GetScriptInterface()->SetGlobal("g_LoadDescription", pending_task, true); | g_GUI->GetActiveGUI()->GetScriptInterface()->SetGlobal("g_LoadDescription", pending_task, true, false, true); | ||||
g_GUI->GetActiveGUI()->SendEventToAll("progress"); | g_GUI->GetActiveGUI()->SendEventToAll("progress"); | ||||
} | } | ||||
void Render() | void Render() | ||||
{ | { | ||||
PROFILE3("render"); | PROFILE3("render"); | ||||
▲ Show 20 Lines • Show All 1,467 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator