material-maker/addons/material_maker/widgets/linked_widgets/editable_label.gd
RodZill4 cb03131b85 Added control link check and editable labels
Now linking new controls to a linked_control will check compatibility (same control type and parameters).
Linked control labels are now editable.
Modified the Switch node layout so it is easier to understand.
Updated the bricks example to use the switch and remote nodes.
2018-09-10 08:00:03 +02:00

13 lines
387 B
GDScript

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()