2 CLASS(XonoticHUDNotificationDialog) EXTENDS(XonoticRootDialog)
3 METHOD(XonoticHUDNotificationDialog, fill, void(entity))
4 ATTRIB(XonoticHUDNotificationDialog, title, string, _("Notification Panel"))
5 ATTRIB(XonoticHUDNotificationDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
6 ATTRIB(XonoticHUDNotificationDialog, intendedWidth, float, 0.4)
7 ATTRIB(XonoticHUDNotificationDialog, rows, float, 15)
8 ATTRIB(XonoticHUDNotificationDialog, columns, float, 4)
9 ATTRIB(XonoticHUDNotificationDialog, name, string, "HUDnotify")
10 ENDCLASS(XonoticHUDNotificationDialog)
14 void XonoticHUDNotificationDialog_fill(entity me)
17 string panelname = "notify";
19 DIALOG_HUDPANEL_COMMON();
22 me.TD(me, 1, 2, e = makeXonoticTextLabel(0, _("Notifications:")));
25 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_panel_notify_print", _("Also print notifications to the console")));
28 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_panel_notify_flip", _("Flip notify order")));
31 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Entry lifetime:")));
32 me.TD(me, 1, 2.6, e = makeXonoticSlider(3, 15, 1, "hud_panel_notify_time"));
35 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Entry fadetime:")));
36 me.TD(me, 1, 2.6, e = makeXonoticSlider(0.5, 5, 0.5, "hud_panel_notify_fadetime"));