Sfoglia il codice sorgente

Corrected virtual function name in "Custom GUI Controls"

Silvio Mayolo 2 anni fa
parent
commit
1269d592e1
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      tutorials/ui/custom_gui_controls.rst

+ 2 - 2
tutorials/ui/custom_gui_controls.rst

@@ -79,13 +79,13 @@ the minimum size will make sure your custom control is not squished by
 the other controls in the container.
 the other controls in the container.
 
 
 To provide this callback, just override
 To provide this callback, just override
-:ref:`Control.get_minimum_size() <class_Control_method_get_minimum_size>`,
+:ref:`Control._get_minimum_size() <class_Control_method__get_minimum_size>`,
 for example:
 for example:
 
 
 .. tabs::
 .. tabs::
  .. code-tab:: gdscript GDScript
  .. code-tab:: gdscript GDScript
 
 
-    func get_minimum_size():
+    func _get_minimum_size():
         return Vector2(30, 30)
         return Vector2(30, 30)
 
 
  .. code-tab:: csharp
  .. code-tab:: csharp