Difference between revisions of "Dynamic Windows"

From Legends of Aria Admin and Modding Wiki
Jump to: navigation, search
(Created page with "These are made to be copy paste ready, leaving in the comments is strongly recommended. If you don't need all the parameters do this: local dynamicWindow = DynamicWindow(...")
(No difference)

Revision as of 04:12, 29 October 2016

These are made to be copy paste ready, leaving in the comments is strongly recommended. If you don't need all the parameters do this:

local dynamicWindow = DynamicWindow(
	"MyWindow", --(string) Window ID used to uniquely identify the window. It is returned in the DynamicWindowResponse event.
	"My Window, --(string) Title of the window for the client UI
	100, --(number) Width of the window
	100 --(number) Height of the window
	--startX, --(number) Starting X position of the window (chosen by client if not specified)
	--startY, --(number) Starting Y position of the window (chosen by client if not specified)
	--windowType, --(string) Window type (optional)
	--windowAnchor --(string) Window anchor (default "TopLeft")
)

Please notice after the height parameter the comma was removed, this is crucial or you will receive a Lua error similar to unexpected symbol near ')'

Setting a (number) to 0 or (string) to "" is the same as not setting it.