0ad/binaries/data/mods/public/gui/reference/catafalque/catafalque.js
guerringuerrin 32e5520507
Some checks failed
checkrefs / lfscheck (push) Has been cancelled
checkrefs / checkrefs (push) Has been cancelled
lint / cppcheck (push) Has been cancelled
lint / copyright (push) Has been cancelled
lint / jenkinsfiles (push) Has been cancelled
pre-commit / build (push) Has been cancelled
Add hotkeys for opening GUI pages across the game
Add registerGlobalGuiPageHotkeys() to
common/functions_utility.js to selectively register
GUI page hotkeys
Allow active GUI pages to close using their corresponding hotkey
Move page_hotkeys.xml from gui/hotkeys/ to gui/
Update page_hotkeys.xml references in MainMenuItems and MenuButtons
Add default tipScrolling fallback in TipsPage when no initData is provided
2026-05-16 20:53:54 +02:00

8 lines
196 B
JavaScript

function init(data = {})
{
return new Promise(closePageCallback =>
{
g_Page = new CatafalquePage(closePageCallback);
Engine.SetGlobalHotkey("catafalque", "Press", closePageCallback);
});
}