Documentation
¶
Overview ¶
Package ScriptCreateDialog provides methods for working with ScriptCreateDialog object instances.
Index ¶
- type Advanced
- type Any
- type Instance
- func (self Instance) AsAcceptDialog() AcceptDialog.Instance
- func (self Instance) AsConfirmationDialog() ConfirmationDialog.Instance
- func (self Instance) AsNode() Node.Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsScriptCreateDialog() Instance
- func (self Instance) AsViewport() Viewport.Instance
- func (self Instance) AsWindow() Window.Instance
- func (self Instance) Config(inherits string, path string)
- func (self Instance) OnScriptCreated(cb func(script [1]gdclass.Script))
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type Instance ¶
type Instance [1]gdclass.ScriptCreateDialog
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 [method Window.popup] methods. [codeblocks] [gdscript] 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()
[/gdscript] [csharp] 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(); }
[/csharp] [/codeblocks]
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsAcceptDialog ¶
func (self Instance) AsAcceptDialog() AcceptDialog.Instance
func (Instance) AsConfirmationDialog ¶
func (self Instance) AsConfirmationDialog() ConfirmationDialog.Instance
func (Instance) AsScriptCreateDialog ¶
func (Instance) AsViewport ¶
func (Instance) OnScriptCreated ¶
func (*Instance) UnsafePointer ¶
Click to show internal directories.
Click to hide internal directories.