mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 05:57:24 +01:00
48 lines
13 KiB
HTML
48 lines
13 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../../"><link rel="stylesheet" href="dmdoc.css"><title>/datum/controller/subsystem/tgui - Space Station 13</title></head><body><header><a href="index.html">Space Station 13</a> - <a href="index.html#modules">Modules</a> - <a href="index.html#types">Types</a> — <a href="datum/controller/subsystem/tgui.html#var">Var Details</a> - <a href="datum/controller/subsystem/tgui.html#proc">Proc Details</a></header><main><h1>tgui <aside>/<a href="datum.html">datum</a>/<a href="datum/controller.html">controller</a>/<a href="datum/controller/subsystem.html">subsystem</a>/<a href="datum/controller/subsystem/tgui.html">tgui</a></aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/subsystem/SStgui.dm#L10"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/SStgui.dm 10"></a></h1><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="datum/controller/subsystem/tgui.html#var/basehtml">basehtml</a></th><td>The HTML base used for all UIs.</td></tr><tr><th><a href="datum/controller/subsystem/tgui.html#var/current_run">current_run</a></th><td>A list of UIs scheduled to process</td></tr><tr><th><a href="datum/controller/subsystem/tgui.html#var/open_uis">open_uis</a></th><td>A list of open UIs</td></tr><tr><th><a href="datum/controller/subsystem/tgui.html#var/open_uis_by_src">open_uis_by_src</a></th><td>A list of open UIs, grouped by src_object.</td></tr><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="datum/controller/subsystem/tgui.html#proc/close_all_uis">close_all_uis</a></th><td>public</td></tr><tr><th><a href="datum/controller/subsystem/tgui.html#proc/close_uis">close_uis</a></th><td>public</td></tr><tr><th><a href="datum/controller/subsystem/tgui.html#proc/close_user_uis">close_user_uis</a></th><td>public</td></tr><tr><th><a href="datum/controller/subsystem/tgui.html#proc/force_close_all_windows">force_close_all_windows</a></th><td>public</td></tr><tr><th><a href="datum/controller/subsystem/tgui.html#proc/force_close_window">force_close_window</a></th><td>public</td></tr><tr><th><a href="datum/controller/subsystem/tgui.html#proc/get_open_ui">get_open_ui</a></th><td>public</td></tr><tr><th><a href="datum/controller/subsystem/tgui.html#proc/on_close">on_close</a></th><td>private</td></tr><tr><th><a href="datum/controller/subsystem/tgui.html#proc/on_logout">on_logout</a></th><td>private</td></tr><tr><th><a href="datum/controller/subsystem/tgui.html#proc/on_open">on_open</a></th><td>private</td></tr><tr><th><a href="datum/controller/subsystem/tgui.html#proc/on_transfer">on_transfer</a></th><td>private</td></tr><tr><th><a href="datum/controller/subsystem/tgui.html#proc/request_pooled_window">request_pooled_window</a></th><td>public</td></tr><tr><th><a href="datum/controller/subsystem/tgui.html#proc/try_update_ui">try_update_ui</a></th><td>public</td></tr><tr><th><a href="datum/controller/subsystem/tgui.html#proc/update_uis">update_uis</a></th><td>public</td></tr><tr><th><a href="datum/controller/subsystem/tgui.html#proc/update_user_uis">update_user_uis</a></th><td>public</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/basehtml"><aside class="declaration">var </aside>basehtml <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/subsystem/SStgui.dm#L24"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/SStgui.dm 24"></a></h3><p>The HTML base used for all UIs.</p><h3 id="var/current_run"><aside class="declaration">var </aside>current_run <aside>– /list</aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/subsystem/SStgui.dm#L18"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/SStgui.dm 18"></a></h3><p>A list of UIs scheduled to process</p><h3 id="var/open_uis"><aside class="declaration">var </aside>open_uis <aside>– /list</aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/subsystem/SStgui.dm#L20"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/SStgui.dm 20"></a></h3><p>A list of open UIs</p><h3 id="var/open_uis_by_src"><aside class="declaration">var </aside>open_uis_by_src <aside>– /list</aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/subsystem/SStgui.dm#L22"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/SStgui.dm 22"></a></h3><p>A list of open UIs, grouped by src_object.</p><h2 id="proc">Proc Details</h2><h3 id="proc/close_all_uis"><aside class="declaration">proc </aside>close_all_uis<aside>() <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/subsystem/SStgui.dm#L248"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/SStgui.dm 248"></a></aside></h3><p>public</p>
|
||
<p>Close all UIs regardless of their attachment to src_object.</p>
|
||
<p>return int The number of UIs closed.</p><h3 id="proc/close_uis"><aside class="declaration">proc </aside>close_uis<aside>(/<a href="datum.html">datum</a>/src_object) <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/subsystem/SStgui.dm#L228"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/SStgui.dm 228"></a></aside></h3><p>public</p>
|
||
<p>Close all UIs attached to src_object.</p>
|
||
<p>required src_object datum The object/datum which owns the UIs.</p>
|
||
<p>return int The number of UIs closed.</p><h3 id="proc/close_user_uis"><aside class="declaration">proc </aside>close_user_uis<aside>(/<a href="mob.html">mob</a>/user, /<a href="datum.html">datum</a>/src_object) <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/subsystem/SStgui.dm#L288"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/SStgui.dm 288"></a></aside></h3><p>public</p>
|
||
<p>Close all UIs belonging to a user.</p>
|
||
<p>required user mob The mob who opened/is using the UI.
|
||
optional src_object datum If provided, only close UIs belonging this src_object.</p>
|
||
<p>return int The number of UIs closed.</p><h3 id="proc/force_close_all_windows"><aside class="declaration">proc </aside>force_close_all_windows<aside>(/<a href="mob.html">mob</a>/user) <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/subsystem/SStgui.dm#L113"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/SStgui.dm 113"></a></aside></h3><p>public</p>
|
||
<p>Force closes all tgui windows.</p>
|
||
<p>required user mob</p><h3 id="proc/force_close_window"><aside class="declaration">proc </aside>force_close_window<aside>(/<a href="mob.html">mob</a>/user, window_id) <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/subsystem/SStgui.dm#L129"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/SStgui.dm 129"></a></aside></h3><p>public</p>
|
||
<p>Force closes the tgui window by window_id.</p>
|
||
<p>required user mob
|
||
required window_id string</p><h3 id="proc/get_open_ui"><aside class="declaration">proc </aside>get_open_ui<aside>(/<a href="mob.html">mob</a>/user, /<a href="datum.html">datum</a>/src_object) <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/subsystem/SStgui.dm#L183"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/SStgui.dm 183"></a></aside></h3><p>public</p>
|
||
<p>Get a open UI given a user and src_object.</p>
|
||
<p>required user mob The mob who opened/is using the UI.
|
||
required src_object datum The object/datum which owns the UI.</p>
|
||
<p>return datum/tgui The found UI.</p><h3 id="proc/on_close"><aside class="declaration">proc </aside>on_close<aside>(/<a href="datum.html">datum</a>/<a href="datum/tgui.html">tgui</a>/ui) <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/subsystem/SStgui.dm#L323"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/SStgui.dm 323"></a></aside></h3><p>private</p>
|
||
<p>Remove a UI from the list of open UIs.</p>
|
||
<p>required ui datum/tgui The UI to be removed.</p>
|
||
<p>return bool If the UI was removed or not.</p><h3 id="proc/on_logout"><aside class="declaration">proc </aside>on_logout<aside>(/<a href="mob.html">mob</a>/user) <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/subsystem/SStgui.dm#L347"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/SStgui.dm 347"></a></aside></h3><p>private</p>
|
||
<p>Handle client logout, by closing all their UIs.</p>
|
||
<p>required user mob The mob which logged out.</p>
|
||
<p>return int The number of UIs closed.</p><h3 id="proc/on_open"><aside class="declaration">proc </aside>on_open<aside>(/<a href="datum.html">datum</a>/<a href="datum/tgui.html">tgui</a>/ui) <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/subsystem/SStgui.dm#L305"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/SStgui.dm 305"></a></aside></h3><p>private</p>
|
||
<p>Add a UI to the list of open UIs.</p>
|
||
<p>required ui datum/tgui The UI to be added.</p><h3 id="proc/on_transfer"><aside class="declaration">proc </aside>on_transfer<aside>(/<a href="mob.html">mob</a>/source, /<a href="mob.html">mob</a>/target) <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/subsystem/SStgui.dm#L360"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/SStgui.dm 360"></a></aside></h3><p>private</p>
|
||
<p>Handle clients switching mobs, by transferring their UIs.</p>
|
||
<p>required user source The client's original mob.
|
||
required user target The client's new mob.</p>
|
||
<p>return bool If the UIs were transferred.</p><h3 id="proc/request_pooled_window"><aside class="declaration">proc </aside>request_pooled_window<aside>(/<a href="mob.html">mob</a>/user) <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/subsystem/SStgui.dm#L78"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/SStgui.dm 78"></a></aside></h3><p>public</p>
|
||
<p>Requests a usable tgui window from the pool.
|
||
Returns null if pool was exhausted.</p>
|
||
<p>required user mob
|
||
return datum/tgui</p><h3 id="proc/try_update_ui"><aside class="declaration">proc </aside>try_update_ui<aside>(/<a href="mob.html">mob</a>/user, /<a href="datum.html">datum</a>/src_object, /<a href="datum.html">datum</a>/<a href="datum/tgui.html">tgui</a>/ui, force_open) <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/subsystem/SStgui.dm#L152"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/SStgui.dm 152"></a></aside></h3><p>public</p>
|
||
<p>Try to find an instance of a UI, and push an update to it.</p>
|
||
<p>required user mob The mob who opened/is using the UI.
|
||
required src_object datum The object/datum which owns the UI.
|
||
optional ui datum/tgui The UI to be updated, if it exists.
|
||
optional force_open bool If the UI should be re-opened instead of updated.</p>
|
||
<p>return datum/tgui The found UI.</p><h3 id="proc/update_uis"><aside class="declaration">proc </aside>update_uis<aside>(/<a href="datum.html">datum</a>/src_object, full_update) <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/subsystem/SStgui.dm#L203"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/SStgui.dm 203"></a></aside></h3><p>public</p>
|
||
<p>Update all UIs attached to src_object.</p>
|
||
<p>required src_object datum The object/datum which owns the UIs.</p>
|
||
<p>return int The number of UIs updated.</p><h3 id="proc/update_user_uis"><aside class="declaration">proc </aside>update_user_uis<aside>(/<a href="mob.html">mob</a>/user, /<a href="datum.html">datum</a>/src_object) <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/controllers/subsystem/SStgui.dm#L268"><img src="git.png" width="16" height="16" title="code/controllers/subsystem/SStgui.dm 268"></a></aside></h3><p>public</p>
|
||
<p>Update all UIs belonging to a user.</p>
|
||
<p>required user mob The mob who opened/is using the UI.
|
||
optional src_object datum If provided, only update UIs belonging this src_object.</p>
|
||
<p>return int The number of UIs updated.</p></main><footer>paradise.dme <a href="https://github.com/ParadiseSS13/Paradise/tree/8a8a00a2a9bec485351e5f219982b7315d3504fa">8a8a00a</a> (master) — <a href="https://github.com/SpaceManiac/SpacemanDMM/blob/master/crates/dmdoc/README.md">dmdoc 1.11.0</a></footer></body></html> |