LinkButton
Hereda: BaseButton < Control < CanvasItem < Node < Object
Un botón que representa un enlace.
Descripción
A button that represents a link. This type of button is primarily used for interactions that cause a context change (like linking to a web page).
See also BaseButton which contains common properties and methods associated with this node.
Propiedades
focus_mode |
|
|
|
||
mouse_default_cursor_shape |
|
|
|
||
|
||
|
||
|
||
|
||
|
Propiedades del Tema
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
Enumeraciones
enum UnderlineMode: 🔗
UnderlineMode UNDERLINE_MODE_ALWAYS = 0
El LinkButton siempre mostrará un subrayado en la parte inferior de su texto.
UnderlineMode UNDERLINE_MODE_ON_HOVER = 1
El LinkButton mostrará un subrayado en la parte inferior de su texto cuando el cursor del ratón esté sobre él.
UnderlineMode UNDERLINE_MODE_NEVER = 2
El LinkButton nunca mostrará un subrayado en la parte inferior de su texto.
Descripciones de Propiedades
Código de idioma utilizado para los algoritmos de salto de línea y forma del texto, si se deja vacío se utiliza la configuración regional actual.
StructuredTextParser structured_text_bidi_override = 0 🔗
void set_structured_text_bidi_override(value: StructuredTextParser)
StructuredTextParser get_structured_text_bidi_override()
Establece la sobrescritura del algoritmo BiDi para el texto estructurado.
Array structured_text_bidi_override_options = [] 🔗
void set_structured_text_bidi_override_options(value: Array)
Array get_structured_text_bidi_override_options()
Establece opciones adicionales para la sobrescritura BiDi.
El texto del botón que se mostrará dentro del área del botón.
TextDirection text_direction = 0 🔗
void set_text_direction(value: TextDirection)
TextDirection get_text_direction()
Dirección base de escritura del texto.
UnderlineMode underline = 0 🔗
void set_underline_mode(value: UnderlineMode)
UnderlineMode get_underline_mode()
El modo de subrayado a utilizar para el texto.
The URI for this LinkButton. If set to a valid URI, pressing the button opens the URI using the operating system's default program for the protocol (via OS.shell_open()). HTTP and HTTPS URLs open the default web browser.
uri = "https://godotengine.org" # Opens the URL in the default web browser.
uri = "C:\SomeFolder" # Opens the file explorer at the given path.
uri = "C:\SomeImage.png" # Opens the given image in the default viewing app.
Uri = "https://godotengine.org"; // Opens the URL in the default web browser.
Uri = "C:\SomeFolder"; // Opens the file explorer at the given path.
Uri = "C:\SomeImage.png"; // Opens the given image in the default viewing app.
Descripciones de las propiedades del tema
Color font_color = Color(0.875, 0.875, 0.875, 1) 🔗
Color del texto predeterminado del LinkButton.
Color font_disabled_color = Color(0, 0, 0, 1) 🔗
Text Color used when the LinkButton is disabled.
Color font_focus_color = Color(0.95, 0.95, 0.95, 1) 🔗
Text Color used when the LinkButton is focused. Only replaces the normal text color of the button. Disabled, hovered, and pressed states take precedence over this color.
Color font_hover_color = Color(0.95, 0.95, 0.95, 1) 🔗
Color del texto usado cuando el LinkButton está siendo movido.
Color font_hover_pressed_color = Color(0, 0, 0, 1) 🔗
Text Color used when the LinkButton is being hovered and pressed.
Color font_outline_color = Color(0, 0, 0, 1) 🔗
The tint of text outline of the LinkButton.
Color font_pressed_color = Color(1, 1, 1, 1) 🔗
Color del texto utilizado cuando se pulsa el LinkButton.
The size of the text outline.
Note: If using a font with FontFile.multichannel_signed_distance_field enabled, its FontFile.msdf_pixel_range must be set to at least twice the value of outline_size for outline rendering to look correct. Otherwise, the outline may appear to be cut off earlier than intended.
El espacio vertical entre la línea de base del texto y el subrayado.
Font del texto del LinkButton.
Font size of the LinkButton's text.
StyleBox used when the LinkButton is focused. The focus StyleBox is displayed over the base StyleBox, so a partially transparent StyleBox should be used to ensure the base StyleBox remains visible. A StyleBox that represents an outline or an underline works well for this purpose. To disable the focus visual effect, assign a StyleBoxEmpty resource. Note that disabling the focus visual effect will harm keyboard/controller navigation usability, so this is not recommended for accessibility reasons.