]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/dialog_hudpanel_notification.qc
Merge branch 'master' into Mario/turrets
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / dialog_hudpanel_notification.qc
1 #ifdef INTERFACE
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         ATTRIB(XonoticHUDNotificationDialog, requiresConnection, float, true)
11 ENDCLASS(XonoticHUDNotificationDialog)
12 #endif
13
14 #ifdef IMPLEMENTATION
15 void XonoticHUDNotificationDialog_fill(entity me)
16 {
17         entity e;
18         string panelname = "notify";
19
20         DIALOG_HUDPANEL_COMMON();
21
22         me.TR(me);
23                 me.TD(me, 1, 4, e = makeXonoticTextLabel(0, _("Notifications:")));
24         me.TR(me);
25                 me.TDempty(me, 0.2);
26                 me.TD(me, 1, 3.8, e = makeXonoticCheckBox(0, "hud_panel_notify_print", _("Also print notifications to the console")));
27         me.TR(me);
28                 me.TDempty(me, 0.2);
29                 me.TD(me, 1, 3.8, e = makeXonoticCheckBox(0, "hud_panel_notify_flip", _("Flip notify order")));
30         me.TR(me);
31                 me.TDempty(me, 0.2);
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"));
34         me.TR(me);
35                 me.TDempty(me, 0.2);
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"));
38 }
39 #endif