9 lines
2.5 KiB
HTML
9 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/asset/spritesheet - /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/asset/spritesheet.html#proc">Proc Details</a></header><main><h1>spritesheet <aside>/<a href="datum.html">datum</a>/<a href="datum/asset.html">asset</a>/<a href="datum/asset/spritesheet.html">spritesheet</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/asset_cache/asset_list.dm#L100"><img src="git.png" width="16" height="16" title="code/modules/asset_cache/asset_list.dm 100"></a></h1><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="datum/asset/spritesheet.html#proc/ModifyInserted">ModifyInserted</a></th><td>A simple proc handing the Icon for you to modify before it gets turned into an asset.</td></tr><tr><th><a href="datum/asset/spritesheet.html#proc/icon_size_id">icon_size_id</a></th><td>Returns the size class (ex design32x32) for a given sprite's icon</td></tr></table><h2 id="proc">Proc Details</h2><h3 id="proc/ModifyInserted"><aside class="declaration">proc </aside>ModifyInserted<aside>(/icon/pre_asset) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/asset_cache/asset_list.dm#L204"><img src="git.png" width="16" height="16" title="code/modules/asset_cache/asset_list.dm 204"></a></aside></h3><p>A simple proc handing the Icon for you to modify before it gets turned into an asset.</p>
|
|
<p>Arguments:</p>
|
|
<ul>
|
|
<li>I: icon being turned into an asset</li>
|
|
</ul><h3 id="proc/icon_size_id"><aside class="declaration">proc </aside>icon_size_id<aside>(sprite_name) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/asset_cache/asset_list.dm#L245"><img src="git.png" width="16" height="16" title="code/modules/asset_cache/asset_list.dm 245"></a></aside></h3><p>Returns the size class (ex design32x32) for a given sprite's icon</p>
|
|
<p>Arguments:</p>
|
|
<ul>
|
|
<li>sprite_name - The sprite to get the size of</li>
|
|
</ul></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> |