X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_hudpanel_notification.qc;h=1dc0a15b70617ec0cc42d17a90b93c9bacfca8bb;hp=d0586710cf63ad55fc88e3a32184d418e81d18c8;hb=2d30ce639fd8525a6f22d383f44c4c9af89fe873;hpb=ee4a26c239e85351237b7c6b3deebe93fe372a15 diff --git a/qcsrc/menu/xonotic/dialog_hudpanel_notification.qc b/qcsrc/menu/xonotic/dialog_hudpanel_notification.qc index d0586710c..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