oh-my-git/scenes/text_editor.tscn

42 lines
1.1 KiB
Text
Raw Normal View History

2023-09-06 16:04:23 +02:00
[gd_scene load_steps=3 format=3 uid="uid://d00aa7p4xsxf2"]
2023-09-06 16:04:23 +02:00
[ext_resource type="FontFile" path="res://fonts/default.tres" id="1"]
[ext_resource type="Script" path="res://scenes/text_editor.gd" id="2"]
2023-09-06 16:04:23 +02:00
[node name="TextEditor" type="TextEdit" groups=["editors"]]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
2023-09-06 16:04:23 +02:00
theme_override_colors/background_color = Color(0, 0, 0, 1)
text = "Text here"
2023-09-06 16:04:23 +02:00
script = ExtResource("2")
[node name="SaveButton" type="Button" parent="."]
2023-09-06 16:04:23 +02:00
layout_mode = 0
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
2023-09-06 16:04:23 +02:00
offset_left = -114.396
offset_top = -59.399
offset_right = -14.3955
offset_bottom = -14.399
focus_mode = 0
2023-09-06 16:04:23 +02:00
theme_override_fonts/font = ExtResource("1")
text = "Save"
2020-09-22 15:55:01 +02:00
[node name="CloseButton" type="Button" parent="."]
2023-09-06 16:04:23 +02:00
layout_mode = 0
2020-09-22 15:55:01 +02:00
anchor_left = 1.0
anchor_right = 1.0
2023-09-06 16:04:23 +02:00
offset_left = -54.3247
offset_top = 12.0
offset_right = -14.3247
offset_bottom = 52.0
2020-09-22 15:55:01 +02:00
focus_mode = 0
2023-09-06 16:04:23 +02:00
theme_override_fonts/font = ExtResource("1")
2020-09-22 15:55:01 +02:00
text = "x"
2023-09-06 16:04:23 +02:00
[connection signal="pressed" from="SaveButton" to="." method="save"]
2020-09-22 15:55:01 +02:00
[connection signal="pressed" from="CloseButton" to="." method="close"]