summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-05-28 11:36:41 +0200
committerGitHub <noreply@github.com>2019-05-28 11:36:41 +0200
commit47f00925dcf328651bd9e545bab51bf26fb39cf4 (patch)
tree29cd8c065b709ab9ae259010873c75ba367688cb /doc
parent6ee3a1a6aea453b12ddb7f2c87876be4a4ea2eea (diff)
parent80e9e93e27622e1c03a4da0ef130367191a7b996 (diff)
Merge pull request #28454 from homer666/popup-centered-maxsize
Add `popup_centered_clamped()` method to Popup
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/Popup.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/classes/Popup.xml b/doc/classes/Popup.xml
index c3256f2f5b..e1b51463b2 100644
--- a/doc/classes/Popup.xml
+++ b/doc/classes/Popup.xml
@@ -27,6 +27,17 @@
Popup (show the control in modal form) in the center of the screen relative to its current canvas transform, at the current size, or at a size determined by "size".
</description>
</method>
+ <method name="popup_centered_clamped">
+ <return type="void">
+ </return>
+ <argument index="0" name="size" type="Vector2" default="Vector2( 0, 0 )">
+ </argument>
+ <argument index="1" name="fallback_ratio" type="float" default="0.75">
+ </argument>
+ <description>
+ Popup (show the control in modal form) in the center of the screen relative to the current canvas transform, clamping the size to [code]size[/code], then ensuring the popup is no larger than the viewport size multiplied by [code]fallback_ratio[/code].
+ </description>
+ </method>
<method name="popup_centered_minsize">
<return type="void">
</return>