From: terencehill Date: Sat, 9 Oct 2010 22:05:02 +0000 (+0200) Subject: Map voting screen: X-Git-Tag: xonotic-v0.1.0preview~267^2~14 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4a87beeaa7c282a8473af3c95f77be3e09c8fb6e;p=xonotic%2Fxonotic-data.pk3dir.git Map voting screen: - remove inexistent numbers from the previews - remove a wrong check that caused to highlight as voted the map with no preview available - make the preview slightly brighter on mouse selection --- diff --git a/qcsrc/client/mapvoting.qc b/qcsrc/client/mapvoting.qc index 7c3bcecc5..e1bf7cb7d 100644 --- a/qcsrc/client/mapvoting.qc +++ b/qcsrc/client/mapvoting.qc @@ -81,19 +81,14 @@ void MapVote_DrawMapItem(vector pos, float isize, float tsize, string map, strin { drawpic(pos, pic, img_size, '1 1 1', 1, DRAWFLAG_NORMAL); } - - drawpic(pos + '1 0 0', strcat("gfx/hud/num_", ftos(id+1)), (img_size_y / 5) * '1 1 0', '1 1 1', 0.6, DRAWFLAG_NORMAL); - if(id == mv_ownvote || pic == "") - { + if(id == mv_ownvote) drawborderlines(hud_border_thickness, pos, img_size, rgb, 1, DRAWFLAG_NORMAL); - drawpic(pos + '1 0 0', strcat("gfx/hud/num_", ftos(id+1)), (img_size_y / 5) * '1 1 0', rgb, 0.6, DRAWFLAG_NORMAL); - } else - { drawborderlines(hud_border_thickness, pos, img_size, '0 0 0', 1, DRAWFLAG_NORMAL); - drawpic(pos + '1 0 0', strcat("gfx/hud/num_", ftos(id+1)), (img_size_y / 5) * '1 1 0', '1 1 1', 0.6, DRAWFLAG_NORMAL); - } + + if(id == mv_selection) + drawfill(pos, img_size, rgb, 0.1, DRAWFLAG_NORMAL); } void MapVote_DrawAbstain(vector pos, float isize, float tsize, float count, float id)