mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 17:28:58 +00:00
Sync classref with master branch (4.0 changes)
This commit is contained in:
+92
-90
@@ -25,103 +25,105 @@ In the Inspector you can enable (show) or disable (hide) slots. By default all s
|
||||
Properties
|
||||
----------
|
||||
|
||||
+----------------------------------------+--------------------------------------------------------+---------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`comment<class_GraphNode_property_comment>` | ``false`` |
|
||||
+----------------------------------------+--------------------------------------------------------+---------------------+
|
||||
| :ref:`Vector2<class_Vector2>` | :ref:`offset<class_GraphNode_property_offset>` | ``Vector2( 0, 0 )`` |
|
||||
+----------------------------------------+--------------------------------------------------------+---------------------+
|
||||
| :ref:`Overlay<enum_GraphNode_Overlay>` | :ref:`overlay<class_GraphNode_property_overlay>` | ``0`` |
|
||||
+----------------------------------------+--------------------------------------------------------+---------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`resizable<class_GraphNode_property_resizable>` | ``false`` |
|
||||
+----------------------------------------+--------------------------------------------------------+---------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`selected<class_GraphNode_property_selected>` | ``false`` |
|
||||
+----------------------------------------+--------------------------------------------------------+---------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`show_close<class_GraphNode_property_show_close>` | ``false`` |
|
||||
+----------------------------------------+--------------------------------------------------------+---------------------+
|
||||
| :ref:`String<class_String>` | :ref:`title<class_GraphNode_property_title>` | ``""`` |
|
||||
+----------------------------------------+--------------------------------------------------------+---------------------+
|
||||
+----------------------------------------------+--------------------------------------------------------+---------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`comment<class_GraphNode_property_comment>` | ``false`` |
|
||||
+----------------------------------------------+--------------------------------------------------------+---------------------+
|
||||
| :ref:`MouseFilter<enum_Control_MouseFilter>` | mouse_filter | **O:** ``0`` |
|
||||
+----------------------------------------------+--------------------------------------------------------+---------------------+
|
||||
| :ref:`Vector2<class_Vector2>` | :ref:`offset<class_GraphNode_property_offset>` | ``Vector2( 0, 0 )`` |
|
||||
+----------------------------------------------+--------------------------------------------------------+---------------------+
|
||||
| :ref:`Overlay<enum_GraphNode_Overlay>` | :ref:`overlay<class_GraphNode_property_overlay>` | ``0`` |
|
||||
+----------------------------------------------+--------------------------------------------------------+---------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`resizable<class_GraphNode_property_resizable>` | ``false`` |
|
||||
+----------------------------------------------+--------------------------------------------------------+---------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`selected<class_GraphNode_property_selected>` | ``false`` |
|
||||
+----------------------------------------------+--------------------------------------------------------+---------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`show_close<class_GraphNode_property_show_close>` | ``false`` |
|
||||
+----------------------------------------------+--------------------------------------------------------+---------------------+
|
||||
| :ref:`String<class_String>` | :ref:`title<class_GraphNode_property_title>` | ``""`` |
|
||||
+----------------------------------------------+--------------------------------------------------------+---------------------+
|
||||
|
||||
Methods
|
||||
-------
|
||||
|
||||
+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`clear_all_slots<class_GraphNode_method_clear_all_slots>` **(** **)** |
|
||||
+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`clear_slot<class_GraphNode_method_clear_slot>` **(** :ref:`int<class_int>` idx **)** |
|
||||
+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Color<class_Color>` | :ref:`get_connection_input_color<class_GraphNode_method_get_connection_input_color>` **(** :ref:`int<class_int>` idx **)** |
|
||||
+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`get_connection_input_count<class_GraphNode_method_get_connection_input_count>` **(** **)** |
|
||||
+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Vector2<class_Vector2>` | :ref:`get_connection_input_position<class_GraphNode_method_get_connection_input_position>` **(** :ref:`int<class_int>` idx **)** |
|
||||
+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`get_connection_input_type<class_GraphNode_method_get_connection_input_type>` **(** :ref:`int<class_int>` idx **)** |
|
||||
+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Color<class_Color>` | :ref:`get_connection_output_color<class_GraphNode_method_get_connection_output_color>` **(** :ref:`int<class_int>` idx **)** |
|
||||
+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`get_connection_output_count<class_GraphNode_method_get_connection_output_count>` **(** **)** |
|
||||
+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Vector2<class_Vector2>` | :ref:`get_connection_output_position<class_GraphNode_method_get_connection_output_position>` **(** :ref:`int<class_int>` idx **)** |
|
||||
+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`get_connection_output_type<class_GraphNode_method_get_connection_output_type>` **(** :ref:`int<class_int>` idx **)** |
|
||||
+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Color<class_Color>` | :ref:`get_slot_color_left<class_GraphNode_method_get_slot_color_left>` **(** :ref:`int<class_int>` idx **)** const |
|
||||
+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Color<class_Color>` | :ref:`get_slot_color_right<class_GraphNode_method_get_slot_color_right>` **(** :ref:`int<class_int>` idx **)** const |
|
||||
+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`get_slot_type_left<class_GraphNode_method_get_slot_type_left>` **(** :ref:`int<class_int>` idx **)** const |
|
||||
+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`get_slot_type_right<class_GraphNode_method_get_slot_type_right>` **(** :ref:`int<class_int>` idx **)** const |
|
||||
+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`is_slot_enabled_left<class_GraphNode_method_is_slot_enabled_left>` **(** :ref:`int<class_int>` idx **)** const |
|
||||
+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`is_slot_enabled_right<class_GraphNode_method_is_slot_enabled_right>` **(** :ref:`int<class_int>` idx **)** const |
|
||||
+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_slot<class_GraphNode_method_set_slot>` **(** :ref:`int<class_int>` idx, :ref:`bool<class_bool>` enable_left, :ref:`int<class_int>` type_left, :ref:`Color<class_Color>` color_left, :ref:`bool<class_bool>` enable_right, :ref:`int<class_int>` type_right, :ref:`Color<class_Color>` color_right, :ref:`Texture<class_Texture>` custom_left=null, :ref:`Texture<class_Texture>` custom_right=null **)** |
|
||||
+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
+-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`clear_all_slots<class_GraphNode_method_clear_all_slots>` **(** **)** |
|
||||
+-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`clear_slot<class_GraphNode_method_clear_slot>` **(** :ref:`int<class_int>` idx **)** |
|
||||
+-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Color<class_Color>` | :ref:`get_connection_input_color<class_GraphNode_method_get_connection_input_color>` **(** :ref:`int<class_int>` idx **)** |
|
||||
+-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`get_connection_input_count<class_GraphNode_method_get_connection_input_count>` **(** **)** |
|
||||
+-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Vector2<class_Vector2>` | :ref:`get_connection_input_position<class_GraphNode_method_get_connection_input_position>` **(** :ref:`int<class_int>` idx **)** |
|
||||
+-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`get_connection_input_type<class_GraphNode_method_get_connection_input_type>` **(** :ref:`int<class_int>` idx **)** |
|
||||
+-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Color<class_Color>` | :ref:`get_connection_output_color<class_GraphNode_method_get_connection_output_color>` **(** :ref:`int<class_int>` idx **)** |
|
||||
+-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`get_connection_output_count<class_GraphNode_method_get_connection_output_count>` **(** **)** |
|
||||
+-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Vector2<class_Vector2>` | :ref:`get_connection_output_position<class_GraphNode_method_get_connection_output_position>` **(** :ref:`int<class_int>` idx **)** |
|
||||
+-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`get_connection_output_type<class_GraphNode_method_get_connection_output_type>` **(** :ref:`int<class_int>` idx **)** |
|
||||
+-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Color<class_Color>` | :ref:`get_slot_color_left<class_GraphNode_method_get_slot_color_left>` **(** :ref:`int<class_int>` idx **)** const |
|
||||
+-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Color<class_Color>` | :ref:`get_slot_color_right<class_GraphNode_method_get_slot_color_right>` **(** :ref:`int<class_int>` idx **)** const |
|
||||
+-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`get_slot_type_left<class_GraphNode_method_get_slot_type_left>` **(** :ref:`int<class_int>` idx **)** const |
|
||||
+-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`get_slot_type_right<class_GraphNode_method_get_slot_type_right>` **(** :ref:`int<class_int>` idx **)** const |
|
||||
+-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`is_slot_enabled_left<class_GraphNode_method_is_slot_enabled_left>` **(** :ref:`int<class_int>` idx **)** const |
|
||||
+-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`is_slot_enabled_right<class_GraphNode_method_is_slot_enabled_right>` **(** :ref:`int<class_int>` idx **)** const |
|
||||
+-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_slot<class_GraphNode_method_set_slot>` **(** :ref:`int<class_int>` idx, :ref:`bool<class_bool>` enable_left, :ref:`int<class_int>` type_left, :ref:`Color<class_Color>` color_left, :ref:`bool<class_bool>` enable_right, :ref:`int<class_int>` type_right, :ref:`Color<class_Color>` color_right, :ref:`Texture2D<class_Texture2D>` custom_left=null, :ref:`Texture2D<class_Texture2D>` custom_right=null **)** |
|
||||
+-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
Theme Properties
|
||||
----------------
|
||||
|
||||
+---------------------------------+---------------+---------------------+
|
||||
| :ref:`StyleBox<class_StyleBox>` | breakpoint | |
|
||||
+---------------------------------+---------------+---------------------+
|
||||
| :ref:`Texture<class_Texture>` | close | |
|
||||
+---------------------------------+---------------+---------------------+
|
||||
| :ref:`Color<class_Color>` | close_color | Color( 0, 0, 0, 1 ) |
|
||||
+---------------------------------+---------------+---------------------+
|
||||
| :ref:`int<class_int>` | close_offset | 18 |
|
||||
+---------------------------------+---------------+---------------------+
|
||||
| :ref:`StyleBox<class_StyleBox>` | comment | |
|
||||
+---------------------------------+---------------+---------------------+
|
||||
| :ref:`StyleBox<class_StyleBox>` | commentfocus | |
|
||||
+---------------------------------+---------------+---------------------+
|
||||
| :ref:`StyleBox<class_StyleBox>` | defaultfocus | |
|
||||
+---------------------------------+---------------+---------------------+
|
||||
| :ref:`StyleBox<class_StyleBox>` | defaultframe | |
|
||||
+---------------------------------+---------------+---------------------+
|
||||
| :ref:`StyleBox<class_StyleBox>` | frame | |
|
||||
+---------------------------------+---------------+---------------------+
|
||||
| :ref:`Texture<class_Texture>` | port | |
|
||||
+---------------------------------+---------------+---------------------+
|
||||
| :ref:`int<class_int>` | port_offset | 3 |
|
||||
+---------------------------------+---------------+---------------------+
|
||||
| :ref:`StyleBox<class_StyleBox>` | position | |
|
||||
+---------------------------------+---------------+---------------------+
|
||||
| :ref:`Texture<class_Texture>` | resizer | |
|
||||
+---------------------------------+---------------+---------------------+
|
||||
| :ref:`Color<class_Color>` | resizer_color | Color( 0, 0, 0, 1 ) |
|
||||
+---------------------------------+---------------+---------------------+
|
||||
| :ref:`StyleBox<class_StyleBox>` | selectedframe | |
|
||||
+---------------------------------+---------------+---------------------+
|
||||
| :ref:`int<class_int>` | separation | 1 |
|
||||
+---------------------------------+---------------+---------------------+
|
||||
| :ref:`Color<class_Color>` | title_color | Color( 0, 0, 0, 1 ) |
|
||||
+---------------------------------+---------------+---------------------+
|
||||
| :ref:`Font<class_Font>` | title_font | |
|
||||
+---------------------------------+---------------+---------------------+
|
||||
| :ref:`int<class_int>` | title_offset | 20 |
|
||||
+---------------------------------+---------------+---------------------+
|
||||
+-----------------------------------+---------------+---------------------+
|
||||
| :ref:`StyleBox<class_StyleBox>` | breakpoint | |
|
||||
+-----------------------------------+---------------+---------------------+
|
||||
| :ref:`Texture2D<class_Texture2D>` | close | |
|
||||
+-----------------------------------+---------------+---------------------+
|
||||
| :ref:`Color<class_Color>` | close_color | Color( 0, 0, 0, 1 ) |
|
||||
+-----------------------------------+---------------+---------------------+
|
||||
| :ref:`int<class_int>` | close_offset | 18 |
|
||||
+-----------------------------------+---------------+---------------------+
|
||||
| :ref:`StyleBox<class_StyleBox>` | comment | |
|
||||
+-----------------------------------+---------------+---------------------+
|
||||
| :ref:`StyleBox<class_StyleBox>` | commentfocus | |
|
||||
+-----------------------------------+---------------+---------------------+
|
||||
| :ref:`StyleBox<class_StyleBox>` | defaultfocus | |
|
||||
+-----------------------------------+---------------+---------------------+
|
||||
| :ref:`StyleBox<class_StyleBox>` | defaultframe | |
|
||||
+-----------------------------------+---------------+---------------------+
|
||||
| :ref:`StyleBox<class_StyleBox>` | frame | |
|
||||
+-----------------------------------+---------------+---------------------+
|
||||
| :ref:`Texture2D<class_Texture2D>` | port | |
|
||||
+-----------------------------------+---------------+---------------------+
|
||||
| :ref:`int<class_int>` | port_offset | 3 |
|
||||
+-----------------------------------+---------------+---------------------+
|
||||
| :ref:`StyleBox<class_StyleBox>` | position | |
|
||||
+-----------------------------------+---------------+---------------------+
|
||||
| :ref:`Texture2D<class_Texture2D>` | resizer | |
|
||||
+-----------------------------------+---------------+---------------------+
|
||||
| :ref:`Color<class_Color>` | resizer_color | Color( 0, 0, 0, 1 ) |
|
||||
+-----------------------------------+---------------+---------------------+
|
||||
| :ref:`StyleBox<class_StyleBox>` | selectedframe | |
|
||||
+-----------------------------------+---------------+---------------------+
|
||||
| :ref:`int<class_int>` | separation | 1 |
|
||||
+-----------------------------------+---------------+---------------------+
|
||||
| :ref:`Color<class_Color>` | title_color | Color( 0, 0, 0, 1 ) |
|
||||
+-----------------------------------+---------------+---------------------+
|
||||
| :ref:`Font<class_Font>` | title_font | |
|
||||
+-----------------------------------+---------------+---------------------+
|
||||
| :ref:`int<class_int>` | title_offset | 20 |
|
||||
+-----------------------------------+---------------+---------------------+
|
||||
|
||||
Signals
|
||||
-------
|
||||
@@ -435,7 +437,7 @@ Returns ``true`` if right (output) slot ``idx`` is enabled, ``false`` otherwise.
|
||||
|
||||
.. _class_GraphNode_method_set_slot:
|
||||
|
||||
- void **set_slot** **(** :ref:`int<class_int>` idx, :ref:`bool<class_bool>` enable_left, :ref:`int<class_int>` type_left, :ref:`Color<class_Color>` color_left, :ref:`bool<class_bool>` enable_right, :ref:`int<class_int>` type_right, :ref:`Color<class_Color>` color_right, :ref:`Texture<class_Texture>` custom_left=null, :ref:`Texture<class_Texture>` custom_right=null **)**
|
||||
- void **set_slot** **(** :ref:`int<class_int>` idx, :ref:`bool<class_bool>` enable_left, :ref:`int<class_int>` type_left, :ref:`Color<class_Color>` color_left, :ref:`bool<class_bool>` enable_right, :ref:`int<class_int>` type_right, :ref:`Color<class_Color>` color_right, :ref:`Texture2D<class_Texture2D>` custom_left=null, :ref:`Texture2D<class_Texture2D>` custom_right=null **)**
|
||||
|
||||
Sets properties of the slot with ID ``idx``.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user