]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/dialog_hudpanel_notification.c
Merge remote-tracking branch 'origin/fruitiex/uzidebugprint'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / dialog_hudpanel_notification.c
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 ENDCLASS(XonoticHUDNotificationDialog)
11 #endif
12
13 #ifdef IMPLEMENTATION
14 void XonoticHUDNotificationDialog_fill(entity me)
15 {
16         entity e;
17         string panelname = "notify";
18
19         DIALOG_HUDPANEL_COMMON();
20
21         me.TR(me);
22                 me.TD(me, 1, 2, e = makeXonoticTextLabel(0, _("Notifications:")));
23         me.TR(me);
24                 me.TDempty(me, 0.2);
25                 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_panel_notify_print", _("Also print notifications to the console")));
26         me.TR(me);
27                 me.TDempty(me, 0.2);
28                 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_panel_notify_flip", _("Flip notify order")));
29         me.TR(me);
30                 me.TDempty(me, 0.2);
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"));
33         me.TR(me);
34                 me.TDempty(me, 0.2);
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"));
37 }
38 #endif