]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/dialog_settings_game_messages.qc
Header police
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / dialog_settings_game_messages.qc
1 #include "dialog_settings_game_messages.qh"
2 #ifndef DIALOG_SETTINGS_GAME_MESSAGES_H
3 #define DIALOG_SETTINGS_GAME_MESSAGES_H
4 #include "tab.qc"
5 CLASS(XonoticGameMessageSettingsTab, XonoticTab)
6         METHOD(XonoticGameMessageSettingsTab, fill, void(entity));
7         METHOD(XonoticGameMessageSettingsTab, showNotify, void(entity));
8         ATTRIB(XonoticGameMessageSettingsTab, title, string, _("Messages"))
9         ATTRIB(XonoticGameMessageSettingsTab, intendedWidth, float, 0.9)
10         ATTRIB(XonoticGameMessageSettingsTab, rows, float, 15.5)
11         ATTRIB(XonoticGameMessageSettingsTab, columns, float, 6)
12         ATTRIB(XonoticGameMessageSettingsTab, weaponsList, entity, NULL)
13 ENDCLASS(XonoticGameMessageSettingsTab)
14 entity makeXonoticGameMessageSettingsTab();
15 #include "../gamesettings.qh"
16 REGISTER_SETTINGS(Messages, makeXonoticGameMessageSettingsTab());
17 #endif
18
19 #ifdef IMPLEMENTATION
20 void XonoticGameMessageSettingsTab_showNotify(entity me)
21 {
22         loadAllCvars(me);
23 }
24 entity makeXonoticGameMessageSettingsTab()
25 {
26         entity me;
27         me = NEW(XonoticGameMessageSettingsTab);
28         me.configureDialog(me);
29         return me;
30 }
31
32 void XonoticGameMessageSettingsTab_fill(entity me)
33 {
34         entity e;
35
36         me.TR(me);
37                 me.TD(me, 1, 3, e = makeXonoticHeaderLabel(_("Frag Information")));
38         me.TR(me);
39                 me.TD(me, 1, 3, e = makeXonoticCheckBox_T(0, "notification_show_sprees", _("Display information about killing sprees"), "-"));
40         me.TR(me);
41                 me.TDempty(me, 0.2);
42                 me.TD(me, 1, 2.8, e = makeXonoticCheckBox_T(0, "notification_show_sprees_info_specialonly", _("Only display sprees if they are achievements"), "-"));
43                         makeMulti(e, "notification_show_sprees_center_specialonly");
44                         setDependent(e, "notification_show_sprees", 1, 1);
45         me.TR(me);
46                 me.TDempty(me, 0.2);
47                 me.TD(me, 1, 2.8, e = makeXonoticCheckBox_T(0, "notification_show_sprees_center", _("Show spree information in centerprints"), "-"));
48                         setDependent(e, "notification_show_sprees", 1, 1);
49         me.TR(me);
50                 me.TDempty(me, 0.2);
51                 me.TD(me, 1, 2.8, e = makeXonoticCheckBoxEx_T(3, 0, "notification_show_sprees_info", _("Show spree information in death messages"), "-"));
52                         setDependent(e, "notification_show_sprees", 1, 1);
53         #if 0
54         me.TR(me);
55                 me.TDempty(me, 0.1);
56                 me.TD(me, 1, 0.9, e = makeXonoticTextLabel(0, _("Sprees in info messages:")));
57                         setDependent(e, "notification_show_sprees", 1, 1);
58                 me.TD(me, 1, 2, e = makeXonoticTextSlider_T("notification_show_sprees_info", "-"));
59                         e.addValue(e, ZCTX(_("SPREES^Disabled")), "0");
60                         e.addValue(e, _("Target"), "1");
61                         e.addValue(e, _("Attacker"), "2");
62                         e.addValue(e, ZCTX(_("SPREES^Both")), "3");
63                         e.configureXonoticTextSliderValues(e);
64                         setDependent(e, "notification_show_sprees", 1, 1);
65         #endif
66         me.TR(me);
67                 me.TDempty(me, 0.4);
68                 me.TD(me, 1, 2.6, e = makeXonoticCheckBox_T(0, "notification_show_sprees_info_newline", _("Print on a seperate line"), "-"));
69                         setDependent(e, "notification_show_sprees", 1, 1);
70         me.TR(me);
71                 me.TD(me, 1, 3, e = makeXonoticCheckBoxEx_T(2, 1, "notification_CHOICE_FRAG", _("Add extra frag information to centerprint when available"), "-"));
72                         makeMulti(e, "notification_CHOICE_FRAGGED notification_CHOICE_TYPEFRAG notification_CHOICE_TYPEFRAGGED");
73                         e.sendCvars = true;
74         me.TR(me);
75                 me.TD(me, 1, 3, e = makeXonoticCheckBox_T(0, "notification_show_location", _("Add frag location to death messages when available"), "-"));
76
77         me.gotoRC(me, 9, 0); me.setFirstColumn(me, me.currentColumn);
78                 me.TD(me, 1, 3, e = makeXonoticHeaderLabel(_("Gamemode Settings")));
79         me.TR(me);
80                 me.TD(me, 1, 3, e = makeXonoticCheckBoxEx_T(2, 1, "notification_CHOICE_CTF_CAPTURE_TIME_RED", _("Display capture times in Capture The Flag"), "-"));
81                         makeMulti(e, "notification_CHOICE_CTF_CAPTURE_TIME_BLUE notification_CHOICE_CTF_CAPTURE_BROKEN_RED notification_CHOICE_CTF_CAPTURE_BROKEN_BLUE notification_CHOICE_CTF_CAPTURE_UNBROKEN_RED notification_CHOICE_CTF_CAPTURE_UNBROKEN_BLUE ");
82                         e.sendCvars = true;
83         me.TR(me);
84                 me.TD(me, 1, 3, e = makeXonoticCheckBoxEx_T(2, 1, "notification_CHOICE_CTF_PICKUP_ENEMY", _("Display name of flag stealer in Capture The Flag"), "-"));
85                         makeMulti(e, "notification_CHOICE_CTF_PICKUP_TEAM");
86                         e.sendCvars = true;
87
88         me.gotoRC(me, 0, 3.2); me.setFirstColumn(me, me.currentColumn);
89                 me.TD(me, 1, 3, e = makeXonoticHeaderLabel(_("Other")));
90         me.TR(me);
91                 me.TD(me, 1, 3, e = makeXonoticCheckBoxEx_T(4, 1, "con_notify", _("Display console messages in the top left corner"), "-"));
92         me.TR(me);
93                 me.TD(me, 1, 3, e = makeXonoticCheckBoxEx_T(2, 1, "notification_allow_chatboxprint", _("Display all info messages in the chatbox"), "-"));
94         me.TR(me);
95                 me.TD(me, 1, 3, e = makeXonoticCheckBoxEx_T(2, 1, "notification_INFO_QUIT_DISCONNECT", _("Display player statuses in the chatbox"), "-"));
96                         makeMulti(e, "notification_INFO_QUIT_KICK_IDLING notification_INFO_JOIN_CONNECT_TEAM_BLUE notification_INFO_JOIN_CONNECT_TEAM_PINK notification_INFO_JOIN_CONNECT_TEAM_RED notification_INFO_JOIN_CONNECT_TEAM_YELLOW");
97         me.TR(me);
98         me.TR(me);
99                 me.TD(me, 1, 3, e = makeXonoticCheckBox_T(0, "notification_CENTER_POWERUP_INVISIBILITY", _("Powerup notifications"), "-"));
100                         makeMulti(e, "notification_CENTER_POWERUP_SHIELD notification_CENTER_POWERUP_SPEED notification_CENTER_POWERUP_STRENGTH notification_CENTER_POWERDOWN_INVISIBILITY notification_CENTER_POWERDOWN_SHIELD notification_CENTER_POWERDOWN_SPEED notification_CENTER_POWERDOWN_STRENGTH notification_CENTER_SUPERWEAPON_BROKEN notification_CENTER_SUPERWEAPON_LOST notification_CENTER_SUPERWEAPON_PICKUP notification_INFO_POWERUP_INVISIBILITY notification_INFO_POWERUP_SHIELD notification_INFO_POWERUP_SPEED notification_INFO_POWERUP_STRENGTH");
101         me.TR(me);
102                 me.TD(me, 1, 3, e = makeXonoticCheckBox_T(0, "notification_CENTER_ITEM_WEAPON_DONTHAVE", _("Weapon centerprint notifications"), "-"));
103                         makeMulti(e, "notification_CENTER_ITEM_WEAPON_DROP notification_CENTER_ITEM_WEAPON_GOT notification_CENTER_ITEM_WEAPON_NOAMMO notification_CENTER_ITEM_WEAPON_PRIMORSEC notification_CENTER_ITEM_WEAPON_UNAVAILABLE");
104         me.TR(me);
105                 me.TD(me, 1, 3, e = makeXonoticCheckBox_T(0, "notification_INFO_ITEM_WEAPON_DONTHAVE", _("Weapon info message notifications"), "-"));
106                         makeMulti(e, "notification_INFO_ITEM_WEAPON_DROP notification_INFO_ITEM_WEAPON_GOT notification_INFO_ITEM_WEAPON_NOAMMO notification_INFO_ITEM_WEAPON_PRIMORSEC notification_INFO_ITEM_WEAPON_UNAVAILABLE");
107
108         me.gotoRC(me, 9, 3.2); me.setFirstColumn(me, me.currentColumn);
109                 me.TD(me, 1, 3, e = makeXonoticHeaderLabel(_("Announcers")));
110         me.TR(me);
111                 me.TD(me, 1, 3, e = makeXonoticCheckBoxEx_T(2, 0, "notification_ANNCE_NUM_RESPAWN_1", _("Respawn countdown sounds"), "-"));
112                         makeMulti(e, "notification_ANNCE_NUM_RESPAWN_2 notification_ANNCE_NUM_RESPAWN_3 notification_ANNCE_NUM_RESPAWN_4 notification_ANNCE_NUM_RESPAWN_5 notification_ANNCE_NUM_RESPAWN_6 notification_ANNCE_NUM_RESPAWN_7 notification_ANNCE_NUM_RESPAWN_8 notification_ANNCE_NUM_RESPAWN_9 notification_ANNCE_NUM_RESPAWN_10");
113         me.TR(me);
114                 me.TD(me, 1, 3, e = makeXonoticCheckBoxEx_T(1, 0, "notification_ANNCE_KILLSTREAK_03", _("Killstreak sounds"), "-"));
115                         makeMulti(e, "notification_ANNCE_KILLSTREAK_05 notification_ANNCE_KILLSTREAK_10 notification_ANNCE_KILLSTREAK_15 notification_ANNCE_KILLSTREAK_20 notification_ANNCE_KILLSTREAK_25 notification_ANNCE_KILLSTREAK_30");
116         me.TR(me);
117                 me.TD(me, 1, 3, e = makeXonoticCheckBoxEx_T(1, 0, "notification_ANNCE_ACHIEVEMENT_AIRSHOT", _("Achievement sounds"), "-"));
118                         makeMulti(e, "notification_ANNCE_ACHIEVEMENT_AMAZING notification_ANNCE_ACHIEVEMENT_AWESOME notification_ANNCE_ACHIEVEMENT_BOTLIKE notification_ANNCE_ACHIEVEMENT_ELECTROBITCH notification_ANNCE_ACHIEVEMENT_IMPRESSIVE notification_ANNCE_ACHIEVEMENT_YODA");
119 }
120 #endif