summaryrefslogtreecommitdiffhomepage
path: root/Stars45/CmpSelectDlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/CmpSelectDlg.cpp')
-rw-r--r--Stars45/CmpSelectDlg.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/Stars45/CmpSelectDlg.cpp b/Stars45/CmpSelectDlg.cpp
index 9f24c02..47ce573 100644
--- a/Stars45/CmpSelectDlg.cpp
+++ b/Stars45/CmpSelectDlg.cpp
@@ -54,7 +54,7 @@ selected_mission(-1), show_saved(false), loading(false),
loaded(false), hproc(0)
{
stars = Starshatter::GetInstance();
- select_msg = Game::GetText("CmpSelectDlg.select_msg");
+ select_msg = Game::GetInstance()->GetText("CmpSelectDlg.select_msg");
Init(def);
}
@@ -139,7 +139,7 @@ CmpSelectDlg::ExecFrame()
campaign->Name() +
Text("<font Verdana>\n\n") +
Text("<color ffff80>") +
- Game::GetText("CmpSelectDlg.scenario") +
+ Game::GetInstance()->GetText("CmpSelectDlg.scenario") +
Text("<color ffffff>\n\t") +
campaign->Description());
}
@@ -156,15 +156,15 @@ CmpSelectDlg::ExecFrame()
campaign->Name() +
Text("<font Verdana>\n\n") +
Text("<color ffff80>") +
- Game::GetText("CmpSelectDlg.scenario") +
+ Game::GetInstance()->GetText("CmpSelectDlg.scenario") +
Text("<color ffffff>\n\t") +
campaign->Description() +
Text("\n\n<color ffff80>") +
- Game::GetText("CmpSelectDlg.campaign-time") +
+ Game::GetInstance()->GetText("CmpSelectDlg.campaign-time") +
Text("<color ffffff>\n\t") +
time_buf +
Text("\n\n<color ffff80>") +
- Game::GetText("CmpSelectDlg.assignment") +
+ Game::GetInstance()->GetText("CmpSelectDlg.assignment") +
Text("<color ffffff>\n\t");
if (campaign->GetPlayerGroup())
@@ -173,7 +173,7 @@ CmpSelectDlg::ExecFrame()
desc += "n/a";
desc += Text("\n\n<color ffff80>") +
- Game::GetText("CmpSelectDlg.team-score") +
+ Game::GetInstance()->GetText("CmpSelectDlg.team-score") +
Text("<color ffffff>\n\t") +
score_buf;
@@ -208,7 +208,7 @@ CmpSelectDlg::ShowNewCampaigns()
AutoThreadSync a(sync);
if (loading && description) {
- description->SetText(Game::GetText("CmpSelectDlg.already-loading"));
+ description->SetText(Game::GetInstance()->GetText("CmpSelectDlg.already-loading"));
Button::PlaySound(Button::SND_REJECT);
return;
}
@@ -285,7 +285,7 @@ CmpSelectDlg::ShowSavedCampaigns()
AutoThreadSync a(sync);
if (loading && description) {
- description->SetText(Game::GetText("CmpSelectDlg.already-loading"));
+ description->SetText(Game::GetInstance()->GetText("CmpSelectDlg.already-loading"));
Button::PlaySound(Button::SND_REJECT);
return;
}
@@ -334,7 +334,7 @@ CmpSelectDlg::OnCampaignSelect(AWEvent* event)
AutoThreadSync a(sync);
if (loading) {
- description->SetText(Game::GetText("CmpSelectDlg.already-loading"));
+ description->SetText(Game::GetInstance()->GetText("CmpSelectDlg.already-loading"));
Button::PlaySound(Button::SND_REJECT);
return;
}
@@ -455,9 +455,9 @@ CmpSelectDlg::OnDelete(AWEvent* event)
ConfirmDlg* confirm = manager->GetConfirmDlg();
if (confirm) {
char msg[256];
- sprintf_s(msg, Game::GetText("CmpSelectDlg.are-you-sure"), load_file.data());
+ sprintf_s(msg, Game::GetInstance()->GetText("CmpSelectDlg.are-you-sure"), load_file.data());
confirm->SetMessage(msg);
- confirm->SetTitle(Game::GetText("CmpSelectDlg.confirm"));
+ confirm->SetTitle(Game::GetInstance()->GetText("CmpSelectDlg.confirm"));
manager->ShowConfirmDlg();
}
@@ -495,7 +495,7 @@ CmpSelectDlg::OnAccept(AWEvent* event)
if (btn_new->GetButtonState())
Campaign::GetCampaign()->Load();
else
- Game::ResetGameTime();
+ Game::GetInstance()->ResetGameTime();
Mouse::Show(false);
stars->SetGameMode(Starshatter::CLOD_MODE);
@@ -533,7 +533,7 @@ CmpSelectDlg::StartLoadProc()
loaded = false;
if (description)
- description->SetText(Game::GetText("CmpSelectDlg.loading"));
+ description->SetText(Game::GetInstance()->GetText("CmpSelectDlg.loading"));
DWORD thread_id = 0;
hproc = CreateThread(0, 4096, CmpSelectDlgLoadProc, (LPVOID) this, 0, &thread_id);