Prechádzať zdrojové kódy

Sync classref with 3.2 branch

Rémi Verschelde 5 rokov pred
rodič
commit
a869b6926a

+ 2 - 0
classes/class_bakedlightmap.rst

@@ -18,6 +18,8 @@ Description
 
 Baked lightmaps are an alternative workflow for adding indirect (or baked) lighting to a scene. Unlike the :ref:`GIProbe<class_GIProbe>` approach, baked lightmaps work fine on low-end PCs and mobile devices as they consume almost no resources in run-time.
 
+**Note:** This node has many known bugs and will be `rewritten for Godot 4.0 <https://godotengine.org/article/godot-40-will-get-new-modernized-lightmapper>`_. See `GitHub issue #30929 <https://github.com/godotengine/godot/issues/30929>`_.
+
 Tutorials
 ---------
 

+ 4 - 4
classes/class_color.rst

@@ -95,8 +95,6 @@ Methods
 Constants
 ---------
 
-.. _class_Color_constant_gray:
-
 .. _class_Color_constant_aliceblue:
 
 .. _class_Color_constant_antiquewhite:
@@ -197,6 +195,8 @@ Constants
 
 .. _class_Color_constant_goldenrod:
 
+.. _class_Color_constant_gray:
+
 .. _class_Color_constant_green:
 
 .. _class_Color_constant_greenyellow:
@@ -387,8 +387,6 @@ Constants
 
 .. _class_Color_constant_yellowgreen:
 
-- **gray** = **Color( 0.75, 0.75, 0.75, 1 )** --- Gray color.
-
 - **aliceblue** = **Color( 0.94, 0.97, 1, 1 )** --- Alice blue color.
 
 - **antiquewhite** = **Color( 0.98, 0.92, 0.84, 1 )** --- Antique white color.
@@ -489,6 +487,8 @@ Constants
 
 - **goldenrod** = **Color( 0.85, 0.65, 0.13, 1 )** --- Goldenrod color.
 
+- **gray** = **Color( 0.75, 0.75, 0.75, 1 )** --- Gray color.
+
 - **green** = **Color( 0, 1, 0, 1 )** --- Green color.
 
 - **greenyellow** = **Color( 0.68, 1, 0.18, 1 )** --- Green yellow color.

+ 8 - 0
classes/class_image.rst

@@ -123,6 +123,8 @@ Methods
 +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
 | :ref:`Error<enum_@GlobalScope_Error>`     | :ref:`save_png<class_Image_method_save_png>` **(** :ref:`String<class_String>` path **)** const                                                                                                                                                                  |
 +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+| :ref:`PoolByteArray<class_PoolByteArray>` | :ref:`save_png_to_buffer<class_Image_method_save_png_to_buffer>` **(** **)** const                                                                                                                                                                               |
++-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
 | void                                      | :ref:`set_pixel<class_Image_method_set_pixel>` **(** :ref:`int<class_int>` x, :ref:`int<class_int>` y, :ref:`Color<class_Color>` color **)**                                                                                                                     |
 +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
 | void                                      | :ref:`set_pixelv<class_Image_method_set_pixelv>` **(** :ref:`Vector2<class_Vector2>` dst, :ref:`Color<class_Color>` color **)**                                                                                                                                  |
@@ -804,6 +806,12 @@ Saves the image as a PNG file to ``path``.
 
 ----
 
+.. _class_Image_method_save_png_to_buffer:
+
+- :ref:`PoolByteArray<class_PoolByteArray>` **save_png_to_buffer** **(** **)** const
+
+----
+
 .. _class_Image_method_set_pixel:
 
 - void **set_pixel** **(** :ref:`int<class_int>` x, :ref:`int<class_int>` y, :ref:`Color<class_Color>` color **)**

+ 2 - 2
classes/class_os.rst

@@ -40,7 +40,7 @@ Properties
 +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------+---------------------+
 | :ref:`ScreenOrientation<enum_OS_ScreenOrientation>` | :ref:`screen_orientation<class_OS_property_screen_orientation>`                                       | ``0``               |
 +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------+---------------------+
-| :ref:`String<class_String>`                         | :ref:`tablet_driver<class_OS_property_tablet_driver>`                                                 | ``"wintab"``        |
+| :ref:`String<class_String>`                         | :ref:`tablet_driver<class_OS_property_tablet_driver>`                                                 | ``""``              |
 +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------+---------------------+
 | :ref:`bool<class_bool>`                             | :ref:`vsync_enabled<class_OS_property_vsync_enabled>`                                                 | ``true``            |
 +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------+---------------------+
@@ -625,7 +625,7 @@ The current screen orientation.
 - :ref:`String<class_String>` **tablet_driver**
 
 +-----------+----------------------------------+
-| *Default* | ``"wintab"``                     |
+| *Default* | ``""``                           |
 +-----------+----------------------------------+
 | *Setter*  | set_current_tablet_driver(value) |
 +-----------+----------------------------------+

+ 4 - 4
classes/class_projectsettings.rst

@@ -210,7 +210,7 @@ Properties
 +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------+
 | :ref:`int<class_int>`                         | :ref:`display/window/size/width<class_ProjectSettings_property_display/window/size/width>`                                                                           | ``1024``                                                                                        |
 +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------+
-| :ref:`String<class_String>`                   | :ref:`display/window/tablet_driver<class_ProjectSettings_property_display/window/tablet_driver>`                                                                     | ``"wintab"``                                                                                    |
+| :ref:`String<class_String>`                   | :ref:`display/window/tablet_driver<class_ProjectSettings_property_display/window/tablet_driver>`                                                                     | ``""``                                                                                          |
 +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------+
 | :ref:`bool<class_bool>`                       | :ref:`display/window/vsync/use_vsync<class_ProjectSettings_property_display/window/vsync/use_vsync>`                                                                 | ``true``                                                                                        |
 +-----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------+
@@ -1821,9 +1821,9 @@ Sets the game's main viewport width. On desktop platforms, this is the default w
 
 - :ref:`String<class_String>` **display/window/tablet_driver**
 
-+-----------+--------------+
-| *Default* | ``"wintab"`` |
-+-----------+--------------+
++-----------+--------+
+| *Default* | ``""`` |
++-----------+--------+
 
 Specifies the tablet driver to use. If left empty, the default driver will be used.