From 1ac8a4c8428ef6eaf300facadb6d132f599ff005 Mon Sep 17 00:00:00 2001 From: FruitieX Date: Mon, 11 Apr 2011 16:42:35 +0300 Subject: [PATCH] this one seems to have been forgotten :) --- .../menu/xonotic/dialog_hudpanel_shownames.c | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 qcsrc/menu/xonotic/dialog_hudpanel_shownames.c diff --git a/qcsrc/menu/xonotic/dialog_hudpanel_shownames.c b/qcsrc/menu/xonotic/dialog_hudpanel_shownames.c new file mode 100644 index 0000000000..3b8dc2825e --- /dev/null +++ b/qcsrc/menu/xonotic/dialog_hudpanel_shownames.c @@ -0,0 +1,30 @@ +#ifdef INTERFACE +CLASS(XonoticHUDShownamesDialog) EXTENDS(XonoticRootDialog) + METHOD(XonoticHUDShownamesDialog, fill, void(entity)) + ATTRIB(XonoticHUDShownamesDialog, title, string, _("Shownames Panel")) + ATTRIB(XonoticHUDShownamesDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT) + ATTRIB(XonoticHUDShownamesDialog, intendedWidth, float, 0.4) + ATTRIB(XonoticHUDShownamesDialog, rows, float, 17) + ATTRIB(XonoticHUDShownamesDialog, columns, float, 4) + ATTRIB(XonoticHUDShownamesDialog, name, string, "HUDshownames") +ENDCLASS(XonoticHUDShownamesDialog) +#endif + +#ifdef IMPLEMENTATION +void XonoticHUDShownamesDialog_fill(entity me) +{ + entity e; + string panelname = "shownames"; + float i; + + me.TR(me); + me.TD(me, 1, 4, e = makeXonoticTextSlider("hud_panel_shownames")); + e.addValue(e, _("Panel disabled"), "0"); + e.addValue(e, _("Panel enabled on teammates"), "1"); + e.addValue(e, _("Panel always enabled"), "2"); + e.configureXonoticTextSliderValues(e); + + DIALOG_HUDPANEL_COMMON_NOTOGGLE(); + +} +#endif -- 2.39.5