X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_hudpanel_pressedkeys.qc;h=30d95721090c17406c900b865d8ccab8d7bac3d6;hp=f37b766bd0ed2b4afef7aa136961ff608aa61fa2;hb=d01c567581179df7cc68bcdc8dce58efad911bc4;hpb=826222f84e886d85179a032b07edc71d99982040 diff --git a/qcsrc/menu/xonotic/dialog_hudpanel_pressedkeys.qc b/qcsrc/menu/xonotic/dialog_hudpanel_pressedkeys.qc index f37b766bd..30d957210 100644 --- a/qcsrc/menu/xonotic/dialog_hudpanel_pressedkeys.qc +++ b/qcsrc/menu/xonotic/dialog_hudpanel_pressedkeys.qc @@ -1,20 +1,9 @@ #include "dialog_hudpanel_pressedkeys.qh" -#ifndef DIALOG_HUDPANEL_PRESSEDKEYS_H -#define DIALOG_HUDPANEL_PRESSEDKEYS_H -#include "rootdialog.qc" -CLASS(XonoticHUDPressedKeysDialog, 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 -#ifdef IMPLEMENTATION +#include "textslider.qh" +#include "slider.qh" +#include "textlabel.qh" + void XonoticHUDPressedKeysDialog_fill(entity me) { entity e; @@ -22,16 +11,15 @@ void XonoticHUDPressedKeysDialog_fill(entity me) me.TR(me); me.TD(me, 1, 4, e = makeXonoticTextSlider("hud_panel_pressedkeys")); - e.addValue(e, _("Panel disabled"), "0"); - e.addValue(e, _("Panel enabled when spectating"), "1"); - e.addValue(e, _("Panel always enabled"), "2"); + e.addValue(e, ("Disable"), "0"); + e.addValue(e, ("Enable when spectating"), "1"); + e.addValue(e, ("Always enable"), "2"); e.configureXonoticTextSliderValues(e); - DIALOG_HUDPANEL_COMMON_NOTOGGLE(); + dialog_hudpanel_main_settings(me, panelname); me.TR(me); me.TDempty(me, 0.2); 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