]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commit
Make weapons panel automatically disappear
authorterencehill <piuntn@gmail.com>
Sun, 1 Aug 2010 20:24:09 +0000 (22:24 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 1 Aug 2010 20:24:09 +0000 (22:24 +0200)
commit01bf142e7f780ea26c1bdaa2685a477dfef2a5d6
treee089a56164f2d07c03dc6128163afd1f59fa642a
parent9fc358dd8059aaf61497bda45b9a40cbc631e153
Make weapons panel automatically disappear
hud_panel_weapons_timeout "10" "panel disappears if you don't switch weapon for this amount of seconds"
hud_panel_weapons_timeout_effect "1" "disappearance effect: 0) no effect; 1) panel moves out of screen; 2) panel fades out"

Note: I had to use panel_pos and panel_size instead of pos and mySize to make properly work HUD_Panel_DrawBg(1);. Actually, it's even a good thing as pos and mySize aren't really needed... (like in every other panel, btw).
defaultXonotic.cfg
qcsrc/client/hud.qc