X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_hudpanel_pressedkeys.qc;h=4e24ff998eeb67f2b0351d999056784898dfc7af;hp=79f581d13456f2f5bb93fd34ca5d324137375254;hb=37cf62041a76248472ef6a78feaaed33e35a2260;hpb=f2c50fe4e6218a0a1bb0ca078ee122c5ba6a238d diff --git a/qcsrc/menu/xonotic/dialog_hudpanel_pressedkeys.qc b/qcsrc/menu/xonotic/dialog_hudpanel_pressedkeys.qc index 79f581d13..4e24ff998 100644 --- a/qcsrc/menu/xonotic/dialog_hudpanel_pressedkeys.qc +++ b/qcsrc/menu/xonotic/dialog_hudpanel_pressedkeys.qc @@ -1,17 +1,9 @@ -#ifdef INTERFACE -CLASS(XonoticHUDPressedKeysDialog) EXTENDS(XonoticRootDialog) - METHOD(XonoticHUDPressedKeysDialog, fill, void(entity)) - ATTRIB(XonoticHUDPressedKeysDialog, title, string, _("Pressed Keys Panel")) - ATTRIB(XonoticHUDPressedKeysDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT) - ATTRIB(XonoticHUDPressedKeysDialog, intendedWidth, float, 0.4) - ATTRIB(XonoticHUDPressedKeysDialog, rows, float, 15) - ATTRIB(XonoticHUDPressedKeysDialog, columns, float, 4) - ATTRIB(XonoticHUDPressedKeysDialog, name, string, "HUDpressedkeys") - ATTRIB(XonoticHUDPressedKeysDialog, requiresConnection, float, true) -ENDCLASS(XonoticHUDPressedKeysDialog) -#endif +#include "dialog_hudpanel_pressedkeys.qh" + +#include "textslider.qh" +#include "slider.qh" +#include "textlabel.qh" -#ifdef IMPLEMENTATION void XonoticHUDPressedKeysDialog_fill(entity me) { entity e; @@ -31,4 +23,3 @@ void XonoticHUDPressedKeysDialog_fill(entity me) me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Forced aspect:"))); me.TD(me, 1, 2.6, e = makeXonoticSlider(0.2, 4, 0.1, "hud_panel_pressedkeys_aspect")); } -#endif