* Display a modal message. * * Stack: 1 - The index of a string. * * @param script The script engine to operate on. * @return unknown. */
| 141 | * @return unknown. |
| 142 | */ |
| 143 | uint16 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. |
nothing calls this directly
no test coverage detected