summaryrefslogtreecommitdiffhomepage
path: root/Stars45/MsnSelectDlg.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-02-18 23:54:30 +0100
committerAki <please@ignore.pl>2022-02-18 23:54:30 +0100
commit0052edae47d1e6ae613497c524719eff5838f52a (patch)
tree3ba92a7846374ba274cba38d924e65f7c2ceb344 /Stars45/MsnSelectDlg.cpp
parent2ae135bbe43065978a4659278d18d9533d8a3b27 (diff)
downloadstarshatter-0052edae47d1e6ae613497c524719eff5838f52a.zip
starshatter-0052edae47d1e6ae613497c524719eff5838f52a.tar.gz
starshatter-0052edae47d1e6ae613497c524719eff5838f52a.tar.bz2
Switched to use GetIntance for Game instead of static methods
Diffstat (limited to 'Stars45/MsnSelectDlg.cpp')
-rw-r--r--Stars45/MsnSelectDlg.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/Stars45/MsnSelectDlg.cpp b/Stars45/MsnSelectDlg.cpp
index e8ec685..fff58f2 100644
--- a/Stars45/MsnSelectDlg.cpp
+++ b/Stars45/MsnSelectDlg.cpp
@@ -199,7 +199,7 @@ MsnSelectDlg::Show()
}
if (description)
- description->SetText(Game::GetText("MsnSelectDlg.choose"));
+ description->SetText(Game::GetInstance()->GetText("MsnSelectDlg.choose"));
if (lst_missions) {
lst_missions->ClearItems();
@@ -268,7 +268,7 @@ MsnSelectDlg::OnCampaignSelect(AWEvent* event)
btn_accept->SetEnabled(false);
if (description)
- description->SetText(Game::GetText("MsnSelectDlg.choose"));
+ description->SetText(Game::GetInstance()->GetText("MsnSelectDlg.choose"));
int id = c->GetCampaignId();
editable = (id >= Campaign::MULTIPLAYER_MISSIONS &&
@@ -302,25 +302,25 @@ MsnSelectDlg::OnMissionSelect(AWEvent* event)
Text d("<font Limerick12><color ffffff>");
d += info->name;
d += "<font Verdana>\n\n<color ffff80>";
- d += Game::GetText("MsnSelectDlg.mission-type");
+ d += Game::GetInstance()->GetText("MsnSelectDlg.mission-type");
d += "<color ffffff>\n\t";
d += Mission::RoleName(info->type);
d += "\n\n<color ffff80>";
- d += Game::GetText("MsnSelectDlg.scenario");
+ d += Game::GetInstance()->GetText("MsnSelectDlg.scenario");
d += "<color ffffff>\n\t";
d += info->description;
d += "\n\n<color ffff80>";
- d += Game::GetText("MsnSelectDlg.location");
+ d += Game::GetInstance()->GetText("MsnSelectDlg.location");
d += "<color ffffff>\n\t";
d += info->region;
d += " ";
- d += Game::GetText("MsnSelectDlg.sector");
+ d += Game::GetInstance()->GetText("MsnSelectDlg.sector");
d += " / ";
d += info->system;
d += " ";
- d += Game::GetText("MsnSelectDlg.system");
+ d += Game::GetInstance()->GetText("MsnSelectDlg.system");
d += "\n\n<color ffff80>";
- d += Game::GetText("MsnSelectDlg.start-time");
+ d += Game::GetInstance()->GetText("MsnSelectDlg.start-time");
d += "<color ffffff>\n\t";
d += time_buf;
@@ -332,7 +332,7 @@ MsnSelectDlg::OnMissionSelect(AWEvent* event)
}
else {
- description->SetText(Game::GetText("MsnSelectDlg.choose"));
+ description->SetText(Game::GetInstance()->GetText("MsnSelectDlg.choose"));
btn_accept->SetEnabled(false);
if (btn_edit) btn_edit->SetEnabled(false);
@@ -442,9 +442,9 @@ MsnSelectDlg::OnDel(AWEvent* event)
ConfirmDlg* confirm = manager->GetConfirmDlg();
if (confirm) {
char msg[256];
- sprintf_s(msg, Game::GetText("MsnSelectDlg.are-you-sure").data(), m->Name());
+ sprintf_s(msg, Game::GetInstance()->GetText("MsnSelectDlg.are-you-sure").data(), m->Name());
confirm->SetMessage(msg);
- confirm->SetTitle(Game::GetText("MsnSelectDlg.confirm-delete"));
+ confirm->SetTitle(Game::GetInstance()->GetText("MsnSelectDlg.confirm-delete"));
confirm->SetParentControl(btn_del);
manager->ShowConfirmDlg();