-
Notifications
You must be signed in to change notification settings - Fork 4
popup
Quetzy edited this page Jun 20, 2022
·
2 revisions
A popup
is used to render some elements above the main screen (or even over another popup!). Currently, the only place you'll need to declare a popup
is with the button
's popup
property. (Putting a popup in a panel
's children won't work properly.)
content
Property | Type | Default Value? | Bindable? | Description |
---|---|---|---|---|
content |
YUI Element | - | - | This is the content that will be rendered inside the popup |
placement |
[placement_mode] ID | bottom_right |
no | This determines where the popup will be placed relative to the target. See [placement_mode] for the full list of options |
padding |
number or {padding definition} | 0 |
no |
padding allows you to define a 'buffer zone' around the popup content. For example, setting padding to 5 will put 5 pixels worth of space around all sides of the content. |
bg_color |
GMS color name or RGB hex code prefixed by $ e.g. $FF0000
|
- | no | Sets the color to use as a background for the popup, which will be drawn behind the content. |
border_color |
GMS color name or RGB hex code prefixed by $ e.g. $FF0000
|
- | no | Sets the color for the border rectangle that will be drawn around the content. |
border_thickness |
real number | 1 |
no | Sets the thickness of the border rectangle. |
Home - Elements - Built-in Widgets - YuiScript - Themes -- Custom Widgets