ScriptCreateDialog
Hereda: ConfirmationDialog < AcceptDialog < Window < Viewport < Node < Object
Cuadro de diálogo emergente del editor Godot para crear nuevos archivos Script.
Descripción
The ScriptCreateDialog creates script files according to a given template for a given scripting language. The standard use is to configure its fields prior to calling one of the Window.popup() methods.
func _ready():
var dialog = ScriptCreateDialog.new();
dialog.config("Node", "res://new_node.gd") # For in-engine types.
dialog.config("\"res://base_node.gd\"", "res://derived_node.gd") # For script types.
dialog.popup_centered()
public override void _Ready()
{
var dialog = new ScriptCreateDialog();
dialog.Config("Node", "res://NewNode.cs"); // For in-engine types.
dialog.Config("\"res://BaseNode.cs\"", "res://DerivedNode.cs"); // For script types.
dialog.PopupCentered();
}
Propiedades
dialog_hide_on_ok |
|
|
ok_button_text |
|
|
title |
|
Métodos
void |
config(inherits: String, path: String, built_in_enabled: bool = true, load_enabled: bool = true) |
Señales
script_created(script: Script) 🔗
Emitida cuando el usuario hace clic en el botón OK.
Descripciones de Métodos
void config(inherits: String, path: String, built_in_enabled: bool = true, load_enabled: bool = true) 🔗
Rellena previamente los campos obligatorios para configurar el ScriptCreateDialog para su uso.