]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Map voting screen:
authorterencehill <piuntn@gmail.com>
Sat, 9 Oct 2010 22:05:02 +0000 (00:05 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 9 Oct 2010 22:05:02 +0000 (00:05 +0200)
- 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

qcsrc/client/mapvoting.qc

index 7c3bcecc50d22be197f696b15a60b05036dd466f..e1bf7cb7da54f9c793bc6b4478768598163a0ea9 100644 (file)
@@ -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)