From: Samual Date: Mon, 16 Jan 2012 19:05:25 +0000 (-0500) Subject: Make the sliders in view settings into checkboxes (looks cleaner, and there's no... X-Git-Tag: xonotic-v0.6.0~155 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=363759a7e6df69f57c5c48586a7fd866438c990b;p=xonotic%2Fxonotic-data.pk3dir.git Make the sliders in view settings into checkboxes (looks cleaner, and there's no need for so much complexity for a normal person) - also, fix an issue with the hud settings button. --- diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_playersetup.c b/qcsrc/menu/xonotic/dialog_multiplayer_playersetup.c index cf9d12874..4f7bd1168 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_playersetup.c +++ b/qcsrc/menu/xonotic/dialog_multiplayer_playersetup.c @@ -18,7 +18,7 @@ void HUDSetup_Check_Gamestatus(entity me, entity btn) { if not(gamestatus & (GAME_CONNECTED | GAME_ISSERVER)) // we're not in a match, ask the player if they want to start one anyway { - DialogOpenButton_Click(btn, main.hudconfirmDialog); + DialogOpenButton_Click(me, main.hudconfirmDialog); } else // already in a match, lets just cut to the point and open up the hud editor directly { diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_playersetup_view.c b/qcsrc/menu/xonotic/dialog_multiplayer_playersetup_view.c index a8e31c52c..98d7f10a5 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_playersetup_view.c +++ b/qcsrc/menu/xonotic/dialog_multiplayer_playersetup_view.c @@ -86,19 +86,13 @@ void XonoticViewDialog_fill(entity me) setDependent(e, "chase_active", -1, 0); me.TR(me); me.TDempty(me, 0.2); - sl = makeXonoticSlider(0.45, 0.75, 0.01, "cl_bobcycle"); - makeMulti(sl, "cl_bob2cycle"); - setDependent(sl, "chase_active", -1, 0); - me.TD(me, 1, 1, e = makeXonoticSliderCheckBox(0, 1, sl, _("View bobbing:"))); + me.TD(me, 1, 2.8, e = makeXonoticCheckBoxEx(2, 0, "v_idlescale", _("View waving while idle"))); setDependent(e, "chase_active", -1, 0); - me.TD(me, 1, 1.8, sl); me.TR(me); me.TDempty(me, 0.2); - sl = makeXonoticSlider(1, 10, 1, "v_idlescale"); - setDependent(sl, "chase_active", -1, 0); - me.TD(me, 1, 1, e = makeXonoticSliderCheckBox(0, 1, sl, _("View waving:"))); + me.TD(me, 1, 2.8, e = makeXonoticCheckBoxEx(0.65, 0, "cl_bobcycle", _("View bobbing while walking around"))); + makeMulti(sl, "cl_bob2cycle"); setDependent(e, "chase_active", -1, 0); - me.TD(me, 1, 1.8, sl); me.TR(me); me.TR(me); me.TD(me, 1, 3, e = makeXonoticRadioButton(1, "chase_active", "1", _("3rd person perspective")));