mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 02:16:05 +00:00
Adds a to_chat() proc, to pave the way to a non shit chat.
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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"))
|
||||
*/
|
||||
Reference in New Issue
Block a user