]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove debug print, fix bug, and "finish" view settings dialog more :P
authorSamual <samual@xonotic.org>
Sun, 15 Jan 2012 09:26:44 +0000 (04:26 -0500)
committerSamual <samual@xonotic.org>
Sun, 15 Jan 2012 09:26:44 +0000 (04:26 -0500)
qcsrc/menu/xonotic/checkbox_slider_invalid.c
qcsrc/menu/xonotic/dialog_multiplayer_playersetup_view.c
qcsrc/menu/xonotic/dialog_settings_video.c

index 3b3cfd45247d364637fd602deaace13ece954307..c5500394bd46d550a14b615c6a798e00f2356016 100644 (file)
@@ -53,8 +53,6 @@ void XonoticSliderCheckBox_draw(entity me)
 }
 void XonoticSliderCheckBox_setChecked(entity me, float val)
 {
-       print("setChecked() - ", ftos(val), ". \n");
-       
        if(me.checked == val)
                return;
        me.checked = val;
index 34f97a23b5d7afa5ac28bc5791669d998e4ba6b8..a8e31c52cac14953afb2e35d45c8c79aca2ea15e 100644 (file)
@@ -6,7 +6,7 @@ CLASS(XonoticViewDialog) EXTENDS(XonoticDialog)
        ATTRIB(XonoticViewDialog, title, string, _("View settings"))
        ATTRIB(XonoticViewDialog, color, vector, SKINCOLOR_DIALOG_VIEW)
        ATTRIB(XonoticViewDialog, intendedWidth, float, 0.9)
-       ATTRIB(XonoticViewDialog, rows, float, 13)
+       ATTRIB(XonoticViewDialog, rows, float, 12)
        ATTRIB(XonoticViewDialog, columns, float, 6.2) // added extra .2 for center space 
 ENDCLASS(XonoticViewDialog)
 #endif
@@ -57,7 +57,6 @@ void XonoticViewDialog_fill(entity me)
                me.TDempty(me, 0.2);
                me.TD(me, 1, 0.8, e = makeXonoticTextLabel(0, _("Sensitivity:")));
                me.TD(me, 1, 2, e = makeXonoticSlider(0, 1, 0.1, "cl_zoomsensitivity"));
-       me.TR(me);
        me.TR(me);
                me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Velocity zoom:")));
                me.TD(me, 1, 2, e = makeXonoticTextSlider("cl_velocityzoom_type"));
@@ -71,6 +70,8 @@ void XonoticViewDialog_fill(entity me)
                me.TD(me, 1, 2, e = makeXonoticSlider(-1, 1, 0.2, "cl_velocityzoom"));
                setDependent(e, "cl_velocityzoom_type", 1, 3);
        me.TR(me);
+       me.TR(me);
+               me.TD(me, 1, 3, e = makeXonoticCheckBox(1, "cl_clippedspectating", _("Allow passing through walls while spectating")));
        
        me.gotoRC(me, 0, 3.2); me.setFirstColumn(me, me.currentColumn);
                me.TD(me, 1, 3, e = makeXonoticRadioButton(1, "chase_active", "0", _("1st person perspective")));
@@ -84,6 +85,20 @@ void XonoticViewDialog_fill(entity me)
                me.TD(me, 1, 2.8, e = makeXonoticCheckBoxEx(0.05, 0, "cl_smoothviewheight", _("Smooth the view while crouching")));
                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:")));
+               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:")));
+               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")));
@@ -101,8 +116,6 @@ void XonoticViewDialog_fill(entity me)
                me.TD(me, 1, 2, e = makeXonoticSlider(10, 50, 1, "chase_up"));
                setDependent(e, "chase_active", 1, 1);
        me.TR(me);
-       me.TR(me);
-               me.TD(me, 1, 3, e = makeXonoticCheckBox(1, "cl_clippedspectating", _("Allow passing through walls while spectating")));
                
        me.gotoRC(me, me.rows - 1, 0);
                me.TD(me, 1, me.columns, e = makeXonoticButton(_("OK"), '0 0 0'));
index bc73c7c12452631556555113ea501aafa1ccf1b3..42973888c8d862dfd914d04a7f0dab0b47498ebb 100644 (file)
@@ -113,8 +113,10 @@ void XonoticVideoSettingsTab_fill(entity me)
                        setDependent(e, "vid_gl20", 1, 1);
        me.TR(me);
                if(cvar("developer"))
+               {
                        me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "v_psycho", _("Psycho coloring (easter egg)")));
                                setDependent(e, "vid_gl20", 1, 1);
+               }
        me.TR(me);
                me.TD(me, 1, 1, e = makeXonoticTextLabel(0, ZCTX(_("LIT^Ambient:"))));
                me.TD(me, 1, 2, e = makeXonoticSlider(0, 20.0, 0.25, "r_ambient"));