diff options
Diffstat (limited to 'scenes/gui/gui_button.tscn')
-rw-r--r-- | scenes/gui/gui_button.tscn | 36 |
1 files changed, 21 insertions, 15 deletions
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 |