]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/dialog_hudpanel_notification.c
Merge remote branch 'refs/remotes/origin/terencehill/numbered_bots'
[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 Setup")
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         me.TR(me);
18                 me.TR(me);
19                         me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_notify", "On/Off"));
20                 me.TR(me);
21                         me.TD(me, 1, 2, e = makeXonoticTextLabel(0, "Team Color:"));
22                                 me.TD(me, 1, 2, e = makeXonoticSlider(0, 1, 0.01, "hud_notify_bg_color_team"));
23                 me.TR(me);
24                         me.TD(me, 1, 2, e = makeXonoticTextLabel(0, "Background Alpha:"));
25                                 me.TD(me, 1, 2, e = makeXonoticSlider(0, 1, 0.01, "hud_notify_bg_alpha"));
26                 me.TR(me);
27                         me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_notify_flip", "Flip"));
28                 me.TR(me);
29                         me.TD(me, 1, 2, e = makeXonoticTextLabel(0, "Message lifetime:"));
30                                 me.TD(me, 1, 2, e = makeXonoticSlider(3, 15, 1, "hud_notify_time"));
31                 me.TR(me);
32                         me.TD(me, 1, 2, e = makeXonoticTextLabel(0, "Message fadetime:"));
33                                 me.TD(me, 1, 2, e = makeXonoticSlider(1, 5, 1, "hud_notify_fadetime"));
34                 me.TR(me);
35                         me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_notify_print", "Also print messages to console"));
36         me.TR(me);
37         //me.gotoRC(me, me.rows - 1, 0);
38                 //me.TD(me, 1, me.columns, e = makeXonoticCommandButton("Exit Setup", '0 0 0', "_hud_configure 0", 1));
39 }
40 #endif