X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_hudpanel_centerprint.qc;fp=qcsrc%2Fmenu%2Fxonotic%2Fdialog_hudpanel_centerprint.qc;h=332f6753f76d62273411801ab6cd584f46077a9a;hb=f532317ada52b5363cb0b74bfbdd38f5015e290c;hp=c1fa78578b31e931ca5154ea56f02e324afbe529;hpb=e8f359ab180b5871b9c10df0cc667b90bf13b124;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/dialog_hudpanel_centerprint.qc b/qcsrc/menu/xonotic/dialog_hudpanel_centerprint.qc index c1fa78578..332f6753f 100644 --- a/qcsrc/menu/xonotic/dialog_hudpanel_centerprint.qc +++ b/qcsrc/menu/xonotic/dialog_hudpanel_centerprint.qc @@ -1,20 +1,10 @@ #include "dialog_hudpanel_centerprint.qh" -#ifndef DIALOG_HUDPANEL_CENTERPRINT_H -#define DIALOG_HUDPANEL_CENTERPRINT_H -#include "rootdialog.qc" -CLASS(XonoticHUDCenterprintDialog, XonoticRootDialog) - METHOD(XonoticHUDCenterprintDialog, fill, void(entity)); - ATTRIB(XonoticHUDCenterprintDialog, title, string, _("Centerprint Panel")) - ATTRIB(XonoticHUDCenterprintDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT) - ATTRIB(XonoticHUDCenterprintDialog, intendedWidth, float, 0.4) - ATTRIB(XonoticHUDCenterprintDialog, rows, float, 15) - ATTRIB(XonoticHUDCenterprintDialog, columns, float, 4) - ATTRIB(XonoticHUDCenterprintDialog, name, string, "HUDcenterprint") - ATTRIB(XonoticHUDCenterprintDialog, requiresConnection, float, true) -ENDCLASS(XonoticHUDCenterprintDialog) -#endif -#ifdef IMPLEMENTATION +#include "checkbox.qh" +#include "textlabel.qh" +#include "slider.qh" +#include "radiobutton.qh" + void XonoticHUDCenterprintDialog_fill(entity me) { entity e; @@ -45,4 +35,3 @@ void XonoticHUDCenterprintDialog_fill(entity me) me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Font scale:"))); me.TD(me, 1, 2.6, e = makeXonoticSlider(0.5, 2, 0.1, "hud_panel_centerprint_fontscale")); } -#endif