26 lines
2.5 KiB
HTML
26 lines
2.5 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../"><link rel="stylesheet" href="dmdoc.css"><title>/datum/select_equipment - /tg/ Station 13</title></head><body><header><a href="index.html">/tg/ Station 13</a> - <a href="index.html#modules">Modules</a> - <a href="index.html#types">Types</a> — <a href="datum/select_equipment.html#proc">Proc Details</a></header><main><h1>select_equipment <aside>/<a href="datum.html">datum</a>/<a href="datum/select_equipment.html">select_equipment</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/admin/verbs/selectequipment.dm#L21"><img src="git.png" width="16" height="16" title="code/modules/admin/verbs/selectequipment.dm 21"></a></h1><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="datum/select_equipment.html#proc/outfit_entry">outfit_entry</a></th><td>Packs up data about an outfit as an assoc list to send to the UI as an outfit entry.</td></tr></table><h2 id="proc">Proc Details</h2><h3 id="proc/outfit_entry"><aside class="declaration">proc </aside>outfit_entry<aside>(category, identifier, name, priority, custom_entry) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/admin/verbs/selectequipment.dm#L88"><img src="git.png" width="16" height="16" title="code/modules/admin/verbs/selectequipment.dm 88"></a></aside></h3><p>Packs up data about an outfit as an assoc list to send to the UI as an outfit entry.</p>
|
|
<p>Args:</p>
|
|
<ul>
|
|
<li>
|
|
<p>category (string) - The tab it will be under</p>
|
|
</li>
|
|
<li>
|
|
<p>identifier (typepath or ref) - This will sent this back to ui_act to preview or spawn in an outfit.</p>
|
|
</li>
|
|
<li>
|
|
<p>Must be unique between all entries.</p>
|
|
</li>
|
|
<li>
|
|
<p>name (string) - Will be the text on the button</p>
|
|
</li>
|
|
<li>
|
|
<p>priority (bool)(optional) - If True, the UI will sort the entry to the top, right below favorites.</p>
|
|
</li>
|
|
<li>
|
|
<p>custom_entry (bool)(optional) - Send the identifier with a "ref" keyword instead of "path",</p>
|
|
</li>
|
|
<li>
|
|
<p>for the UI to tell apart custom outfits from normal ones.</p>
|
|
</li>
|
|
</ul>
|
|
<p>Returns (list) An outfit entry</p></main><footer>tgstation.dme <a href="https://github.com/evilew/GS13-Citadel/tree/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e">e8e0068</a> (master) — <a href="https://github.com/SpaceManiac/SpacemanDMM/blob/master/crates/dmdoc/README.md">dmdoc 1.9.0</a></footer></body></html> |