Files
Paradise/datum/ui_modal.html

9 lines
2.9 KiB
HTML

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../"><link rel="stylesheet" href="dmdoc.css"><title>/datum/ui_modal - 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/ui_modal.html#proc">Proc Details</a></header><main><h1>ui_modal <aside>/<a href="datum.html">datum</a>/<a href="datum/ui_modal.html">ui_modal</a></aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/edee60476d21ee840643bd1abe7f6003a8c65773/code/modules/tgui/plugins/modal.dm#L231"><img src="git.png" width="16" height="16" title="code/modules/tgui/plugins/modal.dm 231"></a></h1><p>Modal datum (contains base information for a modal)</p><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="datum/ui_modal.html#proc/on_answer">on_answer</a></th><td>Called when a modal receives an answer</td></tr><tr><th><a href="datum/ui_modal.html#proc/preprocess_answer">preprocess_answer</a></th><td>Called when it's time to pre-process the answer before using it</td></tr><tr><th><a href="datum/ui_modal.html#proc/to_data">to_data</a></th><td>Creates a list that describes a modal visually to be passed to JS</td></tr></table><h2 id="proc">Proc Details</h2><h3 id="proc/on_answer"><aside class="declaration">proc </aside>on_answer<aside>(answer) <a href="https://github.com/ParadiseSS13/Paradise/blob/edee60476d21ee840643bd1abe7f6003a8c65773/code/modules/tgui/plugins/modal.dm#L260"><img src="git.png" width="16" height="16" title="code/modules/tgui/plugins/modal.dm 260"></a></aside></h3><p>Called when a modal receives an answer</p>
<p>Arguments:</p>
<ul>
<li>answer - The answer, a nullable text</li>
</ul><h3 id="proc/preprocess_answer"><aside class="declaration">proc </aside>preprocess_answer<aside>(answer) <a href="https://github.com/ParadiseSS13/Paradise/blob/edee60476d21ee840643bd1abe7f6003a8c65773/code/modules/tgui/plugins/modal.dm#L251"><img src="git.png" width="16" height="16" title="code/modules/tgui/plugins/modal.dm 251"></a></aside></h3><p>Called when it's time to pre-process the answer before using it</p>
<p>Arguments:</p>
<ul>
<li>answer - The answer, a nullable text</li>
</ul><h3 id="proc/to_data"><aside class="declaration">proc </aside>to_data<aside>() <a href="https://github.com/ParadiseSS13/Paradise/blob/edee60476d21ee840643bd1abe7f6003a8c65773/code/modules/tgui/plugins/modal.dm#L268"><img src="git.png" width="16" height="16" title="code/modules/tgui/plugins/modal.dm 268"></a></aside></h3><p>Creates a list that describes a modal visually to be passed to JS</p></main><footer>paradise.dme <a href="https://github.com/ParadiseSS13/Paradise/tree/edee60476d21ee840643bd1abe7f6003a8c65773">edee604</a> (master) — <a href="https://github.com/SpaceManiac/SpacemanDMM/blob/master/crates/dmdoc/README.md">dmdoc 1.11.0</a></footer></body></html>