]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove deprecated buff HUD panel and associated cvars
authorSeverin Meyer <sev.ch@web.de>
Wed, 5 Aug 2015 12:30:32 +0000 (14:30 +0200)
committerSeverin Meyer <sev.ch@web.de>
Wed, 5 Aug 2015 12:30:32 +0000 (14:30 +0200)
12 files changed:
_hud_descriptions.cfg
hud_luma.cfg
hud_luminos.cfg
hud_luminos_minimal.cfg
hud_luminos_minimal_xhair.cfg
hud_luminos_old.cfg
hud_nexuiz.cfg
qcsrc/client/autocvars.qh
qcsrc/client/hud.qc
qcsrc/menu/classes.inc
qcsrc/menu/xonotic/dialog_hudpanel_buffs.qc [deleted file]
qcsrc/menu/xonotic/mainwindow.qc

index 9113f7f4c33d4eb6c32277deaaa025e6aa4cb386..ec8ef0574194a10876557982aee3b76e364fdeb4 100644 (file)
@@ -300,15 +300,3 @@ seta hud_panel_centerprint_fade_subsequent_passtwo "" "division factor for the s
 seta hud_panel_centerprint_fade_subsequent_passtwo_minalpha "" "minimum factor that the second pass can fade to"
 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_buffs "" "enable/disable this panel"
-seta hud_panel_buffs_pos "" "position of this panel"
-seta hud_panel_buffs_size "" "size of this panel"
-seta hud_panel_buffs_bg "" "if set to something else than \"\" = override default background"
-seta hud_panel_buffs_bg_color "" "if set to something else than \"\" = override default panel background color"
-seta hud_panel_buffs_bg_color_team "" "override panel color with team color in team based games"
-seta hud_panel_buffs_bg_alpha "" "if set to something else than \"\" = override default panel background alpha"
-seta hud_panel_buffs_bg_border "" "if set to something else than \"\" = override default size of border around the background"
-seta hud_panel_buffs_bg_padding "" "if set to something else than \"\" = override default padding of contents from border"
-seta hud_panel_buffs_progressbar "" "use progressbar behind buff names"
-seta hud_panel_buffs_progressbar_name "" "name of progressbar to use behind buff names"
index cd219466fccd0c452e1527bc75e885817c5445da..b63bb4fdf00cf4bfe1c84cd5edef4c252ed9df62 100644 (file)
@@ -299,16 +299,4 @@ 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_buffs 1
-seta hud_panel_buffs_pos "0.325000 0.820000"
-seta hud_panel_buffs_size "0.350000 0.050000"
-seta hud_panel_buffs_bg "0"
-seta hud_panel_buffs_bg_color ""
-seta hud_panel_buffs_bg_color_team ""
-seta hud_panel_buffs_bg_alpha ""
-seta hud_panel_buffs_bg_border ""
-seta hud_panel_buffs_bg_padding ""
-seta hud_panel_buffs_progressbar 1
-seta hud_panel_buffs_progressbar_name "progressbar"
-
 menu_sync
index a294589e3b3da802945e7721911ec3d98644f83b..362b19af2a08871e76ca5f3a4be489b90ec5f3c7 100644 (file)
@@ -299,16 +299,4 @@ 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_buffs 1
-seta hud_panel_buffs_pos "0.450000 0.855000"
-seta hud_panel_buffs_size "0.050000 0.070000"
-seta hud_panel_buffs_bg "0"
-seta hud_panel_buffs_bg_color ""
-seta hud_panel_buffs_bg_color_team ""
-seta hud_panel_buffs_bg_alpha ""
-seta hud_panel_buffs_bg_border ""
-seta hud_panel_buffs_bg_padding ""
-seta hud_panel_buffs_progressbar 1
-seta hud_panel_buffs_progressbar_name "progressbar"
-
 menu_sync
index e86c8277a42dd3d0993863f3366f59db2043a0df..213cecc7717031827fe5bc7732535e028ed776ed 100644 (file)
@@ -299,16 +299,4 @@ 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_buffs 1
-seta hud_panel_buffs_pos "0.450000 0.855000"
-seta hud_panel_buffs_size "0.050000 0.070000"
-seta hud_panel_buffs_bg "0"
-seta hud_panel_buffs_bg_color ""
-seta hud_panel_buffs_bg_color_team ""
-seta hud_panel_buffs_bg_alpha ""
-seta hud_panel_buffs_bg_border ""
-seta hud_panel_buffs_bg_padding ""
-seta hud_panel_buffs_progressbar 1
-seta hud_panel_buffs_progressbar_name "progressbar"
-
 menu_sync
