Adds a to_chat() proc, to pave the way to a non shit chat.

This commit is contained in:
PJB3005
2015-11-25 15:05:25 +01:00
parent 1709a73bdc
commit 99bf59d80e
1110 changed files with 9473 additions and 9348 deletions

View File

@@ -82,14 +82,14 @@ mob
Output_Icon()
set name = "3. Output Icon"
src<<"\icon[getFlatIcon(src)]"
src<<"-----------------------------------------"
to_chat(src, "\icon[getFlatIcon(src)]")
to_chat(src, "-----------------------------------------")
Output_Fullsize_Icon()
set name = "4. Output Fullsize Icon"
var/icon/I = getFlatIcon(src)
src<<{"<img class="icon" src="\ref[fcopy_rsc(I)]" style="width: [I.Width()]px; height: [I.Height()]px;">"}
src<<"-----------------------------------------"
to_chat(src, {"<img class="icon" src="\ref[fcopy_rsc(I)]" style="width: [I.Width()]px; height: [I.Height()]px;">"})
to_chat(src, "-----------------------------------------")
Label_Icon()
set name = "5. Label Icon"

View File

@@ -232,4 +232,4 @@ proc/LoadHTMLAssociations()
proc/SaveHTMLAssociations()
var/savefile/F = new ("s_html.sav")
F["html_colours"] << html_colours
to_chat(F["html_colours"], html_colours)

View File

@@ -33,6 +33,6 @@ proc/invertHTML(HTMLstring)
/*
//Testing code/sample implementation
mob/verb/test_invertHTML()
usr << "#CC9933"
usr << invertHTML("#CC9933")
to_chat(usr, "#CC9933")
to_chat(usr, invertHTML("#CC9933"))
*/