mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-13 19:04:54 +01:00
01cf45dee4
As well as a commit message editor! \o/
73 lines
1.6 KiB
Text
73 lines
1.6 KiB
Text
[gd_scene load_steps=3 format=2]
|
|
|
|
[ext_resource path="res://terminal.gd" type="Script" id=1]
|
|
[ext_resource path="res://main.gd" type="Script" id=2]
|
|
|
|
[node name="Main" type="Node2D"]
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="Index" type="Label" parent="."]
|
|
margin_left = 35.0
|
|
margin_top = 120.0
|
|
margin_right = 374.0
|
|
margin_bottom = 1044.0
|
|
text = "file1
|
|
file2"
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="IndexLabel" type="Label" parent="."]
|
|
margin_left = 38.0
|
|
margin_top = 69.0
|
|
margin_right = 377.0
|
|
margin_bottom = 108.0
|
|
text = "Index:"
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Terminal" type="Node2D" parent="."]
|
|
z_index = 1
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="Output" type="TextEdit" parent="Terminal"]
|
|
margin_left = 1416.1
|
|
margin_top = 4.0
|
|
margin_right = 1915.1
|
|
margin_bottom = 1008.0
|
|
readonly = true
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Input" type="LineEdit" parent="Terminal"]
|
|
margin_left = 1414.0
|
|
margin_top = 1019.0
|
|
margin_right = 1913.0
|
|
margin_bottom = 1075.0
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="CommitMessage" type="TextEdit" parent="."]
|
|
visible = false
|
|
margin_left = 889.832
|
|
margin_top = 16.4234
|
|
margin_right = 1388.83
|
|
margin_bottom = 582.423
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Button" type="Button" parent="CommitMessage"]
|
|
margin_left = 344.277
|
|
margin_top = 509.45
|
|
margin_right = 493.277
|
|
margin_bottom = 558.45
|
|
text = "SAVE!"
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
[connection signal="text_entered" from="Terminal/Input" to="Terminal" method="send_command"]
|
|
[connection signal="pressed" from="CommitMessage/Button" to="." method="save_commit_message"]
|