mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-09-03 18:14:53 +03:00
classref: Sync with current master branch (2d0a589)
This commit is contained in:
@@ -705,6 +705,8 @@ Method Descriptions
|
||||
|
||||
Aligns the camera to the tracked node.
|
||||
|
||||
\ **Note:** Calling :ref:`force_update_scroll()<class_Camera2D_method_force_update_scroll>` after this method is not required.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
----
|
||||
|
||||
@@ -908,6 +908,8 @@ Draws a colored polygon of any number of points, convex or concave. The points i
|
||||
|
||||
\ **Note:** If you frequently redraw the same polygon with a large number of vertices, consider pre-calculating the triangulation with :ref:`Geometry2D.triangulate_polygon()<class_Geometry2D_method_triangulate_polygon>` and using :ref:`draw_mesh()<class_CanvasItem_method_draw_mesh>`, :ref:`draw_multimesh()<class_CanvasItem_method_draw_multimesh>`, or :ref:`RenderingServer.canvas_item_add_triangle_array()<class_RenderingServer_method_canvas_item_add_triangle_array>`.
|
||||
|
||||
\ **Note:** Styleboxes, textures, and meshes stored only inside local variables should **not** be used with this method in GDScript, because the drawing operation doesn't begin immediately once this method is called. In GDScript, when the function with the local variables ends, the local variables get destroyed before the rendering takes place.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
----
|
||||
@@ -997,6 +999,8 @@ Texture is drawn using the following blend operation, blend mode of the :ref:`Ca
|
||||
dst.b = texture.b * modulate.b * modulate.a + dst.b * (1.0 - texture.b * modulate.a);
|
||||
dst.a = modulate.a + dst.a * (1.0 - modulate.a);
|
||||
|
||||
\ **Note:** Styleboxes, textures, and meshes stored only inside local variables should **not** be used with this method in GDScript, because the drawing operation doesn't begin immediately once this method is called. In GDScript, when the function with the local variables ends, the local variables get destroyed before the rendering takes place.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
----
|
||||
@@ -1023,6 +1027,8 @@ If ``width`` is negative, then a two-point primitive will be drawn instead of a
|
||||
|
||||
Draws a :ref:`Mesh<class_Mesh>` in 2D, using the provided texture. See :ref:`MeshInstance2D<class_MeshInstance2D>` for related documentation. The ``transform`` is defined in local space.
|
||||
|
||||
\ **Note:** Styleboxes, textures, and meshes stored only inside local variables should **not** be used with this method in GDScript, because the drawing operation doesn't begin immediately once this method is called. In GDScript, when the function with the local variables ends, the local variables get destroyed before the rendering takes place.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
----
|
||||
@@ -1039,6 +1045,8 @@ If ``outline`` is positive, each alpha channel value of pixel in region is set t
|
||||
|
||||
Value of the ``pixel_range`` should the same that was used during distance field texture generation.
|
||||
|
||||
\ **Note:** Styleboxes, textures, and meshes stored only inside local variables should **not** be used with this method in GDScript, because the drawing operation doesn't begin immediately once this method is called. In GDScript, when the function with the local variables ends, the local variables get destroyed before the rendering takes place.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
----
|
||||
@@ -1107,6 +1115,8 @@ Breaks ``text`` to the lines and draws text outline using the specified ``font``
|
||||
|
||||
Draws a :ref:`MultiMesh<class_MultiMesh>` in 2D with the provided texture. See :ref:`MultiMeshInstance2D<class_MultiMeshInstance2D>` for related documentation.
|
||||
|
||||
\ **Note:** Styleboxes, textures, and meshes stored only inside local variables should **not** be used with this method in GDScript, because the drawing operation doesn't begin immediately once this method is called. In GDScript, when the function with the local variables ends, the local variables get destroyed before the rendering takes place.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
----
|
||||
@@ -1121,6 +1131,8 @@ Draws a solid polygon of any number of points, convex or concave. Unlike :ref:`d
|
||||
|
||||
\ **Note:** If you frequently redraw the same polygon with a large number of vertices, consider pre-calculating the triangulation with :ref:`Geometry2D.triangulate_polygon()<class_Geometry2D_method_triangulate_polygon>` and using :ref:`draw_mesh()<class_CanvasItem_method_draw_mesh>`, :ref:`draw_multimesh()<class_CanvasItem_method_draw_multimesh>`, or :ref:`RenderingServer.canvas_item_add_triangle_array()<class_RenderingServer_method_canvas_item_add_triangle_array>`.
|
||||
|
||||
\ **Note:** Styleboxes, textures, and meshes stored only inside local variables should **not** be used with this method in GDScript, because the drawing operation doesn't begin immediately once this method is called. In GDScript, when the function with the local variables ends, the local variables get destroyed before the rendering takes place.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
----
|
||||
@@ -1161,6 +1173,8 @@ If ``width`` is negative, it will be ignored and the polyline will be drawn usin
|
||||
|
||||
Draws a custom primitive. 1 point for a point, 2 points for a line, 3 points for a triangle, and 4 points for a quad. If 0 points or more than 4 points are specified, nothing will be drawn and an error message will be printed. The ``points`` array is defined in local space. See also :ref:`draw_line()<class_CanvasItem_method_draw_line>`, :ref:`draw_polyline()<class_CanvasItem_method_draw_polyline>`, :ref:`draw_polygon()<class_CanvasItem_method_draw_polygon>`, and :ref:`draw_rect()<class_CanvasItem_method_draw_rect>`.
|
||||
|
||||
\ **Note:** Styleboxes, textures, and meshes stored only inside local variables should **not** be used with this method in GDScript, because the drawing operation doesn't begin immediately once this method is called. In GDScript, when the function with the local variables ends, the local variables get destroyed before the rendering takes place.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
----
|
||||
@@ -1260,6 +1274,8 @@ Draws ``text`` outline using the specified ``font`` at the ``pos`` in local spac
|
||||
|
||||
Draws a styled rectangle. The ``rect`` is defined in local space.
|
||||
|
||||
\ **Note:** Styleboxes, textures, and meshes stored only inside local variables should **not** be used with this method in GDScript, because the drawing operation doesn't begin immediately once this method is called. In GDScript, when the function with the local variables ends, the local variables get destroyed before the rendering takes place.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
----
|
||||
@@ -1272,6 +1288,8 @@ Draws a styled rectangle. The ``rect`` is defined in local space.
|
||||
|
||||
Draws a texture at a given position. The ``position`` is defined in local space.
|
||||
|
||||
\ **Note:** Styleboxes, textures, and meshes stored only inside local variables should **not** be used with this method in GDScript, because the drawing operation doesn't begin immediately once this method is called. In GDScript, when the function with the local variables ends, the local variables get destroyed before the rendering takes place.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
----
|
||||
@@ -1284,6 +1302,8 @@ Draws a texture at a given position. The ``position`` is defined in local space.
|
||||
|
||||
Draws a textured rectangle at a given position, optionally modulated by a color. The ``rect`` is defined in local space. If ``transpose`` is ``true``, the texture will have its X and Y coordinates swapped. See also :ref:`draw_rect()<class_CanvasItem_method_draw_rect>` and :ref:`draw_texture_rect_region()<class_CanvasItem_method_draw_texture_rect_region>`.
|
||||
|
||||
\ **Note:** Styleboxes, textures, and meshes stored only inside local variables should **not** be used with this method in GDScript, because the drawing operation doesn't begin immediately once this method is called. In GDScript, when the function with the local variables ends, the local variables get destroyed before the rendering takes place.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
----
|
||||
@@ -1296,6 +1316,8 @@ Draws a textured rectangle at a given position, optionally modulated by a color.
|
||||
|
||||
Draws a textured rectangle from a texture's region (specified by ``src_rect``) at a given position in local space, optionally modulated by a color. If ``transpose`` is ``true``, the texture will have its X and Y coordinates swapped. See also :ref:`draw_texture_rect()<class_CanvasItem_method_draw_texture_rect>`.
|
||||
|
||||
\ **Note:** Styleboxes, textures, and meshes stored only inside local variables should **not** be used with this method in GDScript, because the drawing operation doesn't begin immediately once this method is called. In GDScript, when the function with the local variables ends, the local variables get destroyed before the rendering takes place.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
----
|
||||
|
||||
@@ -40,7 +40,7 @@ You can add a dock by using :ref:`EditorPlugin.add_dock()<class_EditorPlugin_met
|
||||
dock = EditorDock.new()
|
||||
dock.title = "My Dock"
|
||||
dock.dock_icon = preload("./dock_icon.png")
|
||||
dock.default_slot = EditorPlugin.DOCK_SLOT_RIGHT_UL
|
||||
dock.default_slot = EditorDock.DOCK_SLOT_RIGHT_UL
|
||||
var dock_content = preload("./dock_content.tscn").instantiate()
|
||||
dock.add_child(dock_content)
|
||||
add_dock(dock)
|
||||
@@ -71,7 +71,7 @@ Properties
|
||||
+-------------------------------------------------------------+-----------------------------------------------------------------------+-----------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`closable<class_EditorDock_property_closable>` | ``false`` |
|
||||
+-------------------------------------------------------------+-----------------------------------------------------------------------+-----------------------+
|
||||
| :ref:`DockSlot<enum_EditorPlugin_DockSlot>` | :ref:`default_slot<class_EditorDock_property_default_slot>` | ``-1`` |
|
||||
| :ref:`DockSlot<enum_EditorDock_DockSlot>` | :ref:`default_slot<class_EditorDock_property_default_slot>` | ``-1`` |
|
||||
+-------------------------------------------------------------+-----------------------------------------------------------------------+-----------------------+
|
||||
| :ref:`Texture2D<class_Texture2D>` | :ref:`dock_icon<class_EditorDock_property_dock_icon>` | |
|
||||
+-------------------------------------------------------------+-----------------------------------------------------------------------+-----------------------+
|
||||
@@ -178,6 +178,104 @@ Allows making the dock floating (opened as a separate window).
|
||||
|
||||
Allows placing the dock in all available slots.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
----
|
||||
|
||||
.. _enum_EditorDock_DockSlot:
|
||||
|
||||
.. rst-class:: classref-enumeration
|
||||
|
||||
enum **DockSlot**: :ref:`🔗<enum_EditorDock_DockSlot>`
|
||||
|
||||
.. _class_EditorDock_constant_DOCK_SLOT_NONE:
|
||||
|
||||
.. rst-class:: classref-enumeration-constant
|
||||
|
||||
:ref:`DockSlot<enum_EditorDock_DockSlot>` **DOCK_SLOT_NONE** = ``-1``
|
||||
|
||||
The dock is closed.
|
||||
|
||||
.. _class_EditorDock_constant_DOCK_SLOT_LEFT_UL:
|
||||
|
||||
.. rst-class:: classref-enumeration-constant
|
||||
|
||||
:ref:`DockSlot<enum_EditorDock_DockSlot>` **DOCK_SLOT_LEFT_UL** = ``0``
|
||||
|
||||
Dock slot, left side, upper-left (empty in default layout).
|
||||
|
||||
.. _class_EditorDock_constant_DOCK_SLOT_LEFT_BL:
|
||||
|
||||
.. rst-class:: classref-enumeration-constant
|
||||
|
||||
:ref:`DockSlot<enum_EditorDock_DockSlot>` **DOCK_SLOT_LEFT_BL** = ``1``
|
||||
|
||||
Dock slot, left side, bottom-left (empty in default layout).
|
||||
|
||||
.. _class_EditorDock_constant_DOCK_SLOT_LEFT_UR:
|
||||
|
||||
.. rst-class:: classref-enumeration-constant
|
||||
|
||||
:ref:`DockSlot<enum_EditorDock_DockSlot>` **DOCK_SLOT_LEFT_UR** = ``2``
|
||||
|
||||
Dock slot, left side, upper-right (in default layout includes Scene and Import docks).
|
||||
|
||||
.. _class_EditorDock_constant_DOCK_SLOT_LEFT_BR:
|
||||
|
||||
.. rst-class:: classref-enumeration-constant
|
||||
|
||||
:ref:`DockSlot<enum_EditorDock_DockSlot>` **DOCK_SLOT_LEFT_BR** = ``3``
|
||||
|
||||
Dock slot, left side, bottom-right (in default layout includes FileSystem and History docks).
|
||||
|
||||
.. _class_EditorDock_constant_DOCK_SLOT_RIGHT_UL:
|
||||
|
||||
.. rst-class:: classref-enumeration-constant
|
||||
|
||||
:ref:`DockSlot<enum_EditorDock_DockSlot>` **DOCK_SLOT_RIGHT_UL** = ``4``
|
||||
|
||||
Dock slot, right side, upper-left (in default layout includes Inspector, Signal, and Group docks).
|
||||
|
||||
.. _class_EditorDock_constant_DOCK_SLOT_RIGHT_BL:
|
||||
|
||||
.. rst-class:: classref-enumeration-constant
|
||||
|
||||
:ref:`DockSlot<enum_EditorDock_DockSlot>` **DOCK_SLOT_RIGHT_BL** = ``5``
|
||||
|
||||
Dock slot, right side, bottom-left (empty in default layout).
|
||||
|
||||
.. _class_EditorDock_constant_DOCK_SLOT_RIGHT_UR:
|
||||
|
||||
.. rst-class:: classref-enumeration-constant
|
||||
|
||||
:ref:`DockSlot<enum_EditorDock_DockSlot>` **DOCK_SLOT_RIGHT_UR** = ``6``
|
||||
|
||||
Dock slot, right side, upper-right (empty in default layout).
|
||||
|
||||
.. _class_EditorDock_constant_DOCK_SLOT_RIGHT_BR:
|
||||
|
||||
.. rst-class:: classref-enumeration-constant
|
||||
|
||||
:ref:`DockSlot<enum_EditorDock_DockSlot>` **DOCK_SLOT_RIGHT_BR** = ``7``
|
||||
|
||||
Dock slot, right side, bottom-right (empty in default layout).
|
||||
|
||||
.. _class_EditorDock_constant_DOCK_SLOT_BOTTOM:
|
||||
|
||||
.. rst-class:: classref-enumeration-constant
|
||||
|
||||
:ref:`DockSlot<enum_EditorDock_DockSlot>` **DOCK_SLOT_BOTTOM** = ``8``
|
||||
|
||||
Bottom panel.
|
||||
|
||||
.. _class_EditorDock_constant_DOCK_SLOT_MAX:
|
||||
|
||||
.. rst-class:: classref-enumeration-constant
|
||||
|
||||
:ref:`DockSlot<enum_EditorDock_DockSlot>` **DOCK_SLOT_MAX** = ``9``
|
||||
|
||||
Represents the size of the :ref:`DockSlot<enum_EditorDock_DockSlot>` enum.
|
||||
|
||||
.. rst-class:: classref-section-separator
|
||||
|
||||
----
|
||||
@@ -225,12 +323,12 @@ If ``true``, the dock can be closed with the Close button in the context popup.
|
||||
|
||||
.. rst-class:: classref-property
|
||||
|
||||
:ref:`DockSlot<enum_EditorPlugin_DockSlot>` **default_slot** = ``-1`` :ref:`🔗<class_EditorDock_property_default_slot>`
|
||||
:ref:`DockSlot<enum_EditorDock_DockSlot>` **default_slot** = ``-1`` :ref:`🔗<class_EditorDock_property_default_slot>`
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
- |void| **set_default_slot**\ (\ value\: :ref:`DockSlot<enum_EditorPlugin_DockSlot>`\ )
|
||||
- :ref:`DockSlot<enum_EditorPlugin_DockSlot>` **get_default_slot**\ (\ )
|
||||
- |void| **set_default_slot**\ (\ value\: :ref:`DockSlot<enum_EditorDock_DockSlot>`\ )
|
||||
- :ref:`DockSlot<enum_EditorDock_DockSlot>` **get_default_slot**\ (\ )
|
||||
|
||||
The default dock slot used when adding the dock with :ref:`EditorPlugin.add_dock()<class_EditorPlugin_method_add_dock>`.
|
||||
|
||||
|
||||
@@ -107,6 +107,8 @@ Properties
|
||||
+---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`docks/scene_tree/start_create_dialog_fully_expanded<class_EditorSettings_property_docks/scene_tree/start_create_dialog_fully_expanded>` |
|
||||
+---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`float<class_float>` | :ref:`editors/2d/auto_resample_delay<class_EditorSettings_property_editors/2d/auto_resample_delay>` |
|
||||
+---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Color<class_Color>` | :ref:`editors/2d/bone_color1<class_EditorSettings_property_editors/2d/bone_color1>` |
|
||||
+---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Color<class_Color>` | :ref:`editors/2d/bone_color2<class_EditorSettings_property_editors/2d/bone_color2>` |
|
||||
@@ -1331,6 +1333,18 @@ If ``true``, the Create dialog (Create New Node/Create New Resource) will start
|
||||
|
||||
----
|
||||
|
||||
.. _class_EditorSettings_property_editors/2d/auto_resample_delay:
|
||||
|
||||
.. rst-class:: classref-property
|
||||
|
||||
:ref:`float<class_float>` **editors/2d/auto_resample_delay** :ref:`🔗<class_EditorSettings_property_editors/2d/auto_resample_delay>`
|
||||
|
||||
Delay time for automatic resampling in the 2D editor (in seconds).
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
----
|
||||
|
||||
.. _class_EditorSettings_property_editors/2d/bone_color1:
|
||||
|
||||
.. rst-class:: classref-property
|
||||
|
||||
@@ -206,6 +206,8 @@ Theme Properties
|
||||
+-----------------------------------+--------------------------------------------------------------------------------------------+--------------------------------+
|
||||
| :ref:`Color<class_Color>` | :ref:`guide_color<class_ItemList_theme_color_guide_color>` | ``Color(0.7, 0.7, 0.7, 0.25)`` |
|
||||
+-----------------------------------+--------------------------------------------------------------------------------------------+--------------------------------+
|
||||
| :ref:`Color<class_Color>` | :ref:`scroll_hint_color<class_ItemList_theme_color_scroll_hint_color>` | ``Color(0, 0, 0, 1)`` |
|
||||
+-----------------------------------+--------------------------------------------------------------------------------------------+--------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`h_separation<class_ItemList_theme_constant_h_separation>` | ``4`` |
|
||||
+-----------------------------------+--------------------------------------------------------------------------------------------+--------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`icon_margin<class_ItemList_theme_constant_icon_margin>` | ``4`` |
|
||||
@@ -1426,6 +1428,18 @@ Text :ref:`Color<class_Color>` used when the item is selected, but not hovered.
|
||||
|
||||
----
|
||||
|
||||
.. _class_ItemList_theme_color_scroll_hint_color:
|
||||
|
||||
.. rst-class:: classref-themeproperty
|
||||
|
||||
:ref:`Color<class_Color>` **scroll_hint_color** = ``Color(0, 0, 0, 1)`` :ref:`🔗<class_ItemList_theme_color_scroll_hint_color>`
|
||||
|
||||
:ref:`Color<class_Color>` used to modulate the :ref:`scroll_hint<class_ItemList_theme_icon_scroll_hint>` texture.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
----
|
||||
|
||||
.. _class_ItemList_theme_constant_h_separation:
|
||||
|
||||
.. rst-class:: classref-themeproperty
|
||||
|
||||
@@ -52,6 +52,10 @@ Properties
|
||||
+-------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`prefer_native_menu<class_PopupMenu_property_prefer_native_menu>` | ``false`` |
|
||||
+-------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`shrink_height<class_PopupMenu_property_shrink_height>` | ``true`` |
|
||||
+-------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`shrink_width<class_PopupMenu_property_shrink_width>` | ``true`` |
|
||||
+-------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
|
||||
| :ref:`float<class_float>` | :ref:`submenu_popup_delay<class_PopupMenu_property_submenu_popup_delay>` | ``0.2`` |
|
||||
+-------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
|
||||
| :ref:`SystemMenus<enum_NativeMenu_SystemMenus>` | :ref:`system_menu_id<class_PopupMenu_property_system_menu_id>` | ``0`` |
|
||||
@@ -465,6 +469,40 @@ If ``true``, :ref:`MenuBar<class_MenuBar>` will use native menu when supported.
|
||||
|
||||
----
|
||||
|
||||
.. _class_PopupMenu_property_shrink_height:
|
||||
|
||||
.. rst-class:: classref-property
|
||||
|
||||
:ref:`bool<class_bool>` **shrink_height** = ``true`` :ref:`🔗<class_PopupMenu_property_shrink_height>`
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
- |void| **set_shrink_height**\ (\ value\: :ref:`bool<class_bool>`\ )
|
||||
- :ref:`bool<class_bool>` **get_shrink_height**\ (\ )
|
||||
|
||||
If ``true``, shrinks **PopupMenu** to minimum height when it's shown.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
----
|
||||
|
||||
.. _class_PopupMenu_property_shrink_width:
|
||||
|
||||
.. rst-class:: classref-property
|
||||
|
||||
:ref:`bool<class_bool>` **shrink_width** = ``true`` :ref:`🔗<class_PopupMenu_property_shrink_width>`
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
- |void| **set_shrink_width**\ (\ value\: :ref:`bool<class_bool>`\ )
|
||||
- :ref:`bool<class_bool>` **get_shrink_width**\ (\ )
|
||||
|
||||
If ``true``, shrinks **PopupMenu** to minimum width when it's shown.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
----
|
||||
|
||||
.. _class_PopupMenu_property_submenu_popup_delay:
|
||||
|
||||
.. rst-class:: classref-property
|
||||
|
||||
@@ -88,19 +88,23 @@ Theme Properties
|
||||
.. table::
|
||||
:widths: auto
|
||||
|
||||
+-----------------------------------+--------------------------------------------------------------------------------------------+-------+
|
||||
| :ref:`int<class_int>` | :ref:`scrollbar_h_separation<class_ScrollContainer_theme_constant_scrollbar_h_separation>` | ``0`` |
|
||||
+-----------------------------------+--------------------------------------------------------------------------------------------+-------+
|
||||
| :ref:`int<class_int>` | :ref:`scrollbar_v_separation<class_ScrollContainer_theme_constant_scrollbar_v_separation>` | ``0`` |
|
||||
+-----------------------------------+--------------------------------------------------------------------------------------------+-------+
|
||||
| :ref:`Texture2D<class_Texture2D>` | :ref:`scroll_hint_horizontal<class_ScrollContainer_theme_icon_scroll_hint_horizontal>` | |
|
||||
+-----------------------------------+--------------------------------------------------------------------------------------------+-------+
|
||||
| :ref:`Texture2D<class_Texture2D>` | :ref:`scroll_hint_vertical<class_ScrollContainer_theme_icon_scroll_hint_vertical>` | |
|
||||
+-----------------------------------+--------------------------------------------------------------------------------------------+-------+
|
||||
| :ref:`StyleBox<class_StyleBox>` | :ref:`focus<class_ScrollContainer_theme_style_focus>` | |
|
||||
+-----------------------------------+--------------------------------------------------------------------------------------------+-------+
|
||||
| :ref:`StyleBox<class_StyleBox>` | :ref:`panel<class_ScrollContainer_theme_style_panel>` | |
|
||||
+-----------------------------------+--------------------------------------------------------------------------------------------+-------+
|
||||
+-----------------------------------+-----------------------------------------------------------------------------------------------------+-----------------------+
|
||||
| :ref:`Color<class_Color>` | :ref:`scroll_hint_horizontal_color<class_ScrollContainer_theme_color_scroll_hint_horizontal_color>` | ``Color(0, 0, 0, 1)`` |
|
||||
+-----------------------------------+-----------------------------------------------------------------------------------------------------+-----------------------+
|
||||
| :ref:`Color<class_Color>` | :ref:`scroll_hint_vertical_color<class_ScrollContainer_theme_color_scroll_hint_vertical_color>` | ``Color(0, 0, 0, 1)`` |
|
||||
+-----------------------------------+-----------------------------------------------------------------------------------------------------+-----------------------+
|
||||
| :ref:`int<class_int>` | :ref:`scrollbar_h_separation<class_ScrollContainer_theme_constant_scrollbar_h_separation>` | ``0`` |
|
||||
+-----------------------------------+-----------------------------------------------------------------------------------------------------+-----------------------+
|
||||
| :ref:`int<class_int>` | :ref:`scrollbar_v_separation<class_ScrollContainer_theme_constant_scrollbar_v_separation>` | ``0`` |
|
||||
+-----------------------------------+-----------------------------------------------------------------------------------------------------+-----------------------+
|
||||
| :ref:`Texture2D<class_Texture2D>` | :ref:`scroll_hint_horizontal<class_ScrollContainer_theme_icon_scroll_hint_horizontal>` | |
|
||||
+-----------------------------------+-----------------------------------------------------------------------------------------------------+-----------------------+
|
||||
| :ref:`Texture2D<class_Texture2D>` | :ref:`scroll_hint_vertical<class_ScrollContainer_theme_icon_scroll_hint_vertical>` | |
|
||||
+-----------------------------------+-----------------------------------------------------------------------------------------------------+-----------------------+
|
||||
| :ref:`StyleBox<class_StyleBox>` | :ref:`focus<class_ScrollContainer_theme_style_focus>` | |
|
||||
+-----------------------------------+-----------------------------------------------------------------------------------------------------+-----------------------+
|
||||
| :ref:`StyleBox<class_StyleBox>` | :ref:`panel<class_ScrollContainer_theme_style_panel>` | |
|
||||
+-----------------------------------+-----------------------------------------------------------------------------------------------------+-----------------------+
|
||||
|
||||
.. rst-class:: classref-section-separator
|
||||
|
||||
@@ -502,6 +506,30 @@ Returns the vertical scrollbar :ref:`VScrollBar<class_VScrollBar>` of this **Scr
|
||||
Theme Property Descriptions
|
||||
---------------------------
|
||||
|
||||
.. _class_ScrollContainer_theme_color_scroll_hint_horizontal_color:
|
||||
|
||||
.. rst-class:: classref-themeproperty
|
||||
|
||||
:ref:`Color<class_Color>` **scroll_hint_horizontal_color** = ``Color(0, 0, 0, 1)`` :ref:`🔗<class_ScrollContainer_theme_color_scroll_hint_horizontal_color>`
|
||||
|
||||
:ref:`Color<class_Color>` used to modulate the :ref:`scroll_hint_horizontal<class_ScrollContainer_theme_icon_scroll_hint_horizontal>` texture.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
----
|
||||
|
||||
.. _class_ScrollContainer_theme_color_scroll_hint_vertical_color:
|
||||
|
||||
.. rst-class:: classref-themeproperty
|
||||
|
||||
:ref:`Color<class_Color>` **scroll_hint_vertical_color** = ``Color(0, 0, 0, 1)`` :ref:`🔗<class_ScrollContainer_theme_color_scroll_hint_vertical_color>`
|
||||
|
||||
:ref:`Color<class_Color>` used to modulate the :ref:`scroll_hint_vertical<class_ScrollContainer_theme_icon_scroll_hint_vertical>` texture.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
----
|
||||
|
||||
.. _class_ScrollContainer_theme_constant_scrollbar_h_separation:
|
||||
|
||||
.. rst-class:: classref-themeproperty
|
||||
|
||||
@@ -111,7 +111,7 @@ Changes the value set for this material of a uniform in the shader.
|
||||
|
||||
\ **Note:** ``param`` is case-sensitive and must match the name of the uniform in the code exactly (not the capitalized name in the inspector).
|
||||
|
||||
\ **Note:** Changes to the shader uniform will be effective on all instances using this **ShaderMaterial**. To prevent this, use per-instance uniforms with :ref:`GeometryInstance3D.set_instance_shader_parameter()<class_GeometryInstance3D_method_set_instance_shader_parameter>` or duplicate the **ShaderMaterial** resource using :ref:`Resource.duplicate()<class_Resource_method_duplicate>`. Per-instance uniforms allow for better shader reuse and are therefore faster, so they should be preferred over duplicating the **ShaderMaterial** when possible.
|
||||
\ **Note:** Changes to the shader uniform will be effective on all instances using this **ShaderMaterial**. To prevent this, use per-instance uniforms with :ref:`CanvasItem.set_instance_shader_parameter()<class_CanvasItem_method_set_instance_shader_parameter>`, :ref:`GeometryInstance3D.set_instance_shader_parameter()<class_GeometryInstance3D_method_set_instance_shader_parameter>` or duplicate the **ShaderMaterial** resource using :ref:`Resource.duplicate()<class_Resource_method_duplicate>`. Per-instance uniforms allow for better shader reuse and are therefore faster, so they should be preferred over duplicating the **ShaderMaterial** when possible.
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
|
||||
.. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
|
||||
|
||||
@@ -418,6 +418,8 @@ Override this virtual method to implement a custom skeleton modifier. You should
|
||||
|
||||
\ ``delta`` is passed from parent :ref:`Skeleton3D<class_Skeleton3D>`. See also :ref:`Skeleton3D.advance()<class_Skeleton3D_method_advance>`.
|
||||
|
||||
\ **Note:** This method may be called outside :ref:`Node._process()<class_Node_private_method__process>` and :ref:`Node._physics_process()<class_Node_private_method__physics_process>` with ``delta`` is ``0.0``, since the modification should be processed immediately after initialization of the :ref:`Skeleton3D<class_Skeleton3D>`.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
----
|
||||
|
||||
@@ -225,6 +225,8 @@ Theme Properties
|
||||
+-----------------------------------+------------------------------------------------------------------------------------------+-------------------------------------+
|
||||
| :ref:`Color<class_Color>` | :ref:`relationship_line_color<class_Tree_theme_color_relationship_line_color>` | ``Color(0.27, 0.27, 0.27, 1)`` |
|
||||
+-----------------------------------+------------------------------------------------------------------------------------------+-------------------------------------+
|
||||
| :ref:`Color<class_Color>` | :ref:`scroll_hint_color<class_Tree_theme_color_scroll_hint_color>` | ``Color(0, 0, 0, 1)`` |
|
||||
+-----------------------------------+------------------------------------------------------------------------------------------+-------------------------------------+
|
||||
| :ref:`Color<class_Color>` | :ref:`title_button_color<class_Tree_theme_color_title_button_color>` | ``Color(0.875, 0.875, 0.875, 1)`` |
|
||||
+-----------------------------------+------------------------------------------------------------------------------------------+-------------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`button_margin<class_Tree_theme_constant_button_margin>` | ``4`` |
|
||||
@@ -1628,6 +1630,18 @@ The default :ref:`Color<class_Color>` of the relationship lines.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Tree_theme_color_scroll_hint_color:
|
||||
|
||||
.. rst-class:: classref-themeproperty
|
||||
|
||||
:ref:`Color<class_Color>` **scroll_hint_color** = ``Color(0, 0, 0, 1)`` :ref:`🔗<class_Tree_theme_color_scroll_hint_color>`
|
||||
|
||||
:ref:`Color<class_Color>` used to modulate the :ref:`scroll_hint<class_Tree_theme_icon_scroll_hint>` texture.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
----
|
||||
|
||||
.. _class_Tree_theme_color_title_button_color:
|
||||
|
||||
.. rst-class:: classref-themeproperty
|
||||
|
||||
Reference in New Issue
Block a user