github_url: | hide |
---|
Inherits: :ref:`ConfirmationDialog<class_ConfirmationDialog>` < :ref:`AcceptDialog<class_AcceptDialog>` < :ref:`WindowDialog<class_WindowDialog>` < :ref:`Popup<class_Popup>` < :ref:`Control<class_Control>` < :ref:`CanvasItem<class_CanvasItem>` < :ref:`Node<class_Node>` < :ref:`Object<class_Object>`
The Editor's popup dialog for creating new :ref:`Script<class_Script>` files.
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<class_Popup_method_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()
:ref:`bool<class_bool>` | dialog_hide_on_ok | O: false |
:ref:`float<class_float>` | margin_bottom | O: 232.0 |
:ref:`float<class_float>` | margin_right | O: 361.0 |
:ref:`Vector2<class_Vector2>` | rect_size | O: Vector2( 361, 232 ) |
:ref:`String<class_String>` | window_title | O: "Attach Node Script" |
void | :ref:`config<class_ScriptCreateDialog_method_config>` ( :ref:`String<class_String>` inherits, :ref:`String<class_String>` path, :ref:`bool<class_bool>` built_in_enabled=true, :ref:`bool<class_bool>` load_enabled=true ) |
- script_created ( :ref:`Script<class_Script>` script )
Emitted when the user clicks the OK button.
- void config ( :ref:`String<class_String>` inherits, :ref:`String<class_String>` path, :ref:`bool<class_bool>` built_in_enabled=true, :ref:`bool<class_bool>` load_enabled=true )
Prefills required fields to configure the ScriptCreateDialog for use.