Sfoglia il codice sorgente

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.
Cameron Reikes 6 anni fa
parent
commit
3697dc0fc1
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      doc/classes/Popup.xml

+ 3 - 3
doc/classes/Popup.xml

@@ -26,7 +26,7 @@
 			<argument index="0" name="size" type="Vector2" default="Vector2( 0, 0 )">
 			</argument>
 			<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>
 		</method>
 		<method name="popup_centered_minsize">
@@ -35,7 +35,7 @@
 			<argument index="0" name="minsize" type="Vector2" default="Vector2( 0, 0 )">
 			</argument>
 			<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>
 		</method>
 		<method name="popup_centered_ratio">
@@ -44,7 +44,7 @@
 			<argument index="0" name="ratio" type="float" default="0.75">
 			</argument>
 			<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>
 		</method>
 	</methods>