From: MirceaKitsune Date: Tue, 12 Jul 2011 20:39:57 +0000 (+0300) Subject: Add sbar ring settings to the menu X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=05707921d420aa58cb74383d9004f8c2feefcc33;p=voretournament%2Fvoretournament.git Add sbar ring settings to the menu --- diff --git a/data/qcsrc/menu/voret/dialog_multiplayer_playersetup_hud.c b/data/qcsrc/menu/voret/dialog_multiplayer_playersetup_hud.c index af40dcff..1fc6259c 100644 --- a/data/qcsrc/menu/voret/dialog_multiplayer_playersetup_hud.c +++ b/data/qcsrc/menu/voret/dialog_multiplayer_playersetup_hud.c @@ -78,6 +78,26 @@ void fillVoretHudDialog(entity me) setDependent(e, "viewsize", 0, 100); me.TR(me); me.TR(me); + me.TD(me, 1, 4, makeVoretTextLabel(0, "Ring settings:")); + me.TR(me); + me.TDempty(me, 0.2); + me.TD(me, 1, 0.8, e = makeVoretCheckBox(0, "sbar_ring1", "Outer size:")); + me.TD(me, 1, 3, e = makeVoretSlider(60, 140, 1, "sbar_ring1_scale")); + setDependent(e, "sbar_ring1", 1, 1); + me.TR(me); + me.TDempty(me, 0.2); + me.TD(me, 1, 0.8, e = makeVoretCheckBox(0, "sbar_ring2", "Inner size:")); + me.TD(me, 1, 3, e = makeVoretSlider(40, 120, 1, "sbar_ring2_scale")); + setDependent(e, "sbar_ring2", 1, 1); + me.TR(me); + me.TDempty(me, 0.2); + me.TD(me, 1, 0.8, e = makeVoretTextLabel(0, "Ring alpha:")); + setDependentOR(e, "sbar_ring1", 1, 1, "sbar_ring2", 1, 1); + me.TD(me, 1, 3, e = makeVoretSlider(0.1, 1, 0.01, "sbar_ring1_alpha")); + makeMulti(e, "sbar_ring2_alpha"); + setDependentOR(e, "sbar_ring1", 1, 1, "sbar_ring2", 1, 1); + + me.gotoRC(me, 0, 4); me.setFirstColumn(me, me.currentColumn); me.TD(me, 1, 4, makeVoretTextLabel(0, "Radar settings:")); me.TR(me); me.TDempty(me, 0.2); @@ -103,8 +123,7 @@ void fillVoretHudDialog(entity me) me.TD(me, 1, 0.8, e = makeVoretSliderCheckBox(-1, 1, sl, "Background:")); me.TD(me, 1, 3, sl); me.TR(me); - - me.gotoRC(me, 0, 4); me.setFirstColumn(me, me.currentColumn); + me.TR(me); me.TD(me, 1, 4, makeVoretTextLabel(0, "Waypoint settings:")); me.TR(me); me.TDempty(me, 0.2);