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:
@@ -26,15 +26,15 @@ Tutorials
|
||||
Properties
|
||||
----------
|
||||
|
||||
+-------------------------------+----------------------------------------------------------------+-----------------+
|
||||
| :ref:`float<class_float>` | :ref:`pressure<class_InputEventMouseMotion_property_pressure>` | 0.0 |
|
||||
+-------------------------------+----------------------------------------------------------------+-----------------+
|
||||
| :ref:`Vector2<class_Vector2>` | :ref:`relative<class_InputEventMouseMotion_property_relative>` | Vector2( 0, 0 ) |
|
||||
+-------------------------------+----------------------------------------------------------------+-----------------+
|
||||
| :ref:`Vector2<class_Vector2>` | :ref:`speed<class_InputEventMouseMotion_property_speed>` | Vector2( 0, 0 ) |
|
||||
+-------------------------------+----------------------------------------------------------------+-----------------+
|
||||
| :ref:`Vector2<class_Vector2>` | :ref:`tilt<class_InputEventMouseMotion_property_tilt>` | Vector2( 0, 0 ) |
|
||||
+-------------------------------+----------------------------------------------------------------+-----------------+
|
||||
+-------------------------------+----------------------------------------------------------------+---------------------+
|
||||
| :ref:`float<class_float>` | :ref:`pressure<class_InputEventMouseMotion_property_pressure>` | ``0.0`` |
|
||||
+-------------------------------+----------------------------------------------------------------+---------------------+
|
||||
| :ref:`Vector2<class_Vector2>` | :ref:`relative<class_InputEventMouseMotion_property_relative>` | ``Vector2( 0, 0 )`` |
|
||||
+-------------------------------+----------------------------------------------------------------+---------------------+
|
||||
| :ref:`Vector2<class_Vector2>` | :ref:`speed<class_InputEventMouseMotion_property_speed>` | ``Vector2( 0, 0 )`` |
|
||||
+-------------------------------+----------------------------------------------------------------+---------------------+
|
||||
| :ref:`Vector2<class_Vector2>` | :ref:`tilt<class_InputEventMouseMotion_property_tilt>` | ``Vector2( 0, 0 )`` |
|
||||
+-------------------------------+----------------------------------------------------------------+---------------------+
|
||||
|
||||
Property Descriptions
|
||||
---------------------
|
||||
@@ -44,7 +44,7 @@ Property Descriptions
|
||||
- :ref:`float<class_float>` **pressure**
|
||||
|
||||
+-----------+---------------------+
|
||||
| *Default* | 0.0 |
|
||||
| *Default* | ``0.0`` |
|
||||
+-----------+---------------------+
|
||||
| *Setter* | set_pressure(value) |
|
||||
+-----------+---------------------+
|
||||
@@ -60,7 +60,7 @@ Represents the pressure the user puts on the pen. Ranges from ``0.0`` to ``1.0``
|
||||
- :ref:`Vector2<class_Vector2>` **relative**
|
||||
|
||||
+-----------+---------------------+
|
||||
| *Default* | Vector2( 0, 0 ) |
|
||||
| *Default* | ``Vector2( 0, 0 )`` |
|
||||
+-----------+---------------------+
|
||||
| *Setter* | set_relative(value) |
|
||||
+-----------+---------------------+
|
||||
@@ -75,13 +75,13 @@ The mouse position relative to the previous position (position at the last frame
|
||||
|
||||
- :ref:`Vector2<class_Vector2>` **speed**
|
||||
|
||||
+-----------+------------------+
|
||||
| *Default* | Vector2( 0, 0 ) |
|
||||
+-----------+------------------+
|
||||
| *Setter* | set_speed(value) |
|
||||
+-----------+------------------+
|
||||
| *Getter* | get_speed() |
|
||||
+-----------+------------------+
|
||||
+-----------+---------------------+
|
||||
| *Default* | ``Vector2( 0, 0 )`` |
|
||||
+-----------+---------------------+
|
||||
| *Setter* | set_speed(value) |
|
||||
+-----------+---------------------+
|
||||
| *Getter* | get_speed() |
|
||||
+-----------+---------------------+
|
||||
|
||||
The mouse speed in pixels per second.
|
||||
|
||||
@@ -91,13 +91,13 @@ The mouse speed in pixels per second.
|
||||
|
||||
- :ref:`Vector2<class_Vector2>` **tilt**
|
||||
|
||||
+-----------+-----------------+
|
||||
| *Default* | Vector2( 0, 0 ) |
|
||||
+-----------+-----------------+
|
||||
| *Setter* | set_tilt(value) |
|
||||
+-----------+-----------------+
|
||||
| *Getter* | get_tilt() |
|
||||
+-----------+-----------------+
|
||||
+-----------+---------------------+
|
||||
| *Default* | ``Vector2( 0, 0 )`` |
|
||||
+-----------+---------------------+
|
||||
| *Setter* | set_tilt(value) |
|
||||
+-----------+---------------------+
|
||||
| *Getter* | get_tilt() |
|
||||
+-----------+---------------------+
|
||||
|
||||
Represents the angles of tilt of the pen. Positive X-coordinate value indicates a tilt to the right. Positive Y-coordinate value indicates a tilt toward the user. Ranges from ``-1.0`` to ``1.0`` for both axes.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user