mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2025-12-31 09:49:22 +03:00
2684 lines
227 KiB
ReStructuredText
2684 lines
227 KiB
ReStructuredText
:github_url: hide
|
||
|
||
.. _class_RichTextLabel:
|
||
|
||
RichTextLabel
|
||
=============
|
||
|
||
**Hérite de :** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
||
|
||
Un contrôle pour afficher du texte qui peut contenir différents styles de police, images et formatage de base.
|
||
|
||
.. rst-class:: classref-introduction-group
|
||
|
||
Description
|
||
-----------
|
||
|
||
Un contrôle pour afficher du texte qui peut contenir des polices personnalisées, des images et un formatage de base. **RichTextLabel** gère ce contenu dans une pile interne de marqueurs. Il peut aussi s'adapter à une hauteur/largeur données.
|
||
|
||
\ **Note :** :ref:`newline()<class_RichTextLabel_method_newline>`, :ref:`push_paragraph()<class_RichTextLabel_method_push_paragraph>`, ``"\n"``, ``"\r\n"``, la balise ``p`` et les marqueurs d'alignement commencent un nouveau paragraphe. Chaque paragraphe est traité indépendamment, dans son propre contexte BiDi. Si vous voulez forcer le retour à la ligne dans un paragraphe, n'importe quelle caractère de fin de ligne peut être utilisé, comme par exemple Saut de page (U+000C), Fin de ligne (U+0085), ou le Séparateur de lignes (U+2028).
|
||
|
||
\ **Note :** Les assignations à :ref:`text<class_RichTextLabel_property_text>` effacent la pile des balises et la reconstruit à partir du contenu de la propriété. Chaque modification faite à :ref:`text<class_RichTextLabel_property_text>` effacera les modifications précédentes faites depuis une autre source manuelle comme :ref:`append_text()<class_RichTextLabel_method_append_text>` et les méthodes ``push_*`` / :ref:`pop()<class_RichTextLabel_method_pop>`.
|
||
|
||
\ **Note :** RichTextLabel ne supporte pas les balises BBCode intriquées. Par exemple, au lieu d'utiliser ``[b]bold[i]bold italic[/b]italic[/i]``, utilisez ``[b]bold[i]bold italic[/i][/b][i]italic[/i]``.
|
||
|
||
\ **Note :** Les méthodes ``push_*/pop_*`` ne modifient pas le BBCode.
|
||
|
||
\ **Note :** Tant que :ref:`bbcode_enabled<class_RichTextLabel_property_bbcode_enabled>` est activé, les balises d'alignement tels que ``[center]`` prendront la priorité sur le paramètre :ref:`horizontal_alignment<class_RichTextLabel_property_horizontal_alignment>` qui détermine l'alignement de texte par défaut.
|
||
|
||
.. rst-class:: classref-introduction-group
|
||
|
||
Tutoriels
|
||
------------------
|
||
|
||
- :doc:`BBCode dans RichTextLabel <../tutorials/ui/bbcode_in_richtextlabel>`
|
||
|
||
- `Démo RichTextLabel avec du BBCode <https://godotengine.org/asset-library/asset/2774>`__
|
||
|
||
- `Démo de test de système d'exploitation <https://godotengine.org/asset-library/asset/2789>`__
|
||
|
||
.. rst-class:: classref-reftable-group
|
||
|
||
Propriétés
|
||
--------------------
|
||
|
||
.. table::
|
||
:widths: auto
|
||
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`AutowrapMode<enum_TextServer_AutowrapMode>` | :ref:`autowrap_mode<class_RichTextLabel_property_autowrap_mode>` | ``3`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| |bitfield|\[:ref:`LineBreakFlag<enum_TextServer_LineBreakFlag>`\] | :ref:`autowrap_trim_flags<class_RichTextLabel_property_autowrap_trim_flags>` | ``192`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`bbcode_enabled<class_RichTextLabel_property_bbcode_enabled>` | ``false`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | clip_contents | ``true`` (overrides :ref:`Control<class_Control_property_clip_contents>`) |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`context_menu_enabled<class_RichTextLabel_property_context_menu_enabled>` | ``false`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`Array<class_Array>` | :ref:`custom_effects<class_RichTextLabel_property_custom_effects>` | ``[]`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`deselect_on_focus_loss_enabled<class_RichTextLabel_property_deselect_on_focus_loss_enabled>` | ``true`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`drag_and_drop_selection_enabled<class_RichTextLabel_property_drag_and_drop_selection_enabled>` | ``true`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`fit_content<class_RichTextLabel_property_fit_content>` | ``false`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`FocusMode<enum_Control_FocusMode>` | focus_mode | ``3`` (overrides :ref:`Control<class_Control_property_focus_mode>`) |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`hint_underlined<class_RichTextLabel_property_hint_underlined>` | ``true`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>` | :ref:`horizontal_alignment<class_RichTextLabel_property_horizontal_alignment>` | ``0`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| |bitfield|\[:ref:`JustificationFlag<enum_TextServer_JustificationFlag>`\] | :ref:`justification_flags<class_RichTextLabel_property_justification_flags>` | ``163`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`String<class_String>` | :ref:`language<class_RichTextLabel_property_language>` | ``""`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`meta_underlined<class_RichTextLabel_property_meta_underlined>` | ``true`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`progress_bar_delay<class_RichTextLabel_property_progress_bar_delay>` | ``1000`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`scroll_active<class_RichTextLabel_property_scroll_active>` | ``true`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`scroll_following<class_RichTextLabel_property_scroll_following>` | ``false`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`scroll_following_visible_characters<class_RichTextLabel_property_scroll_following_visible_characters>` | ``false`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`selection_enabled<class_RichTextLabel_property_selection_enabled>` | ``false`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`shortcut_keys_enabled<class_RichTextLabel_property_shortcut_keys_enabled>` | ``true`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`StructuredTextParser<enum_TextServer_StructuredTextParser>` | :ref:`structured_text_bidi_override<class_RichTextLabel_property_structured_text_bidi_override>` | ``0`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`Array<class_Array>` | :ref:`structured_text_bidi_override_options<class_RichTextLabel_property_structured_text_bidi_override_options>` | ``[]`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`tab_size<class_RichTextLabel_property_tab_size>` | ``4`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`PackedFloat32Array<class_PackedFloat32Array>` | :ref:`tab_stops<class_RichTextLabel_property_tab_stops>` | ``PackedFloat32Array()`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`String<class_String>` | :ref:`text<class_RichTextLabel_property_text>` | ``""`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`TextDirection<enum_Control_TextDirection>` | :ref:`text_direction<class_RichTextLabel_property_text_direction>` | ``0`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`threaded<class_RichTextLabel_property_threaded>` | ``false`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`VerticalAlignment<enum_@GlobalScope_VerticalAlignment>` | :ref:`vertical_alignment<class_RichTextLabel_property_vertical_alignment>` | ``0`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`visible_characters<class_RichTextLabel_property_visible_characters>` | ``-1`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`VisibleCharactersBehavior<enum_TextServer_VisibleCharactersBehavior>` | :ref:`visible_characters_behavior<class_RichTextLabel_property_visible_characters_behavior>` | ``0`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`float<class_float>` | :ref:`visible_ratio<class_RichTextLabel_property_visible_ratio>` | ``1.0`` |
|
||
+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
|
||
|
||
.. rst-class:: classref-reftable-group
|
||
|
||
Méthodes
|
||
----------------
|
||
|
||
.. table::
|
||
:widths: auto
|
||
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`add_hr<class_RichTextLabel_method_add_hr>`\ (\ width\: :ref:`int<class_int>` = 90, height\: :ref:`int<class_int>` = 2, color\: :ref:`Color<class_Color>` = Color(1, 1, 1, 1), alignment\: :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>` = 1, width_in_percent\: :ref:`bool<class_bool>` = true, height_in_percent\: :ref:`bool<class_bool>` = false\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`add_image<class_RichTextLabel_method_add_image>`\ (\ image\: :ref:`Texture2D<class_Texture2D>`, width\: :ref:`int<class_int>` = 0, height\: :ref:`int<class_int>` = 0, color\: :ref:`Color<class_Color>` = Color(1, 1, 1, 1), inline_align\: :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` = 5, region\: :ref:`Rect2<class_Rect2>` = Rect2(0, 0, 0, 0), key\: :ref:`Variant<class_Variant>` = null, pad\: :ref:`bool<class_bool>` = false, tooltip\: :ref:`String<class_String>` = "", width_in_percent\: :ref:`bool<class_bool>` = false, height_in_percent\: :ref:`bool<class_bool>` = false, alt_text\: :ref:`String<class_String>` = ""\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`add_text<class_RichTextLabel_method_add_text>`\ (\ text\: :ref:`String<class_String>`\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`append_text<class_RichTextLabel_method_append_text>`\ (\ bbcode\: :ref:`String<class_String>`\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`clear<class_RichTextLabel_method_clear>`\ (\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`deselect<class_RichTextLabel_method_deselect>`\ (\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_character_line<class_RichTextLabel_method_get_character_line>`\ (\ character\: :ref:`int<class_int>`\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_character_paragraph<class_RichTextLabel_method_get_character_paragraph>`\ (\ character\: :ref:`int<class_int>`\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_content_height<class_RichTextLabel_method_get_content_height>`\ (\ ) |const| |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_content_width<class_RichTextLabel_method_get_content_width>`\ (\ ) |const| |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_line_count<class_RichTextLabel_method_get_line_count>`\ (\ ) |const| |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_line_height<class_RichTextLabel_method_get_line_height>`\ (\ line\: :ref:`int<class_int>`\ ) |const| |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`float<class_float>` | :ref:`get_line_offset<class_RichTextLabel_method_get_line_offset>`\ (\ line\: :ref:`int<class_int>`\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`Vector2i<class_Vector2i>` | :ref:`get_line_range<class_RichTextLabel_method_get_line_range>`\ (\ line\: :ref:`int<class_int>`\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_line_width<class_RichTextLabel_method_get_line_width>`\ (\ line\: :ref:`int<class_int>`\ ) |const| |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`PopupMenu<class_PopupMenu>` | :ref:`get_menu<class_RichTextLabel_method_get_menu>`\ (\ ) |const| |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_paragraph_count<class_RichTextLabel_method_get_paragraph_count>`\ (\ ) |const| |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`float<class_float>` | :ref:`get_paragraph_offset<class_RichTextLabel_method_get_paragraph_offset>`\ (\ paragraph\: :ref:`int<class_int>`\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`String<class_String>` | :ref:`get_parsed_text<class_RichTextLabel_method_get_parsed_text>`\ (\ ) |const| |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`String<class_String>` | :ref:`get_selected_text<class_RichTextLabel_method_get_selected_text>`\ (\ ) |const| |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_selection_from<class_RichTextLabel_method_get_selection_from>`\ (\ ) |const| |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`float<class_float>` | :ref:`get_selection_line_offset<class_RichTextLabel_method_get_selection_line_offset>`\ (\ ) |const| |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_selection_to<class_RichTextLabel_method_get_selection_to>`\ (\ ) |const| |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_total_character_count<class_RichTextLabel_method_get_total_character_count>`\ (\ ) |const| |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`VScrollBar<class_VScrollBar>` | :ref:`get_v_scroll_bar<class_RichTextLabel_method_get_v_scroll_bar>`\ (\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`Rect2i<class_Rect2i>` | :ref:`get_visible_content_rect<class_RichTextLabel_method_get_visible_content_rect>`\ (\ ) |const| |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_visible_line_count<class_RichTextLabel_method_get_visible_line_count>`\ (\ ) |const| |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`get_visible_paragraph_count<class_RichTextLabel_method_get_visible_paragraph_count>`\ (\ ) |const| |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`install_effect<class_RichTextLabel_method_install_effect>`\ (\ effect\: :ref:`Variant<class_Variant>`\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`invalidate_paragraph<class_RichTextLabel_method_invalidate_paragraph>`\ (\ paragraph\: :ref:`int<class_int>`\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`is_finished<class_RichTextLabel_method_is_finished>`\ (\ ) |const| |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`is_menu_visible<class_RichTextLabel_method_is_menu_visible>`\ (\ ) |const| |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`is_ready<class_RichTextLabel_method_is_ready>`\ (\ ) |const| |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`menu_option<class_RichTextLabel_method_menu_option>`\ (\ option\: :ref:`int<class_int>`\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`newline<class_RichTextLabel_method_newline>`\ (\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`parse_bbcode<class_RichTextLabel_method_parse_bbcode>`\ (\ bbcode\: :ref:`String<class_String>`\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`Dictionary<class_Dictionary>` | :ref:`parse_expressions_for_values<class_RichTextLabel_method_parse_expressions_for_values>`\ (\ expressions\: :ref:`PackedStringArray<class_PackedStringArray>`\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`pop<class_RichTextLabel_method_pop>`\ (\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`pop_all<class_RichTextLabel_method_pop_all>`\ (\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`pop_context<class_RichTextLabel_method_pop_context>`\ (\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`push_bgcolor<class_RichTextLabel_method_push_bgcolor>`\ (\ bgcolor\: :ref:`Color<class_Color>`\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`push_bold<class_RichTextLabel_method_push_bold>`\ (\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`push_bold_italics<class_RichTextLabel_method_push_bold_italics>`\ (\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`push_cell<class_RichTextLabel_method_push_cell>`\ (\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`push_color<class_RichTextLabel_method_push_color>`\ (\ color\: :ref:`Color<class_Color>`\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`push_context<class_RichTextLabel_method_push_context>`\ (\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`push_customfx<class_RichTextLabel_method_push_customfx>`\ (\ effect\: :ref:`RichTextEffect<class_RichTextEffect>`, env\: :ref:`Dictionary<class_Dictionary>`\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`push_dropcap<class_RichTextLabel_method_push_dropcap>`\ (\ string\: :ref:`String<class_String>`, font\: :ref:`Font<class_Font>`, size\: :ref:`int<class_int>`, dropcap_margins\: :ref:`Rect2<class_Rect2>` = Rect2(0, 0, 0, 0), color\: :ref:`Color<class_Color>` = Color(1, 1, 1, 1), outline_size\: :ref:`int<class_int>` = 0, outline_color\: :ref:`Color<class_Color>` = Color(0, 0, 0, 0)\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`push_fgcolor<class_RichTextLabel_method_push_fgcolor>`\ (\ fgcolor\: :ref:`Color<class_Color>`\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`push_font<class_RichTextLabel_method_push_font>`\ (\ font\: :ref:`Font<class_Font>`, font_size\: :ref:`int<class_int>` = 0\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`push_font_size<class_RichTextLabel_method_push_font_size>`\ (\ font_size\: :ref:`int<class_int>`\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`push_hint<class_RichTextLabel_method_push_hint>`\ (\ description\: :ref:`String<class_String>`\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`push_indent<class_RichTextLabel_method_push_indent>`\ (\ level\: :ref:`int<class_int>`\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`push_italics<class_RichTextLabel_method_push_italics>`\ (\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`push_language<class_RichTextLabel_method_push_language>`\ (\ language\: :ref:`String<class_String>`\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`push_list<class_RichTextLabel_method_push_list>`\ (\ level\: :ref:`int<class_int>`, type\: :ref:`ListType<enum_RichTextLabel_ListType>`, capitalize\: :ref:`bool<class_bool>`, bullet\: :ref:`String<class_String>` = "•"\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`push_meta<class_RichTextLabel_method_push_meta>`\ (\ data\: :ref:`Variant<class_Variant>`, underline_mode\: :ref:`MetaUnderline<enum_RichTextLabel_MetaUnderline>` = 1, tooltip\: :ref:`String<class_String>` = ""\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`push_mono<class_RichTextLabel_method_push_mono>`\ (\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`push_normal<class_RichTextLabel_method_push_normal>`\ (\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`push_outline_color<class_RichTextLabel_method_push_outline_color>`\ (\ color\: :ref:`Color<class_Color>`\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`push_outline_size<class_RichTextLabel_method_push_outline_size>`\ (\ outline_size\: :ref:`int<class_int>`\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`push_paragraph<class_RichTextLabel_method_push_paragraph>`\ (\ alignment\: :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>`, base_direction\: :ref:`TextDirection<enum_Control_TextDirection>` = 0, language\: :ref:`String<class_String>` = "", st_parser\: :ref:`StructuredTextParser<enum_TextServer_StructuredTextParser>` = 0, justification_flags\: |bitfield|\[:ref:`JustificationFlag<enum_TextServer_JustificationFlag>`\] = 163, tab_stops\: :ref:`PackedFloat32Array<class_PackedFloat32Array>` = PackedFloat32Array()\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`push_strikethrough<class_RichTextLabel_method_push_strikethrough>`\ (\ color\: :ref:`Color<class_Color>` = Color(0, 0, 0, 0)\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`push_table<class_RichTextLabel_method_push_table>`\ (\ columns\: :ref:`int<class_int>`, inline_align\: :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` = 0, align_to_row\: :ref:`int<class_int>` = -1, name\: :ref:`String<class_String>` = ""\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`push_underline<class_RichTextLabel_method_push_underline>`\ (\ color\: :ref:`Color<class_Color>` = Color(0, 0, 0, 0)\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`reload_effects<class_RichTextLabel_method_reload_effects>`\ (\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`remove_paragraph<class_RichTextLabel_method_remove_paragraph>`\ (\ paragraph\: :ref:`int<class_int>`, no_invalidate\: :ref:`bool<class_bool>` = false\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`scroll_to_line<class_RichTextLabel_method_scroll_to_line>`\ (\ line\: :ref:`int<class_int>`\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`scroll_to_paragraph<class_RichTextLabel_method_scroll_to_paragraph>`\ (\ paragraph\: :ref:`int<class_int>`\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`scroll_to_selection<class_RichTextLabel_method_scroll_to_selection>`\ (\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`select_all<class_RichTextLabel_method_select_all>`\ (\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`set_cell_border_color<class_RichTextLabel_method_set_cell_border_color>`\ (\ color\: :ref:`Color<class_Color>`\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`set_cell_padding<class_RichTextLabel_method_set_cell_padding>`\ (\ padding\: :ref:`Rect2<class_Rect2>`\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`set_cell_row_background_color<class_RichTextLabel_method_set_cell_row_background_color>`\ (\ odd_row_bg\: :ref:`Color<class_Color>`, even_row_bg\: :ref:`Color<class_Color>`\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`set_cell_size_override<class_RichTextLabel_method_set_cell_size_override>`\ (\ min_size\: :ref:`Vector2<class_Vector2>`, max_size\: :ref:`Vector2<class_Vector2>`\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`set_table_column_expand<class_RichTextLabel_method_set_table_column_expand>`\ (\ column\: :ref:`int<class_int>`, expand\: :ref:`bool<class_bool>`, ratio\: :ref:`int<class_int>` = 1, shrink\: :ref:`bool<class_bool>` = true\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`set_table_column_name<class_RichTextLabel_method_set_table_column_name>`\ (\ column\: :ref:`int<class_int>`, name\: :ref:`String<class_String>`\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
| |void| | :ref:`update_image<class_RichTextLabel_method_update_image>`\ (\ key\: :ref:`Variant<class_Variant>`, mask\: |bitfield|\[:ref:`ImageUpdateMask<enum_RichTextLabel_ImageUpdateMask>`\], image\: :ref:`Texture2D<class_Texture2D>`, width\: :ref:`int<class_int>` = 0, height\: :ref:`int<class_int>` = 0, color\: :ref:`Color<class_Color>` = Color(1, 1, 1, 1), inline_align\: :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` = 5, region\: :ref:`Rect2<class_Rect2>` = Rect2(0, 0, 0, 0), pad\: :ref:`bool<class_bool>` = false, tooltip\: :ref:`String<class_String>` = "", width_in_percent\: :ref:`bool<class_bool>` = false, height_in_percent\: :ref:`bool<class_bool>` = false\ ) |
|
||
+-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||
|
||
.. rst-class:: classref-reftable-group
|
||
|
||
Propriétés du thème
|
||
--------------------------------------
|
||
|
||
.. table::
|
||
:widths: auto
|
||
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`Color<class_Color>` | :ref:`default_color<class_RichTextLabel_theme_color_default_color>` | ``Color(1, 1, 1, 1)`` |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`Color<class_Color>` | :ref:`font_outline_color<class_RichTextLabel_theme_color_font_outline_color>` | ``Color(0, 0, 0, 1)`` |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`Color<class_Color>` | :ref:`font_selected_color<class_RichTextLabel_theme_color_font_selected_color>` | ``Color(0, 0, 0, 0)`` |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`Color<class_Color>` | :ref:`font_shadow_color<class_RichTextLabel_theme_color_font_shadow_color>` | ``Color(0, 0, 0, 0)`` |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`Color<class_Color>` | :ref:`selection_color<class_RichTextLabel_theme_color_selection_color>` | ``Color(0.1, 0.1, 1, 0.8)`` |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`Color<class_Color>` | :ref:`table_border<class_RichTextLabel_theme_color_table_border>` | ``Color(0, 0, 0, 0)`` |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`Color<class_Color>` | :ref:`table_even_row_bg<class_RichTextLabel_theme_color_table_even_row_bg>` | ``Color(0, 0, 0, 0)`` |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`Color<class_Color>` | :ref:`table_odd_row_bg<class_RichTextLabel_theme_color_table_odd_row_bg>` | ``Color(0, 0, 0, 0)`` |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`int<class_int>` | :ref:`line_separation<class_RichTextLabel_theme_constant_line_separation>` | ``0`` |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`int<class_int>` | :ref:`outline_size<class_RichTextLabel_theme_constant_outline_size>` | ``0`` |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`int<class_int>` | :ref:`paragraph_separation<class_RichTextLabel_theme_constant_paragraph_separation>` | ``0`` |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`int<class_int>` | :ref:`shadow_offset_x<class_RichTextLabel_theme_constant_shadow_offset_x>` | ``1`` |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`int<class_int>` | :ref:`shadow_offset_y<class_RichTextLabel_theme_constant_shadow_offset_y>` | ``1`` |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`int<class_int>` | :ref:`shadow_outline_size<class_RichTextLabel_theme_constant_shadow_outline_size>` | ``1`` |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`int<class_int>` | :ref:`strikethrough_alpha<class_RichTextLabel_theme_constant_strikethrough_alpha>` | ``50`` |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`int<class_int>` | :ref:`table_h_separation<class_RichTextLabel_theme_constant_table_h_separation>` | ``3`` |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`int<class_int>` | :ref:`table_v_separation<class_RichTextLabel_theme_constant_table_v_separation>` | ``3`` |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`int<class_int>` | :ref:`text_highlight_h_padding<class_RichTextLabel_theme_constant_text_highlight_h_padding>` | ``3`` |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`int<class_int>` | :ref:`text_highlight_v_padding<class_RichTextLabel_theme_constant_text_highlight_v_padding>` | ``3`` |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`int<class_int>` | :ref:`underline_alpha<class_RichTextLabel_theme_constant_underline_alpha>` | ``50`` |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`Font<class_Font>` | :ref:`bold_font<class_RichTextLabel_theme_font_bold_font>` | |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`Font<class_Font>` | :ref:`bold_italics_font<class_RichTextLabel_theme_font_bold_italics_font>` | |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`Font<class_Font>` | :ref:`italics_font<class_RichTextLabel_theme_font_italics_font>` | |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`Font<class_Font>` | :ref:`mono_font<class_RichTextLabel_theme_font_mono_font>` | |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`Font<class_Font>` | :ref:`normal_font<class_RichTextLabel_theme_font_normal_font>` | |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`int<class_int>` | :ref:`bold_font_size<class_RichTextLabel_theme_font_size_bold_font_size>` | |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`int<class_int>` | :ref:`bold_italics_font_size<class_RichTextLabel_theme_font_size_bold_italics_font_size>` | |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`int<class_int>` | :ref:`italics_font_size<class_RichTextLabel_theme_font_size_italics_font_size>` | |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`int<class_int>` | :ref:`mono_font_size<class_RichTextLabel_theme_font_size_mono_font_size>` | |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`int<class_int>` | :ref:`normal_font_size<class_RichTextLabel_theme_font_size_normal_font_size>` | |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`Texture2D<class_Texture2D>` | :ref:`horizontal_rule<class_RichTextLabel_theme_icon_horizontal_rule>` | |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`StyleBox<class_StyleBox>` | :ref:`focus<class_RichTextLabel_theme_style_focus>` | |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
| :ref:`StyleBox<class_StyleBox>` | :ref:`normal<class_RichTextLabel_theme_style_normal>` | |
|
||
+-----------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
|
||
|
||
.. rst-class:: classref-section-separator
|
||
|
||
----
|
||
|
||
.. rst-class:: classref-descriptions-group
|
||
|
||
Signaux
|
||
--------------
|
||
|
||
.. _class_RichTextLabel_signal_finished:
|
||
|
||
.. rst-class:: classref-signal
|
||
|
||
**finished**\ (\ ) :ref:`🔗<class_RichTextLabel_signal_finished>`
|
||
|
||
Déclenché lorsque le document est entièrement chargé.
|
||
|
||
\ **Note :** Cela peut se produire avant que le texte ne soit traité pour le dessin. Les valeurs de défilement peuvent ne pas être valides jusqu'à ce que le document soit dessiné pour la première fois après ce signal.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_signal_meta_clicked:
|
||
|
||
.. rst-class:: classref-signal
|
||
|
||
**meta_clicked**\ (\ meta\: :ref:`Variant<class_Variant>`\ ) :ref:`🔗<class_RichTextLabel_signal_meta_clicked>`
|
||
|
||
Déclenché lorsque l'utilisateur clique sur du contenu entre des méta-balises (URL). Si le méta est défini en BBCode, par exemple ``[url={"clé": "valeur"}]Texte[/url]``, alors le paramètre pour ce signal sera toujours un type :ref:`String<class_String>`. Si un type particulier ou un objet est souhaité, la méthode :ref:`push_meta()<class_RichTextLabel_method_push_meta>` doit être utilisée pour insérer manuellement les données dans la pile des balises. Alternativement, vous pouvez convertir l'entrée :ref:`String<class_String>` au type souhaité en fonction de son contenu (comme appeler :ref:`JSON.parse()<class_JSON_method_parse>` dessus).
|
||
|
||
Par exemple, la méthode suivante peut être connectée à :ref:`meta_clicked<class_RichTextLabel_signal_meta_clicked>` pour ouvrir des URLs cliquées en utilisant le navigateur Web par défaut de l'utilisateur :
|
||
|
||
|
||
.. tabs::
|
||
|
||
.. code-tab:: gdscript
|
||
|
||
# Cela suppose que le signal `meta_clicked` de RichTextLabel a été connecté à
|
||
# la fonction ci-dessous en utilisant le dialogue de connexion de signal.
|
||
func _richtextlabel_on_meta_clicked(meta):
|
||
# `meta` est de type Variant, alors convertissez-le en un String pour éviter des erreurs de script durant l'exécution.
|
||
OS.shell_open(str(meta))
|
||
|
||
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_signal_meta_hover_ended:
|
||
|
||
.. rst-class:: classref-signal
|
||
|
||
**meta_hover_ended**\ (\ meta\: :ref:`Variant<class_Variant>`\ ) :ref:`🔗<class_RichTextLabel_signal_meta_hover_ended>`
|
||
|
||
Se déclenche lorsque la souris sort d'une méta-balise.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_signal_meta_hover_started:
|
||
|
||
.. rst-class:: classref-signal
|
||
|
||
**meta_hover_started**\ (\ meta\: :ref:`Variant<class_Variant>`\ ) :ref:`🔗<class_RichTextLabel_signal_meta_hover_started>`
|
||
|
||
Se déclenche lorsque la souris entre dans une méta-balise.
|
||
|
||
.. rst-class:: classref-section-separator
|
||
|
||
----
|
||
|
||
.. rst-class:: classref-descriptions-group
|
||
|
||
Énumérations
|
||
------------------------
|
||
|
||
.. _enum_RichTextLabel_ListType:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **ListType**: :ref:`🔗<enum_RichTextLabel_ListType>`
|
||
|
||
.. _class_RichTextLabel_constant_LIST_NUMBERS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`ListType<enum_RichTextLabel_ListType>` **LIST_NUMBERS** = ``0``
|
||
|
||
Chaque élément de la liste a un chiffre comme marqueur.
|
||
|
||
.. _class_RichTextLabel_constant_LIST_LETTERS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`ListType<enum_RichTextLabel_ListType>` **LIST_LETTERS** = ``1``
|
||
|
||
Chaque élément de la liste a une lettre comme marqueur.
|
||
|
||
.. _class_RichTextLabel_constant_LIST_ROMAN:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`ListType<enum_RichTextLabel_ListType>` **LIST_ROMAN** = ``2``
|
||
|
||
Chaque élément de la liste a un nombre romain comme marqueur.
|
||
|
||
.. _class_RichTextLabel_constant_LIST_DOTS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`ListType<enum_RichTextLabel_ListType>` **LIST_DOTS** = ``3``
|
||
|
||
Chaque élément de la liste a un cercle rempli comme marqueur.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RichTextLabel_MenuItems:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **MenuItems**: :ref:`🔗<enum_RichTextLabel_MenuItems>`
|
||
|
||
.. _class_RichTextLabel_constant_MENU_COPY:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`MenuItems<enum_RichTextLabel_MenuItems>` **MENU_COPY** = ``0``
|
||
|
||
Copie le texte sélectionné.
|
||
|
||
.. _class_RichTextLabel_constant_MENU_SELECT_ALL:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`MenuItems<enum_RichTextLabel_MenuItems>` **MENU_SELECT_ALL** = ``1``
|
||
|
||
Sélectionne le texte **RichTextLabel** entier.
|
||
|
||
.. _class_RichTextLabel_constant_MENU_MAX:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`MenuItems<enum_RichTextLabel_MenuItems>` **MENU_MAX** = ``2``
|
||
|
||
Représente la taille de l'énumération :ref:`MenuItems<enum_RichTextLabel_MenuItems>`.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RichTextLabel_MetaUnderline:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
enum **MetaUnderline**: :ref:`🔗<enum_RichTextLabel_MetaUnderline>`
|
||
|
||
.. _class_RichTextLabel_constant_META_UNDERLINE_NEVER:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`MetaUnderline<enum_RichTextLabel_MetaUnderline>` **META_UNDERLINE_NEVER** = ``0``
|
||
|
||
Les méta-balises ne sont pas soulignées, même si :ref:`meta_underlined<class_RichTextLabel_property_meta_underlined>` vaut ``true``.
|
||
|
||
.. _class_RichTextLabel_constant_META_UNDERLINE_ALWAYS:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`MetaUnderline<enum_RichTextLabel_MetaUnderline>` **META_UNDERLINE_ALWAYS** = ``1``
|
||
|
||
Si :ref:`meta_underlined<class_RichTextLabel_property_meta_underlined>` vaut ``true``, les méta-balises sont toujours soulignées.
|
||
|
||
.. _class_RichTextLabel_constant_META_UNDERLINE_ON_HOVER:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`MetaUnderline<enum_RichTextLabel_MetaUnderline>` **META_UNDERLINE_ON_HOVER** = ``2``
|
||
|
||
Si :ref:`meta_underlined<class_RichTextLabel_property_meta_underlined>` vaut ``true``, les méta-balises sont soulignées lorsque le curseur de la souris les survole.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _enum_RichTextLabel_ImageUpdateMask:
|
||
|
||
.. rst-class:: classref-enumeration
|
||
|
||
flags **ImageUpdateMask**: :ref:`🔗<enum_RichTextLabel_ImageUpdateMask>`
|
||
|
||
.. _class_RichTextLabel_constant_UPDATE_TEXTURE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`ImageUpdateMask<enum_RichTextLabel_ImageUpdateMask>` **UPDATE_TEXTURE** = ``1``
|
||
|
||
Si ce bit est défini, :ref:`update_image()<class_RichTextLabel_method_update_image>` modifie la texture de l'image.
|
||
|
||
.. _class_RichTextLabel_constant_UPDATE_SIZE:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`ImageUpdateMask<enum_RichTextLabel_ImageUpdateMask>` **UPDATE_SIZE** = ``2``
|
||
|
||
Si ce bit est défini, :ref:`update_image()<class_RichTextLabel_method_update_image>` modifie la taille de l'image.
|
||
|
||
.. _class_RichTextLabel_constant_UPDATE_COLOR:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`ImageUpdateMask<enum_RichTextLabel_ImageUpdateMask>` **UPDATE_COLOR** = ``4``
|
||
|
||
Si ce bit est défini, :ref:`update_image()<class_RichTextLabel_method_update_image>` modifie la couleur de l'image.
|
||
|
||
.. _class_RichTextLabel_constant_UPDATE_ALIGNMENT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`ImageUpdateMask<enum_RichTextLabel_ImageUpdateMask>` **UPDATE_ALIGNMENT** = ``8``
|
||
|
||
Si ce bit est défini, :ref:`update_image()<class_RichTextLabel_method_update_image>` modifie l'alignement de l'image incorporée.
|
||
|
||
.. _class_RichTextLabel_constant_UPDATE_REGION:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`ImageUpdateMask<enum_RichTextLabel_ImageUpdateMask>` **UPDATE_REGION** = ``16``
|
||
|
||
Si ce bit est défini, :ref:`update_image()<class_RichTextLabel_method_update_image>` change la région de la texture de l'image.
|
||
|
||
.. _class_RichTextLabel_constant_UPDATE_PAD:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`ImageUpdateMask<enum_RichTextLabel_ImageUpdateMask>` **UPDATE_PAD** = ``32``
|
||
|
||
Si ce bit est défini, :ref:`update_image()<class_RichTextLabel_method_update_image>` modifie le rembourrage de l'image.
|
||
|
||
.. _class_RichTextLabel_constant_UPDATE_TOOLTIP:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`ImageUpdateMask<enum_RichTextLabel_ImageUpdateMask>` **UPDATE_TOOLTIP** = ``64``
|
||
|
||
Si ce bit est défini, :ref:`update_image()<class_RichTextLabel_method_update_image>` change l'info-bulle de l'image.
|
||
|
||
.. _class_RichTextLabel_constant_UPDATE_WIDTH_IN_PERCENT:
|
||
|
||
.. rst-class:: classref-enumeration-constant
|
||
|
||
:ref:`ImageUpdateMask<enum_RichTextLabel_ImageUpdateMask>` **UPDATE_WIDTH_IN_PERCENT** = ``128``
|
||
|
||
Si ce bit est défini, :ref:`update_image()<class_RichTextLabel_method_update_image>` modifie la largeur de l'image de/à des pourcents.
|
||
|
||
.. rst-class:: classref-section-separator
|
||
|
||
----
|
||
|
||
.. rst-class:: classref-descriptions-group
|
||
|
||
Descriptions des propriétés
|
||
------------------------------------------------------
|
||
|
||
.. _class_RichTextLabel_property_autowrap_mode:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`AutowrapMode<enum_TextServer_AutowrapMode>` **autowrap_mode** = ``3`` :ref:`🔗<class_RichTextLabel_property_autowrap_mode>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_autowrap_mode**\ (\ value\: :ref:`AutowrapMode<enum_TextServer_AutowrapMode>`\ )
|
||
- :ref:`AutowrapMode<enum_TextServer_AutowrapMode>` **get_autowrap_mode**\ (\ )
|
||
|
||
Si défini à autre chose que :ref:`TextServer.AUTOWRAP_OFF<class_TextServer_constant_AUTOWRAP_OFF>`, le texte fait automatiquement des retours à la ligne dans le rectangle délimitant du nœud.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_property_autowrap_trim_flags:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
|bitfield|\[:ref:`LineBreakFlag<enum_TextServer_LineBreakFlag>`\] **autowrap_trim_flags** = ``192`` :ref:`🔗<class_RichTextLabel_property_autowrap_trim_flags>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_autowrap_trim_flags**\ (\ value\: |bitfield|\[:ref:`LineBreakFlag<enum_TextServer_LineBreakFlag>`\]\ )
|
||
- |bitfield|\[:ref:`LineBreakFlag<enum_TextServer_LineBreakFlag>`\] **get_autowrap_trim_flags**\ (\ )
|
||
|
||
Drapeaux de trimming des espaces en autowrap. Voir :ref:`TextServer.BREAK_TRIM_START_EDGE_SPACES<class_TextServer_constant_BREAK_TRIM_START_EDGE_SPACES>` et :ref:`TextServer.BREAK_TRIM_END_EDGE_SPACES<class_TextServer_constant_BREAK_TRIM_END_EDGE_SPACES>` pour plus d'informations.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_property_bbcode_enabled:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`bool<class_bool>` **bbcode_enabled** = ``false`` :ref:`🔗<class_RichTextLabel_property_bbcode_enabled>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_use_bbcode**\ (\ value\: :ref:`bool<class_bool>`\ )
|
||
- :ref:`bool<class_bool>` **is_using_bbcode**\ (\ )
|
||
|
||
Si ``true``, l'étiquette utilise le formatage BBCode.
|
||
|
||
\ **Note :** Cela n'affecte que le contenu de :ref:`text<class_RichTextLabel_property_text>`, pas la pile des balises.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_property_context_menu_enabled:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`bool<class_bool>` **context_menu_enabled** = ``false`` :ref:`🔗<class_RichTextLabel_property_context_menu_enabled>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_context_menu_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
|
||
- :ref:`bool<class_bool>` **is_context_menu_enabled**\ (\ )
|
||
|
||
Si ``true``, un clic droit affiche le menu contextuel.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_property_custom_effects:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`Array<class_Array>` **custom_effects** = ``[]`` :ref:`🔗<class_RichTextLabel_property_custom_effects>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_effects**\ (\ value\: :ref:`Array<class_Array>`\ )
|
||
- :ref:`Array<class_Array>` **get_effects**\ (\ )
|
||
|
||
Les effets personnalisés actuellement installés. Il s'agit d'un tableau de :ref:`RichTextEffect<class_RichTextEffect>`\ s.
|
||
|
||
Pour ajouter un effet personnalisé, il est plus pratique d'utiliser :ref:`install_effect()<class_RichTextLabel_method_install_effect>`.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_property_deselect_on_focus_loss_enabled:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`bool<class_bool>` **deselect_on_focus_loss_enabled** = ``true`` :ref:`🔗<class_RichTextLabel_property_deselect_on_focus_loss_enabled>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_deselect_on_focus_loss_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
|
||
- :ref:`bool<class_bool>` **is_deselect_on_focus_loss_enabled**\ (\ )
|
||
|
||
Si ``true``, le texte actuellement sélectionné sera désélectionné quand le focus sera perdu.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_property_drag_and_drop_selection_enabled:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`bool<class_bool>` **drag_and_drop_selection_enabled** = ``true`` :ref:`🔗<class_RichTextLabel_property_drag_and_drop_selection_enabled>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_drag_and_drop_selection_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
|
||
- :ref:`bool<class_bool>` **is_drag_and_drop_selection_enabled**\ (\ )
|
||
|
||
Si ``true``, permet le déposé-glissé du texte sélectionné.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_property_fit_content:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`bool<class_bool>` **fit_content** = ``false`` :ref:`🔗<class_RichTextLabel_property_fit_content>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_fit_content**\ (\ value\: :ref:`bool<class_bool>`\ )
|
||
- :ref:`bool<class_bool>` **is_fit_content_enabled**\ (\ )
|
||
|
||
Si ``true``, la taille minimale de l'étiquette sera automatiquement mise à jour pour s'ajuster à son contenu, correspondant ainsi au comportement de :ref:`Label<class_Label>`.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_property_hint_underlined:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`bool<class_bool>` **hint_underlined** = ``true`` :ref:`🔗<class_RichTextLabel_property_hint_underlined>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_hint_underline**\ (\ value\: :ref:`bool<class_bool>`\ )
|
||
- :ref:`bool<class_bool>` **is_hint_underlined**\ (\ )
|
||
|
||
Si ``true``, l'étiquette souligne les balises d'indice comme ``[hint=description]{texte}[/hint]``.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_property_horizontal_alignment:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>` **horizontal_alignment** = ``0`` :ref:`🔗<class_RichTextLabel_property_horizontal_alignment>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_horizontal_alignment**\ (\ value\: :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>`\ )
|
||
- :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>` **get_horizontal_alignment**\ (\ )
|
||
|
||
Contrôle l'alignement horizontal du texte. Supporte à gauche, au centre, à droite, ou remplir (aussi connu comme justifié).
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_property_justification_flags:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
|bitfield|\[:ref:`JustificationFlag<enum_TextServer_JustificationFlag>`\] **justification_flags** = ``163`` :ref:`🔗<class_RichTextLabel_property_justification_flags>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_justification_flags**\ (\ value\: |bitfield|\[:ref:`JustificationFlag<enum_TextServer_JustificationFlag>`\]\ )
|
||
- |bitfield|\[:ref:`JustificationFlag<enum_TextServer_JustificationFlag>`\] **get_justification_flags**\ (\ )
|
||
|
||
Règles d'alignement du remplissage des lignes.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_property_language:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`String<class_String>` **language** = ``""`` :ref:`🔗<class_RichTextLabel_property_language>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_language**\ (\ value\: :ref:`String<class_String>`\ )
|
||
- :ref:`String<class_String>` **get_language**\ (\ )
|
||
|
||
Language code used for line-breaking and text shaping algorithms. If left empty, the current locale is used instead.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_property_meta_underlined:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`bool<class_bool>` **meta_underlined** = ``true`` :ref:`🔗<class_RichTextLabel_property_meta_underlined>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_meta_underline**\ (\ value\: :ref:`bool<class_bool>`\ )
|
||
- :ref:`bool<class_bool>` **is_meta_underlined**\ (\ )
|
||
|
||
Si ``true``, l'étiquette souligne les méta-balises comme ``[url]{text}[/url]``. Ces balises peuvent appeler une fonction lorsqu'elles sont cliquées si :ref:`meta_clicked<class_RichTextLabel_signal_meta_clicked>` est connecté à une fonction.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_property_progress_bar_delay:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`int<class_int>` **progress_bar_delay** = ``1000`` :ref:`🔗<class_RichTextLabel_property_progress_bar_delay>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_progress_bar_delay**\ (\ value\: :ref:`int<class_int>`\ )
|
||
- :ref:`int<class_int>` **get_progress_bar_delay**\ (\ )
|
||
|
||
Le délai après lequel la barre de progression du chargement est affichée, en millisecondes. Définir à ``-1`` pour désactiver entièrement la barre de progression.
|
||
|
||
\ **Note :** La barre de progression n'est affichée que si :ref:`threaded<class_RichTextLabel_property_threaded>` est activé.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_property_scroll_active:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`bool<class_bool>` **scroll_active** = ``true`` :ref:`🔗<class_RichTextLabel_property_scroll_active>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_scroll_active**\ (\ value\: :ref:`bool<class_bool>`\ )
|
||
- :ref:`bool<class_bool>` **is_scroll_active**\ (\ )
|
||
|
||
Si ``true``, la barre de défilement est visible. Définir ceci à ``false`` ne bloque pas complètement le défilement. Voir :ref:`scroll_to_line()<class_RichTextLabel_method_scroll_to_line>`.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_property_scroll_following:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`bool<class_bool>` **scroll_following** = ``false`` :ref:`🔗<class_RichTextLabel_property_scroll_following>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_scroll_follow**\ (\ value\: :ref:`bool<class_bool>`\ )
|
||
- :ref:`bool<class_bool>` **is_scroll_following**\ (\ )
|
||
|
||
Si ``true``, la fenêtre descend/remonte automatiquement pour afficher le nouveau contenu.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_property_scroll_following_visible_characters:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`bool<class_bool>` **scroll_following_visible_characters** = ``false`` :ref:`🔗<class_RichTextLabel_property_scroll_following_visible_characters>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_scroll_follow_visible_characters**\ (\ value\: :ref:`bool<class_bool>`\ )
|
||
- :ref:`bool<class_bool>` **is_scroll_following_visible_characters**\ (\ )
|
||
|
||
Si ``true``, la fenêtre défile pour afficher la dernière ligne visible lorsque :ref:`visible_characters<class_RichTextLabel_property_visible_characters>` ou :ref:`visible_ratio<class_RichTextLabel_property_visible_ratio>` sont modifiés.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_property_selection_enabled:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`bool<class_bool>` **selection_enabled** = ``false`` :ref:`🔗<class_RichTextLabel_property_selection_enabled>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_selection_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
|
||
- :ref:`bool<class_bool>` **is_selection_enabled**\ (\ )
|
||
|
||
Si ``true``, le label autorise la sélection du texte.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_property_shortcut_keys_enabled:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`bool<class_bool>` **shortcut_keys_enabled** = ``true`` :ref:`🔗<class_RichTextLabel_property_shortcut_keys_enabled>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_shortcut_keys_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
|
||
- :ref:`bool<class_bool>` **is_shortcut_keys_enabled**\ (\ )
|
||
|
||
Si ``true``, les touches de raccourci pour les éléments de menu contextuel sont activées, même si le menu contextuel est désactivé.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_property_structured_text_bidi_override:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`StructuredTextParser<enum_TextServer_StructuredTextParser>` **structured_text_bidi_override** = ``0`` :ref:`🔗<class_RichTextLabel_property_structured_text_bidi_override>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_structured_text_bidi_override**\ (\ value\: :ref:`StructuredTextParser<enum_TextServer_StructuredTextParser>`\ )
|
||
- :ref:`StructuredTextParser<enum_TextServer_StructuredTextParser>` **get_structured_text_bidi_override**\ (\ )
|
||
|
||
Définit la redéfinition de l'algorithme BiDi pour le texte structuré.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_property_structured_text_bidi_override_options:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`Array<class_Array>` **structured_text_bidi_override_options** = ``[]`` :ref:`🔗<class_RichTextLabel_property_structured_text_bidi_override_options>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_structured_text_bidi_override_options**\ (\ value\: :ref:`Array<class_Array>`\ )
|
||
- :ref:`Array<class_Array>` **get_structured_text_bidi_override_options**\ (\ )
|
||
|
||
Définit des options supplémentaires pour la redéfinition BiDi.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_property_tab_size:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`int<class_int>` **tab_size** = ``4`` :ref:`🔗<class_RichTextLabel_property_tab_size>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_tab_size**\ (\ value\: :ref:`int<class_int>`\ )
|
||
- :ref:`int<class_int>` **get_tab_size**\ (\ )
|
||
|
||
Le nombre d'espaces associés à une seule longueur de tabulation. N'affecte pas ``\t`` dans les balises de texte, seulement les balises d’indentation.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_property_tab_stops:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`PackedFloat32Array<class_PackedFloat32Array>` **tab_stops** = ``PackedFloat32Array()`` :ref:`🔗<class_RichTextLabel_property_tab_stops>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_tab_stops**\ (\ value\: :ref:`PackedFloat32Array<class_PackedFloat32Array>`\ )
|
||
- :ref:`PackedFloat32Array<class_PackedFloat32Array>` **get_tab_stops**\ (\ )
|
||
|
||
Aligns text to the given tab-stops.
|
||
|
||
**Note:** The returned array is *copied* and any changes to it will not update the original property value. See :ref:`PackedFloat32Array<class_PackedFloat32Array>` for more details.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_property_text:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`String<class_String>` **text** = ``""`` :ref:`🔗<class_RichTextLabel_property_text>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_text**\ (\ value\: :ref:`String<class_String>`\ )
|
||
- :ref:`String<class_String>` **get_text**\ (\ )
|
||
|
||
Le texte de l'étiquette en format BBCode. N'est pas représentatif des modifications manuelles à la pile des balises interne. Efface les modifications apportées par d'autres méthodes lorsque modifié.
|
||
|
||
\ **Note :** Si :ref:`bbcode_enabled<class_RichTextLabel_property_bbcode_enabled>` vaut ``true``, il n'est pas conseillé d'utiliser l'opérateur ``+=`` avec :ref:`text<class_RichTextLabel_property_text>` (par ex. ``text += "une chaîne"``) car il remplace le texte entier et peut causer des ralentissements. Il effacera également tout le BBCode qui a été ajouté à la pile en utilisant les méthodes ``push_*``. Utilisez :ref:`append_text()<class_RichTextLabel_method_append_text>` pour ajouter du texte à la place, à moins que vous n'ayez absolument besoin de fermer une balise qui a été ouverte dans un appel de méthode antérieur.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_property_text_direction:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`TextDirection<enum_Control_TextDirection>` **text_direction** = ``0`` :ref:`🔗<class_RichTextLabel_property_text_direction>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_text_direction**\ (\ value\: :ref:`TextDirection<enum_Control_TextDirection>`\ )
|
||
- :ref:`TextDirection<enum_Control_TextDirection>` **get_text_direction**\ (\ )
|
||
|
||
Direction d'écriture du texte de base.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_property_threaded:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`bool<class_bool>` **threaded** = ``false`` :ref:`🔗<class_RichTextLabel_property_threaded>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_threaded**\ (\ value\: :ref:`bool<class_bool>`\ )
|
||
- :ref:`bool<class_bool>` **is_threaded**\ (\ )
|
||
|
||
Si ``true``, le traitement du texte est effectué dans un thread d'arrière-plan.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_property_vertical_alignment:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`VerticalAlignment<enum_@GlobalScope_VerticalAlignment>` **vertical_alignment** = ``0`` :ref:`🔗<class_RichTextLabel_property_vertical_alignment>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_vertical_alignment**\ (\ value\: :ref:`VerticalAlignment<enum_@GlobalScope_VerticalAlignment>`\ )
|
||
- :ref:`VerticalAlignment<enum_@GlobalScope_VerticalAlignment>` **get_vertical_alignment**\ (\ )
|
||
|
||
Contrôle l'alignement vertical du texte. Supporte en haut, au centre, en bas et remplir.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_property_visible_characters:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`int<class_int>` **visible_characters** = ``-1`` :ref:`🔗<class_RichTextLabel_property_visible_characters>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_visible_characters**\ (\ value\: :ref:`int<class_int>`\ )
|
||
- :ref:`int<class_int>` **get_visible_characters**\ (\ )
|
||
|
||
Le nombre de caractères à afficher. Si défini à ``-1``, tous les caractères sont affichés. Cela peut être utile lors de l'animation d'un texte apparaissant dans une boîte de dialogue.
|
||
|
||
\ **Note :** Définir cette propriété met à jour :ref:`visible_ratio<class_RichTextLabel_property_visible_ratio>` en conséquence.
|
||
|
||
\ **Note :** Les caractères sont comptés comme des codes Unicode. Un seul graphème visible peut contenir plusieurs points de code (par exemple, certains emojis utilisent trois points de code). Un seul point de code peut contenir deux caractères UTF-16, qui sont utilisés dans les chaînes C#.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_property_visible_characters_behavior:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`VisibleCharactersBehavior<enum_TextServer_VisibleCharactersBehavior>` **visible_characters_behavior** = ``0`` :ref:`🔗<class_RichTextLabel_property_visible_characters_behavior>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_visible_characters_behavior**\ (\ value\: :ref:`VisibleCharactersBehavior<enum_TextServer_VisibleCharactersBehavior>`\ )
|
||
- :ref:`VisibleCharactersBehavior<enum_TextServer_VisibleCharactersBehavior>` **get_visible_characters_behavior**\ (\ )
|
||
|
||
Le comportement de coupure lorsque :ref:`visible_characters<class_RichTextLabel_property_visible_characters>` ou :ref:`visible_ratio<class_RichTextLabel_property_visible_ratio>` est défini.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_property_visible_ratio:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`float<class_float>` **visible_ratio** = ``1.0`` :ref:`🔗<class_RichTextLabel_property_visible_ratio>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_visible_ratio**\ (\ value\: :ref:`float<class_float>`\ )
|
||
- :ref:`float<class_float>` **get_visible_ratio**\ (\ )
|
||
|
||
La fraction des caractères à afficher, par rapport au nombre total de caractères (voir :ref:`get_total_character_count()<class_RichTextLabel_method_get_total_character_count>`). Si défini à ``1.0``, tous les caractères sont affichés. Si défini à ``0.5``, seulement la moitié des caractères seront affichés. Cela peut être utile lors de l'animation du texte apparaissant dans une boîte de dialogue.
|
||
|
||
\ **Note :** Définir cette propriété met à jour :ref:`visible_characters<class_RichTextLabel_property_visible_characters>` en conséquence.
|
||
|
||
.. rst-class:: classref-section-separator
|
||
|
||
----
|
||
|
||
.. rst-class:: classref-descriptions-group
|
||
|
||
Descriptions des méthodes
|
||
--------------------------------------------------
|
||
|
||
.. _class_RichTextLabel_method_add_hr:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **add_hr**\ (\ width\: :ref:`int<class_int>` = 90, height\: :ref:`int<class_int>` = 2, color\: :ref:`Color<class_Color>` = Color(1, 1, 1, 1), alignment\: :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>` = 1, width_in_percent\: :ref:`bool<class_bool>` = true, height_in_percent\: :ref:`bool<class_bool>` = false\ ) :ref:`🔗<class_RichTextLabel_method_add_hr>`
|
||
|
||
Ajoute une ligne horizontale qui peut être utilisée pour séparer le contenu.
|
||
|
||
Si ``width_in_percent`` est défini, ``width`` est un pourcentage de la largeur du contrôle au lieu de pixels.
|
||
|
||
Si ``height_in_percent`` est défini, ``height`` est un pourcentage de la hauteur du contrôle au lieu de pixels.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_add_image:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **add_image**\ (\ image\: :ref:`Texture2D<class_Texture2D>`, width\: :ref:`int<class_int>` = 0, height\: :ref:`int<class_int>` = 0, color\: :ref:`Color<class_Color>` = Color(1, 1, 1, 1), inline_align\: :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` = 5, region\: :ref:`Rect2<class_Rect2>` = Rect2(0, 0, 0, 0), key\: :ref:`Variant<class_Variant>` = null, pad\: :ref:`bool<class_bool>` = false, tooltip\: :ref:`String<class_String>` = "", width_in_percent\: :ref:`bool<class_bool>` = false, height_in_percent\: :ref:`bool<class_bool>` = false, alt_text\: :ref:`String<class_String>` = ""\ ) :ref:`🔗<class_RichTextLabel_method_add_image>`
|
||
|
||
Ajoute les balises d'ouverture et de fermeture d'une image à la pile des balises, en fournissant en option une largeur ``width`` et une hauteur ``height`` pour redimensionner l'image, une couleur ``color`` pour teinter l'image et une ``region`` pour utiliser uniquement des parties de l'image.
|
||
|
||
Si ``width`` ou ``height`` est défini à 0, la taille de l'image sera ajustée afin de garder le rapport d'aspect original.
|
||
|
||
Si ``width`` et ``height`` ne sont pas définis, mais ``region`` l'est, le rectangle de la région sera utilisé.
|
||
|
||
\ ``key`` est un identifiant optionnel, qui peut être utilisé pour modifier l'image via :ref:`update_image()<class_RichTextLabel_method_update_image>`.
|
||
|
||
Si ``pad`` est défini, et que l'image est plus petite que la taille spécifiée par ``width`` et ``height``, le rembourrage de l'image est ajouté pour correspondre à la taille au lieu de la mettre à l'échelle..
|
||
|
||
Si ``width_in_percent`` est défini, la valeur de ``width`` est un pourcentage de la largeur du contrôle au lieu de pixels.
|
||
|
||
Si ``height_in_percent`` est défini, la valeur de ``height`` est un pourcentage de la hauteur du contrôle au lieu de pixels.
|
||
|
||
\ ``alt_text`` est utilisé comme description de l'image pour les applications d'assistance.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_add_text:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **add_text**\ (\ text\: :ref:`String<class_String>`\ ) :ref:`🔗<class_RichTextLabel_method_add_text>`
|
||
|
||
Ajoute du texte brut non interprété en BBCode à le pile des balises.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_append_text:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **append_text**\ (\ bbcode\: :ref:`String<class_String>`\ ) :ref:`🔗<class_RichTextLabel_method_append_text>`
|
||
|
||
Parse le ``bbcode`` et ajoute des balises à la pile des balises au besoin.
|
||
|
||
\ **Note :** En utilisant cette méthode, vous ne pouvez pas fermer une balise qui a été ouverte dans un appel précédent à :ref:`append_text()<class_RichTextLabel_method_append_text>`. Ceci est fait pour améliorer les performances, en particulier lors de la mise à jour de grands RichTextLabels car la reconstruction de tout le BBCode à chaque fois serait plus lent. Si vous avez absolument besoin de fermer une balise dans un futur appel de méthode, ajoutez au :ref:`text<class_RichTextLabel_property_text>` au lieu d'utiliser :ref:`append_text()<class_RichTextLabel_method_append_text>`.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_clear:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **clear**\ (\ ) :ref:`🔗<class_RichTextLabel_method_clear>`
|
||
|
||
Vide la pile des balises, ce qui fait que l'étiquette n'affiche rien.
|
||
|
||
\ **Note :** Cette méthode n'affecte pas :ref:`text<class_RichTextLabel_property_text>`, et son contenu s'affichera de nouveau si l'étiquette est redessinée. Cependant, définir :ref:`text<class_RichTextLabel_property_text>` à un :ref:`String<class_String>` vide va également vider la pile.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_deselect:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **deselect**\ (\ ) :ref:`🔗<class_RichTextLabel_method_deselect>`
|
||
|
||
Efface la sélection actuelle.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_get_character_line:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_character_line**\ (\ character\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RichTextLabel_method_get_character_line>`
|
||
|
||
Renvoie le numéro de ligne de la position de caractère fournie. Les numéros de lignes et de caractères sont tous deux indexés en commençant à zéro.
|
||
|
||
\ **Note :** Si :ref:`threaded<class_RichTextLabel_property_threaded>` est activé, cette méthode renvoie une valeur pour la partie chargée du document. Utilisez :ref:`is_finished()<class_RichTextLabel_method_is_finished>` ou :ref:`finished<class_RichTextLabel_signal_finished>` pour déterminer si le document est entièrement chargé.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_get_character_paragraph:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_character_paragraph**\ (\ character\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RichTextLabel_method_get_character_paragraph>`
|
||
|
||
Renvoie le numéro de paragraphe de la position de caractère fournie. Les numéros de paragraphe et de caractère sont tous deux indexés en commençant à zéro.
|
||
|
||
\ **Note :** Si :ref:`threaded<class_RichTextLabel_property_threaded>` est activé, cette méthode renvoie une valeur pour la partie chargée du document. Utilisez :ref:`is_finished()<class_RichTextLabel_method_is_finished>` ou :ref:`finished<class_RichTextLabel_signal_finished>` pour déterminer si le document est entièrement chargé.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_get_content_height:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_content_height**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_content_height>`
|
||
|
||
Renvoie la hauteur du contenu.
|
||
|
||
\ **Note:** Cette méthode renvoie toujours la taille de contenu complet, et n'est pas affectée par :ref:`visible_ratio<class_RichTextLabel_property_visible_ratio>` et :ref:`visible_characters<class_RichTextLabel_property_visible_characters>`. Pour obtenir la taille du contenu visible, utilisez :ref:`get_visible_content_rect()<class_RichTextLabel_method_get_visible_content_rect>`.
|
||
|
||
\ **Note :** Si :ref:`threaded<class_RichTextLabel_property_threaded>` est activé, cette méthode renvoie une valeur pour la partie chargée du document. Utilisez :ref:`is_finished()<class_RichTextLabel_method_is_finished>` ou :ref:`finished<class_RichTextLabel_signal_finished>` pour déterminer si le document est entièrement chargé.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_get_content_width:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_content_width**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_content_width>`
|
||
|
||
Renvoie la largeur du contenu.
|
||
|
||
\ **Note:** Cette méthode renvoie toujours la taille de contenu complet, et n'est pas affectée par :ref:`visible_ratio<class_RichTextLabel_property_visible_ratio>` et :ref:`visible_characters<class_RichTextLabel_property_visible_characters>`. Pour obtenir la taille du contenu visible, utilisez :ref:`get_visible_content_rect()<class_RichTextLabel_method_get_visible_content_rect>`.
|
||
|
||
\ **Note :** Si :ref:`threaded<class_RichTextLabel_property_threaded>` est activé, cette méthode renvoie une valeur pour la partie chargée du document. Utilisez :ref:`is_finished()<class_RichTextLabel_method_is_finished>` ou :ref:`finished<class_RichTextLabel_signal_finished>` pour déterminer si le document est entièrement chargé.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_get_line_count:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_line_count**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_line_count>`
|
||
|
||
Renvoie le nombre total de lignes dans le texte. Les textes avec des retours à la ligne sont comptés comme plusieurs lignes.
|
||
|
||
\ **Note :** Si :ref:`threaded<class_RichTextLabel_property_threaded>` est activé, cette méthode renvoie une valeur pour la partie chargée du document. Utilisez :ref:`is_finished()<class_RichTextLabel_method_is_finished>` ou :ref:`finished<class_RichTextLabel_signal_finished>` pour déterminer si le document est entièrement chargé.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_get_line_height:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_line_height**\ (\ line\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_line_height>`
|
||
|
||
Renvoie la hauteur de la ligne trouvée à l'index fourni.
|
||
|
||
\ **Note :** Si :ref:`threaded<class_RichTextLabel_property_threaded>` est activé, cette méthode renvoie une valeur pour la partie chargée du document. Utilisez :ref:`is_finished()<class_RichTextLabel_method_is_finished>` ou :ref:`finished<class_RichTextLabel_signal_finished>` pour déterminer si le document est entièrement chargé.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_get_line_offset:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`float<class_float>` **get_line_offset**\ (\ line\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RichTextLabel_method_get_line_offset>`
|
||
|
||
Renvoie le décalage vertical de la ligne trouvée à l'index fourni.
|
||
|
||
\ **Note :** Si :ref:`threaded<class_RichTextLabel_property_threaded>` est activé, cette méthode renvoie une valeur pour la partie chargée du document. Utilisez :ref:`is_finished()<class_RichTextLabel_method_is_finished>` ou :ref:`finished<class_RichTextLabel_signal_finished>` pour déterminer si le document est entièrement chargé.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_get_line_range:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`Vector2i<class_Vector2i>` **get_line_range**\ (\ line\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RichTextLabel_method_get_line_range>`
|
||
|
||
Renvoie les index des premiers et des derniers caractères visibles pour la ligne ``line`` donnée, en tant que :ref:`Vector2i<class_Vector2i>`.
|
||
|
||
\ **Note :** Si :ref:`visible_characters_behavior<class_RichTextLabel_property_visible_characters_behavior>` est défini à :ref:`TextServer.VC_CHARS_BEFORE_SHAPING<class_TextServer_constant_VC_CHARS_BEFORE_SHAPING>` seules les lignes retournant à la ligne visibles sont comptées.
|
||
|
||
\ **Note :** Si :ref:`threaded<class_RichTextLabel_property_threaded>` est activé, cette méthode renvoie une valeur pour la partie chargée du document. Utilisez :ref:`is_finished()<class_RichTextLabel_method_is_finished>` ou :ref:`finished<class_RichTextLabel_signal_finished>` pour déterminer si le document est entièrement chargé.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_get_line_width:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_line_width**\ (\ line\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_line_width>`
|
||
|
||
Renvoie la largeur de la ligne trouvée à l'index fourni.
|
||
|
||
\ **Note :** Si :ref:`threaded<class_RichTextLabel_property_threaded>` est activé, cette méthode renvoie une valeur pour la partie chargée du document. Utilisez :ref:`is_finished()<class_RichTextLabel_method_is_finished>` ou :ref:`finished<class_RichTextLabel_signal_finished>` pour déterminer si le document est entièrement chargé.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_get_menu:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`PopupMenu<class_PopupMenu>` **get_menu**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_menu>`
|
||
|
||
Renvoie le :ref:`PopupMenu<class_PopupMenu>` de ce **RichTextLabel**. Par défaut, ce menu s'affiche lors d'un clic droit sur le **RichTextLabel**.
|
||
|
||
Vous pouvez ajouter des éléments de menu personnalisés ou supprimer ceux standard. Assurez-vous que vos identifiants ne sont pas en conflit avec les identifiants standards (voir :ref:`MenuItems<enum_RichTextLabel_MenuItems>`). Par exemple :
|
||
|
||
|
||
.. tabs::
|
||
|
||
.. code-tab:: gdscript
|
||
|
||
func _ready():
|
||
var menu = get_menu()
|
||
# Retirer l’élément "Sélectionner tout".
|
||
menu.remove_item(MENU_SELECT_ALL)
|
||
# Ajouter des éléments personnalisés.
|
||
menu.add_separator()
|
||
menu.add_item("Dupliquer texte", MENU_MAX + 1)
|
||
# Connecter le callback.
|
||
menu.id_pressed.connect(_on_item_pressed)
|
||
|
||
func _on_item_pressed(id):
|
||
if id == MENU_MAX + 1:
|
||
add_text("\n" + get_parsed_text())
|
||
|
||
.. code-tab:: csharp
|
||
|
||
public override void _Ready()
|
||
{
|
||
var menu = GetMenu();
|
||
// Retirer l’élément "Sélectionner tout".
|
||
menu.RemoveItem(RichTextLabel.MenuItems.SelectAll);
|
||
// Ajouter des éléments personnalisés.
|
||
menu.AddSeparator();
|
||
menu.AddItem("Duplicate Text", RichTextLabel.MenuItems.Max + 1);
|
||
// Ajouter le gestionnaire d'élément.
|
||
menu.IdPressed += OnItemPressed;
|
||
}
|
||
|
||
public void OnItemPressed(int id)
|
||
{
|
||
if (id == TextEdit.MenuItems.Max + 1)
|
||
{
|
||
AddText("\n" + GetParsedText());
|
||
}
|
||
}
|
||
|
||
|
||
|
||
\ **Avertissement :** Il s'agit d'un nœud interne nécessaire, le retirer et le libérer peut causer un plantage. Si vous voulez le cacher lui ou l'un de ses enfants, utilisez plutôt :ref:`Window.visible<class_Window_property_visible>`.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_get_paragraph_count:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_paragraph_count**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_paragraph_count>`
|
||
|
||
Renvoie le nombre total de paragraphes (balises nouvelle ligne ou ``p`` dans la pile des balises du texte). Considère un texte renvoyé automatiquement à la ligne comme un seul paragraphe.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_get_paragraph_offset:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`float<class_float>` **get_paragraph_offset**\ (\ paragraph\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RichTextLabel_method_get_paragraph_offset>`
|
||
|
||
Renvoie le décalage vertical du paragraphe trouvé à l'index fourni.
|
||
|
||
\ **Note :** Si :ref:`threaded<class_RichTextLabel_property_threaded>` est activé, cette méthode renvoie une valeur pour la partie chargée du document. Utilisez :ref:`is_finished()<class_RichTextLabel_method_is_finished>` ou :ref:`finished<class_RichTextLabel_signal_finished>` pour déterminer si le document est entièrement chargé.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_get_parsed_text:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`String<class_String>` **get_parsed_text**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_parsed_text>`
|
||
|
||
Renvoie le texte sans balisage BBCode.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_get_selected_text:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`String<class_String>` **get_selected_text**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_selected_text>`
|
||
|
||
Renvoie le texte actuellement sélectionné. N'inclut pas les BBCodes.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_get_selection_from:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_selection_from**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_selection_from>`
|
||
|
||
Renvoie l'index du premier caractère de la sélection actuelle si une sélection est active, ``-1`` sinon. N'inclut pas les BBCodes.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_get_selection_line_offset:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`float<class_float>` **get_selection_line_offset**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_selection_line_offset>`
|
||
|
||
Returns the current selection vertical line offset if a selection is active, ``-1.0`` otherwise.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_get_selection_to:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_selection_to**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_selection_to>`
|
||
|
||
Renvoie l'index du dernier caractère de la sélection actuelle si une sélection est active, ``-1.0`` sinon. N'inclut pas les BBCodes.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_get_total_character_count:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_total_character_count**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_total_character_count>`
|
||
|
||
Renvoie le nombre total de caractères des marqueurs du texte. N'inclus pas les BBCodes.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_get_v_scroll_bar:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`VScrollBar<class_VScrollBar>` **get_v_scroll_bar**\ (\ ) :ref:`🔗<class_RichTextLabel_method_get_v_scroll_bar>`
|
||
|
||
Renvoie la barre de défilement verticale.
|
||
|
||
\ **Avertissement :** Il s'agit d'un nœud interne requis, le retirer et le libérer peut causer un plantage. Si vous voulez le cacher lui ou un de ses enfants, utilisez la propriété :ref:`CanvasItem.visible<class_CanvasItem_property_visible>`.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_get_visible_content_rect:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`Rect2i<class_Rect2i>` **get_visible_content_rect**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_visible_content_rect>`
|
||
|
||
Renvoie le rectangle délimitant du contenu visible.
|
||
|
||
\ **Note :** Cette méthode renvoie une valeur correcte seulement après que l'étiquette a été dessinée.
|
||
|
||
|
||
.. tabs::
|
||
|
||
.. code-tab:: gdscript
|
||
|
||
extends RichTextLabel
|
||
|
||
@export var panneau_arriere_plan : Panel
|
||
|
||
func _ready():
|
||
await draw
|
||
panneau_arriere_plan.position = get_visible_content_rect().position
|
||
panneau_arriere_plan.size = get_visible_content_rect().size
|
||
|
||
.. code-tab:: csharp
|
||
|
||
public partial class TestLabel : RichTextLabel
|
||
{
|
||
[Export]
|
||
public Panel PanneauArrierePlan { get; set; }
|
||
|
||
public override async void _Ready()
|
||
{
|
||
await ToSignal(this, Control.SignalName.Draw);
|
||
PanneauArrierePlan.Position = GetVisibleContentRect().Position;
|
||
PanneauArrierePlan.Size = GetVisibleContentRect().Size;
|
||
}
|
||
}
|
||
|
||
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_get_visible_line_count:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_visible_line_count**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_visible_line_count>`
|
||
|
||
Renvoie le nombre de lignes visibles.
|
||
|
||
\ **Note :** Cette méthode renvoie une valeur correcte seulement après que le texte ait été dessiné.
|
||
|
||
\ **Note :** Si :ref:`threaded<class_RichTextLabel_property_threaded>` est activé, cette méthode renvoie une valeur pour la partie chargée du document. Utilisez :ref:`is_finished()<class_RichTextLabel_method_is_finished>` ou :ref:`finished<class_RichTextLabel_signal_finished>` pour déterminer si le document est entièrement chargé.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_get_visible_paragraph_count:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`int<class_int>` **get_visible_paragraph_count**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_visible_paragraph_count>`
|
||
|
||
Renvoie le nombre de paragraphes visibles. Un paragraphe est considéré comme visible si au moins une de ses lignes est visible.
|
||
|
||
\ **Note :** Cette méthode renvoie une valeur correcte seulement après que l'étiquette ait été dessinée.
|
||
|
||
\ **Note :** Si :ref:`threaded<class_RichTextLabel_property_threaded>` est activé, cette méthode renvoie une valeur pour la partie chargée du document. Utilisez :ref:`is_finished()<class_RichTextLabel_method_is_finished>` ou :ref:`finished<class_RichTextLabel_signal_finished>` pour déterminer si le document est entièrement chargé.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_install_effect:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **install_effect**\ (\ effect\: :ref:`Variant<class_Variant>`\ ) :ref:`🔗<class_RichTextLabel_method_install_effect>`
|
||
|
||
Installe un effet personnalisé. Cela peut également être fait dans l'Inspecteur par l'intermédiaire de la propriété :ref:`custom_effects<class_RichTextLabel_property_custom_effects>`. ``effect`` devrait être un :ref:`RichTextEffect<class_RichTextEffect>` valide.
|
||
|
||
\ **Exemple :** Avec le script suivant étendant :ref:`RichTextEffect<class_RichTextEffect>`\ :
|
||
|
||
::
|
||
|
||
# effet.gd
|
||
class_name MonEffetPerso
|
||
extends RichTextEffect
|
||
|
||
var bbcode = "mon_effet_perso"
|
||
|
||
# ...
|
||
|
||
L'effet ci-dessus peut être installé dans **RichTextLabel** depuis un script :
|
||
|
||
::
|
||
|
||
# rich_text_label.gd
|
||
extends RichTextLabel
|
||
|
||
func _ready():
|
||
install_effect(MonEffetPerso.new())
|
||
|
||
# Sinon, sans utiliser `class_name` dans le script qui étend RichTextEffect :
|
||
install_effect(preload("res://effet.gd").new())
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_invalidate_paragraph:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`bool<class_bool>` **invalidate_paragraph**\ (\ paragraph\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RichTextLabel_method_invalidate_paragraph>`
|
||
|
||
Invalide ``paragraph`` et le cache des paragraphes suivants.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_is_finished:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`bool<class_bool>` **is_finished**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_is_finished>`
|
||
|
||
Si :ref:`threaded<class_RichTextLabel_property_threaded>` est activé, renvoie ``true`` si le thread d'arrière-plan a terminé le traitement du texte, sinon renvoie toujours ``true``.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_is_menu_visible:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`bool<class_bool>` **is_menu_visible**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_is_menu_visible>`
|
||
|
||
Renvoie si le menu est visible. Utilisez ceci au lieu de ``get_menu().visible`` pour améliorer les performances (pour éviter la création du menu).
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_is_ready:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`bool<class_bool>` **is_ready**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_is_ready>`
|
||
|
||
**Obsolète :** Use :ref:`is_finished()<class_RichTextLabel_method_is_finished>` instead.
|
||
|
||
Si :ref:`threaded<class_RichTextLabel_property_threaded>` est activé, renvoie ``true`` si le thread d'arrière-plan a terminé le traitement du texte, sinon renvoie toujours ``true``.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_menu_option:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **menu_option**\ (\ option\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RichTextLabel_method_menu_option>`
|
||
|
||
Exécute l'action donnée comme définit par l'énumération :ref:`MenuItems<enum_RichTextLabel_MenuItems>`.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_newline:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **newline**\ (\ ) :ref:`🔗<class_RichTextLabel_method_newline>`
|
||
|
||
Ajoute une balise de retour à la ligne à la pile des balises.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_parse_bbcode:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **parse_bbcode**\ (\ bbcode\: :ref:`String<class_String>`\ ) :ref:`🔗<class_RichTextLabel_method_parse_bbcode>`
|
||
|
||
La version en assignation de :ref:`append_text()<class_RichTextLabel_method_append_text>`. Vide la pile des balises et insère le nouveau contenu.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_parse_expressions_for_values:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`Dictionary<class_Dictionary>` **parse_expressions_for_values**\ (\ expressions\: :ref:`PackedStringArray<class_PackedStringArray>`\ ) :ref:`🔗<class_RichTextLabel_method_parse_expressions_for_values>`
|
||
|
||
Interprète le paramètre BBCode ``expressions`` en un dictionnaire.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_pop:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **pop**\ (\ ) :ref:`🔗<class_RichTextLabel_method_pop>`
|
||
|
||
Termine la balise actuelle. Utilisez les méthodes ``push_*`` pour fermer manuellement des BBCodes. Ne doit pas forcément suivre les méthodes ``add_*``.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_pop_all:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **pop_all**\ (\ ) :ref:`🔗<class_RichTextLabel_method_pop_all>`
|
||
|
||
Termine toutes les balises ouvertes par les méthodes ``push_*``.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_pop_context:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **pop_context**\ (\ ) :ref:`🔗<class_RichTextLabel_method_pop_context>`
|
||
|
||
Terminates tags opened after the last :ref:`push_context()<class_RichTextLabel_method_push_context>` call (including context marker), or all tags if there's no context marker on the stack.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_push_bgcolor:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **push_bgcolor**\ (\ bgcolor\: :ref:`Color<class_Color>`\ ) :ref:`🔗<class_RichTextLabel_method_push_bgcolor>`
|
||
|
||
Adds a ``[bgcolor]`` tag to the tag stack.
|
||
|
||
\ **Note:** The background color has padding applied by default, which is controlled using :ref:`text_highlight_h_padding<class_RichTextLabel_theme_constant_text_highlight_h_padding>` and :ref:`text_highlight_v_padding<class_RichTextLabel_theme_constant_text_highlight_v_padding>`. This can lead to overlapping highlights if background colors are placed on neighboring lines/columns, so consider setting those theme items to ``0`` if you want to avoid this.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_push_bold:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **push_bold**\ (\ ) :ref:`🔗<class_RichTextLabel_method_push_bold>`
|
||
|
||
Ajoute une balise ``[font]`` avec une police en gras à la pile des balises . Ceci est identique à l'ajout d'une balise ``[b]`` si nous ne sommes pas actuellement dans une balise\ ``[i]``.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_push_bold_italics:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **push_bold_italics**\ (\ ) :ref:`🔗<class_RichTextLabel_method_push_bold_italics>`
|
||
|
||
Ajoute une balise ``[font]`` avec une police en italique gras à la pile des balises.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_push_cell:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **push_cell**\ (\ ) :ref:`🔗<class_RichTextLabel_method_push_cell>`
|
||
|
||
Ajoute une balise ``[cell]`` à la pile des balises. Doit être à l'intérieur d'une balise ``[table]``. Voir :ref:`push_table()<class_RichTextLabel_method_push_table>` pour plus de détails. Utilisez :ref:`set_table_column_expand()<class_RichTextLabel_method_set_table_column_expand>` pour définir le rapport d'extension de la colonne, :ref:`set_cell_border_color()<class_RichTextLabel_method_set_cell_border_color>` pour définir la bordure de la cellule, :ref:`set_cell_row_background_color()<class_RichTextLabel_method_set_cell_row_background_color>` pour définir l'arrière-plan de la cellule, :ref:`set_cell_size_override()<class_RichTextLabel_method_set_cell_size_override>` pour redéfinir la taille de la cellule, et :ref:`set_cell_padding()<class_RichTextLabel_method_set_cell_padding>` pour définir le rembourrage.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_push_color:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **push_color**\ (\ color\: :ref:`Color<class_Color>`\ ) :ref:`🔗<class_RichTextLabel_method_push_color>`
|
||
|
||
Ajoute une balise ``[color]`` à la pile des balises.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_push_context:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **push_context**\ (\ ) :ref:`🔗<class_RichTextLabel_method_push_context>`
|
||
|
||
Ajoute un marqueur de contexte à la pile des balises. Voir :ref:`pop_context()<class_RichTextLabel_method_pop_context>`.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_push_customfx:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **push_customfx**\ (\ effect\: :ref:`RichTextEffect<class_RichTextEffect>`, env\: :ref:`Dictionary<class_Dictionary>`\ ) :ref:`🔗<class_RichTextLabel_method_push_customfx>`
|
||
|
||
Ajoute une balise d'effet personnalisé à la pile des balises. L'effet n'a pas besoin d'être dans :ref:`custom_effects<class_RichTextLabel_property_custom_effects>`. L'environnement est directement transmis à l'effet.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_push_dropcap:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **push_dropcap**\ (\ string\: :ref:`String<class_String>`, font\: :ref:`Font<class_Font>`, size\: :ref:`int<class_int>`, dropcap_margins\: :ref:`Rect2<class_Rect2>` = Rect2(0, 0, 0, 0), color\: :ref:`Color<class_Color>` = Color(1, 1, 1, 1), outline_size\: :ref:`int<class_int>` = 0, outline_color\: :ref:`Color<class_Color>` = Color(0, 0, 0, 0)\ ) :ref:`🔗<class_RichTextLabel_method_push_dropcap>`
|
||
|
||
Ajoute une balise ``[dropcap]`` à la pile des balises. Le dropcap, ou lettrine en français, est un élément décoratif au début d'un paragraphe qui est plus grand que le reste du texte.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_push_fgcolor:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **push_fgcolor**\ (\ fgcolor\: :ref:`Color<class_Color>`\ ) :ref:`🔗<class_RichTextLabel_method_push_fgcolor>`
|
||
|
||
Adds a ``[fgcolor]`` tag to the tag stack.
|
||
|
||
\ **Note:** The foreground color has padding applied by default, which is controlled using :ref:`text_highlight_h_padding<class_RichTextLabel_theme_constant_text_highlight_h_padding>` and :ref:`text_highlight_v_padding<class_RichTextLabel_theme_constant_text_highlight_v_padding>`. This can lead to overlapping highlights if foreground colors are placed on neighboring lines/columns, so consider setting those theme items to ``0`` if you want to avoid this.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_push_font:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **push_font**\ (\ font\: :ref:`Font<class_Font>`, font_size\: :ref:`int<class_int>` = 0\ ) :ref:`🔗<class_RichTextLabel_method_push_font>`
|
||
|
||
Ajoute une balise ``[font]`` à la pile des balises. Redéfinit les polices par défaut pendant sa durée.
|
||
|
||
Passer ``0`` à ``font_size`` utilisera la taille de police par défaut existante.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_push_font_size:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **push_font_size**\ (\ font_size\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RichTextLabel_method_push_font_size>`
|
||
|
||
Ajoute une balise ``[font_size]`` à la pile des balises. Redéfinit la taille de police par défaut pendant sa durée.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_push_hint:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **push_hint**\ (\ description\: :ref:`String<class_String>`\ ) :ref:`🔗<class_RichTextLabel_method_push_hint>`
|
||
|
||
Ajoute un marqueur ``[hint]`` à la pile des balises. Identique au BBCode ``[hint=something]{texte}[/hint]``.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_push_indent:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **push_indent**\ (\ level\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RichTextLabel_method_push_indent>`
|
||
|
||
Ajoute une balise ``[indent]`` à la pile des balises. Multiple ``level`` par le :ref:`tab_size<class_RichTextLabel_property_tab_size>` actuel pour déterminer la nouvelle taille des marges.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_push_italics:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **push_italics**\ (\ ) :ref:`🔗<class_RichTextLabel_method_push_italics>`
|
||
|
||
Ajouter une balise ``[font]`` avec une police en italique à la pile des balises. Identique à l'ajout d'une balise ``[i]`` si nous ne sommes pas dans une balise ``[b]``.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_push_language:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **push_language**\ (\ language\: :ref:`String<class_String>`\ ) :ref:`🔗<class_RichTextLabel_method_push_language>`
|
||
|
||
Ajoute un code de langage, utilisé pour l'algorithme de façonnage de texte et les fonctionnalités de police Open-Type.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_push_list:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **push_list**\ (\ level\: :ref:`int<class_int>`, type\: :ref:`ListType<enum_RichTextLabel_ListType>`, capitalize\: :ref:`bool<class_bool>`, bullet\: :ref:`String<class_String>` = "•"\ ) :ref:`🔗<class_RichTextLabel_method_push_list>`
|
||
|
||
Ajoute une balise ``[ol]`` ou ``[ul]`` à la pile des balises. Multiple ``level`` par le :ref:`tab_size<class_RichTextLabel_property_tab_size>` actuel pour déterminer la nouvelle taille des marges.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_push_meta:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **push_meta**\ (\ data\: :ref:`Variant<class_Variant>`, underline_mode\: :ref:`MetaUnderline<enum_RichTextLabel_MetaUnderline>` = 1, tooltip\: :ref:`String<class_String>` = ""\ ) :ref:`🔗<class_RichTextLabel_method_push_meta>`
|
||
|
||
Ajoute une méta-balise à la pile de balises. Similaire au BBCode ``[url=qqch]{texte}[/url]``, mais prend en charge les types de métadonnées non-:ref:`String<class_String>`.
|
||
|
||
Si :ref:`meta_underlined<class_RichTextLabel_property_meta_underlined>` vaut ``true``, les méta-balises sont soulignées. Ce comportement peut être personnalisé avec ``underline_mode``.
|
||
|
||
\ **Note :** Les méta-balises ne font rien par défaut lorsqu'elles sont cliquées. Pour attribuer le comportement lorsque cliquées, connectez :ref:`meta_clicked<class_RichTextLabel_signal_meta_clicked>` à une fonction qui est appelée lorsque la méta-balise est cliquée.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_push_mono:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **push_mono**\ (\ ) :ref:`🔗<class_RichTextLabel_method_push_mono>`
|
||
|
||
Ajoute une balise ``[font]`` avec une police monospace à la pile des balises.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_push_normal:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **push_normal**\ (\ ) :ref:`🔗<class_RichTextLabel_method_push_normal>`
|
||
|
||
Ajoute une balise ``[font]`` avec une police normale à la pile des balises.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_push_outline_color:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **push_outline_color**\ (\ color\: :ref:`Color<class_Color>`\ ) :ref:`🔗<class_RichTextLabel_method_push_outline_color>`
|
||
|
||
Ajouter une balise ``[outline_color]`` à la pile des balises. Ajoute un contour au texte pendant sa durée.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_push_outline_size:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **push_outline_size**\ (\ outline_size\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RichTextLabel_method_push_outline_size>`
|
||
|
||
Ajoute une balise ``[outline_size]`` à la pile des balises. Redéfinit la taille du contour du texte pendant sa durée.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_push_paragraph:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **push_paragraph**\ (\ alignment\: :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>`, base_direction\: :ref:`TextDirection<enum_Control_TextDirection>` = 0, language\: :ref:`String<class_String>` = "", st_parser\: :ref:`StructuredTextParser<enum_TextServer_StructuredTextParser>` = 0, justification_flags\: |bitfield|\[:ref:`JustificationFlag<enum_TextServer_JustificationFlag>`\] = 163, tab_stops\: :ref:`PackedFloat32Array<class_PackedFloat32Array>` = PackedFloat32Array()\ ) :ref:`🔗<class_RichTextLabel_method_push_paragraph>`
|
||
|
||
Ajoute une balise ``[p]`` à la pile des balises.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_push_strikethrough:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **push_strikethrough**\ (\ color\: :ref:`Color<class_Color>` = Color(0, 0, 0, 0)\ ) :ref:`🔗<class_RichTextLabel_method_push_strikethrough>`
|
||
|
||
Adds a ``[s]`` tag to the tag stack. If ``color``'s alpha value is ``0.0``, the current font's color with its alpha multiplied by :ref:`strikethrough_alpha<class_RichTextLabel_theme_constant_strikethrough_alpha>` is used.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_push_table:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **push_table**\ (\ columns\: :ref:`int<class_int>`, inline_align\: :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` = 0, align_to_row\: :ref:`int<class_int>` = -1, name\: :ref:`String<class_String>` = ""\ ) :ref:`🔗<class_RichTextLabel_method_push_table>`
|
||
|
||
Ajoute une balise ``[table=columns,inline_align]`` à la pile des balises. Utilisez :ref:`set_table_column_expand()<class_RichTextLabel_method_set_table_column_expand>` pour définir le rapport d'extension de la colonne. Utilisez :ref:`push_cell()<class_RichTextLabel_method_push_cell>` pour ajouter des cellules. ``name`` est utilisé comme nom du tableau pour les applications d'assistance.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_push_underline:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **push_underline**\ (\ color\: :ref:`Color<class_Color>` = Color(0, 0, 0, 0)\ ) :ref:`🔗<class_RichTextLabel_method_push_underline>`
|
||
|
||
Adds a ``[u]`` tag to the tag stack. If ``color``'s alpha value is ``0.0``, the current font's color with its alpha multiplied by :ref:`underline_alpha<class_RichTextLabel_theme_constant_underline_alpha>` is used.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_reload_effects:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **reload_effects**\ (\ ) :ref:`🔗<class_RichTextLabel_method_reload_effects>`
|
||
|
||
Recharge les effets personnalisés. Utile lorsque :ref:`custom_effects<class_RichTextLabel_property_custom_effects>` est modifié manuellement.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_remove_paragraph:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`bool<class_bool>` **remove_paragraph**\ (\ paragraph\: :ref:`int<class_int>`, no_invalidate\: :ref:`bool<class_bool>` = false\ ) :ref:`🔗<class_RichTextLabel_method_remove_paragraph>`
|
||
|
||
Retire un paragraphe de contenu de l'étiquette. Renvoie ``true`` si le paragraphe existe.
|
||
|
||
L'argument ``paragraph`` est l'index du paragraphe à supprimer, il peut prendre des valeurs dans l'intervalle ``[0, get_paragraph_count() - 1]``.
|
||
|
||
Si ``no_invalidate`` est défini à ``true``, le cache des paragraphes suivants n'est pas invalidé. Utilisez-le pour des mises à jour plus rapides si le paragraphe supprimé est entièrement autonome (pas de balises non fermées), ou cet appel fait partie d'une opération de modification complexe et :ref:`invalidate_paragraph()<class_RichTextLabel_method_invalidate_paragraph>` sera appelée à la fin de l'opération.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_scroll_to_line:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **scroll_to_line**\ (\ line\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RichTextLabel_method_scroll_to_line>`
|
||
|
||
Fait défiler la ligne supérieure de la fenêtre pour correspondre à la ligne ``line``.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_scroll_to_paragraph:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **scroll_to_paragraph**\ (\ paragraph\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RichTextLabel_method_scroll_to_paragraph>`
|
||
|
||
Fait défiler la ligne supérieure de la fenêtre pour correspondre à la première ligne du ``paragraph``.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_scroll_to_selection:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **scroll_to_selection**\ (\ ) :ref:`🔗<class_RichTextLabel_method_scroll_to_selection>`
|
||
|
||
Défile vers le début de la sélection actuelle.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_select_all:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **select_all**\ (\ ) :ref:`🔗<class_RichTextLabel_method_select_all>`
|
||
|
||
Sélectionne tout le texte.
|
||
|
||
Si :ref:`selection_enabled<class_RichTextLabel_property_selection_enabled>` vaut ``false``, aucun sélection ne se fera.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_set_cell_border_color:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **set_cell_border_color**\ (\ color\: :ref:`Color<class_Color>`\ ) :ref:`🔗<class_RichTextLabel_method_set_cell_border_color>`
|
||
|
||
Définit la couleur d'une bordure de cellule de tableau.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_set_cell_padding:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **set_cell_padding**\ (\ padding\: :ref:`Rect2<class_Rect2>`\ ) :ref:`🔗<class_RichTextLabel_method_set_cell_padding>`
|
||
|
||
Définit le rembourrage intérieur d'une cellule de tableau.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_set_cell_row_background_color:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **set_cell_row_background_color**\ (\ odd_row_bg\: :ref:`Color<class_Color>`, even_row_bg\: :ref:`Color<class_Color>`\ ) :ref:`🔗<class_RichTextLabel_method_set_cell_row_background_color>`
|
||
|
||
Définit la couleur d'une cellule de tableau. Des couleurs distinctes pour des rangées alternées peuvent être spécifiées.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_set_cell_size_override:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **set_cell_size_override**\ (\ min_size\: :ref:`Vector2<class_Vector2>`, max_size\: :ref:`Vector2<class_Vector2>`\ ) :ref:`🔗<class_RichTextLabel_method_set_cell_size_override>`
|
||
|
||
Définit la redéfinition de la taille minimale et maximale pour une cellule de tableau.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_set_table_column_expand:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **set_table_column_expand**\ (\ column\: :ref:`int<class_int>`, expand\: :ref:`bool<class_bool>`, ratio\: :ref:`int<class_int>` = 1, shrink\: :ref:`bool<class_bool>` = true\ ) :ref:`🔗<class_RichTextLabel_method_set_table_column_expand>`
|
||
|
||
Modifie les options d'extension de la colonne sélectionnée. Si ``expand`` vaut ``true``, la colonne s'étend proportionnellement à son rapport d'extension par rapport aux rapport des autres colonnes.
|
||
|
||
Par exemple, 2 colonnes avec des ratios 3 et 4 avec 70 pixels en largeur disponible augmenteraient respectivement 30 et 40 pixels.
|
||
|
||
Si ``expand`` vaut ``false``, la colonne ne contribuera pas au rapport total.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_set_table_column_name:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **set_table_column_name**\ (\ column\: :ref:`int<class_int>`, name\: :ref:`String<class_String>`\ ) :ref:`🔗<class_RichTextLabel_method_set_table_column_name>`
|
||
|
||
Définit le nom d'une colonne de tableau pour les applications d'assistance.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_method_update_image:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
|void| **update_image**\ (\ key\: :ref:`Variant<class_Variant>`, mask\: |bitfield|\[:ref:`ImageUpdateMask<enum_RichTextLabel_ImageUpdateMask>`\], image\: :ref:`Texture2D<class_Texture2D>`, width\: :ref:`int<class_int>` = 0, height\: :ref:`int<class_int>` = 0, color\: :ref:`Color<class_Color>` = Color(1, 1, 1, 1), inline_align\: :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` = 5, region\: :ref:`Rect2<class_Rect2>` = Rect2(0, 0, 0, 0), pad\: :ref:`bool<class_bool>` = false, tooltip\: :ref:`String<class_String>` = "", width_in_percent\: :ref:`bool<class_bool>` = false, height_in_percent\: :ref:`bool<class_bool>` = false\ ) :ref:`🔗<class_RichTextLabel_method_update_image>`
|
||
|
||
Met à jour les images existantes avec la clé ``key``. Seules les propriétés spécifiées par les bits de ``mask`` sont mises à jour. Voir :ref:`add_image()<class_RichTextLabel_method_add_image>`.
|
||
|
||
.. rst-class:: classref-section-separator
|
||
|
||
----
|
||
|
||
.. rst-class:: classref-descriptions-group
|
||
|
||
Descriptions des propriétés du thème
|
||
------------------------------------------------------------------------
|
||
|
||
.. _class_RichTextLabel_theme_color_default_color:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`Color<class_Color>` **default_color** = ``Color(1, 1, 1, 1)`` :ref:`🔗<class_RichTextLabel_theme_color_default_color>`
|
||
|
||
La couleur par défaut du texte.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_color_font_outline_color:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`Color<class_Color>` **font_outline_color** = ``Color(0, 0, 0, 1)`` :ref:`🔗<class_RichTextLabel_theme_color_font_outline_color>`
|
||
|
||
La teinte par défaut de du contour du texte.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_color_font_selected_color:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`Color<class_Color>` **font_selected_color** = ``Color(0, 0, 0, 0)`` :ref:`🔗<class_RichTextLabel_theme_color_font_selected_color>`
|
||
|
||
La couleur du texte sélectionné, utilisé quand :ref:`selection_enabled<class_RichTextLabel_property_selection_enabled>` vaut ``true``. Si égale à ``Color(0, 0, 0, 0)``, elle sera ignorée.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_color_font_shadow_color:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`Color<class_Color>` **font_shadow_color** = ``Color(0, 0, 0, 0)`` :ref:`🔗<class_RichTextLabel_theme_color_font_shadow_color>`
|
||
|
||
La couleur de l'ombre de la police.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_color_selection_color:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`Color<class_Color>` **selection_color** = ``Color(0.1, 0.1, 1, 0.8)`` :ref:`🔗<class_RichTextLabel_theme_color_selection_color>`
|
||
|
||
La couleur de la boîte de sélection.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_color_table_border:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`Color<class_Color>` **table_border** = ``Color(0, 0, 0, 0)`` :ref:`🔗<class_RichTextLabel_theme_color_table_border>`
|
||
|
||
La couleur par défaut de la bordure de cellule.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_color_table_even_row_bg:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`Color<class_Color>` **table_even_row_bg** = ``Color(0, 0, 0, 0)`` :ref:`🔗<class_RichTextLabel_theme_color_table_even_row_bg>`
|
||
|
||
La couleur d'arrière-plan par défaut pour les lignes paires.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_color_table_odd_row_bg:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`Color<class_Color>` **table_odd_row_bg** = ``Color(0, 0, 0, 0)`` :ref:`🔗<class_RichTextLabel_theme_color_table_odd_row_bg>`
|
||
|
||
La couleur d'arrière-plan par défaut pour les lignes impaires.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_constant_line_separation:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`int<class_int>` **line_separation** = ``0`` :ref:`🔗<class_RichTextLabel_theme_constant_line_separation>`
|
||
|
||
Espacement vertical supplémentaire entre les lignes (en pixels), l'espacement est ajouté à la descente de la ligne. Cette valeur peut être négative.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_constant_outline_size:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`int<class_int>` **outline_size** = ``0`` :ref:`🔗<class_RichTextLabel_theme_constant_outline_size>`
|
||
|
||
La taille du contour du texte.
|
||
|
||
\ **Note :** Si vous utilisez une police avec :ref:`FontFile.multichannel_signed_distance_field<class_FontFile_property_multichannel_signed_distance_field>` activé, sa propriété :ref:`FontFile.msdf_pixel_range<class_FontFile_property_msdf_pixel_range>` doit être définie à au moins *deux fois* la valeur de :ref:`outline_size<class_RichTextLabel_theme_constant_outline_size>` pour que le rendu des contours soit correct. Sinon, le contour peut sembler coupé plus tôt que prévu.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_constant_paragraph_separation:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`int<class_int>` **paragraph_separation** = ``0`` :ref:`🔗<class_RichTextLabel_theme_constant_paragraph_separation>`
|
||
|
||
Espacement vertical supplémentaire entre des paragraphes (en pixels). L'espacement est ajouté après la dernière ligne. Cette valeur peut être négative.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_constant_shadow_offset_x:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`int<class_int>` **shadow_offset_x** = ``1`` :ref:`🔗<class_RichTextLabel_theme_constant_shadow_offset_x>`
|
||
|
||
Le décalage horizontal pour l'ombre de la police.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_constant_shadow_offset_y:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`int<class_int>` **shadow_offset_y** = ``1`` :ref:`🔗<class_RichTextLabel_theme_constant_shadow_offset_y>`
|
||
|
||
Le décalage vertical pour l'ombre de la police.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_constant_shadow_outline_size:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`int<class_int>` **shadow_outline_size** = ``1`` :ref:`🔗<class_RichTextLabel_theme_constant_shadow_outline_size>`
|
||
|
||
La taille du contour d'ombre.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_constant_strikethrough_alpha:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`int<class_int>` **strikethrough_alpha** = ``50`` :ref:`🔗<class_RichTextLabel_theme_constant_strikethrough_alpha>`
|
||
|
||
La transparence de la couleur de la biffure par défaut (en pourcentage). Pour les biffures avec une couleur personnalisée, cet élément de thème n'est utilisé que si l'alpha de la couleur personnalisée vaut ``0.0`` (complètement transparente).
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_constant_table_h_separation:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`int<class_int>` **table_h_separation** = ``3`` :ref:`🔗<class_RichTextLabel_theme_constant_table_h_separation>`
|
||
|
||
La séparation horizontale des éléments dans un tableau.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_constant_table_v_separation:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`int<class_int>` **table_v_separation** = ``3`` :ref:`🔗<class_RichTextLabel_theme_constant_table_v_separation>`
|
||
|
||
La séparation verticale des éléments dans un tableau.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_constant_text_highlight_h_padding:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`int<class_int>` **text_highlight_h_padding** = ``3`` :ref:`🔗<class_RichTextLabel_theme_constant_text_highlight_h_padding>`
|
||
|
||
Le rembourrage horizontal autour des boîtes dessinées par les balises ``[fgcolor]`` et ``[bgcolor]``. Cela n'affecte pas l'apparence de la sélection de texte. Pour éviter tout risque de mises en valeur voisines qui se chevauchent, définissez ceci à ``0`` pour désactiver le rembourrage.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_constant_text_highlight_v_padding:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`int<class_int>` **text_highlight_v_padding** = ``3`` :ref:`🔗<class_RichTextLabel_theme_constant_text_highlight_v_padding>`
|
||
|
||
Le rembourrage vertical autour des boîtes dessinées par les balises ``[fgcolor]`` et ``[bgcolor]``. Cela n'affecte pas l'apparence de la sélection de texte. Pour éviter tout risque de mises en valeur voisines qui se chevauchent, définissez ceci à ``0`` pour désactiver le rembourrage.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_constant_underline_alpha:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`int<class_int>` **underline_alpha** = ``50`` :ref:`🔗<class_RichTextLabel_theme_constant_underline_alpha>`
|
||
|
||
La transparence de couleur de soulignement par défaut (pourcentage). Pour les soulignements avec une couleur personnalisée, cet élément de thème n'est utilisé que si l'alpha de la couleur personnalisée vaut ``0.0`` (complètement transparente).
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_font_bold_font:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`Font<class_Font>` **bold_font** :ref:`🔗<class_RichTextLabel_theme_font_bold_font>`
|
||
|
||
La police utilisée pour le texte en gras.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_font_bold_italics_font:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`Font<class_Font>` **bold_italics_font** :ref:`🔗<class_RichTextLabel_theme_font_bold_italics_font>`
|
||
|
||
La police utilisée pour les textes italiques gras.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_font_italics_font:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`Font<class_Font>` **italics_font** :ref:`🔗<class_RichTextLabel_theme_font_italics_font>`
|
||
|
||
La police utilisée pour le texte en italique.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_font_mono_font:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`Font<class_Font>` **mono_font** :ref:`🔗<class_RichTextLabel_theme_font_mono_font>`
|
||
|
||
La police utilisée pour le texte monospace.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_font_normal_font:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`Font<class_Font>` **normal_font** :ref:`🔗<class_RichTextLabel_theme_font_normal_font>`
|
||
|
||
La police par défaut du texte.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_font_size_bold_font_size:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`int<class_int>` **bold_font_size** :ref:`🔗<class_RichTextLabel_theme_font_size_bold_font_size>`
|
||
|
||
La taille de police utilisée pour du texte en gras.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_font_size_bold_italics_font_size:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`int<class_int>` **bold_italics_font_size** :ref:`🔗<class_RichTextLabel_theme_font_size_bold_italics_font_size>`
|
||
|
||
La taille de police utilisée pour du texte en italique gras.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_font_size_italics_font_size:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`int<class_int>` **italics_font_size** :ref:`🔗<class_RichTextLabel_theme_font_size_italics_font_size>`
|
||
|
||
La taille de police utilisée pour du texte en italique.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_font_size_mono_font_size:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`int<class_int>` **mono_font_size** :ref:`🔗<class_RichTextLabel_theme_font_size_mono_font_size>`
|
||
|
||
La taille de police utilisée pour du texte monospace.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_font_size_normal_font_size:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`int<class_int>` **normal_font_size** :ref:`🔗<class_RichTextLabel_theme_font_size_normal_font_size>`
|
||
|
||
La taille de police du texte par défaut.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_icon_horizontal_rule:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`Texture2D<class_Texture2D>` **horizontal_rule** :ref:`🔗<class_RichTextLabel_theme_icon_horizontal_rule>`
|
||
|
||
La texture de la ligne horizontale.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_style_focus:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`StyleBox<class_StyleBox>` **focus** :ref:`🔗<class_RichTextLabel_theme_style_focus>`
|
||
|
||
L'arrière-plan utilisé lorsque le **RichTextLabel** a le focus. La :ref:`StyleBox<class_StyleBox>` du :ref:`focus<class_RichTextLabel_theme_style_focus>` est affichée *sur* la :ref:`StyleBox<class_StyleBox>` de base, donc une :ref:`StyleBox<class_StyleBox>` partiellement transparente devrait être utilisée pour s'assurer que la :ref:`StyleBox<class_StyleBox>` de base reste visible. Une :ref:`StyleBox<class_StyleBox>` qui représente un contour ou un sous-lignage fonctionne bien à cette fin. Pour désactiver l'effet visuel du focus, assignez une ressource :ref:`StyleBoxEmpty<class_StyleBoxEmpty>`. Notez que la désactivation de l'effet visuel du focus va nuire à l'utilisabilité de la navigation avec clavier/contrôleur, ce qui n'est donc pas recommandé pour des raisons d'accessibilité.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_RichTextLabel_theme_style_normal:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`StyleBox<class_StyleBox>` **normal** :ref:`🔗<class_RichTextLabel_theme_style_normal>`
|
||
|
||
L'arrière-plan normal du **RichTextLabel**.
|
||
|
||
.. |virtual| replace:: :abbr:`virtual (Cette méthode doit typiquement être redéfinie par l'utilisateur pour avoir un effet.)`
|
||
.. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
|
||
.. |const| replace:: :abbr:`const (Cette méthode n'a pas d'effets de bord. Elle ne modifie aucune des variables membres de l'instance.)`
|
||
.. |vararg| replace:: :abbr:`vararg (Cette méthode accepte n'importe quel nombre d'arguments après ceux décris ici.)`
|
||
.. |constructor| replace:: :abbr:`constructor (Cette méthode est utilisée pour construire un type.)`
|
||
.. |static| replace:: :abbr:`static (Cette méthode n'a pas besoin d'instance pour être appelée, elle peut donc être directement appelée en utilisant le nom de la classe.)`
|
||
.. |operator| replace:: :abbr:`operator (Cette méthode décrit un opérateur valide à utiliser avec ce type en tant qu'opérande gauche.)`
|
||
.. |bitfield| replace:: :abbr:`BitField (Cette valeur est un nombre entier composé d'un masque de bits des options suivantes.)`
|
||
.. |void| replace:: :abbr:`void (Aucune valeur de retour.)`
|