1 #ifndef DIALOG_SETTINGS_GAME_MESSAGES_H
2 #define DIALOG_SETTINGS_GAME_MESSAGES_H
4 CLASS(XonoticGameMessageSettingsTab, XonoticTab)
5 METHOD(XonoticGameMessageSettingsTab, fill, void(entity));
6 METHOD(XonoticGameMessageSettingsTab, showNotify, void(entity));
7 ATTRIB(XonoticGameMessageSettingsTab, title, string, _("Messages"))
8 ATTRIB(XonoticGameMessageSettingsTab, intendedWidth, float, 0.9)
9 ATTRIB(XonoticGameMessageSettingsTab, rows, float, 13)
10 ATTRIB(XonoticGameMessageSettingsTab, columns, float, 6)
11 ATTRIB(XonoticGameMessageSettingsTab, weaponsList, entity, NULL)
12 ENDCLASS(XonoticGameMessageSettingsTab)
13 entity makeXonoticGameMessageSettingsTab();
14 #include "../gamesettings.qh"
15 REGISTER_SETTINGS(Messages, makeXonoticGameMessageSettingsTab());
19 void XonoticGameMessageSettingsTab_showNotify(entity me)
23 entity makeXonoticGameMessageSettingsTab()
26 me = NEW(XonoticGameMessageSettingsTab);
27 me.configureDialog(me);
31 void XonoticGameMessageSettingsTab_fill(entity me)
36 me.TD(me, 1, 3, e = makeXonoticHeaderLabel(_("Frag Information")));
38 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "notification_show_sprees", _("Display information about killing sprees")));
41 me.TD(me, 1, 2.8, e = makeXonoticCheckBox(0, "notification_show_sprees_info_specialonly", _("Only display sprees if they are achievements")));
42 makeMulti(e, "notification_show_sprees_center_specialonly");
43 setDependent(e, "notification_show_sprees", 1, 1);
46 me.TD(me, 1, 2.8, e = makeXonoticCheckBox(0, "notification_show_sprees_center", _("Show spree information in centerprints")));
47 setDependent(e, "notification_show_sprees", 1, 1);
50 me.TD(me, 1, 2.8, e = makeXonoticCheckBoxEx(3, 0, "notification_show_sprees_info", _("Show spree information in death messages")));
51 setDependent(e, "notification_show_sprees", 1, 1);
55 me.TD(me, 1, 0.9, e = makeXonoticTextLabel(0, _("Sprees in info messages:")));
56 setDependent(e, "notification_show_sprees", 1, 1);
57 me.TD(me, 1, 2, e = makeXonoticTextSlider("notification_show_sprees_info"));
58 e.addValue(e, ZCTX(_("SPREES^Disabled")), "0");
59 e.addValue(e, _("Target"), "1");
60 e.addValue(e, _("Attacker"), "2");
61 e.addValue(e, ZCTX(_("SPREES^Both")), "3");
62 e.configureXonoticTextSliderValues(e);
63 setDependent(e, "notification_show_sprees", 1, 1);
67 me.TD(me, 1, 2.6, e = makeXonoticCheckBox(0, "notification_show_sprees_info_newline", _("Print on a seperate line")));
68 setDependent(e, "notification_show_sprees", 1, 1);
70 me.TD(me, 1, 3, e = makeXonoticCheckBoxEx(2, 1, "notification_CHOICE_FRAG", _("Add extra frag information to centerprint when available")));
71 makeMulti(e, "notification_CHOICE_FRAGGED notification_CHOICE_TYPEFRAG notification_CHOICE_TYPEFRAGGED");
74 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "notification_show_location", _("Add frag location to death messages when available")));
76 me.gotoRC(me, 9, 0); me.setFirstColumn(me, me.currentColumn);
77 me.TD(me, 1, 3, e = makeXonoticHeaderLabel(_("Gamemode Settings")));
79 me.TD(me, 1, 3, e = makeXonoticCheckBoxEx(2, 1, "notification_CHOICE_CTF_CAPTURE_TIME_RED", _("Display capture times in Capture The Flag")));
80 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 ");
83 me.TD(me, 1, 3, e = makeXonoticCheckBoxEx(2, 1, "notification_CHOICE_CTF_PICKUP_ENEMY", _("Display name of flag stealer in Capture The Flag")));
84 makeMulti(e, "notification_CHOICE_CTF_PICKUP_TEAM");
87 me.gotoRC(me, 0, 3.2); me.setFirstColumn(me, me.currentColumn);
88 me.TD(me, 1, 3, e = makeXonoticHeaderLabel(_("Other")));
90 me.TD(me, 1, 3, e = makeXonoticCheckBoxEx(4, 1, "con_notify", _("Display console messages in the top left corner")));
92 me.TD(me, 1, 3, e = makeXonoticCheckBoxEx(2, 1, "notification_allow_chatboxprint", _("Display all info messages in the chatbox")));
94 me.TD(me, 1, 3, e = makeXonoticCheckBoxEx(2, 1, "notification_INFO_QUIT_DISCONNECT", _("Display player statuses in the chatbox")));
95 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");
98 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "notification_CENTER_POWERUP_INVISIBILITY", _("Powerup notifications")));
99 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.TD(me, 1, 3, e = makeXonoticCheckBox(0, "notification_CENTER_ITEM_WEAPON_DONTHAVE", _("Weapon centerprint notifications")));
102 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.TD(me, 1, 3, e = makeXonoticCheckBox(0, "notification_INFO_ITEM_WEAPON_DONTHAVE", _("Weapon info message notifications")));
105 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 me.gotoRC(me, 9, 3.2); me.setFirstColumn(me, me.currentColumn);
108 me.TD(me, 1, 3, e = makeXonoticHeaderLabel(_("Announcers")));
110 // there's just not enough room for this, and it's not important enough to justify...
112 me.TD(me, 1, 3, e = makeXonoticCheckBoxEx(2, 0, "notification_ANNCE_NUM_RESPAWN_1", _("Respawn countdown sounds")));
113 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");
116 me.TD(me, 1, 3, e = makeXonoticCheckBoxEx(1, 0, "notification_ANNCE_KILLSTREAK_03", _("Killstreak sounds")));
117 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");
119 me.TD(me, 1, 3, e = makeXonoticCheckBoxEx(1, 0, "notification_ANNCE_ACHIEVEMENT_AIRSHOT", _("Achievement sounds")));
120 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");