]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/item.c
update german; menu_showboxes debug feature
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / item.c
index 52b960e456c5893fb2bebcc6c1e146169fa44c3d..32d1e4c653d77e80669e09a9273f849b3e328c92 100644 (file)
@@ -44,8 +44,18 @@ void Item_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOr
        me.size = absSize;
 }
 
+float autocvar_menu_showboxes;
 void Item_draw(entity me)
 {
+       if(autocvar_menu_showboxes < 0)
+       {
+               draw_Fill('0 0 0', '0.5 0.5 0', '1 0 1', -autocvar_menu_showboxes);
+               draw_Fill('0.5 0.5 0', '0.5 0.5 0', '1 0 1', -autocvar_menu_showboxes);
+       }
+       if(autocvar_menu_showboxes > 0)
+       {
+               draw_Fill('0 0 0', '1 1 0', '1 0 1', autocvar_menu_showboxes);
+       }
 }
 
 void Item_showNotify(entity me)