X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_hudpanel_radar.qc;h=3e8db6686c09b79c96b6096eb6d9052a245b65b1;hb=27bc18f43e9d09ffa55bca593e48e69c2c734d15;hp=bdff50cb5ec915e270a37e38ac4bb96892377959;hpb=15a18e8ca7c55ac8187b9ea266d15c2d6e0cb869;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 bdff50cb5..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) EXTENDS(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