Skip to content
Quetzy edited this page Jun 20, 2022 · 2 revisions

[!] Needs Update for 0.3.0 [!]

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.)

Required Properties

content

Popup Properties

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.