]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Hide the screenshots of locked campaign levels
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 28 Sep 2010 14:15:56 +0000 (17:15 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 28 Sep 2010 14:15:56 +0000 (17:15 +0300)
data/gfx/campaign_map_hidden.tga [new file with mode: 0644]
data/qcsrc/menu/voret/campaign.c

diff --git a/data/gfx/campaign_map_hidden.tga b/data/gfx/campaign_map_hidden.tga
new file mode 100644 (file)
index 0000000..4d252c5
Binary files /dev/null and b/data/gfx/campaign_map_hidden.tga differ
index 0cd52c41809de713990809a991d0d605c9719778..6032b2bfb6a7f3738f64415d617f44a3ebd2ce50 100644 (file)
@@ -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);\r
 \r
        s = ftos(p);\r
-       draw_Picture(me.columnPreviewOrigin * eX, strcat("/maps/", campaign_mapname[i]), me.columnPreviewSize * eX + eY, '1 1 1', theAlpha);\r
+       if(i <= me.campaignIndex)\r
+               draw_Picture(me.columnPreviewOrigin * eX, strcat("/maps/", campaign_mapname[i]), me.columnPreviewSize * eX + eY, '1 1 1', theAlpha);\r
+       else\r
+               draw_Picture(me.columnPreviewOrigin * eX, "/gfx/campaign_map_hidden", me.columnPreviewSize * eX + eY, '1 1 1', theAlpha);\r
        if(i < me.campaignIndex)\r
                draw_Picture(me.checkMarkOrigin, "checkmark", me.checkMarkSize, '1 1 1', 1);\r
        if(i <= me.campaignIndex)\r