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