-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathStartingScenarioHandler.cpp
More file actions
48 lines (36 loc) · 1.24 KB
/
StartingScenarioHandler.cpp
File metadata and controls
48 lines (36 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#include "stdafx.h"
#include "StartingScenarioHandler.h"
StartingScenarioHandler::StartingScenarioHandler()
{
}
StartingScenarioHandler::~StartingScenarioHandler()
{
}
// For internal use, do not modify.
int StartingScenarioHandler::AddRef()
{
return DefaultRefCounted::AddRef();
}
// For internal use, do not modify.
int StartingScenarioHandler::Release()
{
return DefaultRefCounted::Release();
}
void StartingScenarioHandler::Update()
{
if (Simulator::GetGameModeID() == kGGEMode) {
if (WindowManager.GetMainWindow()->FindWindowByID(0x0668E2BB)) {
UTFWin::IWindow* stageDesc = WindowManager.GetMainWindow()->FindWindowByID(0x0668E2BB, true);
LocalizedString stageDescText;
stageDescText.SetText(0x1082e1c6, 0x00000000, u"Experience the Space Stage like never before. Exploit valueble resources. Fabricate new technologies. Subjegate or befriend your intergalactic peers. Will you be set on a path of creating new life, or destroying those who stand in your way?");
stageDesc->SetCaption(stageDescText.GetText());
}
}
}
// You can extend this function to return any other types your class implements.
void* StartingScenarioHandler::Cast(uint32_t type) const
{
CLASS_CAST(Object);
CLASS_CAST(StartingScenarioHandler);
return nullptr;
}