-
Notifications
You must be signed in to change notification settings - Fork 443
/
Copy pathpreferences.dm
155 lines (134 loc) · 7.16 KB
/
preferences.dm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
//Preference toggles
#define SOUND_ADMINHELP (1<<0)
#define SOUND_MIDI (1<<1)
#define SOUND_AMBIENCE (1<<2)
#define SOUND_LOBBY (1<<3)
#define SOUND_HEARTBEAT (1<<5) // 16 is lost, don't touch because it's prefs
#define SOUND_BUZZ (1<<6)
#define SOUND_INSTRUMENTS (1<<7)
#define SOUND_MENTORHELP (1<<8)
#define SOUND_DISCO (1<<9)
#define SOUND_AI_VOICE (1<<10)
#define SOUND_PRAYERNOTIFY (1<<11)
#define SOUND_DEFAULT (SOUND_ADMINHELP|SOUND_MIDI|SOUND_AMBIENCE|SOUND_LOBBY|SOUND_HEARTBEAT|SOUND_BUZZ|SOUND_INSTRUMENTS|SOUND_MENTORHELP|SOUND_DISCO|SOUND_AI_VOICE|SOUND_PRAYERNOTIFY)
#define PREFTOGGLE_CHAT_OOC (1<<0)
#define PREFTOGGLE_CHAT_DEAD (1<<1)
#define PREFTOGGLE_CHAT_GHOSTEARS (1<<2)
#define PREFTOGGLE_CHAT_GHOSTSIGHT (1<<3)
#define PREFTOGGLE_CHAT_PRAYER (1<<4)
#define PREFTOGGLE_CHAT_RADIO (1<<5)
// #define PREFTOGGLE_AZERTY (1<<6) // obsolete
#define PREFTOGGLE_CHAT_DEBUGLOGS (1<<7)
#define PREFTOGGLE_CHAT_LOOC (1<<8)
#define PREFTOGGLE_CHAT_GHOSTRADIO (1<<9)
#define PREFTOGGLE_SHOW_TYPING (1<<10)
#define PREFTOGGLE_DISABLE_SCOREBOARD (1<<11)
#define PREFTOGGLE_DISABLE_KARMA_REMINDER (1<<12)
#define PREFTOGGLE_MEMBER_PUBLIC (1<<13)
#define PREFTOGGLE_CHAT_NO_ADMINLOGS (1<<14)
#define PREFTOGGLE_DONATOR_PUBLIC (1<<15)
#define PREFTOGGLE_CHAT_NO_TICKETLOGS (1<<16)
//#define PREFTOGGLE_UI_DARKMODE (1<<17) //not used since tgchat
#define PREFTOGGLE_DISABLE_KARMA (1<<18)
#define PREFTOGGLE_CHAT_NO_MENTORTICKETLOGS (1<<19)
// #define PREFTOGGLE_TYPING_ONCE (1<<20) // Not used since tgui say
#define PREFTOGGLE_AMBIENT_OCCLUSION (1<<21)
#define PREFTOGGLE_CHAT_GHOSTPDA (1<<22)
// #define PREFTOGGLE_NUMPAD_TARGET 8388608 // Made obsolete with key bindings
#define PREFTOGGLE_DNR_AFTER_DEATH (1<<23) // 8388608
#define TOGGLES_TOTAL 16777215 // If you add or remove a preference toggle above, make sure you update this define with the total value of the toggles combined.
#define TOGGLES_DEFAULT (PREFTOGGLE_CHAT_OOC|PREFTOGGLE_CHAT_DEAD|PREFTOGGLE_CHAT_GHOSTEARS|PREFTOGGLE_CHAT_GHOSTSIGHT|PREFTOGGLE_CHAT_PRAYER|PREFTOGGLE_CHAT_RADIO|PREFTOGGLE_CHAT_LOOC|PREFTOGGLE_MEMBER_PUBLIC|PREFTOGGLE_DONATOR_PUBLIC|PREFTOGGLE_AMBIENT_OCCLUSION|PREFTOGGLE_CHAT_GHOSTPDA)
// toggles_2 variables. These MUST be prefixed with PREFTOGGLE_2
#define PREFTOGGLE_2_RANDOMSLOT (1<<0) // 1
#define PREFTOGGLE_2_FANCYUI (1<<1) // 2
#define PREFTOGGLE_2_ITEMATTACK (1<<2) // 4
#define PREFTOGGLE_2_WINDOWFLASHING (1<<3) // 8
#define PREFTOGGLE_2_ANON (1<<4) // 16
#define PREFTOGGLE_2_AFKWATCH (1<<5) // 32
#define PREFTOGGLE_2_RUNECHAT (1<<6) // 64
#define PREFTOGGLE_2_DEATHMESSAGE (1<<7) // 128
// #define PREFTOGGLE_2_EMOTE_BUBBLE (1<<8) // 256 tgui say(maybe temporary)
#define PREFTOGGLE_2_SEE_ITEM_OUTLINES (1<<9) // 512
// Yes I know this being an "enable to disable" is misleading, but it avoids having to tweak all existing pref entries
#define PREFTOGGLE_2_REVERB_DISABLE (1<<10) // 1024
#define PREFTOGGLE_2_MC_TAB (1<<11) // 2048
#define PREFTOGGLE_2_DISABLE_TGUI_INPUT (1<<12) // 4096
#define PREFTOGGLE_2_PARALLAX_MULTIZ (1<<13) // 8192
#define PREFTOGGLE_2_DISABLE_VOTE_POPUPS (1<<14) // 16384
#define PREFTOGGLE_2_SWAP_INPUT_BUTTONS (1<<15) // 32768
#define PREFTOGGLE_2_LARGE_INPUT_BUTTONS (1<<16) // 65536
#define PREFTOGGLE_2_BIG_STRIP_MENU (1<<17) // 131072
#define PREFTOGGLE_2_ENABLE_TGUI_SAY_LIGHT_MODE (1<<18) // 262144
#define PREFTOGGLE_2_PIXELATED_MENU (1<<19) // 524288
#define PREFTOGGLE_2_DESC_TIPS (1<<20) // 1048576
#define PREFTOGGLE_2_GIB_WITHOUT_OBJECTIVE (1<<21) // 2097152
#define PREFTOGGLE_2_SPLIT_ADMIN_TABS (1<<22) // 4194304
#define PREFTOGGLE_2_OFF_PROJECTILE_MESSAGES (1<<23) // 8388608
#define TOGGLES_2_TOTAL 16777215 // If you add or remove a preference toggle above, make sure you update this define with the total value of the toggles combined.
#define TOGGLES_2_DEFAULT (PREFTOGGLE_2_FANCYUI|PREFTOGGLE_2_ITEMATTACK|PREFTOGGLE_2_WINDOWFLASHING|PREFTOGGLE_2_RUNECHAT|PREFTOGGLE_2_DEATHMESSAGE|PREFTOGGLE_2_SEE_ITEM_OUTLINES|PREFTOGGLE_2_PARALLAX_MULTIZ|PREFTOGGLE_2_SWAP_INPUT_BUTTONS|PREFTOGGLE_2_LARGE_INPUT_BUTTONS|PREFTOGGLE_2_DESC_TIPS)
// Sanity checks
#if TOGGLES_TOTAL > 16777215
#error toggles bitflag over 16777215. Please use toggles_2.
#endif
#if TOGGLES_2_TOTAL > 16777215
#error toggles_2 bitflag over 16777215. Please make an issue report and postpone the feature you are working on.
#endif
// This is a list index. Required to start at 1 instead of 0 so it's properly placed in the list
#define PREFTOGGLE_CATEGORY_GENERAL 1
#define PREFTOGGLE_CATEGORY_LIVING 2
#define PREFTOGGLE_CATEGORY_GHOST 3
#define PREFTOGGLE_CATEGORY_ADMIN 4
// Preftoggle type defines
/// Special toggles, stuff that just overrides set_toggles entirely
#define PREFTOGGLE_SPECIAL 0
/// Interacts with the sound bitflag
#define PREFTOGGLE_SOUND 1
/// Interacts with the light bitflag
#define PREFTOGGLE_LIGHT 2
/// Interacts with the toggles bitflag
#define PREFTOGGLE_TOGGLE1 3
/// Interacts with the toggles2 bitflag
#define PREFTOGGLE_TOGGLE2 4
// Admin attack logs filter system, see /proc/add_attack_logs
#define ATKLOG_ALL 0 // All. no exceptions
#define ATKLOG_ALMOSTALL 1 // exceptions: NPC vs NPC, strip/equip, vamp bites and pushing
#define ATKLOG_MOST 2 // exceptions: player vs NPC, off-station areas
#define ATKLOG_FEW 3 // important: SSD interaction, explosives, gib, wiping AI, acid spray, messing with engine
#define ATKLOG_NONE 4 // None
// Playtime tracking system, see jobs_exp.dm
#define EXP_TYPE_LIVING "Living"
#define EXP_TYPE_CREW "Crew"
#define EXP_TYPE_SPECIAL "Special"
#define EXP_TYPE_GHOST "Ghost"
#define EXP_TYPE_EXEMPT "Exempt"
#define EXP_TYPE_COMMAND "Command"
#define EXP_TYPE_ENGINEERING "Engineering"
#define EXP_TYPE_MEDICAL "Medical"
#define EXP_TYPE_SCIENCE "Science"
#define EXP_TYPE_SUPPLY "Supply"
#define EXP_TYPE_SECURITY "Security"
#define EXP_TYPE_SILICON "Silicon"
#define EXP_TYPE_SERVICE "Service"
#define EXP_TYPE_WHITELIST "Whitelist"
#define EXP_TYPE_BASE_TUTORIAL "TrainBase"
#define EXP_DEPT_TYPE_LIST list(EXP_TYPE_SERVICE, EXP_TYPE_MEDICAL, EXP_TYPE_ENGINEERING, EXP_TYPE_SCIENCE, EXP_TYPE_SECURITY, EXP_TYPE_COMMAND, EXP_TYPE_SILICON, EXP_TYPE_SPECIAL)
/// Tags for 'age needed for this job' list.
#define SPECIES_AGE_MIN "Min"
#define SPECIES_AGE_MAX "Max"
#define JOB_MIN_AGE_HIGH_ED "Higher Education"
#define JOB_MIN_AGE_COMMAND "Command"
#define AGE_SHEET list(SPECIES_AGE_MIN = 18, SPECIES_AGE_MAX = 85, JOB_MIN_AGE_HIGH_ED = 30, JOB_MIN_AGE_COMMAND = 30)
// Defines just for parallax because its levels make storing it in the regular prefs a pain in the ass
// These dont need to be bitflags because there isnt going to be more than one at a time of these active
// But its gonna piss off my OCD if it isnt bitflags, so deal with it, -affected
#define PARALLAX_DISABLE 1
#define PARALLAX_LOW 2
#define PARALLAX_MED 4
#define PARALLAX_HIGH 8
#define PARALLAX_INSANE 16
// Defines for how detailed multi-z is.
// The lower values should improve perfomance
#define MULTIZ_DETAIL_DEFAULT -1
#define MULTIZ_DETAIL_HIGH 2
#define MULTIZ_DETAIL_MEDIUM 1
#define MULTIZ_DETAIL_LOW 0