Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 2a06dc9

Browse files
committed
Show version number at the top left
1 parent be7a504 commit 2a06dc9

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

GUI/GUILabel.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ class GUILabel :
191191
// Method: SetHAlignment
192192
//////////////////////////////////////////////////////////////////////////////////////////
193193
// Description: Sets the horizontal alignment of the text of this label.
194-
// Arguments: Teh desired alignement.
194+
// Arguments: The desired alignement.
195195

196196
void SetHAlignment(int HAlignment = GUIFont::Left) { m_HAlignment = HAlignment; }
197197

@@ -200,7 +200,7 @@ class GUILabel :
200200
// Method: SetVAlignment
201201
//////////////////////////////////////////////////////////////////////////////////////////
202202
// Description: Sets the vertical alignment of the text of this label.
203-
// Arguments: Teh desired alignement.
203+
// Arguments: The desired alignement.
204204

205205
void SetVAlignment(int VAlignment = GUIFont::Top) { m_VAlignment = VAlignment; }
206206

@@ -218,7 +218,7 @@ class GUILabel :
218218
// Method: GetVAlignment
219219
//////////////////////////////////////////////////////////////////////////////////////////
220220
// Description: Gets the vertical alignment of the text of this label.
221-
// Arguments: Teh desired alignement.
221+
// Arguments: The desired alignement.
222222

223223
int GetVAlignment() { return m_VAlignment; }
224224

Menus/MainMenuGUI.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,9 @@ int MainMenuGUI::Create(Controller *pController)
438438
m_aOptionButton[FULLSCREENORWINDOWED]->SetText("Fullscreen");
439439
}
440440

441+
m_VersionLabel = dynamic_cast<GUILabel *>(m_pGUIController->GetControl("VersionLabel"));
442+
m_VersionLabel->SetText(c_GameVersion);
443+
441444
///////////////////////////////////////////////////////////////////////////////////////////////
442445
// Load mod data and fill the lists
443446
for (int i = 0; i < g_PresetMan.GetTotalModuleCount(); ++i)

Menus/MainMenuGUI.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,7 @@ class MainMenuGUI {
685685
GUIButton *m_aEditorButton[EDITORBUTTONCOUNT];
686686
// Metagame notice label
687687
GUILabel *m_pMetaNoticeLabel;
688+
GUILabel *m_VersionLabel; //!< CCCP version number.
688689

689690
// Controller diagram bitmaps
690691
BITMAP **m_aDPadBitmaps;

System/Constants.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ namespace RTE {
99
typedef int MID; //!< Distinctive type definition for Material IDs.
1010
#pragma endregion
1111

12+
#pragma region Game Version
13+
static constexpr char *c_GameVersion = "Pre-release 3";
14+
#pragma endregion
15+
1216
#pragma region Filesystem Constants
1317
static constexpr char *c_ScreenshotDirectory = { "_Screenshots" };
1418
#pragma endregion

0 commit comments

Comments
 (0)