X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_hudpanel_healtharmor.qc;h=ac305b83258638cd4352305a7071d338a5d85b3d;hp=dc864203b46c0c7a1c0a54abe3925af18c5e357a;hb=45dfc727cef14412598d619e1704d1b70dc64b64;hpb=77f03e6ce033bef39ac19e0e7cb6e606ffcb26db diff --git a/qcsrc/menu/xonotic/dialog_hudpanel_healtharmor.qc b/qcsrc/menu/xonotic/dialog_hudpanel_healtharmor.qc index dc864203b..ac305b832 100644 --- a/qcsrc/menu/xonotic/dialog_hudpanel_healtharmor.qc +++ b/qcsrc/menu/xonotic/dialog_hudpanel_healtharmor.qc @@ -1,17 +1,9 @@ -#ifdef INTERFACE -CLASS(XonoticHUDHealthArmorDialog) EXTENDS(XonoticRootDialog) - METHOD(XonoticHUDHealthArmorDialog, fill, void(entity)) - ATTRIB(XonoticHUDHealthArmorDialog, title, string, _("Health/Armor Panel")) - ATTRIB(XonoticHUDHealthArmorDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT) - ATTRIB(XonoticHUDHealthArmorDialog, intendedWidth, float, 0.4) - ATTRIB(XonoticHUDHealthArmorDialog, rows, float, 15) - ATTRIB(XonoticHUDHealthArmorDialog, columns, float, 4) - ATTRIB(XonoticHUDHealthArmorDialog, name, string, "HUDhealtharmor") - ATTRIB(XonoticHUDHealthArmorDialog, requiresConnection, float, true) -ENDCLASS(XonoticHUDHealthArmorDialog) -#endif +#include "dialog_hudpanel_healtharmor.qh" + +#include "textlabel.qh" +#include "checkbox.qh" +#include "radiobutton.qh" -#ifdef IMPLEMENTATION void XonoticHUDHealthArmorDialog_fill(entity me) { entity e; @@ -19,6 +11,8 @@ void XonoticHUDHealthArmorDialog_fill(entity me) DIALOG_HUDPANEL_COMMON(); + me.TR(me); + me.TD(me, 1, 4, e = makeXonoticCheckBox(0, "hud_panel_healtharmor_combined", _("Combine health and armor"))); me.TR(me); me.TD(me, 1, 4, e = makeXonoticCheckBox(0, "hud_panel_healtharmor_progressbar", _("Enable status bar"))); me.TR(me); @@ -45,4 +39,3 @@ void XonoticHUDHealthArmorDialog_fill(entity me) me.TR(me); me.TD(me, 1, 4, e = makeXonoticCheckBox(0, "hud_panel_healtharmor_flip", _("Flip health and armor positions"))); } -#endif