Add texture to button reset/score

This commit is contained in:
VAILLANT Jeremy
2021-05-15 15:46:03 +02:00
parent 0148703274
commit 22ec15f1a3
2 changed files with 14 additions and 14 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

+14 -14
View File
@@ -1,6 +1,7 @@
[gd_scene load_steps=2 format=2] [gd_scene load_steps=3 format=2]
[ext_resource path="res://assets/ui/themes/level-btn.png" type="Texture" id=1] [ext_resource path="res://assets/ui/themes/level-btn.png" type="Texture" id=1]
[ext_resource path="res://assets/ui/themes/icon-reset.png" type="Texture" id=2]
[node name="VBoxContainer" type="VBoxContainer"] [node name="VBoxContainer" type="VBoxContainer"]
margin_right = 150.0 margin_right = 150.0
@@ -10,7 +11,7 @@ __meta__ = {
} }
[node name="TextureRect" type="TextureRect" parent="."] [node name="TextureRect" type="TextureRect" parent="."]
margin_right = 200.0 margin_right = 217.0
margin_bottom = 200.0 margin_bottom = 200.0
texture = ExtResource( 1 ) texture = ExtResource( 1 )
__meta__ = { __meta__ = {
@@ -31,18 +32,19 @@ __meta__ = {
[node name="VBoxContainer" type="HBoxContainer" parent="."] [node name="VBoxContainer" type="HBoxContainer" parent="."]
margin_top = 204.0 margin_top = 204.0
margin_right = 200.0 margin_right = 217.0
margin_bottom = 224.0 margin_bottom = 332.0
size_flags_horizontal = 3 size_flags_horizontal = 3
size_flags_vertical = 3 size_flags_vertical = 3
custom_constants/separation = 25 custom_constants/separation = 25
alignment = 1 alignment = 1
[node name="ButtonReset" type="Button" parent="VBoxContainer"] [node name="ButtonReset" type="TextureButton" parent="VBoxContainer"]
margin_right = 87.0 margin_right = 64.0
margin_bottom = 20.0 margin_bottom = 128.0
mouse_default_cursor_shape = 2 mouse_default_cursor_shape = 2
size_flags_horizontal = 3 size_flags_horizontal = 3
texture_normal = ExtResource( 2 )
[node name="Label" type="Label" parent="VBoxContainer/ButtonReset"] [node name="Label" type="Label" parent="VBoxContainer/ButtonReset"]
anchor_right = 1.0 anchor_right = 1.0
@@ -56,15 +58,13 @@ __meta__ = {
"_edit_use_anchors_": false "_edit_use_anchors_": false
} }
[node name="ButtonCount" type="Button" parent="VBoxContainer"] [node name="ButtonCount" type="TextureButton" parent="VBoxContainer"]
margin_left = 112.0 margin_left = 89.0
margin_right = 200.0 margin_right = 217.0
margin_bottom = 20.0 margin_bottom = 128.0
mouse_default_cursor_shape = 2 mouse_default_cursor_shape = 2
size_flags_horizontal = 3 size_flags_horizontal = 3
__meta__ = { texture_normal = ExtResource( 2 )
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="VBoxContainer/ButtonCount"] [node name="Label" type="Label" parent="VBoxContainer/ButtonCount"]
anchor_right = 1.0 anchor_right = 1.0