aboutsummaryrefslogtreecommitdiff
path: root/scenes/gui.tscn
diff options
context:
space:
mode:
Diffstat (limited to 'scenes/gui.tscn')
-rw-r--r--scenes/gui.tscn180
1 files changed, 108 insertions, 72 deletions
diff --git a/scenes/gui.tscn b/scenes/gui.tscn
index f6588d9..1ca7631 100644
--- a/scenes/gui.tscn
+++ b/scenes/gui.tscn
@@ -1,4 +1,4 @@
-[gd_scene load_steps=10 format=2]
+[gd_scene load_steps=13 format=2]
[ext_resource path="res://scripts/gui.gd" type="Script" id=1]
[ext_resource path="res://themes/DarkTheme/Dark.theme" type="Theme" id=2]
@@ -7,6 +7,11 @@
[ext_resource path="res://scripts/gui_turret.gd" type="Script" id=5]
[ext_resource path="res://scripts/gui_bottom_bar.gd" type="Script" id=6]
[ext_resource path="res://scripts/gui_top_bar.gd" type="Script" id=7]
+[ext_resource path="res://scenes/gui/gui_turret_detail.tscn" type="PackedScene" id=8]
+
+[sub_resource type="StyleBoxFlat" id=4]
+bg_color = Color( 0, 0, 0, 0 )
+border_width_bottom = 1
[sub_resource type="OpenSimplexNoise" id=1]
seed = -7
@@ -17,6 +22,13 @@ height = 100
seamless = true
noise = SubResource( 1 )
+[sub_resource type="StyleBoxFlat" id=3]
+resource_local_to_scene = true
+resource_name = "border"
+bg_color = Color( 0.6, 0.6, 0.6, 0 )
+border_width_top = 1
+shadow_offset = Vector2( 1, 1 )
+
[node name="gui" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
@@ -39,6 +51,10 @@ __meta__ = {
"_edit_use_anchors_": false
}
+[node name="gui_turret_detail" parent="." instance=ExtResource( 8 )]
+anchor_top = 0.5
+anchor_bottom = 0.5
+
[node name="top_bar" type="Control" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
@@ -109,7 +125,7 @@ margin_left = 139.0
margin_top = 7.0
margin_right = 159.4
margin_bottom = 31.4
-custom_colors/font_color = Color( 1, 0, 0, 1 )
+custom_colors/font_color = Color( 0, 0.203922, 1, 1 )
text = "0a"
valign = 1
__meta__ = {
@@ -121,7 +137,7 @@ margin_left = 162.0
margin_top = 7.0
margin_right = 182.4
margin_bottom = 31.4
-custom_colors/font_color = Color( 0, 0.203922, 1, 1 )
+custom_colors/font_color = Color( 1, 0, 0, 1 )
text = "0d"
valign = 1
__meta__ = {
@@ -179,6 +195,15 @@ margin_right = 81.0
margin_bottom = -5.0
text = "Next Wave"
+[node name="border" type="Panel" parent="top_bar/panel"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+mouse_filter = 2
+custom_styles/panel = SubResource( 4 )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
[node name="bottom_bar" type="Control" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
@@ -193,64 +218,80 @@ __meta__ = {
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
-margin_top = -270.0
+margin_top = -320.0
margin_bottom = -220.0
script = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
-[node name="ScrollContainer" type="ScrollContainer" parent="bottom_bar/voxels"]
+[node name="Hbox" type="HBoxContainer" parent="bottom_bar/voxels"]
anchor_right = 1.0
-anchor_bottom = 1.0
-scroll_vertical_enabled = false
+margin_bottom = 50.0
+custom_constants/separation = 1
+alignment = 1
__meta__ = {
"_edit_use_anchors_": false
}
-[node name="Hbox" type="HBoxContainer" parent="bottom_bar/voxels/ScrollContainer"]
-margin_right = 101.0
-margin_bottom = 50.0
-custom_constants/separation = 1
-alignment = 1
+[node name="0" type="TextureButton" parent="bottom_bar/voxels/Hbox"]
+margin_left = 361.0
+margin_right = 461.0
+margin_bottom = 100.0
+rect_min_size = Vector2( 100, 100 )
+rect_pivot_offset = Vector2( 50, 50 )
+size_flags_horizontal = 9
+script = ExtResource( 5 )
__meta__ = {
"_edit_use_anchors_": false
}
-[node name="0" type="TextureButton" parent="bottom_bar/voxels/ScrollContainer/Hbox"]
-margin_right = 50.0
-margin_bottom = 50.0
-rect_min_size = Vector2( 50, 50 )
-rect_pivot_offset = Vector2( 25, 25 )
+[node name="TextureRect" type="ColorRect" parent="bottom_bar/voxels/Hbox/0"]
+margin_right = 100.0
+margin_bottom = 100.0
+mouse_filter = 2
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="1" type="TextureButton" parent="bottom_bar/voxels/Hbox"]
+margin_left = 462.0
+margin_right = 562.0
+margin_bottom = 100.0
+rect_min_size = Vector2( 100, 100 )
+rect_pivot_offset = Vector2( 50, 50 )
size_flags_horizontal = 9
script = ExtResource( 5 )
__meta__ = {
"_edit_use_anchors_": false
}
-[node name="TextureRect" type="ColorRect" parent="bottom_bar/voxels/ScrollContainer/Hbox/0"]
-margin_right = 50.0
-margin_bottom = 50.0
+[node name="TextureRect" type="ColorRect" parent="bottom_bar/voxels/Hbox/1"]
+margin_right = 100.0
+margin_bottom = 100.0
+mouse_filter = 2
+color = Color( 0.388235, 0, 1, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
-[node name="1" type="TextureButton" parent="bottom_bar/voxels/ScrollContainer/Hbox"]
-margin_left = 51.0
-margin_right = 101.0
-margin_bottom = 50.0
-rect_min_size = Vector2( 50, 50 )
-rect_pivot_offset = Vector2( 25, 25 )
+[node name="2" type="TextureButton" parent="bottom_bar/voxels/Hbox"]
+margin_left = 563.0
+margin_right = 663.0
+margin_bottom = 100.0
+rect_min_size = Vector2( 100, 100 )
+rect_pivot_offset = Vector2( 50, 50 )
size_flags_horizontal = 9
script = ExtResource( 5 )
__meta__ = {
"_edit_use_anchors_": false
}
-[node name="TextureRect" type="ColorRect" parent="bottom_bar/voxels/ScrollContainer/Hbox/1"]
-margin_right = 50.0
-margin_bottom = 50.0
-color = Color( 0.619608, 0, 0.639216, 1 )
+[node name="TextureRect" type="ColorRect" parent="bottom_bar/voxels/Hbox/2"]
+margin_right = 100.0
+margin_bottom = 100.0
+mouse_filter = 2
+color = Color( 0.113725, 0, 1, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
@@ -266,16 +307,8 @@ __meta__ = {
"_edit_use_anchors_": false
}
-[node name="ScrollContainer" type="ScrollContainer" parent="bottom_bar/map_tools"]
+[node name="Hbox" type="HBoxContainer" parent="bottom_bar/map_tools"]
anchor_right = 1.0
-anchor_bottom = 1.0
-scroll_vertical_enabled = false
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="Hbox" type="HBoxContainer" parent="bottom_bar/map_tools/ScrollContainer"]
-margin_right = 403.0
margin_bottom = 100.0
custom_constants/separation = 1
alignment = 1
@@ -283,8 +316,9 @@ __meta__ = {
"_edit_use_anchors_": false
}
-[node name="attach" type="TextureButton" parent="bottom_bar/map_tools/ScrollContainer/Hbox"]
-margin_right = 100.0
+[node name="attach" type="TextureButton" parent="bottom_bar/map_tools/Hbox"]
+margin_left = 310.0
+margin_right = 410.0
margin_bottom = 100.0
rect_min_size = Vector2( 100, 100 )
rect_pivot_offset = Vector2( 50, 50 )
@@ -294,7 +328,7 @@ __meta__ = {
"_edit_use_anchors_": false
}
-[node name="TextureRect" type="TextureRect" parent="bottom_bar/map_tools/ScrollContainer/Hbox/attach"]
+[node name="TextureRect" type="TextureRect" parent="bottom_bar/map_tools/Hbox/attach"]
margin_right = 100.0
margin_bottom = 100.0
texture = SubResource( 2 )
@@ -303,7 +337,7 @@ __meta__ = {
"_edit_use_anchors_": false
}
-[node name="Label" type="Label" parent="bottom_bar/map_tools/ScrollContainer/Hbox/attach"]
+[node name="Label" type="Label" parent="bottom_bar/map_tools/Hbox/attach"]
margin_left = 29.0
margin_top = 5.0
margin_right = 69.0
@@ -313,9 +347,9 @@ __meta__ = {
"_edit_use_anchors_": false
}
-[node name="start path" type="TextureButton" parent="bottom_bar/map_tools/ScrollContainer/Hbox"]
-margin_left = 101.0
-margin_right = 201.0
+[node name="start path" type="TextureButton" parent="bottom_bar/map_tools/Hbox"]
+margin_left = 411.0
+margin_right = 511.0
margin_bottom = 100.0
rect_min_size = Vector2( 100, 100 )
rect_pivot_offset = Vector2( 50, 50 )
@@ -325,7 +359,7 @@ __meta__ = {
"_edit_use_anchors_": false
}
-[node name="TextureRect" type="TextureRect" parent="bottom_bar/map_tools/ScrollContainer/Hbox/start path"]
+[node name="TextureRect" type="TextureRect" parent="bottom_bar/map_tools/Hbox/start path"]
margin_right = 100.0
margin_bottom = 100.0
texture = SubResource( 2 )
@@ -334,7 +368,7 @@ __meta__ = {
"_edit_use_anchors_": false
}
-[node name="Label" type="Label" parent="bottom_bar/map_tools/ScrollContainer/Hbox/start path"]
+[node name="Label" type="Label" parent="bottom_bar/map_tools/Hbox/start path"]
margin_left = 29.0
margin_top = 5.0
margin_right = 69.0
@@ -344,9 +378,9 @@ __meta__ = {
"_edit_use_anchors_": false
}
-[node name="path" type="TextureButton" parent="bottom_bar/map_tools/ScrollContainer/Hbox"]
-margin_left = 202.0
-margin_right = 302.0
+[node name="path" type="TextureButton" parent="bottom_bar/map_tools/Hbox"]
+margin_left = 512.0
+margin_right = 612.0
margin_bottom = 100.0
rect_min_size = Vector2( 100, 100 )
rect_pivot_offset = Vector2( 50, 50 )
@@ -356,7 +390,7 @@ __meta__ = {
"_edit_use_anchors_": false
}
-[node name="TextureRect" type="TextureRect" parent="bottom_bar/map_tools/ScrollContainer/Hbox/path"]
+[node name="TextureRect" type="TextureRect" parent="bottom_bar/map_tools/Hbox/path"]
margin_right = 100.0
margin_bottom = 100.0
texture = SubResource( 2 )
@@ -365,7 +399,7 @@ __meta__ = {
"_edit_use_anchors_": false
}
-[node name="Label" type="Label" parent="bottom_bar/map_tools/ScrollContainer/Hbox/path"]
+[node name="Label" type="Label" parent="bottom_bar/map_tools/Hbox/path"]
margin_left = 29.0
margin_top = 5.0
margin_right = 69.0
@@ -375,9 +409,9 @@ __meta__ = {
"_edit_use_anchors_": false
}
-[node name="end path" type="TextureButton" parent="bottom_bar/map_tools/ScrollContainer/Hbox"]
-margin_left = 303.0
-margin_right = 403.0
+[node name="end path" type="TextureButton" parent="bottom_bar/map_tools/Hbox"]
+margin_left = 613.0
+margin_right = 713.0
margin_bottom = 100.0
rect_min_size = Vector2( 100, 100 )
rect_pivot_offset = Vector2( 50, 50 )
@@ -387,7 +421,7 @@ __meta__ = {
"_edit_use_anchors_": false
}
-[node name="TextureRect" type="TextureRect" parent="bottom_bar/map_tools/ScrollContainer/Hbox/end path"]
+[node name="TextureRect" type="TextureRect" parent="bottom_bar/map_tools/Hbox/end path"]
margin_right = 100.0
margin_bottom = 100.0
texture = SubResource( 2 )
@@ -396,7 +430,7 @@ __meta__ = {
"_edit_use_anchors_": false
}
-[node name="Label" type="Label" parent="bottom_bar/map_tools/ScrollContainer/Hbox/end path"]
+[node name="Label" type="Label" parent="bottom_bar/map_tools/Hbox/end path"]
margin_left = 29.0
margin_top = 5.0
margin_right = 69.0
@@ -417,17 +451,8 @@ __meta__ = {
"_edit_use_anchors_": false
}
-[node name="ScrollContainer" type="ScrollContainer" parent="bottom_bar/turrets"]
+[node name="Hbox" type="HBoxContainer" parent="bottom_bar/turrets"]
anchor_right = 1.0
-anchor_bottom = 1.0
-follow_focus = true
-scroll_vertical_enabled = false
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="Hbox" type="HBoxContainer" parent="bottom_bar/turrets/ScrollContainer"]
-margin_right = 201.0
margin_bottom = 120.0
rect_min_size = Vector2( 0, 120 )
custom_constants/separation = 1
@@ -436,11 +461,22 @@ __meta__ = {
"_edit_use_anchors_": false
}
-[node name="gui_turret" parent="bottom_bar/turrets/ScrollContainer/Hbox" instance=ExtResource( 4 )]
+[node name="gui_turret" parent="bottom_bar/turrets/Hbox" instance=ExtResource( 4 )]
+margin_left = 411.0
+margin_right = 511.0
+
+[node name="gui_turret2" parent="bottom_bar/turrets/Hbox" instance=ExtResource( 4 )]
+margin_left = 512.0
+margin_right = 612.0
-[node name="gui_turret2" parent="bottom_bar/turrets/ScrollContainer/Hbox" instance=ExtResource( 4 )]
-margin_left = 101.0
-margin_right = 201.0
+[node name="border" type="Panel" parent="bottom_bar/turrets"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+mouse_filter = 2
+custom_styles/panel = SubResource( 3 )
+__meta__ = {
+"_edit_use_anchors_": false
+}
[connection signal="button_down" from="top_bar/panel/editor_button" to="top_bar" method="_on_editor_button_down"]
[connection signal="pressed" from="top_bar/panel/wave_button" to="top_bar" method="_on_wave_button_pressed"]