fix: Position xenia selector properly, clear error text
This commit is contained in:
parent
01246b92db
commit
8346fce6ec
3
shop.gd
3
shop.gd
|
|
@ -46,6 +46,7 @@ func _on_tux_upgrades_item_clicked(index: int, at_position: Vector2, mouse_butto
|
||||||
upgrade.enabled = true;
|
upgrade.enabled = true;
|
||||||
available_money -= upgrade.cost
|
available_money -= upgrade.cost
|
||||||
populate()
|
populate()
|
||||||
|
$Error.text = ""
|
||||||
else:
|
else:
|
||||||
$Error.text = "No tens prou Diners!!!!"
|
$Error.text = "No tens prou Diners!!!!"
|
||||||
|
|
||||||
|
|
@ -55,6 +56,7 @@ func _on_xenia_upgrades_item_clicked(index: int, at_position: Vector2, mouse_but
|
||||||
upgrade.enabled = true;
|
upgrade.enabled = true;
|
||||||
special_currency -= upgrade.cost
|
special_currency -= upgrade.cost
|
||||||
populate()
|
populate()
|
||||||
|
$Error.text = ""
|
||||||
else:
|
else:
|
||||||
$Error.text = "No tens prou 🥘!!!!"
|
$Error.text = "No tens prou 🥘!!!!"
|
||||||
|
|
||||||
|
|
@ -71,6 +73,7 @@ func _on_xenia_pressed():
|
||||||
|
|
||||||
|
|
||||||
func _on_continue_pressed() -> void:
|
func _on_continue_pressed() -> void:
|
||||||
|
$Error.text = ""
|
||||||
$Tux.visible = true
|
$Tux.visible = true
|
||||||
$Xenia.visible = true
|
$Xenia.visible = true
|
||||||
$TuxUpgrades.visible = false
|
$TuxUpgrades.visible = false
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,6 @@ theme_override_font_sizes/font_size = 40
|
||||||
text = "Tenda de XENIA"
|
text = "Tenda de XENIA"
|
||||||
|
|
||||||
[node name="TuxUpgrades" type="ItemList" parent="." unique_id=351105576]
|
[node name="TuxUpgrades" type="ItemList" parent="." unique_id=351105576]
|
||||||
visible = false
|
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 8
|
anchors_preset = 8
|
||||||
anchor_left = 0.5
|
anchor_left = 0.5
|
||||||
|
|
@ -115,16 +114,15 @@ grow_vertical = 2
|
||||||
fixed_icon_size = Vector2i(100, 100)
|
fixed_icon_size = Vector2i(100, 100)
|
||||||
|
|
||||||
[node name="XeniaUpgrades" type="ItemList" parent="." unique_id=1728782891]
|
[node name="XeniaUpgrades" type="ItemList" parent="." unique_id=1728782891]
|
||||||
visible = false
|
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 8
|
anchors_preset = 8
|
||||||
anchor_left = 0.5
|
anchor_left = 0.5
|
||||||
anchor_top = 0.5
|
anchor_top = 0.5
|
||||||
anchor_right = 0.5
|
anchor_right = 0.5
|
||||||
anchor_bottom = 0.5
|
anchor_bottom = 0.5
|
||||||
offset_left = -415.0
|
offset_left = 109.0
|
||||||
offset_top = -295.0
|
offset_top = -295.0
|
||||||
offset_right = -32.0
|
offset_right = 492.0
|
||||||
offset_bottom = 288.0
|
offset_bottom = 288.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue