oh-my-git/scenes/main.tscn

213 lines
6.4 KiB
Text
Raw Normal View History

2023-09-06 16:04:23 +02:00
[gd_scene load_steps=14 format=3 uid="uid://v70goeoq4k5y"]
[ext_resource type="PackedScene" uid="uid://bw81a517gpv2u" path="res://scenes/terminal.tscn" id="1"]
[ext_resource type="Script" path="res://scenes/main.gd" id="2"]
[ext_resource type="PackedScene" path="res://scenes/cards.tscn" id="3"]
[ext_resource type="StyleBox" path="res://styles/alert_button.tres" id="4"]
[ext_resource type="PackedScene" path="res://scenes/file_browser.tscn" id="5"]
[ext_resource type="Theme" uid="uid://d2e7phm6ufj2i" path="res://styles/theme.tres" id="6"]
[ext_resource type="FontFile" path="res://fonts/big.tres" id="7"]
[ext_resource type="AudioStream" uid="uid://b4cfjjgk8un1l" path="res://sounds/success.wav" id="8"]
[ext_resource type="Script" path="res://scenes/cursor.gd" id="9"]
[ext_resource type="PackedScene" path="res://scenes/cli_badge.tscn" id="10"]
[ext_resource type="PackedScene" path="res://scenes/music_button.tscn" id="11"]
[sub_resource type="CircleShape2D" id="1"]
2021-01-19 11:13:40 +01:00
radius = 1.0
2023-09-06 16:04:23 +02:00
[sub_resource type="StyleBoxFlat" id="2"]
content_margin_left = 10.0
content_margin_top = 5.0
2023-09-06 16:04:23 +02:00
content_margin_right = 10.0
content_margin_bottom = 5.0
2023-09-06 16:04:23 +02:00
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
[node name="Main" type="Control"]
2023-09-06 16:04:23 +02:00
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
2023-09-06 16:04:23 +02:00
offset_left = 8.0
offset_top = 8.0
offset_right = -8.0
offset_bottom = -8.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
2023-09-06 16:04:23 +02:00
theme = ExtResource("6")
script = ExtResource("2")
2020-09-01 21:25:24 +02:00
2020-09-29 17:05:04 +02:00
[node name="CanvasLayer" type="CanvasLayer" parent="."]
layer = -1
[node name="Background" type="ColorRect" parent="CanvasLayer"]
2023-09-06 16:04:23 +02:00
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 2
2023-09-06 16:04:23 +02:00
color = Color(0.0705882, 0.0705882, 0.0705882, 1)
2020-09-01 17:24:21 +02:00
2020-10-14 14:48:38 +02:00
[node name="Rows" type="VBoxContainer" parent="."]
2023-09-06 16:04:23 +02:00
layout_mode = 0
anchor_right = 1.0
anchor_bottom = 1.0
2020-10-14 14:48:38 +02:00
size_flags_vertical = 3
2023-09-06 16:04:23 +02:00
mouse_filter = 2
theme_override_constants/separation = 8
2020-10-14 14:48:38 +02:00
2020-10-27 15:48:23 +01:00
[node name="Columns" type="HBoxContainer" parent="Rows"]
2023-09-06 16:04:23 +02:00
layout_mode = 2
2020-10-14 14:48:38 +02:00
size_flags_vertical = 3
2023-09-06 16:04:23 +02:00
mouse_filter = 2
[node name="Repositories" type="VBoxContainer" parent="Rows/Columns"]
2023-09-06 16:04:23 +02:00
layout_mode = 2
size_flags_horizontal = 3
2020-10-27 15:48:23 +01:00
size_flags_stretch_ratio = 2.0
2023-09-06 16:04:23 +02:00
mouse_filter = 2
theme_override_constants/separation = 8
2020-10-27 17:32:41 +01:00
[node name="RightSide" type="VBoxContainer" parent="Rows/Columns"]
2023-09-06 16:04:23 +02:00
layout_mode = 2
2020-10-27 17:32:41 +01:00
size_flags_horizontal = 3
size_flags_vertical = 3
2023-09-06 16:04:23 +02:00
theme_override_constants/separation = 8
2020-10-27 17:32:41 +01:00
[node name="LevelInfo" type="VBoxContainer" parent="Rows/Columns/RightSide"]
2023-09-06 16:04:23 +02:00
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
2023-09-06 16:04:23 +02:00
theme_override_constants/separation = 8
2020-10-27 17:32:41 +01:00
[node name="LevelPanel" type="VBoxContainer" parent="Rows/Columns/RightSide/LevelInfo"]
2023-09-06 16:04:23 +02:00
layout_mode = 2
size_flags_vertical = 3
2020-10-27 17:32:41 +01:00
[node name="LevelName" type="RichTextLabel" parent="Rows/Columns/RightSide/LevelInfo/LevelPanel"]
2023-09-06 16:04:23 +02:00
custom_minimum_size = Vector2(0, 60)
layout_mode = 2
2021-02-09 14:53:50 +01:00
size_flags_stretch_ratio = 0.0
2023-09-06 16:04:23 +02:00
theme_override_fonts/normal_font = ExtResource("7")
2020-09-14 19:29:51 +02:00
text = "Level name here!"
2021-02-09 14:53:50 +01:00
scroll_active = false
2020-09-14 19:29:51 +02:00
2020-10-27 17:32:41 +01:00
[node name="Text" type="Control" parent="Rows/Columns/RightSide/LevelInfo/LevelPanel"]
2023-09-06 16:04:23 +02:00
layout_mode = 2
size_flags_vertical = 3
2020-10-27 17:32:41 +01:00
[node name="LevelDescription" type="RichTextLabel" parent="Rows/Columns/RightSide/LevelInfo/LevelPanel/Text"]
2023-09-06 16:04:23 +02:00
layout_mode = 0
anchor_right = 1.0
anchor_bottom = 1.0
size_flags_vertical = 3
bbcode_enabled = true
text = "Level description here!"
2020-10-27 17:32:41 +01:00
[node name="LevelCongrats" type="RichTextLabel" parent="Rows/Columns/RightSide/LevelInfo/LevelPanel/Text"]
visible = false
2023-09-06 16:04:23 +02:00
layout_mode = 0
anchor_right = 1.0
anchor_bottom = 1.0
size_flags_vertical = 3
bbcode_enabled = true
2020-09-18 11:15:09 +02:00
text = "Level description here!"
[node name="Goals" type="VBoxContainer" parent="Rows/Columns/RightSide/LevelInfo/LevelPanel"]
2023-09-06 16:04:23 +02:00
layout_mode = 2
size_flags_vertical = 3
2021-01-13 16:26:48 +01:00
size_flags_stretch_ratio = 0.0
2023-09-06 16:04:23 +02:00
[node name="FileBrowser" parent="Rows/Columns/RightSide" instance=ExtResource("5")]
layout_mode = 2
2020-10-27 17:32:41 +01:00
size_flags_vertical = 3
2021-01-19 11:13:40 +01:00
size_flags_stretch_ratio = 0.3
2020-10-27 17:32:41 +01:00
2020-10-27 15:48:23 +01:00
[node name="Controls" type="HBoxContainer" parent="Rows"]
2023-09-06 16:04:23 +02:00
layout_mode = 2
2020-10-27 15:48:23 +01:00
size_flags_vertical = 3
size_flags_stretch_ratio = 0.35
2023-09-06 16:04:23 +02:00
mouse_filter = 2
2020-10-27 15:48:23 +01:00
2023-09-06 16:04:23 +02:00
[node name="Cards" parent="Rows/Controls" instance=ExtResource("3")]
layout_mode = 2
2020-10-27 15:48:23 +01:00
size_flags_horizontal = 3
2020-10-14 14:48:38 +02:00
size_flags_vertical = 3
2020-10-27 15:48:23 +01:00
size_flags_stretch_ratio = 2.0
2020-10-14 14:48:38 +02:00
2023-09-06 16:04:23 +02:00
[node name="Terminal" parent="Rows/Controls" instance=ExtResource("1")]
layout_mode = 2
2020-10-27 15:48:23 +01:00
size_flags_horizontal = 3
size_flags_vertical = 3
2020-09-15 09:30:19 +02:00
2020-10-22 14:51:09 +02:00
[node name="SuccessSound" type="AudioStreamPlayer" parent="."]
2023-09-06 16:04:23 +02:00
stream = ExtResource("8")
volume_db = -10.0
[node name="Cursor" type="Node2D" parent="."]
2023-09-06 16:04:23 +02:00
position = Vector2(68.6342, 59.1206)
script = ExtResource("9")
[node name="Area2D" type="Area2D" parent="Cursor"]
collision_layer = 524288
collision_mask = 0
2023-09-06 16:04:23 +02:00
input_pickable = false
[node name="CollisionShape2D" type="CollisionShape2D" parent="Cursor/Area2D"]
2023-09-06 16:04:23 +02:00
shape = SubResource("1")
2021-01-19 11:13:40 +01:00
[node name="Menu" type="HBoxContainer" parent="."]
2023-09-06 16:04:23 +02:00
layout_mode = 0
offset_left = 3.86392
offset_top = 5.13129
offset_right = 636.864
offset_bottom = 44.1313
theme_override_constants/separation = 8
2021-01-19 11:13:40 +01:00
[node name="BackButton" type="Button" parent="Menu"]
2023-09-06 16:04:23 +02:00
layout_mode = 2
2021-01-19 11:13:40 +01:00
focus_mode = 0
text = "Back"
[node name="ReloadButton2" type="Button" parent="Menu"]
2023-09-06 16:04:23 +02:00
layout_mode = 2
2021-01-19 11:13:40 +01:00
focus_mode = 0
text = "Reload"
[node name="CardsButton" type="Button" parent="Menu"]
visible = false
2023-09-06 16:04:23 +02:00
layout_mode = 2
2021-01-19 11:13:40 +01:00
focus_mode = 0
text = "Cards!"
[node name="Tip!" type="Button" parent="Menu"]
visible = false
2023-09-06 16:04:23 +02:00
layout_mode = 2
2021-01-19 11:13:40 +01:00
focus_mode = 0
text = "Tip!"
2023-09-06 16:04:23 +02:00
[node name="Button3" parent="Menu" instance=ExtResource("11")]
layout_mode = 2
[node name="CLIBadge" parent="Menu" instance=ExtResource("10")]
layout_mode = 2
expand_mode = 1
2021-01-21 15:08:59 +01:00
[node name="NextLevelButton" type="Button" parent="Menu"]
2023-09-06 16:04:23 +02:00
layout_mode = 2
2021-01-19 11:13:40 +01:00
focus_mode = 0
2023-09-06 16:04:23 +02:00
theme_override_styles/normal = ExtResource("4")
theme_override_styles/hover = SubResource("2")
2021-01-19 11:13:40 +01:00
text = "Next level"
2023-09-06 16:04:23 +02:00
[connection signal="saved" from="Rows/Columns/RightSide/FileBrowser" to="." method="update_repos"]
2023-09-06 16:04:23 +02:00
[connection signal="command_done_signal" from="Rows/Controls/Terminal" to="." method="update_repos"]
2021-01-19 11:13:40 +01:00
[connection signal="pressed" from="Menu/BackButton" to="." method="back"]
[connection signal="pressed" from="Menu/ReloadButton2" to="." method="reload_level"]
[connection signal="pressed" from="Menu/CardsButton" to="." method="toggle_cards"]
[connection signal="pressed" from="Menu/Tip!" to="." method="new_tip"]
[connection signal="pressed" from="Menu/NextLevelButton" to="." method="load_next_level"]