mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 17:28:58 +00: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 @@ A ParallaxBackground uses one or more :ref:`ParallaxLayer<class_ParallaxLayer>`
|
||||
Properties
|
||||
----------
|
||||
|
||||
+-------------------------------+-----------------------------------------------------------------------------------------------+-----------------+
|
||||
| :ref:`int<class_int>` | layer | **O:** -100 |
|
||||
+-------------------------------+-----------------------------------------------------------------------------------------------+-----------------+
|
||||
| :ref:`Vector2<class_Vector2>` | :ref:`scroll_base_offset<class_ParallaxBackground_property_scroll_base_offset>` | Vector2( 0, 0 ) |
|
||||
+-------------------------------+-----------------------------------------------------------------------------------------------+-----------------+
|
||||
| :ref:`Vector2<class_Vector2>` | :ref:`scroll_base_scale<class_ParallaxBackground_property_scroll_base_scale>` | Vector2( 1, 1 ) |
|
||||
+-------------------------------+-----------------------------------------------------------------------------------------------+-----------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`scroll_ignore_camera_zoom<class_ParallaxBackground_property_scroll_ignore_camera_zoom>` | false |
|
||||
+-------------------------------+-----------------------------------------------------------------------------------------------+-----------------+
|
||||
| :ref:`Vector2<class_Vector2>` | :ref:`scroll_limit_begin<class_ParallaxBackground_property_scroll_limit_begin>` | Vector2( 0, 0 ) |
|
||||
+-------------------------------+-----------------------------------------------------------------------------------------------+-----------------+
|
||||
| :ref:`Vector2<class_Vector2>` | :ref:`scroll_limit_end<class_ParallaxBackground_property_scroll_limit_end>` | Vector2( 0, 0 ) |
|
||||
+-------------------------------+-----------------------------------------------------------------------------------------------+-----------------+
|
||||
| :ref:`Vector2<class_Vector2>` | :ref:`scroll_offset<class_ParallaxBackground_property_scroll_offset>` | Vector2( 0, 0 ) |
|
||||
+-------------------------------+-----------------------------------------------------------------------------------------------+-----------------+
|
||||
+-------------------------------+-----------------------------------------------------------------------------------------------+---------------------+
|
||||
| :ref:`int<class_int>` | layer | **O:** ``-100`` |
|
||||
+-------------------------------+-----------------------------------------------------------------------------------------------+---------------------+
|
||||
| :ref:`Vector2<class_Vector2>` | :ref:`scroll_base_offset<class_ParallaxBackground_property_scroll_base_offset>` | ``Vector2( 0, 0 )`` |
|
||||
+-------------------------------+-----------------------------------------------------------------------------------------------+---------------------+
|
||||
| :ref:`Vector2<class_Vector2>` | :ref:`scroll_base_scale<class_ParallaxBackground_property_scroll_base_scale>` | ``Vector2( 1, 1 )`` |
|
||||
+-------------------------------+-----------------------------------------------------------------------------------------------+---------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`scroll_ignore_camera_zoom<class_ParallaxBackground_property_scroll_ignore_camera_zoom>` | ``false`` |
|
||||
+-------------------------------+-----------------------------------------------------------------------------------------------+---------------------+
|
||||
| :ref:`Vector2<class_Vector2>` | :ref:`scroll_limit_begin<class_ParallaxBackground_property_scroll_limit_begin>` | ``Vector2( 0, 0 )`` |
|
||||
+-------------------------------+-----------------------------------------------------------------------------------------------+---------------------+
|
||||
| :ref:`Vector2<class_Vector2>` | :ref:`scroll_limit_end<class_ParallaxBackground_property_scroll_limit_end>` | ``Vector2( 0, 0 )`` |
|
||||
+-------------------------------+-----------------------------------------------------------------------------------------------+---------------------+
|
||||
| :ref:`Vector2<class_Vector2>` | :ref:`scroll_offset<class_ParallaxBackground_property_scroll_offset>` | ``Vector2( 0, 0 )`` |
|
||||
+-------------------------------+-----------------------------------------------------------------------------------------------+---------------------+
|
||||
|
||||
Property Descriptions
|
||||
---------------------
|
||||
@@ -45,7 +45,7 @@ Property Descriptions
|
||||
- :ref:`Vector2<class_Vector2>` **scroll_base_offset**
|
||||
|
||||
+-----------+-------------------------------+
|
||||
| *Default* | Vector2( 0, 0 ) |
|
||||
| *Default* | ``Vector2( 0, 0 )`` |
|
||||
+-----------+-------------------------------+
|
||||
| *Setter* | set_scroll_base_offset(value) |
|
||||
+-----------+-------------------------------+
|
||||
@@ -61,7 +61,7 @@ The base position offset for all :ref:`ParallaxLayer<class_ParallaxLayer>` child
|
||||
- :ref:`Vector2<class_Vector2>` **scroll_base_scale**
|
||||
|
||||
+-----------+------------------------------+
|
||||
| *Default* | Vector2( 1, 1 ) |
|
||||
| *Default* | ``Vector2( 1, 1 )`` |
|
||||
+-----------+------------------------------+
|
||||
| *Setter* | set_scroll_base_scale(value) |
|
||||
+-----------+------------------------------+
|
||||
@@ -77,7 +77,7 @@ The base motion scale for all :ref:`ParallaxLayer<class_ParallaxLayer>` children
|
||||
- :ref:`bool<class_bool>` **scroll_ignore_camera_zoom**
|
||||
|
||||
+-----------+-------------------------------+
|
||||
| *Default* | false |
|
||||
| *Default* | ``false`` |
|
||||
+-----------+-------------------------------+
|
||||
| *Setter* | set_ignore_camera_zoom(value) |
|
||||
+-----------+-------------------------------+
|
||||
@@ -93,7 +93,7 @@ If ``true``, elements in :ref:`ParallaxLayer<class_ParallaxLayer>` child aren't
|
||||
- :ref:`Vector2<class_Vector2>` **scroll_limit_begin**
|
||||
|
||||
+-----------+------------------------+
|
||||
| *Default* | Vector2( 0, 0 ) |
|
||||
| *Default* | ``Vector2( 0, 0 )`` |
|
||||
+-----------+------------------------+
|
||||
| *Setter* | set_limit_begin(value) |
|
||||
+-----------+------------------------+
|
||||
@@ -109,7 +109,7 @@ Top-left limits for scrolling to begin. If the camera is outside of this limit,
|
||||
- :ref:`Vector2<class_Vector2>` **scroll_limit_end**
|
||||
|
||||
+-----------+----------------------+
|
||||
| *Default* | Vector2( 0, 0 ) |
|
||||
| *Default* | ``Vector2( 0, 0 )`` |
|
||||
+-----------+----------------------+
|
||||
| *Setter* | set_limit_end(value) |
|
||||
+-----------+----------------------+
|
||||
@@ -125,7 +125,7 @@ Bottom-right limits for scrolling to end. If the camera is outside of this limit
|
||||
- :ref:`Vector2<class_Vector2>` **scroll_offset**
|
||||
|
||||
+-----------+--------------------------+
|
||||
| *Default* | Vector2( 0, 0 ) |
|
||||
| *Default* | ``Vector2( 0, 0 )`` |
|
||||
+-----------+--------------------------+
|
||||
| *Setter* | set_scroll_offset(value) |
|
||||
+-----------+--------------------------+
|
||||
|
||||
Reference in New Issue
Block a user