aboutsummaryrefslogtreecommitdiff
path: root/scenes/gui/gui_button.tscn
diff options
context:
space:
mode:
authorjacopograndi <jacopo.grandi@outlook.it>2022-01-16 17:14:36 +0100
committerjacopograndi <jacopo.grandi@outlook.it>2022-01-16 17:14:36 +0100
commit5781b7dad68c3e01d83365f73b0d35d9e5252f97 (patch)
treedada65ab375ed8287b33e6ffe023f5df5e666d24 /scenes/gui/gui_button.tscn
parent8e5358aaefa1df729ffc02047e53b62705d6b3b1 (diff)
control system
Diffstat (limited to 'scenes/gui/gui_button.tscn')
-rw-r--r--scenes/gui/gui_button.tscn74
1 files changed, 74 insertions, 0 deletions
diff --git a/scenes/gui/gui_button.tscn b/scenes/gui/gui_button.tscn
new file mode 100644
index 0000000..e199560
--- /dev/null
+++ b/scenes/gui/gui_button.tscn
@@ -0,0 +1,74 @@
+[gd_scene load_steps=4 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]
+
+[sub_resource type="StyleBoxFlat" id=3]
+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" type="TextureButton"]
+margin_right = 100.0
+margin_bottom = 120.0
+rect_min_size = Vector2( 100, 120 )
+rect_pivot_offset = Vector2( 50, 50 )
+size_flags_horizontal = 9
+theme = ExtResource( 2 )
+script = ExtResource( 1 )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="color" type="ColorRect" parent="."]
+margin_right = 100.0
+margin_bottom = 100.0
+mouse_filter = 2
+color = Color( 0, 0, 0, 0.227451 )
+__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 )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="hbox" type="HBoxContainer" parent="."]
+anchor_top = 1.0
+anchor_right = 1.0
+anchor_bottom = 1.0
+margin_top = -20.0
+alignment = 1
+__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
+text = "name"
+align = 1
+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( 3 )
+__meta__ = {
+"_edit_use_anchors_": false
+}