aboutsummaryrefslogtreecommitdiff
path: root/scenes/gui
diff options
context:
space:
mode:
authorjacopograndi <jacopo.grandi@outlook.it>2022-01-14 00:06:52 +0100
committerjacopograndi <jacopo.grandi@outlook.it>2022-01-14 00:06:52 +0100
commit90af765b430e3a75daa9b2b4d0343ae58ad5c33d (patch)
tree024e803ce9b7476ed310fc156b54eb5ebced3c4f /scenes/gui
parent7cb4290601010459b09376396c7833ec391c25bf (diff)
secret work
Diffstat (limited to 'scenes/gui')
-rw-r--r--scenes/gui/gui_turret_detail.tscn144
-rw-r--r--scenes/gui/gui_turret_values.tscn101
2 files changed, 205 insertions, 40 deletions
diff --git a/scenes/gui/gui_turret_detail.tscn b/scenes/gui/gui_turret_detail.tscn
index 197a2a5..1b4aa5c 100644
--- a/scenes/gui/gui_turret_detail.tscn
+++ b/scenes/gui/gui_turret_detail.tscn
@@ -1,21 +1,20 @@
-[gd_scene load_steps=4 format=2]
+[gd_scene load_steps=5 format=2]
-[ext_resource path="res://scripts/gui_turret.gd" type="Script" id=1]
-[ext_resource path="res://themes/snub_theme.tres" type="Theme" id=2]
+[ext_resource path="res://scripts/gui_turret_detail.gd" type="Script" id=1]
+[ext_resource path="res://themes/DarkTheme/Dark.theme" type="Theme" id=2]
+[ext_resource path="res://scenes/gui/gui_turret_values.tscn" type="PackedScene" id=3]
[sub_resource type="StyleBoxFlat" id=1]
bg_color = Color( 0.6, 0.6, 0.6, 0 )
-border_width_left = 1
-border_width_top = 1
border_width_right = 1
-border_width_bottom = 1
shadow_offset = Vector2( 1, 1 )
-[node name="gui_turret_detail" type="Control"]
-margin_right = 100.0
-margin_bottom = 120.0
-rect_min_size = Vector2( 100, 120 )
-rect_pivot_offset = Vector2( 50, 50 )
+[node name="gui_turret_detail" type="Panel"]
+margin_top = -125.0
+margin_right = 200.0
+margin_bottom = 125.0
+grow_vertical = 2
+rect_min_size = Vector2( 200, 250 )
size_flags_horizontal = 9
theme = ExtResource( 2 )
script = ExtResource( 1 )
@@ -23,62 +22,127 @@ __meta__ = {
"_edit_use_anchors_": false
}
-[node name="hbox" type="VBoxContainer" parent="."]
+[node name="name_label" type="Label" parent="."]
+anchor_right = 1.0
+text = "turret: "
+valign = 1
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="border" type="Panel" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
+mouse_filter = 2
+custom_styles/panel = SubResource( 1 )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="hbox_global" type="HBoxContainer" parent="."]
+anchor_bottom = 1.0
+margin_top = 25.0
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="hbox_labels" type="VBoxContainer" parent="hbox_global"]
+margin_right = 150.0
+margin_bottom = 225.0
+rect_min_size = Vector2( 150, 0 )
custom_constants/separation = 0
__meta__ = {
"_edit_use_anchors_": false
}
-[node name="name_label" type="Label" parent="hbox"]
-margin_right = 100.0
-margin_bottom = 18.0
-text = "name"
-align = 1
+[node name="damage" type="Label" parent="hbox_global/hbox_labels"]
+margin_top = -1.0
+margin_right = 150.0
+margin_bottom = 23.4
+text = "damage"
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
-[node name="name_label2" type="Label" parent="hbox"]
-margin_top = 18.0
-margin_right = 100.0
-margin_bottom = 36.0
-text = "name"
-align = 1
+[node name="range" type="Label" parent="hbox_global/hbox_labels"]
+margin_top = 23.0
+margin_right = 150.0
+margin_bottom = 47.4
+text = "range"
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
-[node name="name_label3" type="Label" parent="hbox"]
-margin_top = 36.0
-margin_right = 100.0
-margin_bottom = 54.0
-text = "name"
-align = 1
+[node name="turn speed" type="Label" parent="hbox_global/hbox_labels"]
+margin_top = 47.0
+margin_right = 150.0
+margin_bottom = 71.4
+text = "turn speed"
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
-[node name="name_label4" type="Label" parent="hbox"]
-margin_top = 54.0
-margin_right = 100.0
-margin_bottom = 72.0
-text = "name"
-align = 1
+[node name="cooldown" type="Label" parent="hbox_global/hbox_labels"]
+margin_top = 71.0
+margin_right = 150.0
+margin_bottom = 95.4
+text = "cooldown"
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
-[node name="border" type="Panel" parent="."]
-anchor_right = 1.0
-anchor_bottom = 1.0
-mouse_filter = 2
-custom_styles/panel = SubResource( 1 )
+[node name="projectile" type="Label" parent="hbox_global/hbox_labels"]
+margin_top = 95.0
+margin_right = 150.0
+margin_bottom = 119.4
+text = "projectile"
+valign = 1
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="spread" type="Label" parent="hbox_global/hbox_labels"]
+margin_top = 119.0
+margin_right = 150.0
+margin_bottom = 143.4
+text = "spread"
+valign = 1
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="projectile speed" type="Label" parent="hbox_global/hbox_labels"]
+margin_top = 143.0
+margin_right = 150.0
+margin_bottom = 167.4
+text = "projectile speed"
+valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
+
+[node name="projectiles per shot" type="Label" parent="hbox_global/hbox_labels"]
+margin_top = 167.0
+margin_right = 150.0
+margin_bottom = 191.4
+text = "projectiles per shot"
+valign = 1
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="modules" type="Label" parent="hbox_global/hbox_labels"]
+margin_top = 191.0
+margin_right = 150.0
+margin_bottom = 215.4
+text = "max modules"
+valign = 1
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="hbox_values" parent="hbox_global" instance=ExtResource( 3 )]
diff --git a/scenes/gui/gui_turret_values.tscn b/scenes/gui/gui_turret_values.tscn
new file mode 100644
index 0000000..7be6fc4
--- /dev/null
+++ b/scenes/gui/gui_turret_values.tscn
@@ -0,0 +1,101 @@
+[gd_scene format=2]
+
+[node name="hbox_values" type="VBoxContainer"]
+margin_left = 153.0
+margin_right = 183.0
+margin_bottom = 225.0
+rect_min_size = Vector2( 30, 0 )
+custom_constants/separation = 0
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="damage" type="Label" parent="."]
+margin_top = -1.0
+margin_right = 30.0
+margin_bottom = 23.4
+text = "0"
+valign = 1
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="range" type="Label" parent="."]
+margin_top = 23.0
+margin_right = 30.0
+margin_bottom = 47.4
+text = "0"
+valign = 1
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="turn speed" type="Label" parent="."]
+margin_top = 47.0
+margin_right = 30.0
+margin_bottom = 71.4
+text = "0"
+valign = 1
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="cooldown" type="Label" parent="."]
+margin_top = 71.0
+margin_right = 30.0
+margin_bottom = 95.4
+text = "0"
+valign = 1
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="projectile" type="Label" parent="."]
+margin_top = 95.0
+margin_right = 30.0
+margin_bottom = 119.4
+text = "0"
+valign = 1
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="spread" type="Label" parent="."]
+margin_top = 119.0
+margin_right = 30.0
+margin_bottom = 143.4
+text = "0"
+valign = 1
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="projectile speed" type="Label" parent="."]
+margin_top = 143.0
+margin_right = 30.0
+margin_bottom = 167.4
+text = "0"
+valign = 1
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="projectiles per shot" type="Label" parent="."]
+margin_top = 167.0
+margin_right = 30.0
+margin_bottom = 191.4
+text = "0"
+valign = 1
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="modules" type="Label" parent="."]
+margin_top = 191.0
+margin_right = 30.0
+margin_bottom = 215.4
+text = "0"
+valign = 1
+__meta__ = {
+"_edit_use_anchors_": false
+}