diff options
Diffstat (limited to 'Stars45/CmpSelectDlg.cpp')
-rw-r--r-- | Stars45/CmpSelectDlg.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
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("<font Limerick12><color ffffff>") + - campaign->Name() + + description->SetText(Text("<font Limerick12><color ffffff>") + + campaign->Name() + Text("<font Verdana>\n\n") + Text("<color ffff80>") + Game::GetText("CmpSelectDlg.scenario") + - Text("<color ffffff>\n\t") + + Text("<color ffffff>\n\t") + campaign->Description()); } else { @@ -177,21 +177,21 @@ CmpSelectDlg::ExecFrame() sprintf_s(score_buf, "%d", campaign->GetPlayerTeamScore()); - Text desc = Text("<font Limerick12><color ffffff>") + - campaign->Name() + + Text desc = Text("<font Limerick12><color ffffff>") + + campaign->Name() + Text("<font Verdana>\n\n") + Text("<color ffff80>") + Game::GetText("CmpSelectDlg.scenario") + - Text("<color ffffff>\n\t") + + Text("<color ffffff>\n\t") + campaign->Description() + Text("\n\n<color ffff80>") + Game::GetText("CmpSelectDlg.campaign-time") + - Text("<color ffffff>\n\t") + + Text("<color ffffff>\n\t") + time_buf + Text("\n\n<color ffff80>") + Game::GetText("CmpSelectDlg.assignment") + Text("<color ffffff>\n\t"); - + if (campaign->GetPlayerGroup()) desc += campaign->GetPlayerGroup()->GetDescription(); else @@ -199,14 +199,14 @@ CmpSelectDlg::ExecFrame() desc += Text("\n\n<color ffff80>") + Game::GetText("CmpSelectDlg.team-score") + - Text("<color ffffff>\n\t") + + Text("<color ffffff>\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)) { |