X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_hudpanel_centerprint.qc;h=141913386327d0bc177ca6f07581fa62af224dba;hb=fbd3279e575e41377901f1536e14fe45e540405b;hp=7e74cdf5e8f959b94488867fe4c0c1e0f82e85ad;hpb=9c09a961b8674e3a808889d3f34d71855018d3bc;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 7e74cdf5e..141913386 100644 --- a/qcsrc/menu/xonotic/dialog_hudpanel_centerprint.qc +++ b/qcsrc/menu/xonotic/dialog_hudpanel_centerprint.qc @@ -1,25 +1,18 @@ -#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 +#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); @@ -43,5 +36,8 @@ void XonoticHUDCenterprintDialog_fill(entity me) me.TDempty(me, 0.2); 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")); + me.TR(me); + me.TDempty(me, 0.2); + me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Bold font scale:"))); + me.TD(me, 1, 2.6, e = makeXonoticSlider(0.5, 3, 0.2, "hud_panel_centerprint_fontscale_bold")); } -#endif