20 me.configureDialog(me);
34 _(
"Set a different crosshair for each weapon, good if you play without weapon models")));
41 setDependentAND(e,
"crosshair_per_weapon", 0, 0,
"crosshair_enabled", 1, 2);
43 setDependentAND(e,
"crosshair_per_weapon", 0, 0,
"crosshair_enabled", 1, 2);
71 setDependentAND(e,
"crosshair_color_special", 0, 0,
"crosshair_enabled", 1, 2);
76 me.TD(me, 1, 2.9, e =
makeXonoticCheckBox_T(0,
"crosshair_ring", _(
"Use rings to indicate weapon status"),
"-"));
92 me.gotoRC(me, 0, 3.2); me.setFirstColumn(me, me.currentColumn);
93 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"crosshair_dot", _(
"Enable center crosshair dot")));
111 me.TD(me, 1, 2, e =
makeXonoticRadioButton(1,
"crosshair_dot_color_custom",
"0", _(
"Use normal crosshair color")));
118 setDependentAND3(e,
"crosshair_dot", 1, 1,
"crosshair_enabled", 1, 2,
"crosshair_dot_color_custom", 1, 1);
122 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"crosshair_effect_scalefade", _(
"Smooth effects of crosshairs")));
125 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"crosshair_hittest", _(
"Perform hit tests for the crosshair")));
129 me.TD(me, 1, 2.9, e =
makeXonoticCheckBox(0,
"crosshair_hittest_blur_wall", _(
"Blur if obstructed by an obstacle")));
130 setDependentAND(e,
"crosshair_hittest", 1, 100,
"crosshair_enabled", 1, 2);
133 me.TD(me, 1, 2.9, e =
makeXonoticCheckBox(0,
"crosshair_hittest_blur_teammate", _(
"Blur if obstructed by a teammate")));
134 setDependentAND(e,
"crosshair_hittest", 1, 100,
"crosshair_enabled", 1, 2);
137 me.TD(me, 1, 2.9, e =
makeXonoticCheckBoxEx(1.25, 1,
"crosshair_hittest", _(
"Shrink if obstructed by a teammate")));
138 setDependentAND(e,
"crosshair_enabled", 1, 2,
"crosshair_hittest", 1, 100);
140 me.TD(me, 1, 3, e =
makeXonoticCheckBoxEx(0.5, 0,
"crosshair_hitindication", _(
"Animate crosshair when hitting an enemy")));
143 me.TD(me, 1, 3, e =
makeXonoticCheckBoxEx(0.25, 0,
"crosshair_pickup", _(
"Animate crosshair when picking up an item")));
entity makeXonoticCheckBoxEx(float theYesValue, float theNoValue, string theCvar, string theText)
entity makeXonoticCrosshairPreview()
entity makeXonoticTextLabel(float theAlign, string theText)
entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)
void XonoticGameCrosshairSettingsTab_fill(entity me)
entity makeXonoticCheckBox_T(float isInverted, string theCvar, string theText, string theTooltip)
void XonoticGameCrosshairSettingsTab_showNotify(entity me)
entity makeXonoticCrosshairPicker()
entity makeXonoticColorpickerString(string theCvar, string theDefaultCvar)
entity makeXonoticCheckBox(float isInverted, string theCvar, string theText)
entity makeXonoticGameCrosshairSettingsTab()