Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/menu.js
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
var g_IsDiplomacyOpen = false; | var g_IsDiplomacyOpen = false; | ||||
var g_IsTradeOpen = false; | var g_IsTradeOpen = false; | ||||
var g_IsObjectivesOpen = false; | var g_IsObjectivesOpen = false; | ||||
// Redefined every time someone makes a tribute (so we can save some data in a closure). Called in input.js handleInputBeforeGui. | // Redefined every time someone makes a tribute (so we can save some data in a closure). Called in input.js handleInputBeforeGui. | ||||
var g_FlushTributing = function() {}; | var g_FlushTributing = function() {}; | ||||
function dialogOpen() | |||||
{ | |||||
return g_IsMenuOpen || g_IsDiplomacyOpen || g_IsTradeOpen || g_IsObjectivesOpen || | |||||
!Engine.GetGUIObjectByName("chatDialogPanel").hidden; | |||||
} | |||||
// Ignore size defined in XML and set the actual menu size here | // Ignore size defined in XML and set the actual menu size here | ||||
function initMenuPosition() | function initMenuPosition() | ||||
{ | { | ||||
Engine.GetGUIObjectByName("menu").size = INITIAL_MENU_POSITION; | Engine.GetGUIObjectByName("menu").size = INITIAL_MENU_POSITION; | ||||
} | } | ||||
function updateMenuPosition(dt) | function updateMenuPosition(dt) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 1,114 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator