Window is the base level window definition. All other window elements inherit from ‘Window’, and therefore contain all of the attributes, elements, data members, and support all the same functions.
Window | Window is the base level window definition. |
XML Definition | This is the base level window definition. |
XML Tag | |
Required Attributes | Required for the window element to create itself properly. |
name | Name of the window. |
Optional Attributes | These are optional. |
inherits | Allows you to inherit attributes from another window element. |
layer | This defines the UI for the window. |
movable | Allows the window to be moved by clicking and dragging. |
popable | Pops the window to the top of the layer when clicked. |
taborder | The order through which tab cycles focus. |
id | A numerical id number, needs not be unique. |
handleinput | Should the window element process mouse events? |
skipinput | This flag allows a window to pass input to it’s child elements without handling it itself. |
Constants | |
Constants | |
Animation Types | |
Window Layers | |
Game Action Buttons | |
Functions | |
Functions | |
WindowRegisterCoreEventHandler() | Registers a lua callback for a game event. |
WindowUnregisterCoreEventHandler() | Clear’s the window’s current callback for an event. |
Functions | |
Functions | |
WindowRegisterEventHandler() | Registers a lua callback for a game event. |
WindowUnregisterEventHandler() | Clear’s the window’s current callback for an event. |
WindowSetId() | Set’s the id value for the window |
WindowGetId() | Returns the id for the specified window. |
WindowSetTabOrder() | Set’s the tab order for the window |
WindowGetTabOrder() | Returns the TabOrder for the specified window. |
WindowSetAlpha() | Sets the alpha value for the window’s texture elements. |
WindowGetAlpha() | Returns the current alpha value for the window. |
WindowSetTintColor() | Sets the tint color window’s texture elements. |
WindowGetTintColor() | Returns the tint color window’s texture elements. |
WindowSetFontAlpha() | Sets the alpha value for the window’s text elements. |
WindowGetFontAlpha() | Returns the current font alpha value for the window. |
WindowSetOffsetFromParent() | Sets the position of the window from it’s parent. |
WindowGetOffsetFromParent() | Returns window’s offset from it’s parent window. |
WindowGetScreenPosition() | Returns the screen position of the window. |
WindowSetDimensions() | Sets the x, y size of the window. |
WindowGetDimensions() | Returns the x, y size of the window. |
WindowSetShowing() | Sets if a window should be shown (and drawn) on the screen. |
WindowGetShowing() | Returns if the window is currently shown (and being drawn) on the screen. |
WindowSetLayer() | Sets the layer that the window should be drawn on. |
WindowGetLayer() | Returns if the layer the window is currently drawn on. |
WindowSetHandleInput() | Sets if the window should handle mouse input. |
WindowGetHandleInput() | Returns if the the is window currently handling mouse input. |
WindowSetPopable() | Returns if the window is currently set to popable. |
WindowGetPopable() | Returns if the window is currently set to popable. |
WindowSetMovable() | Sets if a window can be moved. |
WindowGetMovable() | Returns if the window can be moved with the mouse. |
WindowIsSticky() | Determines whether or not the window is sticky or unsticky. |
WindowSetMoving() | Sets if the window is currently attached to the cursor. |
WindowGetMoving() | Returns if the window is currently being moved. |
WindowClearAnchors() | Clears all of the anchors from the window. |
WindowAddAnchor() | Adds a new anchor to the window. |
WindowGetAnchorCount() | Returns how many anchors this window has. |
WindowGetAnchor() | Returns anchor information |
WindowForceProcessAnchors() | Forces the window anchors to be processed. |
WindowAssignFocus() | Assigns or clears the direct focus to this window element. |
WindowHasFocus() | Returns whether or not the window has focus. |
WindowSetResizing() | Sets the window to be continuously resized while the mouse is dragging. |
WindowGetResizing() | Returns if a window is currently being resized |
WindowStartAlphaAnimation() | Starts an automated alpha-animation on the window derived from the function parameters. |
WindowStopAlphaAnimation() | Stops the current alpha animation and reset’s the window to it’s true alpha value. |
WindowStartPositionAnimation() | Starts an automated position-animation on the window derived from the function parameters. |
WindowStopPositionAnimation() | Stops the current position animation and reset’s the window to it’s anchored position. |
WindowStartScaleAnimation() | Starts an automated scale-animation on the window derived from the function parameters. |
WindowStopScaleAnimation() | Stops the current scale animation and reset’s the window to it’s true scale. |
WindowSetParent() | This will remove the window from it’s current parent, and adds it as a child of the specified window. |
WindowGetParent() | Returns the parent for the specified window. |
WindowSetScale() | Sets the current scale value on the window. |
WindowGetScale() | Returns the current scale value on the window. |
WindowSetRelativeScale() | Scales the window relative to it’s current scale. |
DoesWindowExist() | Determines the existence of the specified window. |
WindowResizeOnChildren() | Resizes a parent window based upon the max sizes of its children |
WindowSetGameActionTrigger() | Associates a a key-bindable action to clicking on this window. |
WindowSetGameActionData() | Associates a game action (a key-bindable action) to clicking on this window. |
WindowSetGameActionButton() | Sets the GameActionButton to use to trigger the Game Action associated with this window. |
WindowGetGameActionButton() | Returns if the current button used to trigger game actions. |
WindowIsGameActionLocked() | Returns if this window is currently locked for editing game actions. |
WindowSetDrawWhenInterfaceHidden() | This function sets if the window should be drawn if the main UI is hidden. |
WindowRestoreDefaultSettings() | This function restores a window to it’s default anchors, size, scale, and alpha |
This is the base level window definition. All other window components also have Window definitions.
XML Tag | |
Required Attributes | Required for the window element to create itself properly. |
name | Name of the window. |
Optional Attributes | These are optional. |
inherits | Allows you to inherit attributes from another window element. |
layer | This defines the UI for the window. |
movable | Allows the window to be moved by clicking and dragging. |
popable | Pops the window to the top of the layer when clicked. |
taborder | The order through which tab cycles focus. |
id | A numerical id number, needs not be unique. |
handleinput | Should the window element process mouse events? |
skipinput | This flag allows a window to pass input to it’s child elements without handling it itself. |
Name of the window. Must be unique across all the entire interface.
Inside of a name tag you may insert the “$parent” tag to pre-pend the parent window’s name. For example, the following two code segments result in the same window name:
<Window name="TargetWindow" >
<Windows>
<Window name="$parentBackground/>
</Windows>
</Window>
<Window name="TargetWindow" >
<Windows>
<Window name="TargetWindowBackground/>
</Windows>
</Window>
Allows you to inherit attributes from another window element. The inheritance type must be of the same window the window type you are creating. For example, a button may only inherit a button definition, while a label may only inherit a label definition.
This defines the UI for the window. All a single layer are drawn on top of all layers below them. Within a single layer, windows can be set to popable such that they can be clicked on and brought to the top of their layer’s draw order. This is most often used for secondary windows on the UI.
A string value, that is one of the following
Allows the window to be moved by clicking and dragging. Windows that are set to movable will always handle LButtonDown and LButtonUp events, clicks inside a movable window will never go through to the world.
The word “true” or “false”
Pops the window to the top of the layer when clicked. The window will be moved to the top of it’s layer’s draw order. This is the same as clicking on a window to bring it into focus. By setting ‘popable’ to false, you can enforce the draw order of windows within the same layer.
The word “true” or “false”
The order through which tab cycles focus. For a given window, all child elements may have a tab order value set on them. When a tab order is set, the first element in the order will automatically gain focus when the window is shown. This is useful for defaulting the focus to an edit box when you open up a window.
A number 0 | max number of items in the tab order for it’s parent window. |
A numerical id number, needs not be unique. This is most commonly used for creating a single callback for a series of elements.
Any integer value. Negative values are allowed.
Should the window element process mouse events? When set to false, this will prevent the UI from processing any click and mouseover events within this window or any of it’s children. This flag is most useful for two purposes:
The word “true” or “false”
This flag allows a window to pass input to it’s child elements without handling it itself. Child windows still must be contained within their parent to receive clicks, but the parent window will neither process button clicks or mouse over. This is useful for creating large container windows that are used only for layout purposes and will not process buton events.
Functions | |
WindowRegisterCoreEventHandler() | Registers a lua callback for a game event. |
WindowUnregisterCoreEventHandler() | Clear’s the window’s current callback for an event. |
Registers a lua callback for a game event.
windowName | (string) The name of the window. |
eventName | (string) The name of the event for which to register a callback. |
callback | (string) Full name of the lua function to be called when this event occurs. |
nil | no return value |
Each window may only have one callback may be registered for a particular core event. If a callback is already registered, an error message will be printed to the <UiLog>. If you wish to change your event Registeration, you must first call WindowUnregisterEventHandler with the old event as a paramater.
WindowRegisterCoreEventHandler(
"PlayerWindow", "OnMouseOver", "PlayerWindow.OnMouseOver")
Clear’s the window’s current callback for an event.
windowName | (string) The name of the window. |
eventName | (string) The id name of the event for which to unregister a callback. |
nil | no return value |
WindowUnregisterCoreEventHandler( "PlayerWindow", "OnMouseOver" )
Functions | |
WindowRegisterEventHandler() | Registers a lua callback for a game event. |
WindowUnregisterEventHandler() | Clear’s the window’s current callback for an event. |
WindowSetId() | Set’s the id value for the window |
WindowGetId() | Returns the id for the specified window. |
WindowSetTabOrder() | Set’s the tab order for the window |
WindowGetTabOrder() | Returns the TabOrder for the specified window. |
WindowSetAlpha() | Sets the alpha value for the window’s texture elements. |
WindowGetAlpha() | Returns the current alpha value for the window. |
WindowSetTintColor() | Sets the tint color window’s texture elements. |
WindowGetTintColor() | Returns the tint color window’s texture elements. |
WindowSetFontAlpha() | Sets the alpha value for the window’s text elements. |
WindowGetFontAlpha() | Returns the current font alpha value for the window. |
WindowSetOffsetFromParent() | Sets the position of the window from it’s parent. |
WindowGetOffsetFromParent() | Returns window’s offset from it’s parent window. |
WindowGetScreenPosition() | Returns the screen position of the window. |
WindowSetDimensions() | Sets the x, y size of the window. |
WindowGetDimensions() | Returns the x, y size of the window. |
WindowSetShowing() | Sets if a window should be shown (and drawn) on the screen. |
WindowGetShowing() | Returns if the window is currently shown (and being drawn) on the screen. |
WindowSetLayer() | Sets the layer that the window should be drawn on. |
WindowGetLayer() | Returns if the layer the window is currently drawn on. |
WindowSetHandleInput() | Sets if the window should handle mouse input. |
WindowGetHandleInput() | Returns if the the is window currently handling mouse input. |
WindowSetPopable() | Returns if the window is currently set to popable. |
WindowGetPopable() | Returns if the window is currently set to popable. |
WindowSetMovable() | Sets if a window can be moved. |
WindowGetMovable() | Returns if the window can be moved with the mouse. |
WindowIsSticky() | Determines whether or not the window is sticky or unsticky. |
WindowSetMoving() | Sets if the window is currently attached to the cursor. |
WindowGetMoving() | Returns if the window is currently being moved. |
WindowClearAnchors() | Clears all of the anchors from the window. |
WindowAddAnchor() | Adds a new anchor to the window. |
WindowGetAnchorCount() | Returns how many anchors this window has. |
WindowGetAnchor() | Returns anchor information |
WindowForceProcessAnchors() | Forces the window anchors to be processed. |
WindowAssignFocus() | Assigns or clears the direct focus to this window element. |
WindowHasFocus() | Returns whether or not the window has focus. |
WindowSetResizing() | Sets the window to be continuously resized while the mouse is dragging. |
WindowGetResizing() | Returns if a window is currently being resized |
WindowStartAlphaAnimation() | Starts an automated alpha-animation on the window derived from the function parameters. |
WindowStopAlphaAnimation() | Stops the current alpha animation and reset’s the window to it’s true alpha value. |
WindowStartPositionAnimation() | Starts an automated position-animation on the window derived from the function parameters. |
WindowStopPositionAnimation() | Stops the current position animation and reset’s the window to it’s anchored position. |
WindowStartScaleAnimation() | Starts an automated scale-animation on the window derived from the function parameters. |
WindowStopScaleAnimation() | Stops the current scale animation and reset’s the window to it’s true scale. |
WindowSetParent() | This will remove the window from it’s current parent, and adds it as a child of the specified window. |
WindowGetParent() | Returns the parent for the specified window. |
WindowSetScale() | Sets the current scale value on the window. |
WindowGetScale() | Returns the current scale value on the window. |
WindowSetRelativeScale() | Scales the window relative to it’s current scale. |
DoesWindowExist() | Determines the existence of the specified window. |
WindowResizeOnChildren() | Resizes a parent window based upon the max sizes of its children |
WindowSetGameActionTrigger() | Associates a a key-bindable action to clicking on this window. |
WindowSetGameActionData() | Associates a game action (a key-bindable action) to clicking on this window. |
WindowSetGameActionButton() | Sets the GameActionButton to use to trigger the Game Action associated with this window. |
WindowGetGameActionButton() | Returns if the current button used to trigger game actions. |
WindowIsGameActionLocked() | Returns if this window is currently locked for editing game actions. |
WindowSetDrawWhenInterfaceHidden() | This function sets if the window should be drawn if the main UI is hidden. |
WindowRestoreDefaultSettings() | This function restores a window to it’s default anchors, size, scale, and alpha |
Registers a lua callback for a game event.
windowName | (string) The name of the window. |
eventId | (number) The id number of the event for which to register a callback. |
callback | (string) Full name of the lua function to be called when this event occurs. |
nil | no return value |
Each window may only have one callback may be registered for a particular event. If a callback is already registered, an error message will be printed to the <UiLog>. If you wish to change your event Registeration, you must first call WindowUnregisterEventHandler with the old event as a paramater.
WindowRegisterEventHandler(
"PlayerWindow", SystemData.Events.PLAYER_CUR_HIT_POINTS_UPDATED, "PlayerWindow.UpdateCurrentHitPoints")
Clear’s the window’s current callback for an event.
windowName | (string) The name of the window. |
eventId | (number)The id number of the event for which to unregister a callback. |
nil | no return value |
WindowUnregisterEventHandler( "PlayerWindow", SystemData.Events.PLAYER_CUR_HIT_POINTS_UPDATED )
Set’s the id value for the window
windowName | (string) The name of the window. |
id | (number) The id number to assign to the window. May be any integer value. |
nil | no return value |
The id number for a window needs not be unique. The window’s name is its unique identify, so the id value is entirely defined by it’s use in xml/lua.
WindowSetId( "GroupWindowMember3", 3 )
Returns the id for the specified window.
windowName | (string) The name of the window. |
id | (number) The id number for the window. |
The id number for a window needs not be unique. The window’s name is its unique identify, so the id value is entirely defined by it’s use in xml/lua.
local index = WindowGetId( <SystemData.ActiveWindow.name> )
Set’s the tab order for the window
windowName | (string) The name of the window. |
tabOrder | (number) The TabOrder number to assign to the window. May be any integer value. |
nil | no return value |
WindowSetTabOrder( "EditBox1", 1 )
Returns the TabOrder for the specified window.
windowName | (string) The name of the window. |
TabOrder | (number) The tab order number for the window. |
local tabOrder = WindowGetTabOrder( <SystemData.ActiveWindow.name> )
Sets the alpha value for the window’s texture elements. This value is propagated to all child elements as the ‘parent alpha’ value. A window’s alpha and parent alpha values are multiples to produce the combined alpha result seen on the screen.
windowName | (string) The name of the window. |
alpha | (number) The alpha value 0.0 to 1.0. |
nil | no return value. |
If you want to animate the alpha for a window element, it is better to use the animation functions rather than directly call WindowSetAlpha every frame. See:
WindowSetAlpha( "ChatBubbleWindow"..index, 0.5 )
Returns the current alpha value for the window.
windowName | (string) The name of the window. |
alpha | (number) The alpha value 0.0 to 1.0. |
This alpha value is the value set for this particular window element. The perceived alpha value may be less if one of the window’s parent elements has less an alpha value < 1.0.
local alpha = WindowGetAlpha( "ChatBubbleWindow"..index, 0.5 )
Sets the tint color window’s texture elements.
windowName | (string) The name of the window. |
red | (number) The red tint value (0-255) |
green | (number) The green tint value (0-255) |
blue | (number) The blue tint value (0-255) |
nil | no return value. |
none
local row_mod = math.mod (rowIndex, 2)
local color = DataUtils.GetAlternatingRowColor( row_mod )
WindowSetTintColor("KeyMappingWindowActionsListRow"..rowIndex.."BackgroundName", color.r, color.g, color.b);
Returns the tint color window’s texture elements.
windowName | (string) The name of the window. |
red | (number) The red tint value (0-255) |
green | (number) The green tint value (0-255) |
blue | (number) The blue tint value (0-255) |
The values may be outside the range of 0..255 if the tint color falls outside the 0..1 range.
local r, g, b = WindowGetTintColor("TargetWindowPortraitBackground")
Sets the alpha value for the window’s text elements. This value is propagated to all child elements.
windowName | (string) The name of the window. |
alpha | (number) The alpha value 0.0 to 1.0. |
nil | no return value. |
none
WindowSetFontAlpha( "ChatBubbleWindow"..index., 0.5 )
Returns the current font alpha value for the window.
windowName | (string) The name of the window. |
alpha | (number) The alpha value 0.0 to 1.0. |
none
local fontAlpha = WindowGetFontAlpha( "ChatBubbleWindow"..index )
Sets the position of the window from it’s parent.
windowName | (string) The name of the window. |
xOffset | (number) The x pixel offset from the parent’s top left corner. |
yOffset | (number) The y Pixel offset from the parent’s top left corner. |
nil | no return value. |
WindowSetOffsetFromParent( "ChatWindow", SystemData.Settings.Chat.windowPos.x, SystemData.Settings.Chat.windowPos.y )
Returns window’s offset from it’s parent window.
windowName | (string) The name of the window. |
xOffset | (number) The x pixel offset from the parent’s top left corner. |
yOffset | (number) The y Pixel offset from the parent’s top left corner. |
The window’s offset from parent is not the same as the window’s screen position. Use WindowGetScreenPosition instead of you need the the screen position.
WindowSetOffsetFromParent( "ChatWindow", SystemData.Settings.Chat.windowPos.x, SystemData.Settings.Chat.windowPos.y )
Returns the screen position of the window.
windowName | (string) The name of the window. |
xOffset | (number) The x pixel of the top left corner. |
yOffset | (number) The y Pixel of the top corner. |
none
local mouseoverX, mouseoverY = WindowGetScreenPosition (Tooltips.curMouseOverWindow);
Sets the x, y size of the window.
windowName | (string) The name of the window. |
xOffset | (number) The x unscaled size |
yOffset | (number) The y unscaled size. |
nil | no return value |
Dimensions area always specified in UNSCALED coordinates. The dimensions and window scale are combined internal to produce the sizes shown on the screen. You should use the same scale when specifying sizes in both xml and lua.
WindowSetDimensions( "QuestTrackerWindow", totalWidth, height)
Returns the x, y size of the window.
windowName | (string) The name of the window. |
xOffset | (number) The x unscaled size |
yOffset | (number) The y unscaled size. |
Dimensions area always specified in UNSCALED coordinates. The dimensions and window scale are combined internal to produce the sizes shown on the screen. You should use the same scale when specifying sizes in both xml and lua.
local x, y = WindowGetDimensions( "MapPointsTooltipInfo"..index )
Sets if a window should be shown (and drawn) on the screen. When a window is not showing, it will not receive updates or mouse events. Generic event handlers will still be processed.
windowName | (string) The name of the window. |
showing | (boolean) Should the window be drawn? |
nil | no return value |
WindowSetShowing("QuestTrackerWindowMinMaxToggleMaxButton", QuestTrackerWindow.isMinimized == true)
Returns if the window is currently shown (and being drawn) on the screen.
windowName | (string) The name of the window. |
showing | (boolean) Is the window currently being drawn? |
none
local showing = WindowGetShowing( "QuestTrackerWindow" )
Sets the layer that the window should be drawn on.
windowName | (string) The name of the window. |
layer | (number) The layer the window is drawn on. See Window Layers for values. |
nil | no return value |
none
Returns if the layer the window is currently drawn on.
windowName | (string) The name of the window. |
layer | (number) The layer the window is drawn on. See Window Layers for values. |
none
local layer = WindowGetLayer( "" )
Sets if the window should handle mouse input.
windowName | (string) The name of the window. |
handleinput | (number) Should the window handle mouse input? |
nil | no return value |
none
Returns if the the is window currently handling mouse input.
windowName | (string) The name of the window. |
handlingInput | (boolean) Is the window currently handling mouse input? |
none
local isHandlingInput = WindowGetHandleInput( "SomeWindow" )
Returns if the window is currently set to popable.
windowName | (string) The name of the window. |
isPopable | (boolean) Is the window popable |
none
local isPopable = WindowGetPopable( "SomeWindowName" )
Sets if a window can be moved. When true, the window can be clicked on and dragged around the screen.
windowName | (string) The name of the window. |
movable | (boolean) Should the window be movable? |
nil | no return value |
SystemData.Settings.Interface.lockTacticalMap = ButtonGetPressedFlag( "ScenarioMapMenuWindowLockButton" )
WindowSetMovable("ScenarioMapWindow", not SystemData.Settings.Interface.lockTacticalMap )
Returns if the window can be moved with the mouse.
windowName | (string) The name of the window. |
movable | (boolean) Is the window currently movable? |
none
local movable = WindowGetShowing( "ScenarioMapWindowMapImage" )
Determines whether or not the window is sticky or unsticky.
windowName | (string) The name of the window. |
sticky (boolean) | Is the window sticky? True, or false. |
none
Sets if the window is currently attached to the cursor.
windowName | (string) The name of the window. |
moving | (boolean) Should the window be moving? |
nil | no return value |
none
Returns if the window is currently being moved.
windowName | (string) The name of the window. |
moving | (boolean) Is the window be moving? |
none
Clears all of the anchors from the window. When all the anchors are removed from a window, it will reposition itself to it’s parent position.
windowName | (string) The name of the window. |
nil | no return value |
See the Anchoring guide.
Adds a new anchor to the window.
windowName | (string) The name of the window. |
anchorPoint | (string) The name point on the at which to anchor the window. { “topleft”, “top”, “topright”, “left”, “center”, “right”, “bottomleft”, “bottom”, “bottomright” } |
relativeTo | (string) The name of another window to which you want to anchor this one. |
relativePoint | (string) The point on this that you wish to attach to the anchor window. { “topleft”, “top”, “topright”, “left”, “center”, “right”, “bottomleft”, “bottom”, “bottomright” } |
xOffset | (number) The x pixel offset from this anchor location. |
yOffset | (number) The y pixel offset from this anchor location. |
nil | no return value |
See the Anchoring guide.
Returns how many anchors this window has.
windowName | (string) The name of the window. |
number | The number of anchors this window has. |
none
none
Returns anchor information
windowName | (string) The name of the window. |
anchorId | (number) Desired anchor’s id. Ranges from 1 to WindowGetAnchorCount for this window. |
(string) | point |
(string) | relativePoint |
(string) | relativeTo |
(number) | x offset |
(number) | y offset |
The return offset values are unscaled.
local point, relativePoint, relativeTo, xOffs, yOffs = WindowGetAnchor (“MyWindow”, 1)
Forces the window anchors to be processed.
windowName | (string) The name of the window. |
nil | no return value |
none
Assigns or clears the direct focus to this window element. As a result, all parent window element will also come into focus.
windowName | (string) The name of the window. |
focus | (string) True = Set Focus, False = Clear Focus |
nil | no return value |
none
Returns whether or not the window has focus.
windowName | (string) The name of the window. |
focus | (boolean) True = Has Focus, False = No Focus |
none
Sets the window to be continuously resized while the mouse is dragging.
windowName | (string) The name of the window. |
resizing | (string) True = Resizing is on, False = Resizing is off. |
nil | no return value |
none
Returns if a window is currently being resized
windowName | (string) The name of the window. |
resizing | (string) True = Resizing is on, False = Resizing is off.//* |
none
Starts an automated alpha-animation on the window derived from the function parameters.
windowName | (string) The name of the window. |
animType | (number) The animation type, see Animation Types for valid values. |
startAlpha | (number) The starting alpha value for the animation. |
endAlpha | (number) The ending alpha value for the animation. |
duration | (number) The duration (in seconds) to fade between the min alpha and max alpha. |
setStartBeforeDelay | (boolean) Should the window be set to the start animation value prior to the delay? |
delay | (number) The delay between this function call and when the animation should start. |
numLoop | (number) The number of times to loop the animation. When 0, looks indefinably. |
nil | no return value |
none
Stops the current alpha animation and reset’s the window to it’s true alpha value.
windowName | (string) The name of the window. |
nil | no return value |
none
Starts an automated position-animation on the window derived from the function parameters.
windowName | (string) The name of the window. |
animType | (number) The animation type, see Animation Types for valid values. |
startX | (number) The starting x offset from parent for the animation (start and end for POP type anims) |
startY | (number) The starting y offset from parent for the animation (start and end for POP type anims) |
endX | (number) The ending x offset from parent for the animation (mid-point for POP type anims) |
endY | (number) The ending y offset from parent for the animation (mid-point for POP type anims) |
duration | (number) The duration (in seconds) to fade between the min alpha and max alpha. |
setStartBeforeDelay | (boolean) Should the window be set to the start animation value prior to the delay? |
delay | (number) The delay between this function call and when the animation should start. |
numLoop | (number) The number of times to loop the animation. When 0, looks indefinably. |
nil | no return value |
Stops the current position animation and reset’s the window to it’s anchored position.
windowName | (string) The name of the window. |
nil | no return value |
none
Starts an automated scale-animation on the window derived from the function parameters.
windowName | (string) The name of the window. |
animType | (number) The animation type, see Animation Types for valid values. |
startAlpha | (number) The starting alpha value for the animation. |
endAlpha | (number) The ending alpha value for the animation. |
duration | (number) The duration (in seconds) to fade between the min alpha and max alpha. |
setStartBeforeDelay | (boolean) Should the window be set to the start animation value prior to the delay? |
delay | (number) The delay between this function call and when the animation should start. |
numLoop | (number) The number of times to loop the animation. When 0, looks indefinably. |
nil | no return value |
none
Stops the current scale animation and reset’s the window to it’s true scale.
windowName | (string) The name of the window. |
nil | no return value |
none
This will remove the window from it’s current parent, and adds it as a child of the specified window.
windowName | (string) The name of the window. |
parentWindowName | (string) The name of the new parent window. |
nil | no return value |
none
Returns the parent for the specified window.
windowName | (string) The name of the window. |
parentWindowName | (string) The name of the new parent window. |
local quest = WindowGetId( WindowGetParent( SystemData.ActiveWindow.name ) )
Sets the current scale value on the window.
windowName | (string) The name of the window. |
scale | (number) Value between 0.0 and 1.0. |
nil | no return value |
none
Returns the current scale value on the window.
windowName | (string) The name of the window. |
scale | (number) Value between 0.0 and 1.0. |
none
Scales the window relative to it’s current scale. For example, a relative scale of 0.5 will scale a window to half it’s current size.
windowName | (string) The name of the window. |
scale | (number) Value between 0.0 and 1.0. |
nil | no return value |
WindowSetRelativeScale( “SomeWindow”, 0.5 )
Determines the existence of the specified window.
windowName | (string) The name of the window. |
exists | (boolean) true if the window named by windowName exists, false otherwise. |
if (DoesWindowExist ("MySpecialWindow") == true) then
DEBUG (L"Thanks for avoiding error spew!");
end
Resizes a parent window based upon the max sizes of its children
windowName | (string) Name of the parent window to resize. |
recursive | (boolean) Whether or not to recurse through the children of your children. |
borderSpacing | (number) Amount of padding to add to the bottom and right. |
nil | no return value. |
none
WindowResizeOnChildren( "BadlySizedParentWindow", true, 2 )
Associates a a key-bindable action to clicking on this window.
windowName | (string) Name of the window |
gameActionId | (number) The keybinding action id to trigger when the window is clicked. |
nil | no return value. |
none
WindowSetGameActionTrigger( "SomeWindow", 2 )
Associates a game action (a key-bindable action) to clicking on this window.
windowName | (string) Name of the window |
gameActionType | (number) The Type of the action. |
gameActionId | (number) The id number of the action. |
gameActionText | (number) The text associated with the action. |
nil | no return value. |
none
WindowSetGameActionData( "SomeWindow", true, 2 )
Sets the GameActionButton to use to trigger the Game Action associated with this window.
windowName | (string) The name of the window. |
gameActionButton | (number) The GameActionButton to use for this window see Game Action Buttons for values. |
nil | no return value |
none
Returns if the current button used to trigger game actions.
windowName | (string) The name of the window. |
GameActionButton | (number) The current GameAction button See Game Action Buttons for values. |
none
local button = WindowGetGameActionButton( "WindowName" )
Returns if this window is currently locked for editing game actions.
windowName | (string) The name of the window. |
locked | (number) Returns if the window is locked for game actions or not. |
none
local locked = WindowIsGameActionLocked( "WindowName" )
This function sets if the window should be drawn if the main UI is hidden.
windowName | (string) The name of the window. |
showWhenUiHidden | (boolean) Should this window be drawn the the main UI is hidden? |
nil | no return value |
WindowSetDrawWhenInterfaceHidden( "SiegeWeaponCannonAimWindow", true )