Difference between revisions of "Panel"
Jump to navigation
Jump to search
Line 18: | Line 18: | ||
== UI Attributes == | == UI Attributes == | ||
{{UI Object Attributes (Common)}} | {{UI Object Attributes (Common)}} | ||
+ | |||
+ | === Panel attributes === | ||
+ | {| class="wikitable" | ||
+ | !Name | ||
+ | !Value | ||
+ | !Description | ||
+ | |- | ||
+ | |||
+ | |width | ||
+ | |<width> | ||
+ | |Width in pixels. E.g. "100" | ||
+ | |- | ||
+ | |||
+ | |height | ||
+ | |<height> | ||
+ | |Height in pixels. E.g. "100" | ||
+ | |||
+ | |} |
Revision as of 12:12, 18 June 2015
Displays a background panel with a specific color, based on the skin.
Parameters
- id: the object's ID, used by UISets
- position: the object's position. Use the pixels or rows and columns coordinates format
- size: the panel's width and height
- color: the color of the button. It can assume any of the skin's color values (E.g. for the "blue" skin, the possible values are: b - blue; g - green; gr - gray; r - red; y - yellow; glass)
Syntax
(panel[!<id>] <pos>; <width>; <height>; <color>)
E.g.
(panel!mypanel r1c1; 200; 200; gr)
UI Attributes
Common attributes
Name | Value | Description |
---|---|---|
pos | x<x>y<y> | Position specified as x/y coordinates. E.g. x-5y10 |
visible | true | Default. Show the object |
false | Hide the object | |
blink | true | slow | Blink the object at a slow speed |
fast | Blink the object at a fast speed | |
false | Stop the blinking | |
opacity | 0.0 ... 1.0 | Object opacity from 0 (not visible) to 1 (fully visible) |
rotation | 0 ... 360 | Object rotation in degrees. Images are rotated around the center point, all other objects are rotated around the top left corner |
Panel attributes
Name | Value | Description |
---|---|---|
width | <width> | Width in pixels. E.g. "100" |
height | <height> | Height in pixels. E.g. "100" |