Make modmod/help/help.js a module

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

View file

@ -1,4 +1,4 @@
function init(data)
export function init(data)
{
Engine.GetGUIObjectByName("mainText").caption = Engine.TranslateLines(Engine.ReadFile("gui/modmod/help/help.txt"));
return new Promise(closePageCallback =>

View file

@ -3,7 +3,7 @@
<objects>
<script directory="gui/common/"/>
<script directory="gui/modmod/help/"/>
<script module="gui/modmod/help/help.js"/>
<!-- Add a translucent black background to fade out the menu page -->
<object type="image" sprite="ModernFade"/>