The height of this element, in UI coordinate space.
The percentage height of the screen this element should take up when sizeMode is set to LayoutMode.PROPORTIONAL. The number needs to be a decimal.
How this element should size itself.
-- Create a window that has automatic size mode, this is default
local window1 = osrs.Ui.window({title = "Automatic Size Mode"})
-- Create a window that has manual size mode
local window2 = osrs.Ui.window(
{
title = "Manual Size Mode",
sizeMode = osrs.Ui.LayoutMode.MANUAL,
height = 200,
width = 200
}
)
-- Add the windows to the canvas
osrs.Ui.canvas:addChild(window1)
osrs.Ui.canvas:addChild(window2)
The width of this element, in UI coordinate space.
The percentage width of the screen this element should take up when sizeMode is set to LayoutMode.PROPORTIONAL. The number needs to be a decimal.
A UI object that may be manually or automatically sized.