X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_hudpanel_notification.qc;h=1dc0a15b70617ec0cc42d17a90b93c9bacfca8bb;hb=b4034a8d42ecc767f5105a4669e709989e9e494c;hp=17394ffd59cb1abe386e04ea197a0be6d57589c1;hpb=50db7ae6bd2b87d7d7d06792985ec5219a8a5969;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/dialog_hudpanel_notification.qc b/qcsrc/menu/xonotic/dialog_hudpanel_notification.qc index 17394ffd5..1dc0a15b7 100644 --- a/qcsrc/menu/xonotic/dialog_hudpanel_notification.qc +++ b/qcsrc/menu/xonotic/dialog_hudpanel_notification.qc @@ -1,24 +1,17 @@ -#ifndef DIALOG_HUDPANEL_NOTIFICATION_H -#define DIALOG_HUDPANEL_NOTIFICATION_H -CLASS(XonoticHUDNotificationDialog, XonoticRootDialog) - METHOD(XonoticHUDNotificationDialog, fill, void(entity)) - ATTRIB(XonoticHUDNotificationDialog, title, string, _("Notification Panel")) - ATTRIB(XonoticHUDNotificationDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT) - ATTRIB(XonoticHUDNotificationDialog, intendedWidth, float, 0.4) - ATTRIB(XonoticHUDNotificationDialog, rows, float, 15) - ATTRIB(XonoticHUDNotificationDialog, columns, float, 4) - ATTRIB(XonoticHUDNotificationDialog, name, string, "HUDnotify") - ATTRIB(XonoticHUDNotificationDialog, requiresConnection, float, true) -ENDCLASS(XonoticHUDNotificationDialog) -#endif +#include "dialog_hudpanel_notification.qh" + +#include "textlabel.qh" +#include "checkbox.qh" +#include "slider.qh" -#ifdef IMPLEMENTATION void XonoticHUDNotificationDialog_fill(entity me) { entity e; string panelname = "notify"; - DIALOG_HUDPANEL_COMMON(); + dialog_hudpanel_main_checkbox(me, panelname); + + dialog_hudpanel_main_settings(me, panelname); me.TR(me); me.TD(me, 1, 4, e = makeXonoticTextLabel(0, _("Notifications:"))); @@ -37,4 +30,3 @@ void XonoticHUDNotificationDialog_fill(entity me) me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Entry fadetime:"))); me.TD(me, 1, 2.6, e = makeXonoticSlider(0.5, 5, 0.5, "hud_panel_notify_fadetime")); } -#endif