mirror of https://github.com/godotengine/godot
Clarify what popup_centered actually does
As was discussed in issue #24309, the method description doesn't always accurately describe resultant behavior and can be confusing.
This commit is contained in:
parent
4629152d68
commit
3697dc0fc1
|
|
@ -26,7 +26,7 @@
|
||||||
<argument index="0" name="size" type="Vector2" default="Vector2( 0, 0 )">
|
<argument index="0" name="size" type="Vector2" default="Vector2( 0, 0 )">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Popup (show the control in modal form) in the center of the screen, at the current size, or at a size determined by "size".
|
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>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="popup_centered_minsize">
|
<method name="popup_centered_minsize">
|
||||||
|
|
@ -35,7 +35,7 @@
|
||||||
<argument index="0" name="minsize" type="Vector2" default="Vector2( 0, 0 )">
|
<argument index="0" name="minsize" type="Vector2" default="Vector2( 0, 0 )">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Popup (show the control in modal form) in the center of the screen, ensuring the size is never smaller than [code]minsize[/code].
|
Popup (show the control in modal form) in the center of the screen relative to the current canvas transform, ensuring the size is never smaller than [code]minsize[/code].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="popup_centered_ratio">
|
<method name="popup_centered_ratio">
|
||||||
|
|
@ -44,7 +44,7 @@
|
||||||
<argument index="0" name="ratio" type="float" default="0.75">
|
<argument index="0" name="ratio" type="float" default="0.75">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Popup (show the control in modal form) in the center of the screen, scaled at a ratio of size of the screen.
|
Popup (show the control in modal form) in the center of the screen relative to the current canvas transform, scaled at a ratio of size of the screen.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
</methods>
|
</methods>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue