1
0
forked from 0ad/0ad
0ad/binaries/data/mods/official/gui/test/functions_pregame.js

42 lines
1.1 KiB
JavaScript
Raw Normal View History

// Main Pregame JS Script file
// Contains functions and code for Main Menu.
// ====================================================================
function OpenMainMenuSubWindow(WindowName)
{
// Helper function that enables the dark background mask, then reveals a given subwindow object.
GUIObjectUnhide ("pregame_subwindow_bkg");
GUIObjectUnhide (WindowName);
}
// ====================================================================
function CloseMainMenuSubWindow(WindowName)
{
// Helper function that disables the dark background mask, then hides a given subwindow object.
GUIObjectHide ("pregame_subwindow_bkg");
GUIObjectHide (WindowName);
}
// ====================================================================
function SwitchMainMenuSubWindow(CloseWindowName, OpenWindowName)
{
// Helper function that closes a given window (usually the current parent) and opens another one.
GUIObjectHide (CloseWindowName);
GUIObjectUnhide (OpenWindowName);
}
// ====================================================================
function initPreGame()
{
}
// ====================================================================