mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-06-06 22:13:38 +01:00
58aa86cb9f
* I need that gitignore file * Temp Commit - DOES NOT COMPILE * THE SHIT WORKS * Readme change * Disposal Unit --> TGUI * mmmm yes CI which may not actually work * New GitIgnore * ITS TGUI-NEXT BABY * Doc update * CI tweak * Chmod * And again * *sigh* * Lets appreciate the irony of me failing CI stages * 0/1 --> True/False * Fixes some update nonsense * CI Update * Lets try this * What about this maybe * NVM is hurting me * I swear to god * A little bit of validation in my life * V3 BABYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY * Fixes * Fixes NaN appearing for a few frames when UIs open * Fixes + Crew Monitor * Corn + Steel + Mochi Fixes * Forgot this * Fixes from stylemistake * Code Change * Adds logout proc * Offline implications + Resizeable crew monitor * Change locate() to locateUID() * Change div --> box
22 lines
559 B
Plaintext
22 lines
559 B
Plaintext
/*
|
|
TGUI MODULES
|
|
|
|
This allows for datum-based TGUIs that can be hooked into objects.
|
|
This is useful for things such as the power monitor, which needs to exist on a physical console in the world, but also as a virtual device the AI can use
|
|
|
|
Code is pretty much ripped verbatim from nano modules, but with un-needed stuff removed
|
|
*/
|
|
/datum/tgui_module
|
|
var/name
|
|
var/datum/host
|
|
|
|
/datum/tgui_module/New(var/host)
|
|
src.host = host
|
|
|
|
/datum/tgui_module/tgui_host()
|
|
return host ? host : src
|
|
|
|
/datum/tgui_module/tgui_close(mob/user)
|
|
if(host)
|
|
host.tgui_close(user)
|