mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
classref: Use code markup for default values/overrides
Sync with godotengine/godot#35357. Fixes #3071.
This commit is contained in:
@@ -21,21 +21,21 @@ Description
|
||||
Properties
|
||||
----------
|
||||
|
||||
+---------------------------+--------------------------------------------------------------------+---------------------+
|
||||
| :ref:`Color<class_Color>` | :ref:`color<class_ColorPicker_property_color>` | Color( 1, 1, 1, 1 ) |
|
||||
+---------------------------+--------------------------------------------------------------------+---------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`deferred_mode<class_ColorPicker_property_deferred_mode>` | false |
|
||||
+---------------------------+--------------------------------------------------------------------+---------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`edit_alpha<class_ColorPicker_property_edit_alpha>` | true |
|
||||
+---------------------------+--------------------------------------------------------------------+---------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`hsv_mode<class_ColorPicker_property_hsv_mode>` | false |
|
||||
+---------------------------+--------------------------------------------------------------------+---------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`presets_enabled<class_ColorPicker_property_presets_enabled>` | true |
|
||||
+---------------------------+--------------------------------------------------------------------+---------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`presets_visible<class_ColorPicker_property_presets_visible>` | true |
|
||||
+---------------------------+--------------------------------------------------------------------+---------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`raw_mode<class_ColorPicker_property_raw_mode>` | false |
|
||||
+---------------------------+--------------------------------------------------------------------+---------------------+
|
||||
+---------------------------+--------------------------------------------------------------------+-------------------------+
|
||||
| :ref:`Color<class_Color>` | :ref:`color<class_ColorPicker_property_color>` | ``Color( 1, 1, 1, 1 )`` |
|
||||
+---------------------------+--------------------------------------------------------------------+-------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`deferred_mode<class_ColorPicker_property_deferred_mode>` | ``false`` |
|
||||
+---------------------------+--------------------------------------------------------------------+-------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`edit_alpha<class_ColorPicker_property_edit_alpha>` | ``true`` |
|
||||
+---------------------------+--------------------------------------------------------------------+-------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`hsv_mode<class_ColorPicker_property_hsv_mode>` | ``false`` |
|
||||
+---------------------------+--------------------------------------------------------------------+-------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`presets_enabled<class_ColorPicker_property_presets_enabled>` | ``true`` |
|
||||
+---------------------------+--------------------------------------------------------------------+-------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`presets_visible<class_ColorPicker_property_presets_visible>` | ``true`` |
|
||||
+---------------------------+--------------------------------------------------------------------+-------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`raw_mode<class_ColorPicker_property_raw_mode>` | ``false`` |
|
||||
+---------------------------+--------------------------------------------------------------------+-------------------------+
|
||||
|
||||
Methods
|
||||
-------
|
||||
@@ -107,13 +107,13 @@ Property Descriptions
|
||||
|
||||
- :ref:`Color<class_Color>` **color**
|
||||
|
||||
+-----------+-----------------------+
|
||||
| *Default* | Color( 1, 1, 1, 1 ) |
|
||||
+-----------+-----------------------+
|
||||
| *Setter* | set_pick_color(value) |
|
||||
+-----------+-----------------------+
|
||||
| *Getter* | get_pick_color() |
|
||||
+-----------+-----------------------+
|
||||
+-----------+-------------------------+
|
||||
| *Default* | ``Color( 1, 1, 1, 1 )`` |
|
||||
+-----------+-------------------------+
|
||||
| *Setter* | set_pick_color(value) |
|
||||
+-----------+-------------------------+
|
||||
| *Getter* | get_pick_color() |
|
||||
+-----------+-------------------------+
|
||||
|
||||
The currently selected color.
|
||||
|
||||
@@ -124,7 +124,7 @@ The currently selected color.
|
||||
- :ref:`bool<class_bool>` **deferred_mode**
|
||||
|
||||
+-----------+--------------------------+
|
||||
| *Default* | false |
|
||||
| *Default* | ``false`` |
|
||||
+-----------+--------------------------+
|
||||
| *Setter* | set_deferred_mode(value) |
|
||||
+-----------+--------------------------+
|
||||
@@ -140,7 +140,7 @@ If ``true``, the color will apply only after the user releases the mouse button,
|
||||
- :ref:`bool<class_bool>` **edit_alpha**
|
||||
|
||||
+-----------+-----------------------+
|
||||
| *Default* | true |
|
||||
| *Default* | ``true`` |
|
||||
+-----------+-----------------------+
|
||||
| *Setter* | set_edit_alpha(value) |
|
||||
+-----------+-----------------------+
|
||||
@@ -156,7 +156,7 @@ If ``true``, shows an alpha channel slider (transparency).
|
||||
- :ref:`bool<class_bool>` **hsv_mode**
|
||||
|
||||
+-----------+---------------------+
|
||||
| *Default* | false |
|
||||
| *Default* | ``false`` |
|
||||
+-----------+---------------------+
|
||||
| *Setter* | set_hsv_mode(value) |
|
||||
+-----------+---------------------+
|
||||
@@ -174,7 +174,7 @@ If ``true``, allows editing the color with Hue/Saturation/Value sliders.
|
||||
- :ref:`bool<class_bool>` **presets_enabled**
|
||||
|
||||
+-----------+----------------------------+
|
||||
| *Default* | true |
|
||||
| *Default* | ``true`` |
|
||||
+-----------+----------------------------+
|
||||
| *Setter* | set_presets_enabled(value) |
|
||||
+-----------+----------------------------+
|
||||
@@ -190,7 +190,7 @@ If ``true``, the "add preset" button is enabled.
|
||||
- :ref:`bool<class_bool>` **presets_visible**
|
||||
|
||||
+-----------+----------------------------+
|
||||
| *Default* | true |
|
||||
| *Default* | ``true`` |
|
||||
+-----------+----------------------------+
|
||||
| *Setter* | set_presets_visible(value) |
|
||||
+-----------+----------------------------+
|
||||
@@ -206,7 +206,7 @@ If ``true``, saved color presets are visible.
|
||||
- :ref:`bool<class_bool>` **raw_mode**
|
||||
|
||||
+-----------+---------------------+
|
||||
| *Default* | false |
|
||||
| *Default* | ``false`` |
|
||||
+-----------+---------------------+
|
||||
| *Setter* | set_raw_mode(value) |
|
||||
+-----------+---------------------+
|
||||
|
||||
Reference in New Issue
Block a user