Make msgbox.js a module

Refs: #8081
This commit is contained in:
phosit 2026-07-27 12:23:43 +02:00
parent 609efa7e32
commit 497efe5a99
No known key found for this signature in database
GPG key ID: C9430B600671C268
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
* Currently limited to at most 3 buttons per message box.
* The convention is to have "cancel" appear first.
*/
function init(data)
export function init(data)
{
// Set title
Engine.GetGUIObjectByName("mbTitleBar").caption = data.title;

View file

@ -3,7 +3,7 @@
<objects>
<script directory="gui/common/"/>
<script directory="gui/msgbox/"/>
<script module="gui/msgbox/msgbox.js"/>
<!-- Fade out the background because it's non-interactable -->
<object sprite="ModernFade" type="image"/>