From 51657e10769faa2617d546a06c42e4c62a19bb50 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 30 Jan 2022 17:41:24 +0100 Subject: Removed trailing whitespace all over the place --- Stars45/CmpSelectDlg.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'Stars45/CmpSelectDlg.cpp') diff --git a/Stars45/CmpSelectDlg.cpp b/Stars45/CmpSelectDlg.cpp index 2a322e5..fa5acff 100644 --- a/Stars45/CmpSelectDlg.cpp +++ b/Stars45/CmpSelectDlg.cpp @@ -160,12 +160,12 @@ CmpSelectDlg::ExecFrame() lst_campaigns->SetItemImage(load_index, images[load_index]); } - description->SetText(Text("") + - campaign->Name() + + description->SetText(Text("") + + campaign->Name() + Text("\n\n") + Text("") + Game::GetText("CmpSelectDlg.scenario") + - Text("\n\t") + + Text("\n\t") + campaign->Description()); } else { @@ -177,21 +177,21 @@ CmpSelectDlg::ExecFrame() sprintf_s(score_buf, "%d", campaign->GetPlayerTeamScore()); - Text desc = Text("") + - campaign->Name() + + Text desc = Text("") + + campaign->Name() + Text("\n\n") + Text("") + Game::GetText("CmpSelectDlg.scenario") + - Text("\n\t") + + Text("\n\t") + campaign->Description() + Text("\n\n") + Game::GetText("CmpSelectDlg.campaign-time") + - Text("\n\t") + + Text("\n\t") + time_buf + Text("\n\n") + Game::GetText("CmpSelectDlg.assignment") + Text("\n\t"); - + if (campaign->GetPlayerGroup()) desc += campaign->GetPlayerGroup()->GetDescription(); else @@ -199,14 +199,14 @@ CmpSelectDlg::ExecFrame() desc += Text("\n\n") + Game::GetText("CmpSelectDlg.team-score") + - Text("\n\t") + + Text("\n\t") + score_buf; description->SetText(desc); } btn_accept->SetEnabled(true); - + if (btn_delete) btn_delete->SetEnabled(show_saved); } @@ -233,7 +233,7 @@ CmpSelectDlg::ShowNewCampaigns() AutoThreadSync a(sync); if (loading && description) { - description->SetText(Game::GetText("CmpSelectDlg.already-loading")); + description->SetText(Game::GetText("CmpSelectDlg.already-loading")); Button::PlaySound(Button::SND_REJECT); return; } @@ -273,7 +273,7 @@ CmpSelectDlg::ShowNewCampaigns() // if campaign is not available, show the grayed-out image // FULL GAME CRITERIA (based on player record): - if (c->GetCampaignId() > 2 && c->GetCampaignId() < 10 && + if (c->GetCampaignId() > 2 && c->GetCampaignId() < 10 && !player->HasCompletedCampaign(c->GetCampaignId()-1)) { images[n]->CopyBitmap(*c->GetImage(2)); lst_campaigns->SetItemImage(n, images[n]); @@ -310,7 +310,7 @@ CmpSelectDlg::ShowSavedCampaigns() AutoThreadSync a(sync); if (loading && description) { - description->SetText(Game::GetText("CmpSelectDlg.already-loading")); + description->SetText(Game::GetText("CmpSelectDlg.already-loading")); Button::PlaySound(Button::SND_REJECT); return; } @@ -359,7 +359,7 @@ CmpSelectDlg::OnCampaignSelect(AWEvent* event) AutoThreadSync a(sync); if (loading) { - description->SetText(Game::GetText("CmpSelectDlg.already-loading")); + description->SetText(Game::GetText("CmpSelectDlg.already-loading")); Button::PlaySound(Button::SND_REJECT); return; } @@ -379,7 +379,7 @@ CmpSelectDlg::OnCampaignSelect(AWEvent* event) // is campaign available? // FULL GAME CRITERIA (based on player record): - if (c->GetCampaignId() <= 2 || + if (c->GetCampaignId() <= 2 || player->HasCompletedCampaign(c->GetCampaignId()-1)) { -- cgit v1.1