Intial commit

This commit is contained in:
2020-05-15 20:02:56 -04:00
commit ad966789c5
284 changed files with 6546 additions and 0 deletions

View File

@ -0,0 +1,52 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://addons/EXP-System-Dialog/Dialog Editor/Editor/editor.gd" type="Script" id=1]
[node name="WindowDialog" type="WindowDialog"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -540.0
margin_top = -384.0
margin_right = 540.0
margin_bottom = 384.0
window_title = "Node Editor"
resizable = true
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 13.0
margin_top = 13.0
margin_right = -13.0
margin_bottom = -13.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="TextEdit" type="TextEdit" parent="VBoxContainer"]
margin_right = 1054.0
margin_bottom = 718.0
size_flags_horizontal = 3
size_flags_vertical = 3
smooth_scrolling = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="OK_BTN" type="Button" parent="VBoxContainer"]
margin_left = 503.0
margin_top = 722.0
margin_right = 550.0
margin_bottom = 742.0
hint_tooltip = "Close the node editor."
size_flags_horizontal = 4
size_flags_vertical = 0
text = "Close"
[connection signal="text_changed" from="VBoxContainer/TextEdit" to="." method="_on_TextEdit_text_changed"]
[connection signal="pressed" from="VBoxContainer/OK_BTN" to="." method="_on_OK_BTN_pressed"]

View File

@ -0,0 +1,21 @@
tool
extends WindowDialog
onready var _Text_Editor = self.get_node("VBoxContainer/TextEdit")
var _Target_Node
#Public Methods
func set_target_node(node):
self._Target_Node = node
self._Text_Editor.text = node.get_text()
#Callback Methods
func _on_OK_BTN_pressed():
self.visible = false
func _on_TextEdit_text_changed():
self._Target_Node.set_text(self._Text_Editor.text)