Files
Paradise/code/__DEFINES/asset_defines.html
T

7 lines
2.4 KiB
HTML

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../"><link rel="stylesheet" href="dmdoc.css"><title>code/__DEFINES/asset_defines.dm - 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="code/__DEFINES/asset_defines.html#define">Define Details</a></header><main><h1>code/__DEFINES/asset_defines.dm <a href="https://github.com/ParadiseSS13/Paradise/blob/edee60476d21ee840643bd1abe7f6003a8c65773/code/__DEFINES/asset_defines.dm"><img src="git.png" width="16" height="16" title="code/__DEFINES/asset_defines.dm"></a></h1><table class="summary" cellspacing="0"><tr><th><a href="code/__DEFINES/asset_defines.html#define/URL2HTMLLOADER">URL2HTMLLOADER</a></th><td>Get html to load a url.
for use inside of browse() calls to html assets that might be loaded on a cdn.</td></tr><tr><th><a href="code/__DEFINES/asset_defines.html#define/GENERATE_ASSET_NAME">GENERATE_ASSET_NAME</a></th><td>Generate a filename for this asset
The same asset will always lead to the same asset name
Generated names do not include file extension.</td></tr></table><h2 id="define">Define Details</h2><h3 id="define/GENERATE_ASSET_NAME"><aside class="declaration">#define </aside>GENERATE_ASSET_NAME<aside>(file)</aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/edee60476d21ee840643bd1abe7f6003a8c65773/code/__DEFINES/asset_defines.dm#L8"><img src="git.png" width="16" height="16" title="code/__DEFINES/asset_defines.dm 8"></a></h3><p>Generate a filename for this asset
The same asset will always lead to the same asset name
Generated names do not include file extension.</p><h3 id="define/URL2HTMLLOADER"><aside class="declaration">#define </aside>URL2HTMLLOADER<aside>(url)</aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/edee60476d21ee840643bd1abe7f6003a8c65773/code/__DEFINES/asset_defines.dm#L3"><img src="git.png" width="16" height="16" title="code/__DEFINES/asset_defines.dm 3"></a></h3><p>Get html to load a url.
for use inside of browse() calls to html assets that might be loaded on a cdn.</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>