]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Move some things around in the settings window
authorSamual <samual@xonotic.org>
Tue, 17 Jan 2012 04:55:10 +0000 (23:55 -0500)
committerSamual <samual@xonotic.org>
Tue, 17 Jan 2012 04:55:10 +0000 (23:55 -0500)
qcsrc/menu/xonotic/dialog_settings_input.c
qcsrc/menu/xonotic/dialog_settings_misc.c

index 1b39ad9592877bd610f9ab59f95436409f73eee4..6e15da11bc226d946089610549ceb632e33aaa92 100644 (file)
@@ -46,6 +46,17 @@ void XonoticInputSettingsTab_fill(entity me)
        me.TR(me);
                me.TD(me, 1, 3, e = makeXonoticCheckBox(1, "cl_movement_track_canjump", _("Automatically repeat jumping if holding jump")));
        me.TR(me);
+       me.TR(me);
+               if(cvar_type("joy_enable") & CVAR_TYPEFLAG_ENGINE)
+                       me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "joy_enable", _("Use joystick input")));
+               else if(cvar_type("joystick") & CVAR_TYPEFLAG_ENGINE)
+                       me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "joystick", _("Use joystick input")));
+               else
+               {
+                       me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "", _("Use joystick input")));
+                       e.disabled = 1; // the option is never available in this case, just there for show
+               }
+       me.TR(me);
        me.TR(me);
                me.TD(me, 1, 3, e = makeXonoticTextLabel(0, _("Mouse:")));
        me.TR(me);
@@ -72,23 +83,6 @@ void XonoticInputSettingsTab_fill(entity me)
        me.TR(me);
                me.TDempty(me, 0.2);
                me.TD(me, 1, 2.8, e = makeXonoticCheckBox(0, "m_accelerate", _("Enable built in mouse acceleration")));
-       me.TR(me);
-       me.TR(me);
-               if(cvar_type("joy_enable") & CVAR_TYPEFLAG_ENGINE)
-                       me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "joy_enable", _("Use joystick input")));
-               else if(cvar_type("joystick") & CVAR_TYPEFLAG_ENGINE)
-                       me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "joystick", _("Use joystick input")));
-               else
-               {
-                       me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "", _("Use joystick input")));
-                       e.disabled = 1; // the option is never available in this case, just there for show
-               }
-       me.TR(me);
-       me.TR(me);
-               me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "cl_movement", _("Client-side movement prediction")));
-       me.TR(me);
-               me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "cl_movement_errorcompensation", _("Compensate for prediction errors")));
-               setDependent(e, "cl_movement", 1, 1);
                
        
        me.gotoRC(me, me.rows - 1, 0);
index ec1b93bd267744eac70fb114f3abf487409e4b84..6bc0c350aa25bd12e8eade847185d34e6ea867ea 100644 (file)
@@ -68,5 +68,11 @@ void XonoticMiscSettingsTab_fill(entity me)
                me.TD(me, 1, 2, e = makeXonoticButton(_("Advanced settings..."), '0 0 0'));
                        e.onClick = DialogOpenButton_Click;
                        e.onClickEntity = main.cvarsDialog;
+       me.TR(me);
+       me.TR(me);
+               me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "cl_movement", _("Client-side movement prediction")));
+       me.TR(me);
+               me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "cl_movement_errorcompensation", _("Compensate for prediction errors")));
+               setDependent(e, "cl_movement", 1, 1);
 }
 #endif