mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-16 10:35:41 +01:00
Renames game_options.txt OOC_EMOJIS to EMOJIS
Moves config check into emoji_parse proc, so the config affects all emoji use
This commit is contained in:
@@ -109,7 +109,7 @@
|
||||
|
||||
var/rename_cyborg = 0
|
||||
var/ooc_during_round = 0
|
||||
var/ooc_emojis = 0
|
||||
var/emojis = 0
|
||||
|
||||
//Used for modifying movement speed for mobs.
|
||||
//Unversal modifiers
|
||||
@@ -301,8 +301,8 @@
|
||||
config.rename_cyborg = 1
|
||||
if("ooc_during_round")
|
||||
config.ooc_during_round = 1
|
||||
if("ooc_emojis")
|
||||
config.ooc_emojis = 1
|
||||
if("emojis")
|
||||
config.emojis = 1
|
||||
if("run_delay")
|
||||
config.run_speed = text2num(value)
|
||||
if("walk_delay")
|
||||
|
||||
@@ -43,8 +43,7 @@
|
||||
if(prefs.toggles & MEMBER_PUBLIC)
|
||||
keyname = "<font color='[prefs.ooccolor]'><img style='width:9px;height:9px;' class=icon src=\ref['icons/member_content.dmi'] iconstate=blag>[keyname]</font>"
|
||||
|
||||
if(config.ooc_emojis)
|
||||
msg = emoji_parse(msg)
|
||||
msg = emoji_parse(msg)
|
||||
|
||||
for(var/client/C in clients)
|
||||
if(C.prefs.toggles & CHAT_OOC)
|
||||
|
||||
@@ -68,8 +68,7 @@
|
||||
msg = sanitize(copytext(msg,1,MAX_MESSAGE_LEN))
|
||||
if(!msg) return
|
||||
|
||||
if(config.ooc_emojis)
|
||||
msg = emoji_parse(msg)
|
||||
msg = emoji_parse(msg)
|
||||
|
||||
if(C.holder)
|
||||
if(holder) //both are admins
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
var/list/emojis
|
||||
|
||||
/proc/emoji_parse(text)
|
||||
if(!config.emojis)
|
||||
return text
|
||||
if(!emojis)
|
||||
emojis = icon_states(icon('icons/emoji.dmi'))
|
||||
var/parsed = ""
|
||||
|
||||
@@ -27,9 +27,9 @@ REVIVAL_BRAIN_LIFE -1
|
||||
#Comment this out if you want OOC to be automatically disabled during the round, it will be enabled during the lobby and after the round end results.
|
||||
OOC_DURING_ROUND
|
||||
|
||||
### OOC EMOJI ###
|
||||
#Comment this out if you want to disable OOC emojis
|
||||
OOC_EMOJIS
|
||||
### EMOJI ###
|
||||
#Comment this out if you want to disable emojis
|
||||
EMOJIS
|
||||
|
||||
### MOB MOVEMENT ###
|
||||
|
||||
|
||||
Reference in New Issue
Block a user