index 018a2271648a42a37cf2ea7ee692d07fac283b0a..b58c47b05c369f42f6b07b4d2b0ea5a80839a1c4 100644 (file)
@@ -299,16 +299,4 @@ 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_buffs 1
-seta hud_panel_buffs_pos "0.450000 0.855000"
-seta hud_panel_buffs_size "0.050000 0.070000"
-seta hud_panel_buffs_bg "0"
-seta hud_panel_buffs_bg_color ""
-seta hud_panel_buffs_bg_color_team ""
-seta hud_panel_buffs_bg_alpha ""
-seta hud_panel_buffs_bg_border ""
-seta hud_panel_buffs_bg_padding ""
-seta hud_panel_buffs_progressbar 1
-seta hud_panel_buffs_progressbar_name "progressbar"
-
 menu_sync
index bea064fe39ab09bbff261daceccb8da0faf9c94a..33149cea693194a7906c010ab8c128423db95d9b 100644 (file)
@@ -299,16 +299,4 @@ 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_buffs 1
-seta hud_panel_buffs_pos "0.450000 0.855000"
-seta hud_panel_buffs_size "0.050000 0.070000"
-seta hud_panel_buffs_bg "0"
-seta hud_panel_buffs_bg_color ""
-seta hud_panel_buffs_bg_color_team ""
-seta hud_panel_buffs_bg_alpha ""
-seta hud_panel_buffs_bg_border ""
-seta hud_panel_buffs_bg_padding ""
-seta hud_panel_buffs_progressbar 1
-seta hud_panel_buffs_progressbar_name "progressbar"
-
 menu_sync
index cd39764bc8def508851e22f4834de33dad667ffe..b30d5729a0e12f29b6d7c64c5f007745cb003d76 100644 (file)
@@ -299,16 +299,4 @@ 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_buffs 1
-seta hud_panel_buffs_pos "0.450000 0.855000"
-seta hud_panel_buffs_size "0.050000 0.070000"
-seta hud_panel_buffs_bg "0"
-seta hud_panel_buffs_bg_color ""
-seta hud_panel_buffs_bg_color_team ""
-seta hud_panel_buffs_bg_alpha ""
-seta hud_panel_buffs_bg_border ""
-seta hud_panel_buffs_bg_padding ""
-seta hud_panel_buffs_progressbar 1
-seta hud_panel_buffs_progressbar_name "progressbar"
-
 menu_sync
index 89b34ff55e45ec396246563a294cbbee064c872e..87b7b698ff57165131401c1f97b7c5d6deb9b00d 100644 (file)
@@ -304,10 +304,6 @@ bool autocvar_hud_panel_powerups;
 int autocvar_hud_panel_powerups_baralign;
 int autocvar_hud_panel_powerups_iconalign;
 bool autocvar_hud_panel_powerups_progressbar;
-bool autocvar_hud_panel_buffs;
-bool autocvar_hud_panel_buffs_progressbar;
-string autocvar_hud_panel_buffs_progressbar_name = "progressbar";
-//float autocvar_hud_panel_buffs_iconalign;
 bool autocvar_hud_panel_powerups_text;
 int autocvar_hud_panel_pressedkeys;
 float autocvar_hud_panel_pressedkeys_aspect;
index cff29ca8c2a07c6803eeed3e5a3fd9979284cfb3..9e678343b460e629ea336cc9e7b405016f4de995 100644 (file)
@@ -4578,72 +4578,6 @@ void HUD_CenterPrint (void)
        }
 }
 
