Developers Manual > Cocos Studio > UI Editor > UI Widget > UI Widget UIPanel

UI Widget UIPanel

Icon

Description

The UIPanel subclass implements a container layer in the touch screen. The UIPanel subclass is a subclass of UIWidget.
The control provides methods to set the layer container’s clip, width and height, background color opacity, fill color, picture resources and other attributes.

Squared Properties

For more information, see UI controls common attributes.

General Properties

For more information, see UI controls common attributes.

Feature

Clip

Hides control’s child controls, which are out of the display area.

File

Sets a picture (png, jpg) that will be displayed with default status.

BackgroundColorOpacity

Sets the opacity of the background color,ranging from 0-255, 0 for transparent, and 255 for the opaque option.

FillColor

No color

Sets no color for the background color.

Monochrome

Sets the background color(RGB).

GradientColor

  1. StartColor Sets the starting color of the gradient.
  2. EndColor Sets the ending color of the gradient.
  3. X X Vector
  4. Y Y Vector

3-3-9-img-01.png (6 kB) hanrea@qq.com, 2013-12-03 07:28

3-3-9-img-02.png (11.4 kB) hanrea@qq.com, 2013-12-03 07:28

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.