19 me.configureDialog(me);
27 "sendcvar cl_weaponpriority"
29 weaponsApplyButton.disableOnClick =
true;
36 e.applyButton = weaponsApplyButton;
37 me.gotoRC(me, 10, 0.2);
40 e.onClickEntity = me.weaponsList;
41 e.applyButton = weaponsApplyButton;
44 e.onClickEntity = me.weaponsList;
45 e.applyButton = weaponsApplyButton;
49 me.TD(me, 1, 2.8, e =
makeXonoticCheckBox_T(0,
"cl_weaponpriority_useforcycling", _(
"Use priority list for weapon cycling"),
50 _(
"Make use of the list above when cycling through weapons with the mouse wheel")));
53 me.TD(me, 1, 2.8, e =
makeXonoticCheckBox(1,
"cl_weaponimpulsemode", _(
"Cycle through only usable weapon selections")));
56 me.gotoRC(me, 0, 3); me.setFirstColumn(me, me.currentColumn);
59 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"cl_unpress_attack_on_weapon_switch", _(
"Release attack buttons when you switch weapons")));
62 _(
"Automatically switch to newly picked up weapons if they are better than what you are carrying")));
67 e.setValueSpace(e, e.valueSpace * (6/5));
68 e.addText(e, _(
"Never"), 0);
69 e.addText(e, _(
"Default"), -1);
70 e.addText(e, _(
"Always"), 1);
71 e.configureXonoticMixedSliderValues(e);
79 _(
"Draw the weapon model")));
83 _(
"Position of the weapon model; requires reconnect")));
87 _(
"Position of the weapon model; requires reconnect")));
91 _(
"Position of the weapon model; requires reconnect")));
107 e.setValueSpace(e, e.valueSpace * (6/5));
108 e.formatString =
"%";
120 me.gotoRC(me, me.rows - 1, 0); me.setFirstColumn(me, me.currentColumn);
121 me.TD(me, 1, me.columns, weaponsApplyButton);
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
entity makeXonoticGameWeaponsSettingsTab()
void XonoticGameWeaponsSettingsTab_showNotify(entity me)
void XonoticGameWeaponsSettingsTab_fill(entity me)
entity makeXonoticTextLabel(float theAlign, string theText)
entity makeXonoticHeaderLabel(string theText)
entity makeXonoticWeaponsList()
void WeaponsList_MoveDown_Click(entity box, entity me)
void WeaponsList_MoveUp_Click(entity box, entity me)
entity makeXonoticCheckBox_T(float isInverted, string theCvar, string theText, string theTooltip)
entity makeXonoticCheckBox(float isInverted, string theCvar, string theText)
entity makeXonoticMixedSlider(string theCvar)
entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)