aboutsummaryrefslogtreecommitdiff
path: root/scenes
diff options
context:
space:
mode:
authorjacopograndi <jacopo.grandi@outlook.it>2022-01-17 13:50:22 +0100
committerjacopograndi <jacopo.grandi@outlook.it>2022-01-17 13:50:22 +0100
commitf73ef06b502aa36dca73a173bbee089ae91729ab (patch)
treeadf5409a717962c99a8f77aa816a2e5e6956fc2f /scenes
parent53342a1bdae615aead21163ed0636b68be5ea55f (diff)
thumbnails
Diffstat (limited to 'scenes')
-rw-r--r--scenes/gui.tscn9
-rw-r--r--scenes/gui/gui_button.tscn36
-rw-r--r--scenes/gui/gui_turret.tscn12
3 files changed, 35 insertions, 22 deletions
diff --git a/scenes/gui.tscn b/scenes/gui.tscn
index a81e63b..4878cbf 100644
--- a/scenes/gui.tscn
+++ b/scenes/gui.tscn
@@ -11,6 +11,9 @@
bg_color = Color( 0, 0, 0, 0 )
border_width_bottom = 1
+[sub_resource type="StyleBoxFlat" id=6]
+bg_color = Color( 0, 0, 0, 0.482353 )
+
[sub_resource type="StyleBoxFlat" id=3]
resource_local_to_scene = true
resource_name = "border"
@@ -18,10 +21,6 @@ bg_color = Color( 0.6, 0.6, 0.6, 0 )
border_width_top = 1
shadow_offset = Vector2( 1, 1 )
-[sub_resource type="StyleBoxFlat" id=5]
-bg_color = Color( 0, 0, 0, 0.529412 )
-border_width_top = 1
-
[node name="gui" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
@@ -216,6 +215,7 @@ anchor_right = 1.0
anchor_bottom = 1.0
margin_top = -120.0
margin_bottom = 1.0
+custom_styles/panel = SubResource( 6 )
script = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
@@ -246,7 +246,6 @@ anchor_right = 1.0
anchor_bottom = 1.0
margin_top = -150.0
margin_bottom = -120.0
-custom_styles/panel = SubResource( 5 )
__meta__ = {
"_edit_use_anchors_": false
}
diff --git a/scenes/gui/gui_button.tscn b/scenes/gui/gui_button.tscn
index e199560..bc3f5f5 100644
--- a/scenes/gui/gui_button.tscn
+++ b/scenes/gui/gui_button.tscn
@@ -1,6 +1,6 @@
[gd_scene load_steps=4 format=2]
-[ext_resource path="res://scripts/gui_turret.gd" type="Script" id=1]
+[ext_resource path="res://scripts/gui_button.gd" type="Script" id=1]
[ext_resource path="res://themes/snub_theme.tres" type="Theme" id=2]
[sub_resource type="StyleBoxFlat" id=3]
@@ -11,7 +11,7 @@ border_width_right = 1
border_width_bottom = 1
shadow_offset = Vector2( 1, 1 )
-[node name="gui_turret" type="TextureButton"]
+[node name="gui_button" type="TextureButton"]
margin_right = 100.0
margin_bottom = 120.0
rect_min_size = Vector2( 100, 120 )
@@ -32,31 +32,28 @@ __meta__ = {
"_edit_use_anchors_": false
}
-[node name="panel" type="Panel" parent="."]
-anchor_top = 1.0
-anchor_right = 1.0
-anchor_bottom = 1.0
-margin_top = -20.0
-theme = ExtResource( 2 )
+[node name="texture" type="TextureRect" parent="."]
+margin_right = 100.0
+margin_bottom = 100.0
+mouse_filter = 2
__meta__ = {
"_edit_use_anchors_": false
}
-[node name="hbox" type="HBoxContainer" parent="."]
+[node name="panel" type="Panel" parent="."]
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_top = -20.0
-alignment = 1
+theme = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
-[node name="name_label" type="Label" parent="hbox"]
-margin_left = 36.0
-margin_top = 1.0
-margin_right = 64.0
-margin_bottom = 19.0
+[node name="name" type="Label" parent="."]
+anchor_right = 1.0
+margin_top = 101.0
+margin_bottom = 119.0
text = "name"
align = 1
valign = 1
@@ -64,6 +61,15 @@ __meta__ = {
"_edit_use_anchors_": false
}
+[node name="cash" type="Label" parent="."]
+anchor_right = 1.0
+margin_right = -2.0
+margin_bottom = 118.0
+align = 2
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
[node name="border" type="Panel" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
diff --git a/scenes/gui/gui_turret.tscn b/scenes/gui/gui_turret.tscn
index 1c618b6..08bfd58 100644
--- a/scenes/gui/gui_turret.tscn
+++ b/scenes/gui/gui_turret.tscn
@@ -1,6 +1,6 @@
[gd_scene load_steps=6 format=2]
-[ext_resource path="res://scripts/gui_turret.gd" type="Script" id=1]
+[ext_resource path="res://scripts/gui_button.gd" type="Script" id=1]
[ext_resource path="res://themes/snub_theme.tres" type="Theme" id=2]
[sub_resource type="Environment" id=2]
@@ -33,7 +33,15 @@ __meta__ = {
"_edit_use_anchors_": false
}
-[node name="ColorRect" type="ColorRect" parent="."]
+[node name="texture" type="TextureRect" parent="."]
+margin_right = 100.0
+margin_bottom = 100.0
+mouse_filter = 2
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="color" type="ColorRect" parent="."]
margin_right = 100.0
margin_bottom = 100.0
mouse_filter = 2