:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/3.5/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/3.5/doc/classes/ScriptCreateDialog.xml. .. _class_ScriptCreateDialog: ScriptCreateDialog ================== **Inherits:** :ref:`ConfirmationDialog` **<** :ref:`AcceptDialog` **<** :ref:`WindowDialog` **<** :ref:`Popup` **<** :ref:`Control` **<** :ref:`CanvasItem` **<** :ref:`Node` **<** :ref:`Object` The Editor's popup dialog for creating new :ref:`Script` files. 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() Properties ---------- +-------------------------------+-------------------+----------------------------------------------------------------------------------------------------+ | :ref:`bool` | dialog_hide_on_ok | ``false`` (overrides :ref:`AcceptDialog`) | +-------------------------------+-------------------+----------------------------------------------------------------------------------------------------+ | :ref:`float` | margin_bottom | ``258.0`` (overrides :ref:`Control`) | +-------------------------------+-------------------+----------------------------------------------------------------------------------------------------+ | :ref:`float` | margin_right | ``366.0`` (overrides :ref:`Control`) | +-------------------------------+-------------------+----------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | rect_size | ``Vector2( 366, 258 )`` (overrides :ref:`Control`) | +-------------------------------+-------------------+----------------------------------------------------------------------------------------------------+ | :ref:`String` | window_title | ``"Attach Node Script"`` (overrides :ref:`WindowDialog`) | +-------------------------------+-------------------+----------------------------------------------------------------------------------------------------+ Methods ------- +------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`config` **(** :ref:`String` inherits, :ref:`String` path, :ref:`bool` built_in_enabled=true, :ref:`bool` load_enabled=true **)** | +------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Signals ------- .. _class_ScriptCreateDialog_signal_script_created: - **script_created** **(** :ref:`Script` script **)** Emitted when the user clicks the OK button. Method Descriptions ------------------- .. _class_ScriptCreateDialog_method_config: - void **config** **(** :ref:`String` inherits, :ref:`String` path, :ref:`bool` built_in_enabled=true, :ref:`bool` load_enabled=true **)** Prefills required fields to configure the ScriptCreateDialog for use. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`