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