X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_settings_game_crosshair.qc;h=2d30dc2448140784408a48f4ed4469a2f6622db8;hb=42eb10006aa3a7d6ac697318eb88ef5e157dfad2;hp=cab2d25c63669ecf0fb79921660e4e2b063770a2;hpb=068324d293df795dbc41de75f38256b8c6c35607;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/dialog_settings_game_crosshair.qc b/qcsrc/menu/xonotic/dialog_settings_game_crosshair.qc index cab2d25c6..2d30dc244 100644 --- a/qcsrc/menu/xonotic/dialog_settings_game_crosshair.qc +++ b/qcsrc/menu/xonotic/dialog_settings_game_crosshair.qc @@ -1,20 +1,14 @@ -#ifndef DIALOG_SETTINGS_GAME_CROSSHAIR_H -#define DIALOG_SETTINGS_GAME_CROSSHAIR_H -#include "tab.qc" -CLASS(XonoticGameCrosshairSettingsTab, XonoticTab) - METHOD(XonoticGameCrosshairSettingsTab, fill, void(entity)); - METHOD(XonoticGameCrosshairSettingsTab, showNotify, void(entity)); - ATTRIB(XonoticGameCrosshairSettingsTab, title, string, _("Crosshair")) - ATTRIB(XonoticGameCrosshairSettingsTab, intendedWidth, float, 0.9) - ATTRIB(XonoticGameCrosshairSettingsTab, rows, float, 15.5) - ATTRIB(XonoticGameCrosshairSettingsTab, columns, float, 6.2) -ENDCLASS(XonoticGameCrosshairSettingsTab) -entity makeXonoticGameCrosshairSettingsTab(); -#include "../gamesettings.qh" -REGISTER_SETTINGS(Crosshair, makeXonoticGameCrosshairSettingsTab()); -#endif +#include "dialog_settings_game_crosshair.qh" + +#include "radiobutton.qh" +#include "crosshairpicker.qh" +#include "crosshairpreview.qh" +#include "textlabel.qh" +#include "slider.qh" +#include "colorpicker_string.qh" +#include "checkbox.qh" +#include "textslider.qh" -#ifdef IMPLEMENTATION void XonoticGameCrosshairSettingsTab_showNotify(entity me) { loadAllCvars(me); @@ -129,8 +123,9 @@ void XonoticGameCrosshairSettingsTab_fill(entity me) setDependent(e, "crosshair_enabled", 1, 2); me.TR(me); me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Hit testing:"))); + setDependent(e, "crosshair_enabled", 1, 2); me.TD(me, 1, 2, e = makeXonoticTextSlider_T("crosshair_hittest", - _("None: do not do hit tests for the crosshair; TrueAim: blur the crosshair when you would not hit the wall; Enemies: also enlarge the crosshair when you would hit an enemy"))); + _("None: do not do hit tests for the crosshair; TrueAim: blur the crosshair when there's an obstacle between your gun and the target; Enemies: also enlarge the crosshair when you would hit an enemy"))); e.addValue(e, ZCTX(_("HTTST^Disabled")), "0"); e.addValue(e, ZCTX(_("HTTST^TrueAim")), "1"); e.addValue(e, ZCTX(_("HTTST^Enemies")), "1.25"); @@ -151,4 +146,3 @@ void XonoticGameCrosshairSettingsTab_fill(entity me) me.TD(me, 1, 3, e = makeXonoticCheckBoxEx(0.25, 0, "crosshair_pickup", _("Animate crosshair when picking up an item"))); setDependent(e, "crosshair_enabled", 1, 2); } -#endif