Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
dialog_settings_game_messages.qc
Go to the documentation of this file.
2
3#include "textlabel.qh"
4#include "checkbox.qh"
5#include "mixedslider.qh"
6#include <common/mapinfo.qh>
8
14{
15 entity me;
17 me.configureDialog(me);
18 return me;
19}
20
22{
23 entity e;
24
25 me.TR(me);
26 me.TD(me, 1, 3.1, e = makeXonoticHeaderLabel(_("Frag Information")));
27 me.TR(me);
28 me.TD(me, 1, 3.1, e = makeXonoticCheckBox_T(0, "notification_show_sprees", _("Display information about killing sprees"), "-"));
29 me.TR(me);
30 me.TDempty(me, 0.2);
31 me.TD(me, 1, 2.9, e = makeXonoticCheckBox_T(0, "notification_show_sprees_info_specialonly", _("Only display sprees if they are achievements"), "-"));
32 makeMulti(e, "notification_show_sprees_center_specialonly");
33 setDependent(e, "notification_show_sprees", 1, 1);
34 me.TR(me);
35 me.TDempty(me, 0.2);
36 me.TD(me, 1, 2.9, e = makeXonoticCheckBox_T(0, "notification_show_sprees_center", _("Show spree information in centerprints"), "-"));
37 setDependent(e, "notification_show_sprees", 1, 1);
38 me.TR(me);
39 me.TDempty(me, 0.2);
40 me.TD(me, 1, 2.9, e = makeXonoticCheckBoxEx_T(3, 0, "notification_show_sprees_info", _("Show spree information in death messages"), "-"));
41 setDependent(e, "notification_show_sprees", 1, 1);
42 #if 0
43 me.TR(me);
44 me.TDempty(me, 0.2);
45 me.TD(me, 1, 0.9, e = makeXonoticTextLabel(0, _("Sprees in info messages:")));
46 setDependent(e, "notification_show_sprees", 1, 1);
47 me.TD(me, 1, 2, e = makeXonoticMixedSlider_T("notification_show_sprees_info", "-"));
48 e.addText(e, ZCTX(_("SPREES^Disabled")), 0);
49 e.addText(e, _("Target"), 1);
50 e.addText(e, _("Attacker"), 2);
51 e.addText(e, ZCTX(_("SPREES^Both")), 3);
52 e.configureXonoticMixedSliderValues(e);
53 setDependent(e, "notification_show_sprees", 1, 1);
54 #endif
55 me.TR(me);
56 me.TDempty(me, 0.4);
57 me.TD(me, 1, 2.7, e = makeXonoticCheckBox_T(0, "notification_show_sprees_info_newline", _("Print on a separate line"), "-"));
58 setDependent(e, "notification_show_sprees", 1, 1);
59 setDependentAND(e, "notification_show_sprees_info", 1, 3);
60 me.TR(me);
61 me.TD(me, 1, 3.1, e = makeXonoticCheckBoxEx_T(2, 1, "notification_CHOICE_FRAG", _("Add extra frag information to centerprint when available"), "-"));
62 makeMulti(e, "notification_CHOICE_FRAGGED notification_CHOICE_TYPEFRAG notification_CHOICE_TYPEFRAGGED notification_CHOICE_FRAG_FIRE notification_CHOICE_FRAGGED_FIRE notification_CHOICE_FRAG_FREEZE notification_CHOICE_FRAGGED_FREEZE");
63 e.sendCvars = true;
64 me.TR(me);
65 me.TD(me, 1, 3.1, e = makeXonoticCheckBox_T(0, "notification_show_location", _("Add frag location to death messages when available"), "-"));
66
67 me.TR(me);
68 me.TR(me);
69 me.TD(me, 1, 3.1, e = makeXonoticHeaderLabel(_("Gametype Settings")));
70 me.TR(me);
71 me.TD(me, 1, 3.1, e = makeXonoticCheckBoxEx_T(2, 1, "notification_CHOICE_CTF_CAPTURE_TIME", strzone(sprintf(_("Display capture times in %s"), MapInfo_Type_ToText(MAPINFO_TYPE_CTF))), "-"));
72 makeMulti(e, "notification_CHOICE_CTF_CAPTURE_BROKEN notification_CHOICE_CTF_CAPTURE_UNBROKEN");
73 e.sendCvars = true;
74 me.TR(me);
75 me.TD(me, 1, 3.1, e = makeXonoticCheckBoxEx_T(2, 1, "notification_CHOICE_CTF_PICKUP_ENEMY", strzone(sprintf(_("Display name of flag stealer in %s"), MapInfo_Type_ToText(MAPINFO_TYPE_CTF))), "-"));
76 makeMulti(e, "notification_CHOICE_CTF_PICKUP_ENEMY_TEAM notification_CHOICE_CTF_PICKUP_ENEMY_NEUTRAL");
77 e.sendCvars = true;
78
79 me.gotoRC(me, 0, 3.1); me.setFirstColumn(me, me.currentColumn);
80 me.TD(me, 1, 2.9, e = makeXonoticHeaderLabel(_("Other")));
81 me.TR(me);
82 me.TD(me, 1, 2.9, e = makeXonoticCheckBoxEx_T(4, 0, "con_notify", _("Display console messages in the top left corner"), "-"));
83 me.TR(me);
84 me.TD(me, 1, 2.9, e = makeXonoticCheckBoxEx_T(2, 1, "notification_allow_chatboxprint", _("Display all info messages in the chatbox"), "-"));
85 me.TR(me);
86 me.TD(me, 1, 2.9, e = makeXonoticCheckBoxEx_T(2, 1, "notification_INFO_QUIT_DISCONNECT", _("Display player statuses in the chatbox"), "-"));
87 makeMulti(e, "notification_INFO_QUIT_KICK_IDLING notification_INFO_JOIN_CONNECT");
88 me.TR(me);
89 me.TR(me);
90 me.TD(me, 1, 2.9, e = makeXonoticCheckBox_T(0, "notification_CENTER_POWERUP_INVISIBILITY", _("Powerup notifications"), "-"));
91 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");
92 me.TR(me);
93 me.TD(me, 1, 2.9, e = makeXonoticCheckBox_T(0, "notification_CENTER_ITEM_WEAPON_DONTHAVE", _("Weapon centerprint notifications"), "-"));
94 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");
95 me.TR(me);
96 me.TD(me, 1, 2.9, e = makeXonoticCheckBox_T(0, "notification_INFO_ITEM_WEAPON_DONTHAVE", _("Weapon info message notifications"), "-"));
97 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");
98
99 me.TR(me);
100 me.TR(me);
101 me.TD(me, 1, 2.9, e = makeXonoticHeaderLabel(_("Announcers")));
102 me.TR(me);
103 me.TD(me, 1, 2.9, e = makeXonoticCheckBoxEx_T(2, 0, "notification_ANNCE_NUM_RESPAWN_1", _("Respawn countdown sounds"), "-"));
104 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");
105 me.TR(me);
106 me.TD(me, 1, 2.9, e = makeXonoticCheckBoxEx_T(1, 0, "notification_ANNCE_KILLSTREAK_03", _("Killstreak sounds"), "-"));
107 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");
108 me.TR(me);
109 me.TD(me, 1, 2.9, e = makeXonoticCheckBoxEx_T(1, 0, "notification_ANNCE_ACHIEVEMENT_AIRSHOT", _("Achievement sounds"), "-"));
110 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");
111}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
void XonoticGameMessageSettingsTab_fill(entity me)
void XonoticGameMessageSettingsTab_showNotify(entity me)
entity makeXonoticGameMessageSettingsTab()
#define ZCTX(s)
Definition i18n.qh:68
string MapInfo_Type_ToText(Gametype t)
Definition mapinfo.qc:661
void loadAllCvars(entity root)
Definition util.qc:53
void setDependentAND(entity e, string theCvarName, float theCvarMin, float theCvarMax)
Definition util.qc:213
void makeMulti(entity e, string otherCvars)
Definition util.qc:92
void setDependent(entity e, string theCvarName, float theCvarMin, float theCvarMax)
Definition util.qc:180
string strzone(string s)
#define NEW(cname,...)
Definition oo.qh:117
entity makeXonoticTextLabel(float theAlign, string theText)
Definition textlabel.qc:3
entity makeXonoticHeaderLabel(string theText)
Definition textlabel.qc:10
entity makeXonoticCheckBox_T(float isInverted, string theCvar, string theText, string theTooltip)
Definition checkbox.qc:3
entity makeXonoticCheckBoxEx_T(float theYesValue, float theNoValue, string theCvar, string theText, string theTooltip)
Definition checkbox.qc:33
entity makeXonoticMixedSlider_T(string theCvar, string theTooltip)
Definition mixedslider.qc:3