X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_hudpanel_powerups.qc;h=1b490d10272fdb3dc8bb28ee3d337b483afd751b;hb=87f7bb1e370243064beac5cb18ced5893d5c8e00;hp=45a2049fc26b0cc87e6c15f28c3866ab352d29fc;hpb=fc62dfa34fa5b13d63660d5249633af1222d6476;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/dialog_hudpanel_powerups.qc b/qcsrc/menu/xonotic/dialog_hudpanel_powerups.qc index 45a2049fc..1b490d102 100644 --- a/qcsrc/menu/xonotic/dialog_hudpanel_powerups.qc +++ b/qcsrc/menu/xonotic/dialog_hudpanel_powerups.qc @@ -1,19 +1,9 @@ -#ifndef DIALOG_HUDPANEL_POWERUPS_H -#define DIALOG_HUDPANEL_POWERUPS_H -#include "rootdialog.qc" -CLASS(XonoticHUDPowerupsDialog, XonoticRootDialog) - METHOD(XonoticHUDPowerupsDialog, fill, void(entity)) - ATTRIB(XonoticHUDPowerupsDialog, title, string, _("Powerups Panel")) - ATTRIB(XonoticHUDPowerupsDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT) - ATTRIB(XonoticHUDPowerupsDialog, intendedWidth, float, 0.4) - ATTRIB(XonoticHUDPowerupsDialog, rows, float, 15) - ATTRIB(XonoticHUDPowerupsDialog, columns, float, 4) - ATTRIB(XonoticHUDPowerupsDialog, name, string, "HUDpowerups") - ATTRIB(XonoticHUDPowerupsDialog, requiresConnection, float, true) -ENDCLASS(XonoticHUDPowerupsDialog) -#endif +#include "dialog_hudpanel_powerups.qh" + +#include "checkbox.qh" +#include "textlabel.qh" +#include "radiobutton.qh" -#ifdef IMPLEMENTATION void XonoticHUDPowerupsDialog_fill(entity me) { entity e; @@ -44,7 +34,4 @@ void XonoticHUDPowerupsDialog_fill(entity me) me.TD(me, 1, 0.95, e = makeXonoticRadioButton(3, "hud_panel_powerups_iconalign", "1", _("Right"))); me.TD(me, 1, 0.95, e = makeXonoticRadioButton(3, "hud_panel_powerups_iconalign", "2", _("Inward"))); me.TD(me, 1, 0.95, e = makeXonoticRadioButton(3, "hud_panel_powerups_iconalign", "3", _("Outward"))); - me.TR(me); - me.TD(me, 1, 4, e = makeXonoticCheckBox(0, "hud_panel_powerups_flip", _("Flip strength and shield positions"))); } -#endif