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:
JJRcop
2014-12-17 12:48:41 -05:00
parent 4755198a75
commit fa18eaa164
5 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -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")
+1 -2
View File
@@ -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)
+1 -2
View File
@@ -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
+2
View File
@@ -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 = ""
+3 -3
View File
@@ -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 ###