Web Analytics

godot-plugins-gtml

⭐ 54 stars Spanish by Niekvdm

GTML - Godot Markup Language

Un complemento para Godot 4.x que te permite construir UI usando HTML y CSS. Crea menús de juego, HUDs y paneles con tecnologías web familiares.

Características

Inicio Rápido

1. Instalar

Copia addons/gtml/ a tu proyecto y habilítalo en Configuración del Proyecto → Plugins.

2. Crear Archivos

menu.html:

menu.css:

.menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px;
    background-color: #1a1a2e;
}

h1 { font-size: 32px; color: #ffffff; }

button { padding: 12px 24px; background-color: #00d4ff; border-radius: 4px; color: #000000; transition: background-color 200ms ease; }

button:hover { background-color: #00a8cc; }

3. Añadir el nodo GmlView

Añade un nodo GmlView y configura Ruta Html y Ruta Css en el Inspector.

4. Conectar señales

func _ready():
    $GmlView.button_clicked.connect(_on_button_clicked)

func _on_button_clicked(method_name: String): match method_name: "on_play": get_tree().change_scene_to_file("res://game.tscn") "on_quit": get_tree().quit()

Documentación

Ejemplos

Consulta addons/gtml/examples/ para demos funcionales:

Licencia

Licencia MIT

--- Tranlated By Open Ai Tx | Last indexed: 2025-12-23 ---