UI.Panel

From GiderosMobile
Revision as of 07:19, 17 October 2023 by MoKaLux (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2023.1
Class: UI

Description

Creates a Panel widget.

UI.Panel.new(color)

Parameters

color: (hex) the Panel widget background color

Example

local gui = UI.Panel.new(0x4c4c4c)
gui:setDimensions(320, 320)
gui:setColor(0xaa0000)
gui:setPosition(50, 50)

stage:addChild(gui)