From: MirceaKitsune Date: Tue, 28 Sep 2010 14:15:56 +0000 (+0300) Subject: Hide the screenshots of locked campaign levels X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2b4ca09247e5e5119bf3b8b8b294d1601803b361;p=voretournament%2Fvoretournament.git Hide the screenshots of locked campaign levels --- diff --git a/data/gfx/campaign_map_hidden.tga b/data/gfx/campaign_map_hidden.tga new file mode 100644 index 00000000..4d252c5e Binary files /dev/null and b/data/gfx/campaign_map_hidden.tga differ diff --git a/data/qcsrc/menu/voret/campaign.c b/data/qcsrc/menu/voret/campaign.c index 0cd52c41..6032b2bf 100644 --- a/data/qcsrc/menu/voret/campaign.c +++ b/data/qcsrc/menu/voret/campaign.c @@ -275,7 +275,10 @@ void drawListBoxItemVoretCampaignList(entity me, float i, vector absSize, float draw_Fill('0 0 0', '1 1 0', SKINCOLOR_LISTBOX_SELECTED, SKINALPHA_LISTBOX_SELECTED); s = ftos(p); - draw_Picture(me.columnPreviewOrigin * eX, strcat("/maps/", campaign_mapname[i]), me.columnPreviewSize * eX + eY, '1 1 1', theAlpha); + if(i <= me.campaignIndex) + draw_Picture(me.columnPreviewOrigin * eX, strcat("/maps/", campaign_mapname[i]), me.columnPreviewSize * eX + eY, '1 1 1', theAlpha); + else + draw_Picture(me.columnPreviewOrigin * eX, "/gfx/campaign_map_hidden", me.columnPreviewSize * eX + eY, '1 1 1', theAlpha); if(i < me.campaignIndex) draw_Picture(me.checkMarkOrigin, "checkmark", me.checkMarkSize, '1 1 1', 1); if(i <= me.campaignIndex)