Post dreamchecker fixes (#8287)

Fixes lack of chat tags, and runtime on player panel preventing it from displaying stuff.

Don't really understand the problem with Cut() on the player panel data["players"], it should leave an empty list behind right..? Anyway. Let's see if this passes dreamchecker.
This commit is contained in:
mikomyazaki
2020-02-16 20:22:14 +00:00
committed by GitHub
parent 6074224d00
commit 9ddca0bc3c
3 changed files with 44 additions and 2 deletions

View File

@@ -332,11 +332,10 @@ proc/TextPreview(var/string,var/len=40)
//For generating neat chat tag-images
//The icon var could be local in the proc, but it's a waste of resources
// to always create it and then throw it out.
var/icon/text_tag_icons = new('./icons/chattags.dmi')
/proc/create_text_tag(var/tagname, var/tagdesc = tagname, var/client/C = null)
if(C && (C.prefs.toggles & CHAT_NOICONS))
return tagdesc
return "<IMG src='\ref[text_tag_icons]' class='text_tag' iconstate='[tagname]'" + (tagdesc ? " alt='[tagdesc]'" : "") + ">"
return "<IMG src='\ref['./icons/chattags.dmi']' class='text_tag' iconstate='[tagname]'" + (tagdesc ? " alt='[tagdesc]'" : "") + ">"
// For processing simple markup, similar to what Skype and Discord use.
// Enabled from a config setting.