Tweaks Audible Emote Visual Feedback (#15166)

* Tweaks the Audible Emote Visual Feedback

* More Accurate Description
This commit is contained in:
SleepyGemmy
2022-12-12 03:17:33 +01:00
committed by GitHub
parent cfe68b1c51
commit c3881f075c
6 changed files with 30 additions and 8 deletions

View File

@@ -319,6 +319,18 @@
break
return copytext_char(t, 1, i) + uppertext(copytext_char(t, i, i + 1)) + copytext_char(t, i + 1)
//Returns a string with the first element of the string uncapitalized, ignoring html-tags
/proc/uncapitalize(t as text)
var/i = 1
while(copytext_char(t, i, i + 1) == "<")
i = findtext_char(t, ">", i + 1)
if(i)
i++
else
i = 2
break
return copytext_char(t, 1, i) + lowertext(copytext_char(t, i, i + 1)) + copytext_char(t, i + 1)
//This proc strips html properly, remove < > and all text between
//for complete text sanitizing should be used sanitize()
/proc/strip_html_properly(input)