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();
16 void XonoticGameMessageSettingsTab_showNotify(entity me)
20 entity makeXonoticGameMessageSettingsTab()
23 me = spawnXonoticGameMessageSettingsTab();
24 me.configureDialog(me);
28 void XonoticGameMessageSettingsTab_fill(entity me)
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
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
47 // General settings for the player
49 me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("General Settings:")));
53 me.TD(me, 1, 2, e = makeXonoticCheckBox(0, "notification_allow_chatboxprint", _("Print all notifications into the chatbox")));
56 me.TD(me, 1, 2, e = makeXonoticTextLabel(0, _("Notice connecting players:")));
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);
67 me.TD(me, 1, 2, e = makeXonoticCheckBox(0, "notification_ITEM_WEAPON_DONTHAVE", _("Item notifications")));
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");
74 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "notification_frag_verbose", _("Additional information on frags")));
78 // Gamemode specific notifications
79 me.TD(me, 1, 2, e = makeXonoticTextLabel(0, _("Gamemode notifications:")));
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");
86 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "notification_ctf_capture_verbose", _("Additional information on flag captures")));
89 // Information on killingsprees
91 me.TD(me, 1, 2, e = makeXonoticTextLabel(0, _("Information on killingsprees:")));
94 me.TD(me, 1, 2, e = makeXonoticCheckBox(0, "notification_show_sprees", _("Print information on sprees")));
97 me.TD(me, 1, 2, e = makeXonoticTextLabel(0, _("Show spree information:")));
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);
108 me.TD(me, 1, 2, e = makeXonoticCheckBox(0, "notification_show_sprees_info_newline", _("Print spree information in a new line")));