-// Buffs (#18)
-//
-void HUD_Buffs(void)
-{
-       int buffs = getstati(STAT_BUFFS, 0, 24);
-       if(!autocvar__hud_configure)
-       {
-               if(!autocvar_hud_panel_buffs) return;
-               if(spectatee_status == -1) return;
-               if(getstati(STAT_HEALTH) <= 0) return;
-               if(!buffs) return;
-       }
-       else
-       {
-               buffs = Buff_Type_first.items; // force first buff
-       }
-
-       int b = 0; // counter to tell other functions that we have buffs
-       entity e;
-       string s = "";
-       for(e = Buff_Type_first; e; e = e.enemy) if(buffs & e.items)
-       {
-               ++b;
-               string o = strcat(rgb_to_hexcolor(Buff_Color(e.items)), Buff_PrettyName(e.items));
-               if(s == "")
-                       s = o;
-               else
-                       s = strcat(s, " ", o);
-       }
-
-       HUD_Panel_UpdateCvars();
-
-
-       vector pos, mySize;
-       pos = panel_pos;
-       mySize = panel_size;
-
-       HUD_Panel_DrawBg(bound(0, b, 1));
-       if(panel_bg_padding)
-       {
-               pos += '1 1 0' * panel_bg_padding;
-               mySize -= '2 2 0' * panel_bg_padding;
-       }
-
-       //float panel_ar = mySize_x/mySize_y;
-       //bool is_vertical = (panel_ar < 1);
-       //float buff_iconalign = autocvar_hud_panel_buffs_iconalign;
-       vector buff_offset = '0 0 0';
-
-       draw_beginBoldFont();
-       float buff_time, buff_maxtime;
-       buff_time = bound(0, getstatf(STAT_BUFF_TIME) - time, 99);
-       buff_maxtime = 60; // TODO: stat?
-       for(e = Buff_Type_first; e; e = e.enemy) if(buffs & e.items)
-       {
-               if(buff_time && autocvar_hud_panel_buffs_progressbar)
-                       HUD_Panel_DrawProgressBar(pos + buff_offset, mySize, autocvar_hud_panel_buffs_progressbar_name, buff_time/buff_maxtime, 0, 0,
-                                                                         Buff_Color(e.items) * -1 + '1 1 1', (autocvar_hud_progressbar_alpha * panel_fg_alpha) * 0.4, DRAWFLAG_NORMAL);
-
-               //DrawNumIcon(pos + buff_offset, mySize, shield, "shield", is_vertical, buff_iconalign, '1 1 1', 1);
-               drawcolorcodedstring_aspect(pos + buff_offset, s, mySize, panel_fg_alpha * 0.5, DRAWFLAG_NORMAL);
-       }
-
-       draw_endBoldFont();
-}
-
 
 /*
 ==================
index 5b0e417f94965c5c1f4899b49a904575c3366c4c..df022315821d781171be2f06145de94b82ed5470 100644 (file)
@@ -42,7 +42,6 @@
 #include "xonotic/dialog_credits.qc"
 #include "xonotic/dialog_firstrun.qc"
 #include "xonotic/dialog_hudpanel_ammo.qc"
-#include "xonotic/dialog_hudpanel_buffs.qc"
 #include "xonotic/dialog_hudpanel_centerprint.qc"
 #include "xonotic/dialog_hudpanel_chat.qc"
 #include "xonotic/dialog_hudpanel_engineinfo.qc"
diff --git a/qcsrc/menu/xonotic/dialog_hudpanel_buffs.qc b/qcsrc/menu/xonotic/dialog_hudpanel_buffs.qc
deleted file mode 100644 (file)
index 7733fd3..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-#ifndef DIALOG_HUDPANEL_BUFFS_H
-#define DIALOG_HUDPANEL_BUFFS_H
-#include "rootdialog.qc"
-CLASS(XonoticHUDBuffsDialog, XonoticRootDialog)
-       METHOD(XonoticHUDBuffsDialog, fill, void(entity))
-       ATTRIB(XonoticHUDBuffsDialog, title, string, _("Buffs Panel"))
-       ATTRIB(XonoticHUDBuffsDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
-       ATTRIB(XonoticHUDBuffsDialog, intendedWidth, float, 0.4)
-       ATTRIB(XonoticHUDBuffsDialog, rows, float, 15)
-       ATTRIB(XonoticHUDBuffsDialog, columns, float, 4)
-       ATTRIB(XonoticHUDBuffsDialog, name, string, "HUDbuffs")
-       ATTRIB(XonoticHUDBuffsDialog, requiresConnection, float, true)
-ENDCLASS(XonoticHUDBuffsDialog)
-#endif
-
-#ifdef IMPLEMENTATION
-void XonoticHUDBuffsDialog_fill(entity me)
-{
-       entity e;
-       string panelname = "buffs";
-
-       DIALOG_HUDPANEL_COMMON();
-}
-#endif
index 7af6e9363d3ce440dbc60d944a55b400c77d3475..a3e0727fba82705658d4ef62caf2d91c6cef5eaf 100644 (file)
@@ -128,10 +128,6 @@ void MainWindow_configureMainWindow(entity me)
        i.configureDialog(i);
        me.addItemRightCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
 
-       i = NEW(XonoticHUDBuffsDialog);
-       i.configureDialog(i);
-       me.addItemRightCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
-
 
        // dialogs used by settings
        me.userbindEditDialog = i = NEW(XonoticUserbindEditDialog);