More upgrades

This commit is contained in:
2024-02-17 12:04:43 +08:00
parent 8be0789b17
commit f8bb0d3975
11 changed files with 97 additions and 31 deletions

View File

@@ -25,10 +25,21 @@ offset_right = 1152.0
offset_bottom = 648.0
theme_override_styles/panel = SubResource("StyleBoxFlat_3xnq2")
[node name="RewardContainer" type="HBoxContainer" parent="Panel"]
[node name="Title" type="Label" parent="Panel"]
layout_mode = 0
offset_left = 32.0
offset_top = 32.0
offset_right = 1120.0
offset_bottom = 88.0
theme_override_font_sizes/font_size = 28
text = "Pick a Upgrade"
horizontal_alignment = 1
vertical_alignment = 1
[node name="RewardContainer" type="HBoxContainer" parent="Panel"]
layout_mode = 0
offset_left = 32.0
offset_top = 96.0
offset_right = 1120.0
offset_bottom = 616.0
alignment = 1

View File

@@ -3,7 +3,7 @@
[ext_resource type="Script" path="res://scripts/ui/reward_item.gd" id="1_v4j3k"]
[node name="RewardItem" type="Panel"]
custom_minimum_size = Vector2(360, 584)
custom_minimum_size = Vector2(360, 520)
script = ExtResource("1_v4j3k")
[node name="Title" type="Label" parent="."]
@@ -29,15 +29,15 @@ layout_mode = 0
offset_left = 52.0
offset_top = 208.0
offset_right = 308.0
offset_bottom = 504.0
offset_bottom = 432.0
bbcode_enabled = true
text = "This is the world most powerful reward. Trust me, choose this is a great choice."
[node name="ClaimButton" type="Button" parent="."]
offset_left = 52.0
offset_top = 520.0
offset_top = 448.0
offset_right = 308.0
offset_bottom = 552.0
offset_bottom = 480.0
text = "Claim"
[connection signal="pressed" from="ClaimButton" to="." method="_on_claim"]