From 0052edae47d1e6ae613497c524719eff5838f52a Mon Sep 17 00:00:00 2001 From: Aki Date: Fri, 18 Feb 2022 23:54:30 +0100 Subject: Switched to use GetIntance for Game instead of static methods --- Stars45/MsnSelectDlg.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'Stars45/MsnSelectDlg.cpp') 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(""); d += info->name; d += "\n\n"; - d += Game::GetText("MsnSelectDlg.mission-type"); + d += Game::GetInstance()->GetText("MsnSelectDlg.mission-type"); d += "\n\t"; d += Mission::RoleName(info->type); d += "\n\n"; - d += Game::GetText("MsnSelectDlg.scenario"); + d += Game::GetInstance()->GetText("MsnSelectDlg.scenario"); d += "\n\t"; d += info->description; d += "\n\n"; - d += Game::GetText("MsnSelectDlg.location"); + d += Game::GetInstance()->GetText("MsnSelectDlg.location"); d += "\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"; - d += Game::GetText("MsnSelectDlg.start-time"); + d += Game::GetInstance()->GetText("MsnSelectDlg.start-time"); d += "\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(); -- cgit v1.1