Explorar el Código

Document `[hint]` tag quote support in BBCode in RichTextLabel

Hugo Locurcio hace 2 meses
padre
commit
0dcc22ffec
Se han modificado 1 ficheros con 5 adiciones y 2 borrados
  1. 5 2
      tutorials/ui/bbcode_in_richtextlabel.rst

+ 5 - 2
tutorials/ui/bbcode_in_richtextlabel.rst

@@ -322,8 +322,11 @@ Reference
 
 
   * - | **hint**
   * - | **hint**
       | Creates a tooltip hint that is displayed when hovering the text with the mouse.
       | Creates a tooltip hint that is displayed when hovering the text with the mouse.
-        Tooltip text should not be quoted (quotes will appear as-is in the tooltip otherwise).
-    - | ``[hint={tooltip text displayed on hover}]{text}[/hint]``
+        While not required, it's recommended to put tooltip text between double or single quotes.
+        Note that it is not possible to escape quotes using ``\"`` or ``\'``. To use
+        single quotes for apostrophes in the hint string, you must use double quotes
+        to surround the string.
+    - | ``[hint="{tooltip text displayed on hover}"]{text}[/hint]``
 
 
   * - | **img**
   * - | **img**
       | Inserts an image from the ``{path}`` (can be any valid :ref:`class_Texture2D` resource).
       | Inserts an image from the ``{path}`` (can be any valid :ref:`class_Texture2D` resource).