r4434 - trunk/data/qcsrc/client
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Sep 9 08:07:18 EDT 2008
Author: div0
Date: 2008-09-09 08:07:15 -0400 (Tue, 09 Sep 2008)
New Revision: 4434
Modified:
trunk/data/qcsrc/client/mapvoting.qc
Log:
border
Modified: trunk/data/qcsrc/client/mapvoting.qc
===================================================================
--- trunk/data/qcsrc/client/mapvoting.qc 2008-09-09 10:53:06 UTC (rev 4433)
+++ trunk/data/qcsrc/client/mapvoting.qc 2008-09-09 12:07:15 UTC (rev 4434)
@@ -64,15 +64,19 @@
a_x = img_size_x; // for the lines
b_y = img_size_y;
drawfill(pos, img_size, '.5 .5 .5', .7, DRAWFLAG_NORMAL);
- drawline(2, pos, pos + a, '1 1 1', 1, DRAWFLAG_NORMAL);
- drawline(2, pos, pos + b, '1 1 1', 1, DRAWFLAG_NORMAL);
- drawline(2, pos + img_size, pos + a, '1 1 1', 1, DRAWFLAG_NORMAL);
- drawline(2, pos + img_size, pos + b, '1 1 1', 1, DRAWFLAG_NORMAL);
}
else
{
drawpic(pos, pic, img_size, '1 1 1', 1, DRAWFLAG_NORMAL);
}
+
+ if(id == mv_ownvote || pic == "")
+ {
+ drawfill(pos, '1 0 0' * img_size_x + '0 2 0', rgb, 1, DRAWFLAG_NORMAL);
+ drawfill(pos + '0 2 0', '0 1 0' * img_size_y + '2 -4 0', rgb, 1, DRAWFLAG_NORMAL);
+ drawfill(pos + '1 0 0' * img_size_x + '-2 2 0', '0 1 0' * img_size_y + '2 -4 0', rgb, 1, DRAWFLAG_NORMAL);
+ drawfill(pos + '0 1 0' * img_size_y + '0 -2 0', '1 0 0' * img_size_x + '0 2 0', rgb, 1, DRAWFLAG_NORMAL);
+ }
}
void MapVote_DrawAbstain(vector pos, float isize, float tsize, float count, float id)
More information about the nexuiz-commits
mailing list