X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_hudpanel_notification.qc;h=1dc0a15b70617ec0cc42d17a90b93c9bacfca8bb;hb=7e5268799e95d0dd6f2b77ed4e097b0adc755f2b;hp=93d58d0bbc9179147e70728c52609c0f1ff110c1;hpb=919c48e2ad5873bf1efb041be2e23e2e60903baf;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 93d58d0bb..1dc0a15b7 100644 --- a/qcsrc/menu/xonotic/dialog_hudpanel_notification.qc +++ b/qcsrc/menu/xonotic/dialog_hudpanel_notification.qc @@ -1,25 +1,17 @@ -#ifndef DIALOG_HUDPANEL_NOTIFICATION_H -#define DIALOG_HUDPANEL_NOTIFICATION_H -#include "rootdialog.qc" -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:"))); @@ -38,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