20 me.configureDialog(me);
28 "sendcvar cl_weaponpriority"
30 weaponsApplyButton.disableOnClick =
true;
37 e.applyButton = weaponsApplyButton;
38 me.gotoRC(me, 10, 0.2);
41 e.onClickEntity = me.weaponsList;
42 e.applyButton = weaponsApplyButton;
45 e.onClickEntity = me.weaponsList;
46 e.applyButton = weaponsApplyButton;
50 me.TD(me, 1, 2.8, e =
makeXonoticCheckBox_T(0,
"cl_weaponpriority_useforcycling", _(
"Use priority list for weapon cycling"),
51 _(
"Make use of the list above when cycling through weapons with the mouse wheel")));
54 me.TD(me, 1, 2.8, e =
makeXonoticCheckBox(1,
"cl_weaponimpulsemode", _(
"Cycle through only usable weapon selections")));
57 me.gotoRC(me, 0, 3); me.setFirstColumn(me, me.currentColumn);
60 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"cl_unpress_attack_on_weapon_switch", _(
"Release attack buttons when you switch weapons")));
63 _(
"Automatically switch to newly picked up weapons if they are better than what you are carrying")));
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.formatString =
"%";
119 me.gotoRC(me, me.rows - 1, 0); me.setFirstColumn(me, me.currentColumn);
120 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)