:github_url: hide .. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the ScriptCreateDialog.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_ScriptCreateDialog: ScriptCreateDialog ================== **Inherits:** :ref:`ConfirmationDialog` **<** :ref:`AcceptDialog` **<** :ref:`WindowDialog` **<** :ref:`Popup` **<** :ref:`Control` **<** :ref:`CanvasItem` **<** :ref:`Node` **<** :ref:`Object` **Category:** Core Brief Description ----------------- The Editor's popup dialog for creating new :ref:`Script` files. Methods ------- +------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`config` **(** :ref:`String` inherits, :ref:`String` path, :ref:`bool` built_in_enabled=true **)** | +------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Signals ------- .. _class_ScriptCreateDialog_signal_script_created: - **script_created** **(** :ref:`Script` script **)** Emitted when the user clicks the OK button. Description ----------- 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 :ref:`Popup.popup` methods. :: func _ready(): 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() Method Descriptions ------------------- .. _class_ScriptCreateDialog_method_config: - void **config** **(** :ref:`String` inherits, :ref:`String` path, :ref:`bool` built_in_enabled=true **)** Prefills required fields to configure the ScriptCreateDialog for use.