Files
GS13NG/code/datums/chatmessage.html
2025-02-05 06:19:18 +00:00

1 line
6.7 KiB
HTML

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../"><link rel="stylesheet" href="dmdoc.css"><title>code/datums/chatmessage.dm - /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="code/datums/chatmessage.html#define">Define Details</a></header><main><h1>code/datums/chatmessage.dm <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/chatmessage.dm0"><img src="git.png" width="16" height="16" title="code/datums/chatmessage.dm0"></a></h1><table class="summary" cellspacing="0"><tr><th><a href="code/datums/chatmessage.html#define/CHAT_MESSAGE_SPAWN_TIME">CHAT_MESSAGE_SPAWN_TIME</a></th><td>How long the chat message's spawn-in animation will occur for</td></tr><tr><th><a href="code/datums/chatmessage.html#define/CHAT_MESSAGE_LIFESPAN">CHAT_MESSAGE_LIFESPAN</a></th><td>How long the chat message will exist prior to any exponential decay</td></tr><tr><th><a href="code/datums/chatmessage.html#define/CHAT_MESSAGE_EOL_FADE">CHAT_MESSAGE_EOL_FADE</a></th><td>How long the chat message's end of life fading animation will occur for</td></tr><tr><th><a href="code/datums/chatmessage.html#define/CHAT_MESSAGE_EXP_DECAY">CHAT_MESSAGE_EXP_DECAY</a></th><td>Factor of how much the message index (number of messages) will account to exponential decay</td></tr><tr><th><a href="code/datums/chatmessage.html#define/CHAT_MESSAGE_HEIGHT_DECAY">CHAT_MESSAGE_HEIGHT_DECAY</a></th><td>Factor of how much height will account to exponential decay</td></tr><tr><th><a href="code/datums/chatmessage.html#define/CHAT_MESSAGE_APPROX_LHEIGHT">CHAT_MESSAGE_APPROX_LHEIGHT</a></th><td>Approximate height in pixels of an 'average' line, used for height decay</td></tr><tr><th><a href="code/datums/chatmessage.html#define/CHAT_MESSAGE_WIDTH">CHAT_MESSAGE_WIDTH</a></th><td>Max width of chat message in pixels</td></tr><tr><th><a href="code/datums/chatmessage.html#define/CHAT_MESSAGE_MAX_LENGTH">CHAT_MESSAGE_MAX_LENGTH</a></th><td>Max length of chat message in characters</td></tr><tr><th><a href="code/datums/chatmessage.html#define/CHAT_LAYER_Z_STEP">CHAT_LAYER_Z_STEP</a></th><td>Maximum precision of float before rounding errors occur (in this context)</td></tr><tr><th><a href="code/datums/chatmessage.html#define/CHAT_LAYER_MAX_Z">CHAT_LAYER_MAX_Z</a></th><td>The number of z-layer 'slices' usable by the chat message layering</td></tr><tr><th><a href="datum/chatmessage.html">/datum/chatmessage</a></th><td>Datum for generating a message overlay on the map</td></tr></table><h2 id="define">Define Details</h2><h3 id="define/CHAT_LAYER_MAX_Z"><aside class="declaration">#define </aside>CHAT_LAYER_MAX_Z <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/chatmessage.dm#L20"><img src="git.png" width="16" height="16" title="code/datums/chatmessage.dm 20"></a></h3><p>The number of z-layer 'slices' usable by the chat message layering</p><h3 id="define/CHAT_LAYER_Z_STEP"><aside class="declaration">#define </aside>CHAT_LAYER_Z_STEP <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/chatmessage.dm#L18"><img src="git.png" width="16" height="16" title="code/datums/chatmessage.dm 18"></a></h3><p>Maximum precision of float before rounding errors occur (in this context)</p><h3 id="define/CHAT_MESSAGE_APPROX_LHEIGHT"><aside class="declaration">#define </aside>CHAT_MESSAGE_APPROX_LHEIGHT <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/chatmessage.dm#L12"><img src="git.png" width="16" height="16" title="code/datums/chatmessage.dm 12"></a></h3><p>Approximate height in pixels of an 'average' line, used for height decay</p><h3 id="define/CHAT_MESSAGE_EOL_FADE"><aside class="declaration">#define </aside>CHAT_MESSAGE_EOL_FADE <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/chatmessage.dm#L6"><img src="git.png" width="16" height="16" title="code/datums/chatmessage.dm 6"></a></h3><p>How long the chat message's end of life fading animation will occur for</p><h3 id="define/CHAT_MESSAGE_EXP_DECAY"><aside class="declaration">#define </aside>CHAT_MESSAGE_EXP_DECAY <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/chatmessage.dm#L8"><img src="git.png" width="16" height="16" title="code/datums/chatmessage.dm 8"></a></h3><p>Factor of how much the message index (number of messages) will account to exponential decay</p><h3 id="define/CHAT_MESSAGE_HEIGHT_DECAY"><aside class="declaration">#define </aside>CHAT_MESSAGE_HEIGHT_DECAY <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/chatmessage.dm#L10"><img src="git.png" width="16" height="16" title="code/datums/chatmessage.dm 10"></a></h3><p>Factor of how much height will account to exponential decay</p><h3 id="define/CHAT_MESSAGE_LIFESPAN"><aside class="declaration">#define </aside>CHAT_MESSAGE_LIFESPAN <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/chatmessage.dm#L4"><img src="git.png" width="16" height="16" title="code/datums/chatmessage.dm 4"></a></h3><p>How long the chat message will exist prior to any exponential decay</p><h3 id="define/CHAT_MESSAGE_MAX_LENGTH"><aside class="declaration">#define </aside>CHAT_MESSAGE_MAX_LENGTH <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/chatmessage.dm#L16"><img src="git.png" width="16" height="16" title="code/datums/chatmessage.dm 16"></a></h3><p>Max length of chat message in characters</p><h3 id="define/CHAT_MESSAGE_SPAWN_TIME"><aside class="declaration">#define </aside>CHAT_MESSAGE_SPAWN_TIME <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/chatmessage.dm#L2"><img src="git.png" width="16" height="16" title="code/datums/chatmessage.dm 2"></a></h3><p>How long the chat message's spawn-in animation will occur for</p><h3 id="define/CHAT_MESSAGE_WIDTH"><aside class="declaration">#define </aside>CHAT_MESSAGE_WIDTH <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/chatmessage.dm#L14"><img src="git.png" width="16" height="16" title="code/datums/chatmessage.dm 14"></a></h3><p>Max width of chat message in pixels</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>