diff options
author | jacopograndi <jacopo.grandi@outlook.it> | 2022-01-18 18:04:34 +0100 |
---|---|---|
committer | jacopograndi <jacopo.grandi@outlook.it> | 2022-01-18 18:04:34 +0100 |
commit | 0eb22020e380643ec5cd2c12f983403c2dd3b751 (patch) | |
tree | ff23a3e26611c04e3ba72c8c1504b9ae86dfdeb8 /scenes/gui.tscn | |
parent | f75ee64e21f67b4f27404147aedaa63750058d5a (diff) |
load map gui & start doc balance
Diffstat (limited to 'scenes/gui.tscn')
-rw-r--r-- | scenes/gui.tscn | 210 |
1 files changed, 197 insertions, 13 deletions
diff --git a/scenes/gui.tscn b/scenes/gui.tscn index 123d0ae..20c5bec 100644 --- a/scenes/gui.tscn +++ b/scenes/gui.tscn @@ -1,8 +1,9 @@ -[gd_scene load_steps=11 format=2] +[gd_scene load_steps=14 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://scripts/gui_load_map.gd" type="Script" id=4] [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] @@ -22,6 +23,18 @@ shadow_offset = Vector2( 1, 1 ) bg_color = Color( 0, 0, 0, 0.482353 ) border_width_top = 1 +[sub_resource type="GDScript" id=8] +script/source = "extends Label + + + +func _ready(): + pass # Replace with function body. + +func _process(delta): + pass +" + [sub_resource type="StyleBoxFlat" id=6] bg_color = Color( 1, 0, 0, 0 ) draw_center = false @@ -31,6 +44,17 @@ border_width_right = 5 border_width_bottom = 5 border_color = Color( 0.364706, 0, 0, 1 ) +[sub_resource type="StyleBoxFlat" id=7] +bg_color = Color( 0, 0, 0, 0.482353 ) +border_width_left = 1 +border_width_top = 1 +border_width_right = 1 +border_width_bottom = 1 +expand_margin_left = 4.0 +expand_margin_right = 4.0 +expand_margin_top = 4.0 +expand_margin_bottom = 4.0 + [node name="gui" type="Control"] anchor_right = 1.0 anchor_bottom = 1.0 @@ -272,7 +296,7 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="hbox" type="HBoxContainer" parent="bottom_bar/editor_bar"] +[node name="hbox_tools" type="HBoxContainer" parent="bottom_bar/editor_bar"] anchor_bottom = 1.0 margin_top = 3.0 margin_bottom = -2.0 @@ -281,10 +305,10 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="Control" type="Control" parent="bottom_bar/editor_bar/hbox"] +[node name="spacer" type="Control" parent="bottom_bar/editor_bar/hbox_tools"] margin_bottom = 25.0 -[node name="turrets" type="Button" parent="bottom_bar/editor_bar/hbox"] +[node name="turrets" type="Button" parent="bottom_bar/editor_bar/hbox_tools"] margin_left = 4.0 margin_right = 57.0 margin_bottom = 25.0 @@ -293,7 +317,7 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="path" type="Button" parent="bottom_bar/editor_bar/hbox"] +[node name="path" type="Button" parent="bottom_bar/editor_bar/hbox_tools"] margin_left = 61.0 margin_right = 93.0 margin_bottom = 25.0 @@ -302,7 +326,7 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="attach" type="Button" parent="bottom_bar/editor_bar/hbox"] +[node name="attach" type="Button" parent="bottom_bar/editor_bar/hbox_tools"] margin_left = 97.0 margin_right = 143.0 margin_bottom = 25.0 @@ -311,7 +335,7 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="voxel" type="Button" parent="bottom_bar/editor_bar/hbox"] +[node name="voxel" type="Button" parent="bottom_bar/editor_bar/hbox_tools"] margin_left = 147.0 margin_right = 193.0 margin_bottom = 25.0 @@ -320,7 +344,7 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="palette" type="Button" parent="bottom_bar/editor_bar/hbox"] +[node name="palette" type="Button" parent="bottom_bar/editor_bar/hbox_tools"] margin_left = 197.0 margin_right = 250.0 margin_bottom = 25.0 @@ -329,6 +353,60 @@ __meta__ = { "_edit_use_anchors_": false } +[node name="hbox_map" type="HBoxContainer" parent="bottom_bar/editor_bar"] +anchor_left = 0.5 +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_top = 3.0 +margin_bottom = -2.0 +custom_constants/separation = 4 +alignment = 2 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="mapname" type="Label" parent="bottom_bar/editor_bar/hbox_map"] +anchor_bottom = 1.0 +margin_left = 324.0 +margin_right = 379.4 +text = "mapname" +valign = 2 +script = SubResource( 8 ) + +[node name="save" type="Button" parent="bottom_bar/editor_bar/hbox_map"] +margin_left = 383.0 +margin_right = 415.0 +margin_bottom = 25.0 +text = "Save" +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="save_as" type="Button" parent="bottom_bar/editor_bar/hbox_map"] +margin_left = 419.0 +margin_right = 472.0 +margin_bottom = 25.0 +focus_mode = 0 +enabled_focus_mode = 0 +text = "Save As" +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="load" type="Button" parent="bottom_bar/editor_bar/hbox_map"] +margin_left = 476.0 +margin_right = 508.0 +margin_bottom = 25.0 +text = "Load" +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="spacer" type="Control" parent="bottom_bar/editor_bar/hbox_map"] +margin_left = 512.0 +margin_right = 512.0 +margin_bottom = 25.0 + [node name="wave_ongoing_indicator" type="Panel" parent="."] anchor_right = 1.0 anchor_bottom = 1.0 @@ -340,10 +418,116 @@ __meta__ = { "_edit_use_anchors_": false } +[node name="gui_load_map" type="PanelContainer" parent="."] +visible = false +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +grow_horizontal = 2 +grow_vertical = 2 +rect_min_size = Vector2( 200, 0 ) +theme = ExtResource( 2 ) +custom_styles/panel = SubResource( 7 ) +script = ExtResource( 4 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="vbox" type="VBoxContainer" parent="gui_load_map"] +margin_left = 1.0 +margin_top = 1.0 +margin_right = 201.0 +margin_bottom = 53.0 +rect_min_size = Vector2( 200, 0 ) + +[node name="title" type="Label" parent="gui_load_map/vbox"] +margin_top = -1.0 +margin_right = 200.0 +margin_bottom = 23.4 +text = "load map" +align = 1 +valign = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="vbox_items" type="VBoxContainer" parent="gui_load_map/vbox"] +margin_top = 27.0 +margin_right = 200.0 +margin_bottom = 27.0 +grow_horizontal = 2 +grow_vertical = 2 +rect_min_size = Vector2( 200, 0 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="close" type="Button" parent="gui_load_map/vbox"] +margin_top = 30.0 +margin_right = 200.0 +margin_bottom = 52.0 +text = "close" +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="save_as" type="AcceptDialog" parent="."] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -100.0 +margin_top = -15.0 +margin_right = 104.0 +margin_bottom = 79.4 +grow_horizontal = 2 +grow_vertical = 2 +rect_min_size = Vector2( 200, 30 ) +popup_exclusive = true +window_title = "Save map as:" +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="line_edit" type="LineEdit" parent="save_as"] +margin_left = 16.0 +margin_top = 16.0 +margin_right = 188.0 +margin_bottom = 40.4 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="delete_confirm" type="AcceptDialog" parent="."] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -100.0 +margin_top = -15.0 +margin_right = 104.0 +margin_bottom = 79.4 +grow_horizontal = 2 +grow_vertical = 2 +rect_min_size = Vector2( 200, 30 ) +popup_exclusive = true +window_title = "Map delete confirmation" +dialog_text = "You are about to delete this map:" +__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"] -[connection signal="button_up" from="bottom_bar/editor_bar/hbox/turrets" to="bottom_bar" method="_on_turrets_button_up"] -[connection signal="button_up" from="bottom_bar/editor_bar/hbox/path" to="bottom_bar" method="_on_path_button_up"] -[connection signal="button_up" from="bottom_bar/editor_bar/hbox/attach" to="bottom_bar" method="_on_attach_button_up"] -[connection signal="button_up" from="bottom_bar/editor_bar/hbox/voxel" to="bottom_bar" method="_on_voxel_button_up"] -[connection signal="button_up" from="bottom_bar/editor_bar/hbox/palette" to="bottom_bar" method="_on_palette_button_up"] +[connection signal="button_up" from="bottom_bar/editor_bar/hbox_tools/turrets" to="bottom_bar" method="_on_turrets_button_up"] +[connection signal="button_up" from="bottom_bar/editor_bar/hbox_tools/path" to="bottom_bar" method="_on_path_button_up"] +[connection signal="button_up" from="bottom_bar/editor_bar/hbox_tools/attach" to="bottom_bar" method="_on_attach_button_up"] +[connection signal="button_up" from="bottom_bar/editor_bar/hbox_tools/voxel" to="bottom_bar" method="_on_voxel_button_up"] +[connection signal="button_up" from="bottom_bar/editor_bar/hbox_tools/palette" to="bottom_bar" method="_on_palette_button_up"] +[connection signal="button_up" from="bottom_bar/editor_bar/hbox_map/save" to="bottom_bar" method="_on_save_button_up"] +[connection signal="button_up" from="bottom_bar/editor_bar/hbox_map/save_as" to="bottom_bar" method="_on_save_as_button_up"] +[connection signal="button_up" from="bottom_bar/editor_bar/hbox_map/load" to="bottom_bar" method="_on_load_button_up"] +[connection signal="button_up" from="gui_load_map/vbox/close" to="." method="_on_close_load_map"] +[connection signal="confirmed" from="save_as" to="." method="_on_save_as_confirmed"] +[connection signal="confirmed" from="delete_confirm" to="." method="_on_delete_confirmed"] |