Xonotic
dialog_settings_game_messages.qc File Reference
#include "dialog_settings_game_messages.qh"
#include "textlabel.qh"
#include "checkbox.qh"
#include "textslider.qh"
+ 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 11 of file dialog_settings_game_messages.qc.

References entity(), and NEW.

12 {
13  entity me;
15  me.configureDialog(me);
16  return me;
17 }
#define NEW(cname,...)
Definition: oo.qh:105
entity() spawn
+ Here is the call graph for this function:

◆ XonoticGameMessageSettingsTab_fill()

void XonoticGameMessageSettingsTab_fill ( entity  me)

Definition at line 19 of file dialog_settings_game_messages.qc.

References entity(), and makeXonoticHeaderLabel().

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

◆ XonoticGameMessageSettingsTab_showNotify()

void XonoticGameMessageSettingsTab_showNotify ( entity  me)

Definition at line 7 of file dialog_settings_game_messages.qc.

References loadAllCvars().

8 {
9  loadAllCvars(me);
10 }
+ Here is the call graph for this function: