]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make so that hud_panel_itemstime / g_waypointsprite_itemstime set to 2 will show...
authorterencehill <piuntn@gmail.com>
Fri, 8 Jun 2012 22:42:21 +0000 (00:42 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 9 Jun 2012 01:17:06 +0000 (03:17 +0200)
_hud_descriptions.cfg
defaultXonotic.cfg
hud_luminos.cfg
hud_luminos_minimal.cfg
hud_luminos_minimal_xhair.cfg
hud_luminos_old.cfg
hud_nexuiz.cfg
qcsrc/client/hud.qc
qcsrc/client/waypointsprites.qc
qcsrc/menu/xonotic/dialog_hudpanel_itemstime.c

index db92f67ed5f16090c8a8ecd81cba3f38bbb61f74..dc9c59c9da7a9bc4c012cb8f8d963f9959fb4abd 100644 (file)
@@ -290,7 +290,7 @@ seta hud_panel_centerprint_fade_subsequent_passtwo_minalpha "" "minimum factor t
 seta hud_panel_centerprint_fade_subsequent_minfontsize "" "minimum factor for the font size from the subsequent fading effects"
 seta hud_panel_centerprint_fade_minfontsize "" "minimum factor for the font size from the fading in/out effects"
 
-seta hud_panel_itemstime "" "enable/disable this panel"
+seta hud_panel_itemstime "" "enable/disable this panel, it shows left time until important items (mega health, large armor, powerups, superweapons, etc...) respawn in the map: 1 when spectating, 2 even playing in warmup stage"
 seta hud_panel_itemstime_pos "" "position of this base of the panel"
 seta hud_panel_itemstime_size "" "size of this panel"
 seta hud_panel_itemstime_bg "" "if set to something else than \"\" = override default background"
index 9870758c76f53a88b7aff9d6188378a73b26db23..cda180cab9ee3e8cab35c88c08359f2119e733f0 100644 (file)
@@ -1140,7 +1140,7 @@ seta g_waypointsprite_crosshairfadedistance 150 "distance in virtual pixels from
 seta g_waypointsprite_distancefadealpha 1 "alpha multiplier near distance"
 seta g_waypointsprite_distancefadescale 0.7 "scale multiplier near the distance"
 seta g_waypointsprite_distancefadedistancemultiplier 0.5 "distance in map sizes from distance where to stop fading"
-seta g_waypointsprite_itemstime 1 "show waypoints to indicate that some important items (mega health, large armor) are about to respawn when spectating or playing/spectating in warmup stage"
+seta g_waypointsprite_itemstime 2 "show waypoints to indicate that some important items (mega health, large armor) are about to respawn: 1 when spectating, 2 even playing in warmup stage"
 set g_waypointsprite_spam 0 "Debugging feature. Set to 10 and load courtfun in race mode to test."
 alias "g_waypointsprite_personal"      "impulse 30"
 alias "g_waypointsprite_personal_p"    "impulse 31"
index ad32b87db5c22a20eb344da3c3b2a9a2ad0d7cb9..92d245accc26a7654d6f75597398bd78e0b1d47a 100644 (file)
@@ -288,7 +288,7 @@ seta hud_panel_centerprint_fade_subsequent_passtwo_minalpha "0.5"
 seta hud_panel_centerprint_fade_subsequent_minfontsize "0.75"
 seta hud_panel_centerprint_fade_minfontsize "0"
 
-seta hud_panel_itemstime 1
+seta hud_panel_itemstime 2
 seta hud_panel_itemstime_pos "0.000000 0.420000"
 seta hud_panel_itemstime_size "0.150000 0.270000"
 seta hud_panel_itemstime_bg "border_itemstime"
index 3999b8d8ff0c305960b29e6d3225a1f9bc8c23fc..16a1a39243a0fbaa38568f69deee638658181f7b 100644 (file)
@@ -288,7 +288,7 @@ seta hud_panel_centerprint_fade_subsequent_passtwo_minalpha "0.5"
 seta hud_panel_centerprint_fade_subsequent_minfontsize "0.75"
 seta hud_panel_centerprint_fade_minfontsize "0"
 
-seta hud_panel_itemstime 1
+seta hud_panel_itemstime 2
 seta hud_panel_itemstime_pos "0.000000 0.310000"
 seta hud_panel_itemstime_size "0.070000 0.180000"
 seta hud_panel_itemstime_bg ""
index cd6ed7d91f338b709fa67f4395bab9a5e64c475e..9c2d6e382d313dbac0b20b1428673a46f8133b48 100644 (file)
@@ -288,7 +288,7 @@ seta hud_panel_centerprint_fade_subsequent_passtwo_minalpha "0.5"
 seta hud_panel_centerprint_fade_subsequent_minfontsize "0.75"
 seta hud_panel_centerprint_fade_minfontsize "0"
 
-seta hud_panel_itemstime 1
+seta hud_panel_itemstime 2
 seta hud_panel_itemstime_pos "0.000000 0.310000"
 seta hud_panel_itemstime_size "0.070000 0.180000"
 seta hud_panel_itemstime_bg ""
index e30558007494e208cf3d474acb7a84d6873f13f6..feb939361dc0c8164f3aebb1ea394b888ac90417 100644 (file)
@@ -288,7 +288,7 @@ seta hud_panel_centerprint_fade_subsequent_passtwo_minalpha "0.5"
 seta hud_panel_centerprint_fade_subsequent_minfontsize "0.75"
 seta hud_panel_centerprint_fade_minfontsize "0"
 
-seta hud_panel_itemstime 1
+seta hud_panel_itemstime 2
 seta hud_panel_itemstime_pos "0.020000 0.490000"
 seta hud_panel_itemstime_size "0.150000 0.140000"
 seta hud_panel_itemstime_bg "0"
index 5f0fcfaa2191ee5c6f3080288ebf96261f224aec..4a96925963f4c4ec5e4e849f895752b66790fdfc 100644 (file)
@@ -288,7 +288,7 @@ seta hud_panel_centerprint_fade_subsequent_passtwo_minalpha "0.5"
 seta hud_panel_centerprint_fade_subsequent_minfontsize "0.75"
 seta hud_panel_centerprint_fade_minfontsize "0"
 
-seta hud_panel_itemstime 1
+seta hud_panel_itemstime 2
 seta hud_panel_itemstime_pos "0.000000 0.290000"
 seta hud_panel_itemstime_size "0.150000 0.060000"
 seta hud_panel_itemstime_bg "0"
index 2be8053077312b3384c4deef39fdffcd702b334e..377480443c70b1a0901dd729ca20356b5b163989 100644 (file)
@@ -5003,8 +5003,9 @@ void HUD_ItemsTime(void)
 {
        if(!autocvar__hud_configure)
        {
-               if(!autocvar_hud_panel_itemstime) return;
-               if(!warmup_stage && !spectatee_status) return;
+               if not(autocvar_hud_panel_itemstime == 1 && spectatee_status != 0
+               || autocvar_hud_panel_itemstime == 2 && (spectatee_status != 0 || warmup_stage))
+                       return;
 
                ItemsTime_time[0] = getstatf(STAT_ARMOR_LARGE_TIME);
                ItemsTime_time[1] = getstatf(STAT_HEALTH_MEGA_TIME);
index d225adaff7d968838002688868364d89281ff1f6..c923aafb06cc9e917c6063adcd770b14a3e55864 100644 (file)
@@ -418,9 +418,8 @@ void Draw_WaypointSprite()
        switch(self.rule)
        {
                case SPRITERULE_SPECTATOR:
-                       if(!autocvar_g_waypointsprite_itemstime)
-                               return;
-                       if(!warmup_stage && t != COLOR_SPECTATOR + 1)
+                       if not(autocvar_g_waypointsprite_itemstime == 1 && t == COLOR_SPECTATOR + 1
+                       || autocvar_g_waypointsprite_itemstime == 2 && (t == COLOR_SPECTATOR + 1 || warmup_stage))
                                return;
                        spriteimage = self.netname;
                        break;
index 7528bc06a986bc5dddb699371d0686be6c150ea4..53134f2e90d6afce4b06f71280b42f8bca3768b3 100644 (file)
@@ -16,7 +16,14 @@ void XonoticHUDItemsTimeDialog_fill(entity me)
        entity e;
        string panelname = "itemstime";
 
-       DIALOG_HUDPANEL_COMMON();
+       me.TR(me);
+               me.TD(me, 1, 4, e = makeXonoticTextSlider("hud_panel_itemstime"));
+                       e.addValue(e, ZCTX(_("PNL^Disabled")), "0");
+                       e.addValue(e, ZCTX(_("PNL^Enabled spectating")), "1");
+                       e.addValue(e, ZCTX(_("PNL^Enabled even playing in warmup")), "2");
+                       e.configureXonoticTextSliderValues(e);
+
+       DIALOG_HUDPANEL_COMMON_NOTOGGLE();
 
        me.TR(me);
                me.TD(me, 1, 1.4, e = makeXonoticTextLabel(0, _("Align icon:")));