X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_hudpanel_radar.qc;h=3e8db6686c09b79c96b6096eb6d9052a245b65b1;hb=6ff75d79efcd81b48aca3a64b2257c0ba16c2df0;hp=9e3eac3cfc73d43ef6aa8f7b9f8ef1f13fec998c;hpb=244f8292cf03247e90bf1a0c3fee1f491f6b93a0;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/dialog_hudpanel_radar.qc b/qcsrc/menu/xonotic/dialog_hudpanel_radar.qc index 9e3eac3cf..3e8db6686 100644 --- a/qcsrc/menu/xonotic/dialog_hudpanel_radar.qc +++ b/qcsrc/menu/xonotic/dialog_hudpanel_radar.qc @@ -1,17 +1,10 @@ -#ifdef INTERFACE -CLASS(XonoticHUDRadarDialog, XonoticRootDialog) - METHOD(XonoticHUDRadarDialog, fill, void(entity)) - ATTRIB(XonoticHUDRadarDialog, title, string, _("Radar Panel")) - ATTRIB(XonoticHUDRadarDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT) - ATTRIB(XonoticHUDRadarDialog, intendedWidth, float, 0.4) - ATTRIB(XonoticHUDRadarDialog, rows, float, 15) - ATTRIB(XonoticHUDRadarDialog, columns, float, 4) - ATTRIB(XonoticHUDRadarDialog, name, string, "HUDradar") - ATTRIB(XonoticHUDRadarDialog, requiresConnection, float, true) -ENDCLASS(XonoticHUDRadarDialog) -#endif +#include "dialog_hudpanel_radar.qh" + +#include "checkbox.qh" +#include "textslider.qh" +#include "slider.qh" +#include "textlabel.qh" -#ifdef IMPLEMENTATION void XonoticHUDRadarDialog_fill(entity me) { entity e; @@ -19,12 +12,12 @@ void XonoticHUDRadarDialog_fill(entity me) me.TR(me); me.TD(me, 1, 4, e = makeXonoticTextSlider("hud_panel_radar")); - e.addValue(e, _("Panel disabled"), "0"); - e.addValue(e, _("Panel enabled in teamgames"), "1"); - e.addValue(e, _("Panel always enabled"), "2"); + e.addValue(e, _("Disable"), "0"); + e.addValue(e, _("Enable in team games"), "1"); + e.addValue(e, _("Always enable"), "2"); e.configureXonoticTextSliderValues(e); - DIALOG_HUDPANEL_COMMON_NOTOGGLE(); + dialog_hudpanel_main_settings(me, panelname); me.TR(me); me.TD(me, 1, 4, e = makeXonoticTextLabel(0, _("Radar:"))); @@ -56,4 +49,3 @@ void XonoticHUDRadarDialog_fill(entity me) e.addValue(e, _("Never zoomed"), "3"); e.configureXonoticTextSliderValues(e); } -#endif