X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_hudpanel_centerprint.qc;h=938f69a8c57be823a7d95857e70101d37569c2c2;hb=f41f81f37e3ecf5a2d14f7bc7ffd7bbf09fff32e;hp=bb7312f13e213002ecd65a4f2c07d2818c75e299;hpb=6dc9591eba337374f2b4348a6a6deaa1cb6887d0;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 bb7312f13..938f69a8c 100644 --- a/qcsrc/menu/xonotic/dialog_hudpanel_centerprint.qc +++ b/qcsrc/menu/xonotic/dialog_hudpanel_centerprint.qc @@ -1,23 +1,18 @@ -#ifdef INTERFACE -CLASS(XonoticHUDCenterprintDialog) EXTENDS(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 +#include "dialog_hudpanel_centerprint.qh" + +#include "checkbox.qh" +#include "textlabel.qh" +#include "slider.qh" +#include "radiobutton.qh" -#ifdef IMPLEMENTATION void XonoticHUDCenterprintDialog_fill(entity me) { entity e; string panelname = "centerprint"; - DIALOG_HUDPANEL_COMMON(); + dialog_hudpanel_main_checkbox(me, panelname); + + dialog_hudpanel_main_settings(me, panelname); me.TR(me); me.TDempty(me, 0.2); @@ -42,4 +37,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