]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/dialog_settings_game_messages.c
840d00f4ba5579c816910e71fb0c69aae33a6cc9
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / dialog_settings_game_messages.c
1 #ifdef INTERFACE
2 CLASS(XonoticGameMessageSettingsTab) EXTENDS(XonoticTab)
3         //METHOD(XonoticGameWeaponsSettingsTab, toString, string(entity))
4         METHOD(XonoticGameMessageSettingsTab, fill, void(entity))
5         METHOD(XonoticGameMessageSettingsTab, showNotify, void(entity))
6         ATTRIB(XonoticGameMessageSettingsTab, title, string, _("Messages"))
7         ATTRIB(XonoticGameMessageSettingsTab, intendedWidth, float, 0.9)
8         ATTRIB(XonoticGameMessageSettingsTab, rows, float, 14)
9         ATTRIB(XonoticGameMessageSettingsTab, columns, float, 6)
10         ATTRIB(XonoticGameMessageSettingsTab, weaponsList, entity, NULL)
11 ENDCLASS(XonoticGameMessageSettingsTab)
12 entity makeXonoticGameMessageSettingsTab();
13 #endif
14
15 #ifdef IMPLEMENTATION
16 void XonoticGameMessageSettingsTab_showNotify(entity me)
17 {
18         loadAllCvars(me);
19 }
20 entity makeXonoticGameMessageSettingsTab()
21 {
22         entity me;
23         me = spawnXonoticGameMessageSettingsTab();
24         me.configureDialog(me);
25         return me;
26 }
27
28 void XonoticGameMessageSettingsTab_fill(entity me)
29 {
30         entity e;
31
32         // todo:
33         // notification_CHOICE_CTF_CAPTURE_* CTF capture record
34         // notification_CHOICE_CTF_PICKUP_* CTF pickup verbose info
35         // notification_FRAG* Frag message verbose info
36         // notification_show_location Show location of pickups in death messages
37         // notification_show_sprees Show spree information
38         // notification_INFO_ITEM_WEAPON* Show weapon notifications in console
39         // Enable con_notify
40         // notification_ANNCE_NUM_RESPAWN* Add respawning countdown slider
41         // notification_ANNCE_NUM_ROUNDSTART* Add roundstart countdown slider
42         // notification_ANNCE_NUM_KILL* Add kill countdown slider
43         // notification_ANNCE_NUM_GAMESTART* Add gamestart countdown slider
44         // notification_ANNCE_ACHIEVEMENT* achievements toggle
45         // notification_ANNCE_KILLSTREAK* killstreak toggles
46
47         // General settings for the player
48         me.TR(me);
49                 me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("General Settings:")));
50
51         me.TR(me);
52                 me.TDempty(me, 0.1);
53                 me.TD(me, 1, 2, e = makeXonoticCheckBox(0, "notification_allow_chatboxprint", _("Print all notifications into the chatbox")));
54         me.TR(me);
55                 me.TDempty(me, 0.1);
56                 me.TD(me, 1, 2, e = makeXonoticTextLabel(0, _("Notice connecting players:")));
57         me.TR(me);
58                 me.TDempty(me, 0.3);
59                 me.TD(me, 1, 3, e = makeXonoticTextSlider("notification_INFO_QUIT_DISCONNECT"));
60                         //makeMulti(me, "notification_INFO_QUIT_KICK_IDLING notification_INFO_QUIT_KICK_SPECTATING notification_INFO_JOIN_PLAY notification_INFO_JOIN_CONNECT_TEAM_BLUE notification_INFO_JOIN_CONNECT_TEAM_PINK notification_INFO_JOIN_CONNECT_TEAM_RED notification_INFO_JOIN_CONNECT_TEAM_YELLOW");
61                         e.addValue(e, ZCTX(_("off")), "0");
62                         e.addValue(e, ZCTX(_("only console")), "1");
63                         e.addValue(e, ZCTX(_("console & chat")), "2");
64                         e.configureXonoticTextSliderValues(e);
65         me.TR(me);
66                 me.TDempty(me, 0.1);
67                 me.TD(me, 1, 2, e = makeXonoticCheckBox(0, "notification_ITEM_WEAPON_DONTHAVE", _("Item notifications")));
68         me.TR(me);
69                 me.TDempty(me, 0.1);
70                 me.TD(me, 1, 2, e = makeXonoticCheckBox(0, "notification_CENTER_POWERUP_INVISIBILITY", _("Powerup notifications")));
71                         //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");      
72         me.TR(me);
73                 me.TDempty(me, 0.1);
74                 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "notification_frag_verbose", _("Additional information on frags")));
75         me.TR(me);
76         me.TR(me);
77         
78         // Gamemode specific notifications
79                 me.TD(me, 1, 2, e = makeXonoticTextLabel(0, _("Gamemode notifications:")));
80         me.TR(me);
81                 me.TDempty(me, 0.1);
82                 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "notification_CENTER_ARENA_BEGIN", _("Centerprint for gamemode notifications")));
83                         //makeMulti(me, "notification_CENTER_ARENA_NEEDPLAYER notification_CENTER_ARENA_ROUNDSTART notification_CENTER_ASSAULT_ATTACKING notification_CENTER_ASSAULT_DEFENDING notification_CENTER_CTF_PICKUP_BLUE notification_CENTER_CTF_PICKUP_ENEMY notification_CENTER_CTF_PICKUP_RED notification_CENTER_CTF_PICKUP_TEAM notification_CENTER_FREEZETAG_FREEZE notification_CENTER_FREEZETAG_FROZEN notification_CENTER_FREEZETAG_REVIVE notification_CENTER_FREEZETAG_REVIVED notification_CENTER_FREEZETAG_ROUND_WIN_BLUE notification_CENTER_FREEZETAG_ROUND_WIN_PINK notification_CENTER_FREEZETAG_ROUND_WIN_RED notification_CENTER_FREEZETAG_ROUND_WIN_YELLOW notification_CENTER_FREEZETAG_SELF notification_CENTER_FREEZETAG_SPAWN_LATE notification_CENTER_KEEPAWAY_DROPPED notification_CENTER_KEEPAWAY_PICKUP notification_CENTER_KEEPAWAY_WARN notification_CENTER_KEYHUNT_HELP notification_CENTER_KEYHUNT_INTERFERE_BLUE notification_CENTER_KEYHUNT_INTERFERE_PINK notification_CENTER_KEYHUNT_INTERFERE_RED notification_CENTER_KEYHUNT_INTERFERE_YELLOW notification_CENTER_KEYHUNT_MEET notification_CENTER_KEYHUNT_SCAN notification_CENTER_KEYHUNT_START_BLUE notification_CENTER_KEYHUNT_START_PINK notification_CENTER_KEYHUNT_START_RED notification_CENTER_KEYHUNT_START_YELLOW notification_CENTER_KEYHUNT_WAIT notification_CENTER_LMS_CAMPCHECK");
84         me.TR(me);
85                 me.TDempty(me, 0.1);
86                 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "notification_ctf_capture_verbose", _("Additional information on flag captures")));
87         me.TR(me);
88         
89         // Information on killingsprees
90         me.TR(me);
91                 me.TD(me, 1, 2, e = makeXonoticTextLabel(0, _("Information on killingsprees:")));
92         me.TR(me);
93                 me.TDempty(me, 0.1);
94                 me.TD(me, 1, 2, e = makeXonoticCheckBox(0, "notification_show_sprees", _("Print information on sprees")));
95         me.TR(me);
96                 me.TDempty(me, 0.1);
97                 me.TD(me, 1, 2, e = makeXonoticTextLabel(0, _("Show spree information:")));
98         me.TR(me);
99                 me.TDempty(me, 0.3);
100                 me.TD(me, 1, 3, e = makeXonoticTextSlider("notification_show_sprees_info"));
101                         e.addValue(e, ZCTX(_("off")), "0");
102                         e.addValue(e, ZCTX(_("target")), "1");
103                         e.addValue(e, ZCTX(_("attacker")), "2");
104                         e.addValue(e, ZCTX(_("target & attacker")), "3");
105                         e.configureXonoticTextSliderValues(e);
106         me.TR(me);
107                 me.TDempty(me, 0.1);
108                 me.TD(me, 1, 2, e = makeXonoticCheckBox(0, "notification_show_sprees_info_newline", _("Print spree information in a new line")));
109                 
110 }
111 #endif