Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
dialog_settings_game_messages.qc File Reference
Include dependency graph for dialog_settings_game_messages.qc:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

entity makeXonoticGameMessageSettingsTab ()
void XonoticGameMessageSettingsTab_fill (entity me)
void XonoticGameMessageSettingsTab_showNotify (entity me)

Function Documentation

◆ makeXonoticGameMessageSettingsTab()

entity makeXonoticGameMessageSettingsTab ( )

Definition at line 13 of file dialog_settings_game_messages.qc.

14{
16 me.configureDialog(me);
17 return me;
18}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
#define NEW(cname,...)
Definition oo.qh:117

References entity(), and NEW.

Referenced by XonoticGameMessageSettingsTab::ATTRIB().

◆ XonoticGameMessageSettingsTab_fill()

void XonoticGameMessageSettingsTab_fill ( entity me)

Definition at line 20 of file dialog_settings_game_messages.qc.

21{
22 entity e;
23
24 me.TR(me);
25 me.TD(me, 1, 3.1, e = makeXonoticHeaderLabel(_("Frag Information")));
26 me.TR(me);
27 me.TD(me, 1, 3.1, e = makeXonoticCheckBox_T(0, "notification_show_sprees", _("Display information about killing sprees"), "-"));
28 me.TR(me);
29 me.TDempty(me, 0.2);
30 me.TD(me, 1, 2.9, e = makeXonoticCheckBox_T(0, "notification_show_sprees_info_specialonly", _("Only display sprees if they are achievements"), "-"));
31 makeMulti(e, "notification_show_sprees_center_specialonly");
32 setDependent(e, "notification_show_sprees", 1, 1);
33 me.TR(me);
34 me.TDempty(me, 0.2);
35 me.TD(me, 1, 2.9, e = makeXonoticCheckBox_T(0, "notification_show_sprees_center", _("Show spree information in centerprints"), "-"));
36 setDependent(e, "notification_show_sprees", 1, 1);
37 me.TR(me);
38 me.TDempty(me, 0.2);
39 me.TD(me, 1, 2.9, e = makeXonoticCheckBoxEx_T(3, 0, "notification_show_sprees_info", _("Show spree information in death messages"), "-"));
40 setDependent(e, "notification_show_sprees", 1, 1);
41 #if 0
42 me.TR(me);
43 me.TDempty(me, 0.2);
44 me.TD(me, 1, 0.9, e = makeXonoticTextLabel(0, _("Sprees in info messages:")));
45 setDependent(e, "notification_show_sprees", 1, 1);
46 me.TD(me, 1, 2, e = makeXonoticMixedSlider_T("notification_show_sprees_info", "-"));
47 e.addText(e, ZCTX(_("SPREES^Disabled")), 0);
48 e.addText(e, _("Target"), 1);
49 e.addText(e, _("Attacker"), 2);
50 e.addText(e, ZCTX(_("SPREES^Both")), 3);
51 e.configureXonoticMixedSliderValues(e);
52 setDependent(e, "notification_show_sprees", 1, 1);
53 #endif
54 me.TR(me);
55 me.TDempty(me, 0.4);
56 me.TD(me, 1, 2.7, e = makeXonoticCheckBox_T(0, "notification_show_sprees_info_newline", _("Print on a separate line"), "-"));
57 setDependent(e, "notification_show_sprees", 1, 1);
58 setDependentAND(e, "notification_show_sprees_info", 1, 3);
59 me.TR(me);
60 me.TD(me, 1, 3.1, e = makeXonoticCheckBoxEx_T(2, 1, "notification_CHOICE_FRAG", _("Add extra frag information to centerprint when available"), "-"));
61 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");
62 e.sendCvars = true;
63 me.TR(me);
64 me.TD(me, 1, 3.1, e = makeXonoticCheckBox_T(0, "notification_show_location", _("Add frag location to death messages when available"), "-"));
65
66 me.TR(me);
67 me.TR(me);
68 me.TD(me, 1, 3.1, e = makeXonoticHeaderLabel(_("Gametype Settings")));
69 me.TR(me);
70 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))), "-"));
71 makeMulti(e, "notification_CHOICE_CTF_CAPTURE_BROKEN notification_CHOICE_CTF_CAPTURE_UNBROKEN");
72 e.sendCvars = true;
73 me.TR(me);
74 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))), "-"));
75 makeMulti(e, "notification_CHOICE_CTF_PICKUP_ENEMY_TEAM notification_CHOICE_CTF_PICKUP_ENEMY_NEUTRAL");
76 e.sendCvars = true;
77
78 me.gotoRC(me, 0, 3.1); me.setFirstColumn(me, me.currentColumn);
79 me.TD(me, 1, 2.9, e = makeXonoticHeaderLabel(_("Other")));
80 me.TR(me);
81 me.TD(me, 1, 2.9, e = makeXonoticCheckBoxEx_T(4, 0, "con_notify", _("Display console messages in the top left corner"), "-"));
82 me.TR(me);
83 me.TD(me, 1, 2.9, e = makeXonoticCheckBoxEx_T(2, 1, "notification_allow_chatboxprint", _("Display all info messages in the chatbox"), "-"));
84 me.TR(me);
85 me.TD(me, 1, 2.9, e = makeXonoticCheckBoxEx_T(2, 1, "notification_INFO_QUIT_DISCONNECT", _("Display player statuses in the chatbox"), "-"));
86 makeMulti(e, "notification_INFO_QUIT_KICK_IDLING notification_INFO_JOIN_CONNECT");
87 me.TR(me);
88 me.TR(me);
89 me.TD(me, 1, 2.9, e = makeXonoticCheckBox_T(0, "notification_CENTER_POWERUP_INVISIBILITY", _("Powerup notifications"), "-"));
90 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");
91 me.TR(me);
92 me.TD(me, 1, 2.9, e = makeXonoticCheckBox_T(0, "notification_CENTER_ITEM_WEAPON_DONTHAVE", _("Weapon centerprint notifications"), "-"));
93 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");
94 me.TR(me);
95 me.TD(me, 1, 2.9, e = makeXonoticCheckBox_T(0, "notification_INFO_ITEM_WEAPON_DONTHAVE", _("Weapon info message notifications"), "-"));
96 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");
97
98 me.TR(me);
99 me.TR(me);
100 me.TD(me, 1, 2.9, e = makeXonoticHeaderLabel(_("Announcers")));
101 me.TR(me);
102 me.TD(me, 1, 2.9, e = makeXonoticCheckBoxEx_T(2, 0, "notification_ANNCE_NUM_RESPAWN_1", _("Respawn countdown sounds"), "-"));
103 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");
104 me.TR(me);
105 me.TD(me, 1, 2.9, e = makeXonoticCheckBoxEx_T(1, 0, "notification_ANNCE_KILLSTREAK_03", _("Killstreak sounds"), "-"));
106 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");
107 me.TR(me);
108 me.TD(me, 1, 2.9, e = makeXonoticCheckBoxEx_T(1, 0, "notification_ANNCE_ACHIEVEMENT_AIRSHOT", _("Achievement sounds"), "-"));
109 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");
110}
#define ZCTX(s)
Definition i18n.qh:68
string MapInfo_Type_ToText(Gametype t)
Definition mapinfo.qc:660
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)
entity makeXonoticTextLabel(float theAlign, string theText)
Definition textlabel.qc:3
entity makeXonoticHeaderLabel(string theText)
Definition textlabel.qc:9
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

References entity(), makeMulti(), makeXonoticCheckBox_T(), makeXonoticCheckBoxEx_T(), makeXonoticHeaderLabel(), makeXonoticMixedSlider_T(), makeXonoticTextLabel(), MapInfo_Type_ToText(), setDependent(), setDependentAND(), strzone(), and ZCTX.

◆ XonoticGameMessageSettingsTab_showNotify()

void XonoticGameMessageSettingsTab_showNotify ( entity me)

Definition at line 9 of file dialog_settings_game_messages.qc.

10{
11 loadAllCvars(me);
12}
void loadAllCvars(entity root)
Definition util.qc:53

References entity(), and loadAllCvars().