22 slider.onChangeEntity =
NULL;
24 slider.onChangeEntity = field;
35 field.onChangeEntity =
NULL;
36 field.setText(field,
ftos_decimals(slider.value, slider.valueDigits));
37 field.onChangeEntity = slider;
44 slider.onChangeEntity = field;
47 field.onChangeEntity = slider;
54 me.configureDialog(me);
61 localcmd(
"\ndefer 0.2 \"togglemenu 1\"\n");
72 me.TD(me, me.rows - 3, 3, kb);
73 me.gotoRC(me, me.rows - 2, 0);
81 kb.userbindEditButton = e;
82 kb.userbindEditDialog =
main.userbindEditDialog;
83 main.userbindEditDialog.keybindBox = kb;
91 e.onClickEntity =
main.bindingsResetDialog;
93 me.gotoRC(me, 0, 3.2); me.setFirstColumn(me, me.currentColumn);
99 _(
"Mouse speed multiplier")));
100 e.setValueSpace(e, 0);
101 sensitivitySlider = e;
103 _(
"Mouse speed multiplier")));
104 e.saveImmediately =
true;
105 e.allowedCharacters =
"0.123456789";
109 _(
"Smooths the mouse movement, but makes aiming slightly less responsive")));
112 _(
"Invert mouse movement on the Y-axis")));
114 string m_accelerate_tooltip = _(
"In-game linear acceleration factor. \"Fully disabled\" also disables other acceleration types that can be enabled via the m_accelerate_* cvars");
118 e.setValueSpace(e, e.valueSpace * 1.25);
119 e.addText(e,
ZCTX(_(
"MOUSEACCEL^Fully disabled")), 0);
120 e.addText(e,
ZCTX(_(
"MOUSEACCEL^Linear disabled")), 1);
121 e.addRange(e, 1.2, 4, 0.2);
122 e.configureXonoticMixedSliderValues(e);
128 m_accelerate_tooltip));
131 m_accelerate_tooltip));
137 me.TD(me, 1, 2.8, e =
makeXonoticCheckBox_T(0,
"vid_dgamouse", _(
"Disable system mouse acceleration"),
138 _(
"Make use of DGA mouse input")));
141 me.TD(me, 1, 2.8, e =
makeXonoticCheckBox(0,
"apple_mouse_noaccel", _(
"Disable system mouse acceleration")));
148 me.TD(me, 1, 3, e =
makeXonoticCheckBox_T(0,
"menu_mouse_absolute", _(
"Use system mouse positioning"),
"-"));
157 me.TD(me, 1, 3, e =
makeXonoticCheckBox_T(0,
"con_closeontoggleconsole", _(
"Pressing \"enter console\" key also closes it"),
158 _(
"Allow the console toggling bind to also close the console")));
160 me.TD(me, 1, 3, e =
makeXonoticCheckBox(1,
"cl_movement_track_canjump", _(
"Automatically repeat jumping if holding jump")));
165 e.addText(e,
ZCTX(_(
"JPJUMP^Disabled")), 0);
166 e.addText(e, _(
"Air only"), 1);
167 e.addText(e,
ZCTX(_(
"JPJUMP^All")), 2);
168 e.configureXonoticMixedSliderValues(e);
float autocvar_menu_animations
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
float CVAR_TYPEFLAG_ENGINE
void CheckBox_Click(entity me, entity other)
void KeyBinder_Bind_Edit(entity btn, entity me)
void KeyBinder_Bind_Change(entity btn, entity me)
void KeyBinder_Bind_Clear(entity btn, entity me)
entity makeXonoticKeyBinder()
void DialogOpenButton_Click(entity button, entity tab)
ERASEABLE string ftos_decimals(float number, int decimals)
converts a number to a string with the indicated number of decimals
entity makeXonoticTextLabel(float theAlign, string theText)
entity makeXonoticHeaderLabel(string theText)
entity makeXonoticCheckBox_T(float isInverted, string theCvar, string theText, string theTooltip)
entity makeXonoticCheckBox(float isInverted, string theCvar, string theText)
entity makeXonoticMixedSlider(string theCvar)
entity makeXonoticMixedSlider_T(string theCvar, string theTooltip)
entity makeXonoticSlider_T(float theValueMin, float theValueMax, float theValueStep, string theCvar, string theTooltip)