mirror of
https://github.com/Relintai/material-maker.git
synced 2024-12-23 21:16:54 +01:00
d05631122c
Added documentation for Material, Export, Comment, Switch and Remote nodes. Fixed missing "tool" attribute in editable_label script. Reordered misc. nodes in base library.
14 lines
392 B
GDScript
14 lines
392 B
GDScript
tool
|
|
extends Label
|
|
|
|
func _ready():
|
|
pass
|
|
|
|
func _on_gui_input(ev):
|
|
if ev is InputEventMouseButton and ev.doubleclick and ev.button_index == BUTTON_LEFT:
|
|
var dialog = preload("res://addons/material_maker/widgets/line_dialog.tscn").instance()
|
|
add_child(dialog)
|
|
dialog.set_texts("Remote", "Enter a name this control")
|
|
dialog.connect("ok", self, "set_text", [])
|
|
dialog.popup_centered()
|