1 #ifndef DIALOG_HUDPANEL_PRESSEDKEYS_H
2 #define DIALOG_HUDPANEL_PRESSEDKEYS_H
3 CLASS(XonoticHUDPressedKeysDialog, XonoticRootDialog)
4 METHOD(XonoticHUDPressedKeysDialog, fill, void(entity))
5 ATTRIB(XonoticHUDPressedKeysDialog, title, string, _("Pressed Keys Panel"))
6 ATTRIB(XonoticHUDPressedKeysDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
7 ATTRIB(XonoticHUDPressedKeysDialog, intendedWidth, float, 0.4)
8 ATTRIB(XonoticHUDPressedKeysDialog, rows, float, 15)
9 ATTRIB(XonoticHUDPressedKeysDialog, columns, float, 4)
10 ATTRIB(XonoticHUDPressedKeysDialog, name, string, "HUDpressedkeys")
11 ATTRIB(XonoticHUDPressedKeysDialog, requiresConnection, float, true)
12 ENDCLASS(XonoticHUDPressedKeysDialog)
16 void XonoticHUDPressedKeysDialog_fill(entity me)
19 string panelname = "pressedkeys";
22 me.TD(me, 1, 4, e = makeXonoticTextSlider("hud_panel_pressedkeys"));
23 e.addValue(e, _("Panel disabled"), "0");
24 e.addValue(e, _("Panel enabled when spectating"), "1");
25 e.addValue(e, _("Panel always enabled"), "2");
26 e.configureXonoticTextSliderValues(e);
28 DIALOG_HUDPANEL_COMMON_NOTOGGLE();
32 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Forced aspect:")));
33 me.TD(me, 1, 2.6, e = makeXonoticSlider(0.2, 4, 0.1, "hud_panel_pressedkeys_aspect"));