oh-my-git/main.tscn

194 lines
5.1 KiB
Text
Raw Normal View History

2020-09-15 09:30:19 +02:00
[gd_scene load_steps=11 format=2]
2020-01-29 20:25:13 +01:00
[ext_resource path="res://terminal.tscn" type="PackedScene" id=1]
2020-03-18 15:23:38 +01:00
[ext_resource path="res://main.gd" type="Script" id=2]
2020-09-01 17:24:21 +02:00
[ext_resource path="res://repository.tscn" type="PackedScene" id=3]
[ext_resource path="res://styles/alert_button.tres" type="StyleBox" id=4]
2020-09-01 21:25:24 +02:00
[ext_resource path="res://fonts/default.tres" type="DynamicFont" id=5]
[ext_resource path="res://text_editor.gd" type="Script" id=6]
2020-09-14 19:29:51 +02:00
[ext_resource path="res://fonts/big.tres" type="DynamicFont" id=7]
2020-09-15 09:30:19 +02:00
[ext_resource path="res://tcp_server.gd" type="Script" id=8]
[ext_resource path="res://test.gd" type="Script" id=9]
2020-09-01 21:25:24 +02:00
[sub_resource type="StyleBoxFlat" id=1]
bg_color = Color( 0.847059, 0.0666667, 0.0666667, 1 )
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3
2020-01-29 20:25:13 +01:00
[node name="Main" type="Node2D"]
2020-03-18 15:23:38 +01:00
script = ExtResource( 2 )
2020-03-18 20:03:17 +01:00
2020-09-01 21:25:24 +02:00
[node name="Background" type="ColorRect" parent="."]
margin_right = 1922.0
margin_bottom = 1081.0
mouse_filter = 2
color = Color( 0.0705882, 0.0705882, 0.0705882, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Terminal" parent="." instance=ExtResource( 1 )]
anchor_right = 0.0
anchor_bottom = 0.0
2020-09-14 19:29:51 +02:00
margin_left = 1218.0
margin_top = 607.0
margin_right = 1913.0
margin_bottom = 1071.0
2020-09-01 19:45:29 +02:00
[node name="TextEditor" type="TextEdit" parent="."]
visible = false
2020-09-01 21:25:24 +02:00
margin_left = 1209.0
2020-09-03 22:39:16 +02:00
margin_top = 484.0
2020-09-01 21:25:24 +02:00
margin_right = 1907.0
margin_bottom = 1068.0
2020-09-03 22:39:16 +02:00
custom_fonts/font = ExtResource( 5 )
2020-09-05 10:47:38 +02:00
custom_colors/background_color = Color( 0, 0, 0, 1 )
syntax_highlighting = true
script = ExtResource( 6 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="SaveButton" type="Button" parent="TextEditor"]
2020-09-03 22:39:16 +02:00
margin_left = 540.661
margin_top = 528.031
margin_right = 689.661
margin_bottom = 577.031
custom_fonts/font = ExtResource( 5 )
2020-09-01 21:25:24 +02:00
text = "Save"
__meta__ = {
"_edit_use_anchors_": false
}
2020-09-01 17:24:21 +02:00
[node name="LevelSelect" type="MenuButton" parent="."]
margin_left = 1226.25
margin_top = 16.2615
margin_right = 1388.25
margin_bottom = 48.2615
2020-09-03 18:15:56 +02:00
custom_fonts/font = ExtResource( 5 )
text = "Select level..."
flat = false
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Repositories" type="HBoxContainer" parent="."]
margin_left = 5.0
2020-09-03 18:10:09 +02:00
margin_top = 5.0
2020-09-14 16:03:01 +02:00
margin_right = 1218.0
margin_bottom = 1076.0
2020-09-03 18:10:09 +02:00
mouse_filter = 2
custom_constants/separation = 0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="GoalRepository" parent="Repositories" instance=ExtResource( 3 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 0.0
margin_top = 0.0
2020-09-14 16:03:01 +02:00
margin_right = 606.0
margin_bottom = 1071.0
size_flags_horizontal = 3
size_flags_vertical = 3
2020-09-03 18:10:09 +02:00
label = "Goal"
[node name="ActiveRepository" parent="Repositories" instance=ExtResource( 3 )]
anchor_right = 0.0
anchor_bottom = 0.0
2020-09-14 16:03:01 +02:00
margin_left = 606.0
margin_top = 0.0
2020-09-14 16:03:01 +02:00
margin_right = 1213.0
margin_bottom = 1071.0
size_flags_horizontal = 3
size_flags_vertical = 3
label = "Your repository"
2020-09-14 19:29:51 +02:00
[node name="LevelName" type="RichTextLabel" parent="."]
margin_left = 1224.0
2020-09-14 19:29:51 +02:00
margin_top = 62.0
margin_right = 1889.0
2020-09-14 19:29:51 +02:00
margin_bottom = 128.0
custom_fonts/normal_font = ExtResource( 7 )
text = "Level name here!"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="LevelDescription" type="RichTextLabel" parent="."]
margin_left = 1224.0
margin_top = 121.0
margin_right = 1908.0
margin_bottom = 605.0
custom_fonts/normal_font = ExtResource( 5 )
bbcode_enabled = true
bbcode_text = "Level description here!"
text = "Level description here!"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="LevelCongrats" type="RichTextLabel" parent="."]
visible = false
margin_left = 1224.0
margin_top = 121.0
margin_right = 1908.0
margin_bottom = 605.0
custom_fonts/normal_font = ExtResource( 5 )
bbcode_enabled = true
bbcode_text = "Level description here!"
text = "Level congrats here!"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="NextLevelButton" type="Button" parent="."]
2020-09-13 21:55:24 +02:00
margin_left = 1688.03
margin_top = 16.2615
margin_right = 1906.03
margin_bottom = 47.2615
custom_styles/hover = SubResource( 1 )
custom_styles/normal = ExtResource( 4 )
custom_fonts/font = ExtResource( 5 )
text = "Next Level"
__meta__ = {
"_edit_use_anchors_": false
}
2020-09-13 21:55:24 +02:00
[node name="ReloadButton" type="Button" parent="."]
margin_left = 1400.72
margin_top = 16.2615
margin_right = 1545.72
margin_bottom = 47.2615
custom_fonts/font = ExtResource( 5 )
text = "Reload"
__meta__ = {
"_edit_use_anchors_": false
}
2020-09-15 09:30:19 +02:00
[node name="Test" type="Node2D" parent="."]
visible = false
script = ExtResource( 9 )
[node name="TCPServer" type="Node" parent="Test"]
script = ExtResource( 8 )
port = 6666
[node name="LineEdit" type="LineEdit" parent="Test"]
margin_left = 1362.49
margin_top = 827.517
margin_right = 1772.49
margin_bottom = 914.517
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="pressed" from="TextEditor/SaveButton" to="." method="save_message"]
[connection signal="button_down" from="LevelSelect" to="." method="repopulate_levels"]
[connection signal="pressed" from="NextLevelButton" to="." method="load_next_level"]
2020-09-13 21:55:24 +02:00
[connection signal="pressed" from="ReloadButton" to="." method="reload_level"]
2020-09-15 09:30:19 +02:00
[connection signal="data_received" from="Test/TCPServer" to="Test" method="data"]
[connection signal="text_entered" from="Test/LineEdit" to="Test" method="send"]