forked from mirrors/0ad
094a7c2268
Adopt the new interface by all pages which close themself. (Not thous using `Engine.SwitchGuiPage`.)
8 lines
261 B
JavaScript
8 lines
261 B
JavaScript
function init(data)
|
|
{
|
|
Engine.GetGUIObjectByName("mainText").caption = Engine.TranslateLines(Engine.ReadFile("gui/modmod/help/help.txt"));
|
|
return new Promise(closePageCallback => {
|
|
Engine.GetGUIObjectByName("closeButton").onPress = closePageCallback;
|
|
});
|
|
}
|