API:Measure
Aus WARWiki
Keine Beschreibung verfügbar.
Nutzung
API:Measure()
Diese Funktion übernimmt keine Argumente.
Diese Funktion gibt keine Werte zurück.
Source Code
--# This file contains window utility functions.
------------------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------
-- WindowUtil Global Variables
----------------------------------------------------------------
WindowUtils =
{
activeOptionsButton = nil,
activeOptionsWindow = nil,
resizing = false,
resizeWindow = nil,
resizeAnchor = "",
resizeEndCallback = nil,
resizeMin = { x=0, y=0 },
stateButtons = {},
openWindowList = { numWindows = 0 },
FONT_DEFAULT_TEXT_LINESPACING = 20,
FONT_DEFAULT_SUB_HEADING_LINESPACING = 22,
Cascade =
{
-- This mode tracks the window in the open list but does not enforce layout.
MODE_NONE = 0,
-- This mode automatically places the window somewhere on the screen and may close other
-- windows with this mode if there are too many to fit new ones.
MODE_AUTOMATIC = 1,
-- There can be only one of these windows up. Any other windows also using this mode will be closed
-- when opening a window using this mode. Also autoplaced.
MODE_HIGHLANDER = 2,
WINDOW_TOP_DISTANCE = 175,
WINDOW_SPACING = 35,
List = { },
pendingResolve = false,
},
}
----------------------------------------------------------------
-- WindowUtil Local Functions
----------------------------------------------------------------
local function NewCascadeEntry(windowName, closeCallback, layoutMode)
return { name = windowName, closeFunction = closeCallback, mode = layoutMode }
end