/tg/ Station 13 - Modules - TypesVar Details - Proc Details

/datum/chat_output

The chatOutput datum exists to handle the goonchat browser. On client, created on Client/New()

Vars

loadedHas the client loaded the browser output area?
messageQueueIf they haven't loaded chat, this is where messages will go until they do
next_time_to_clearWhen to next clear the client data checks counter
ownerThe client that owns us.
total_checksHow many times client data has been checked

Procs

TopicInterprets input from the client. Will send data back if required.
analyzeClientDataCalled by client, sent data to investigate (cookie history so far)
debugCalled by js client on js error
doneLoadingCalled on chat output done-loading by JS.
ehjax_sendSends json encoded data to the browser.
loadLoads goonchat and sends assets.
pingCalled by js client every 60 seconds
sendClientDataSends client connection details to the chat to handle and save
sendMusicSends music data to the browser. If enabled by the browser, it will start playing. Arguments: music must be a https adress. extra_data is a list. The keys "pitch", "start" and "end" are used.
setMusicVolumeSetter for adminMusicVolume. Sanitizes the value to between 0 and 100.
showChatHides the standard output and makes the browser visible.
startstart: Tries to load the chat browser Aborts if a problem is encountered. Async because this is called from Client/New.
stopMusicStops music playing throw the browser.
swaptodarkmodeLight mode stuff. (See darkmode.dm for documentation)
swaptolightmodeDark mode light mode stuff. Yell at KMC if this breaks! (See darkmode.dm for documentation)
syncRegexUsed to dynamically add regexes to the browser output. Currently only used by the IC filter.

Var Details

loaded

Has the client loaded the browser output area?

messageQueue

If they haven't loaded chat, this is where messages will go until they do

next_time_to_clear

When to next clear the client data checks counter

owner

The client that owns us.

total_checks

How many times client data has been checked

Proc Details

Topic

Interprets input from the client. Will send data back if required.

analyzeClientData

Called by client, sent data to investigate (cookie history so far)

debug

Called by js client on js error

doneLoading

Called on chat output done-loading by JS.

ehjax_send

Sends json encoded data to the browser.

load

Loads goonchat and sends assets.

ping

Called by js client every 60 seconds

sendClientData

Sends client connection details to the chat to handle and save

sendMusic

Sends music data to the browser. If enabled by the browser, it will start playing. Arguments: music must be a https adress. extra_data is a list. The keys "pitch", "start" and "end" are used.

setMusicVolume

Setter for adminMusicVolume. Sanitizes the value to between 0 and 100.

showChat

Hides the standard output and makes the browser visible.

start

start: Tries to load the chat browser Aborts if a problem is encountered. Async because this is called from Client/New.

stopMusic

Stops music playing throw the browser.

swaptodarkmode

Light mode stuff. (See darkmode.dm for documentation)

swaptolightmode

Dark mode light mode stuff. Yell at KMC if this breaks! (See darkmode.dm for documentation)

syncRegex

Used to dynamically add regexes to the browser output. Currently only used by the IC filter.