MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / Script_General_DisplayModalMessage

Function Script_General_DisplayModalMessage

src/script/general.c:143–152  ·  view source on GitHub ↗

* Display a modal message. * * Stack: 1 - The index of a string. * * @param script The script engine to operate on. * @return unknown. */

Source from the content-addressed store, hash-verified

141 * @return unknown.
142 */
143uint16 Script_General_DisplayModalMessage(ScriptEngine *script)
144{
145 char *text;
146 uint16 offset;
147
148 offset = BETOH16(*(script->scriptInfo->text + STACK_PEEK(1)));
149 text = (char *)script->scriptInfo->text + offset;
150
151 return GUI_DisplayModalMessage(text, 0xFFFF);
152}
153
154/**
155 * Get the distance from the current unit/structure to the unit/structure.

Callers

nothing calls this directly

Calls 1

GUI_DisplayModalMessageFunction · 0.85

Tested by

no test coverage detected