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";
20 DIALOG_HUDPANEL_COMMON();
23 me.TD(me, 1, 2, e = makeXonoticTextLabel(0, _("Notifications:")));
26 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_panel_notify_print", _("Also print notifications to the console")));
29 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_panel_notify_flip", _("Flip notify order")));
32 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Entry lifetime:")));
33 me.TD(me, 1, 2.6, e = makeXonoticSlider(3, 15, 1, "hud_panel_notify_time"));
36 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Entry fadetime:")));
37 me.TD(me, 1, 2.6, e = makeXonoticSlider(0.5, 5, 0.5, "hud_panel_notify_fadetime"));