From: terencehill Date: Mon, 18 Apr 2016 21:37:18 +0000 (+0200) Subject: Disable some labels together with their relative sliders in the weapons panel X-Git-Tag: xonotic-v0.8.2~951^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=64193280eb4e10693c3eacd0acc4cafe530ee833;p=xonotic%2Fxonotic-data.pk3dir.git Disable some labels together with their relative sliders in the weapons panel --- diff --git a/qcsrc/menu/xonotic/dialog_hudpanel_weapons.qc b/qcsrc/menu/xonotic/dialog_hudpanel_weapons.qc index 1676aab80..61339b6b9 100644 --- a/qcsrc/menu/xonotic/dialog_hudpanel_weapons.qc +++ b/qcsrc/menu/xonotic/dialog_hudpanel_weapons.qc @@ -56,6 +56,7 @@ void XonoticHUDWeaponsDialog_fill(entity me) me.TR(me); me.TDempty(me, 0.2); me.TD(me, 1, 1.4, e = makeXonoticTextLabel(0, _("Weapon ID scale:"))); + setDependent(e, "hud_panel_weapons_label", 1, 2); me.TD(me, 1, 2.4, e = makeXonoticSlider(0.1, 1, 0.05, "hud_panel_weapons_label_scale")); setDependent(e, "hud_panel_weapons_label", 1, 2); me.TR(me); @@ -65,11 +66,13 @@ void XonoticHUDWeaponsDialog_fill(entity me) me.TR(me); me.TDempty(me, 0.2); me.TD(me, 1, 1.4, e = makeXonoticTextLabel(0, _("Ammo bar alpha:"))); + setDependent(e, "hud_panel_weapons_ammo", 1, 1); me.TD(me, 1, 2.4, e = makeXonoticSlider(0.1, 1, 0.1, "hud_panel_weapons_ammo_alpha")); setDependent(e, "hud_panel_weapons_ammo", 1, 1); me.TR(me); me.TDempty(me, 0.2); me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Ammo bar color:"))); + setDependent(e, "hud_panel_weapons_ammo", 1, 1); me.TD(me, 2, 2.4, e = makeXonoticColorpickerString("hud_panel_weapons_ammo_color", "hud_panel_weapons_ammo_color")); setDependent(e, "hud_panel_weapons_ammo", 1, 1); me.TR(me);