[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] [ext_resource path="res://scripts/gui_picker.gd" type="Script" id=3] [ext_resource path="res://scenes/gui/gui_turret.tscn" type="PackedScene" id=4] [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 [sub_resource type="NoiseTexture" id=2] width = 100 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 theme = ExtResource( 2 ) script = ExtResource( 1 ) __meta__ = { "_edit_use_anchors_": false } [node name="center_dot" type="ColorRect" parent="."] anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 margin_left = -1.0 margin_top = -1.0 margin_right = 1.0 margin_bottom = 1.0 __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 rect_min_size = Vector2( 0, 40 ) mouse_filter = 2 script = ExtResource( 7 ) __meta__ = { "_edit_use_anchors_": false } [node name="panel" type="Panel" parent="top_bar"] anchor_right = 1.0 margin_bottom = 40.0 __meta__ = { "_edit_use_anchors_": false } [node name="resources" type="Control" parent="top_bar/panel"] anchor_right = 0.5 anchor_bottom = 1.0 margin_right = -100.0 __meta__ = { "_edit_use_anchors_": false } [node name="HBoxContainer" type="HBoxContainer" parent="top_bar/panel/resources"] margin_right = 40.0 margin_bottom = 40.0 __meta__ = { "_edit_use_anchors_": false } [node name="cash_label" type="Label" parent="top_bar/panel/resources/HBoxContainer"] margin_top = 7.0 margin_right = 76.4 margin_bottom = 31.4 text = "Resources:" valign = 1 __meta__ = { "_edit_use_anchors_": false } [node name="T" type="Label" parent="top_bar/panel/resources/HBoxContainer"] margin_left = 79.0 margin_top = 7.0 margin_right = 113.4 margin_bottom = 31.4 text = "500T" valign = 1 __meta__ = { "_edit_use_anchors_": false } [node name="k" type="Label" parent="top_bar/panel/resources/HBoxContainer"] margin_left = 116.0 margin_top = 7.0 margin_right = 136.4 margin_bottom = 31.4 custom_colors/font_color = Color( 0.588235, 0, 1, 1 ) text = "0k" valign = 1 __meta__ = { "_edit_use_anchors_": false } [node name="a" type="Label" parent="top_bar/panel/resources/HBoxContainer"] margin_left = 139.0 margin_top = 7.0 margin_right = 159.4 margin_bottom = 31.4 custom_colors/font_color = Color( 0, 0.203922, 1, 1 ) text = "0a" valign = 1 __meta__ = { "_edit_use_anchors_": false } [node name="d" type="Label" parent="top_bar/panel/resources/HBoxContainer"] margin_left = 162.0 margin_top = 7.0 margin_right = 182.4 margin_bottom = 31.4 custom_colors/font_color = Color( 1, 0, 0, 1 ) text = "0d" valign = 1 __meta__ = { "_edit_use_anchors_": false } [node name="s" type="Label" parent="top_bar/panel/resources/HBoxContainer"] margin_left = 185.0 margin_top = 7.0 margin_right = 205.4 margin_bottom = 31.4 custom_colors/font_color = Color( 1, 0.619608, 0, 1 ) text = "0s" valign = 1 __meta__ = { "_edit_use_anchors_": false } [node name="editor_button" type="Button" parent="top_bar/panel"] anchor_left = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 margin_left = -60.0 margin_top = 5.0 margin_right = -5.0 margin_bottom = -5.0 grow_horizontal = 0 text = "Editor" __meta__ = { "_edit_use_anchors_": false } [node name="wave_label" type="Label" parent="top_bar/panel"] anchor_left = 0.5 anchor_right = 0.5 anchor_bottom = 1.0 margin_top = 5.0 margin_right = -10.0 margin_bottom = -5.0 grow_horizontal = 0 text = "Wave 3/10" align = 1 valign = 1 __meta__ = { "_edit_use_anchors_": false } [node name="wave_button" type="Button" parent="top_bar/panel"] anchor_left = 0.5 anchor_right = 0.5 anchor_bottom = 1.0 margin_left = 10.0 margin_top = 5.0 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 mouse_filter = 2 theme = ExtResource( 2 ) script = ExtResource( 6 ) __meta__ = { "_edit_use_anchors_": false } [node name="voxels" type="Panel" parent="bottom_bar"] anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 margin_top = -320.0 margin_bottom = -220.0 script = ExtResource( 3 ) __meta__ = { "_edit_use_anchors_": false } [node name="Hbox" type="HBoxContainer" parent="bottom_bar/voxels"] anchor_right = 1.0 margin_bottom = 50.0 custom_constants/separation = 1 alignment = 1 __meta__ = { "_edit_use_anchors_": false } [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="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/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="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/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 } [node name="map_tools" type="Panel" parent="bottom_bar"] anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 margin_top = -220.0 margin_bottom = -120.0 script = ExtResource( 3 ) __meta__ = { "_edit_use_anchors_": false } [node name="Hbox" type="HBoxContainer" parent="bottom_bar/map_tools"] anchor_right = 1.0 margin_bottom = 100.0 custom_constants/separation = 1 alignment = 1 __meta__ = { "_edit_use_anchors_": false } [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 ) size_flags_horizontal = 9 script = ExtResource( 5 ) __meta__ = { "_edit_use_anchors_": false } [node name="TextureRect" type="TextureRect" parent="bottom_bar/map_tools/Hbox/attach"] margin_right = 100.0 margin_bottom = 100.0 texture = SubResource( 2 ) flip_v = true __meta__ = { "_edit_use_anchors_": false } [node name="Label" type="Label" parent="bottom_bar/map_tools/Hbox/attach"] margin_left = 29.0 margin_top = 5.0 margin_right = 69.0 margin_bottom = 19.0 text = "attach" __meta__ = { "_edit_use_anchors_": false } [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 ) size_flags_horizontal = 9 script = ExtResource( 5 ) __meta__ = { "_edit_use_anchors_": false } [node name="TextureRect" type="TextureRect" parent="bottom_bar/map_tools/Hbox/start path"] margin_right = 100.0 margin_bottom = 100.0 texture = SubResource( 2 ) flip_v = true __meta__ = { "_edit_use_anchors_": false } [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 margin_bottom = 19.0 text = "start path" __meta__ = { "_edit_use_anchors_": false } [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 ) size_flags_horizontal = 9 script = ExtResource( 5 ) __meta__ = { "_edit_use_anchors_": false } [node name="TextureRect" type="TextureRect" parent="bottom_bar/map_tools/Hbox/path"] margin_right = 100.0 margin_bottom = 100.0 texture = SubResource( 2 ) flip_v = true __meta__ = { "_edit_use_anchors_": false } [node name="Label" type="Label" parent="bottom_bar/map_tools/Hbox/path"] margin_left = 29.0 margin_top = 5.0 margin_right = 69.0 margin_bottom = 19.0 text = "path" __meta__ = { "_edit_use_anchors_": false } [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 ) size_flags_horizontal = 9 script = ExtResource( 5 ) __meta__ = { "_edit_use_anchors_": false } [node name="TextureRect" type="TextureRect" parent="bottom_bar/map_tools/Hbox/end path"] margin_right = 100.0 margin_bottom = 100.0 texture = SubResource( 2 ) flip_v = true __meta__ = { "_edit_use_anchors_": false } [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 margin_bottom = 19.0 text = "end path" __meta__ = { "_edit_use_anchors_": false } [node name="turrets" type="Panel" parent="bottom_bar"] anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 margin_top = -120.0 margin_bottom = 1.0 script = ExtResource( 3 ) __meta__ = { "_edit_use_anchors_": false } [node name="Hbox" type="HBoxContainer" parent="bottom_bar/turrets"] anchor_right = 1.0 margin_bottom = 120.0 rect_min_size = Vector2( 0, 120 ) custom_constants/separation = 1 alignment = 1 __meta__ = { "_edit_use_anchors_": false } [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="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"]