mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-16 18:03:47 +00:00
Remove items from vending machine once bought
This commit is contained in:
parent
d020b067af
commit
674f79f079
5 changed files with 58 additions and 17 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://ca0g1jnl6n0pl"]
|
||||
[gd_scene load_steps=10 format=3 uid="uid://ca0g1jnl6n0pl"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://dnsadvmunm76k" path="res://Resources/Styles/MainMenuButtons.tres" id="1_2iadx"]
|
||||
[ext_resource type="Script" uid="uid://dwj7p7ydustm5" path="res://Scripts/UI/VendingMachineUi.cs" id="1_dy2e4"]
|
||||
|
|
@ -8,7 +8,16 @@
|
|||
[ext_resource type="Texture2D" uid="uid://4x3ouxyxjqjc" path="res://Sprites/Items/Credits_Pickup.png" id="4_dy2e4"]
|
||||
[ext_resource type="Texture2D" uid="uid://bjdsi4x8m42ky" path="res://Sprites/Items/Power_Pickup.png" id="5_dy2e4"]
|
||||
|
||||
[sub_resource type="InputEventKey" id="InputEventKey_dy2e4"]
|
||||
device = -1
|
||||
pressed = true
|
||||
keycode = 4194305
|
||||
|
||||
[sub_resource type="Shortcut" id="Shortcut_16ivy"]
|
||||
events = [SubResource("InputEventKey_dy2e4")]
|
||||
|
||||
[node name="VendingMachineUi" type="CanvasLayer" node_paths=PackedStringArray("MoneyLabel", "ItemsContainer")]
|
||||
process_mode = 3
|
||||
layer = 2
|
||||
script = ExtResource("1_dy2e4")
|
||||
MoneyLabel = NodePath("PanelContainer/VBoxContainer/HBoxContainer3/Label")
|
||||
|
|
@ -41,10 +50,13 @@ layout_mode = 2
|
|||
size_flags_horizontal = 10
|
||||
text = "Buy"
|
||||
|
||||
[node name="Button" type="Button" parent="PanelContainer/VBoxContainer/HBoxContainer"]
|
||||
[node name="Exit" type="Button" parent="PanelContainer/VBoxContainer/HBoxContainer"]
|
||||
z_index = 1
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 10
|
||||
text = "X"
|
||||
size_flags_stretch_ratio = 0.8
|
||||
shortcut = SubResource("Shortcut_16ivy")
|
||||
text = "Exit"
|
||||
|
||||
[node name="HBoxContainer2" type="HBoxContainer" parent="PanelContainer/VBoxContainer"]
|
||||
process_mode = 3
|
||||
|
|
@ -99,4 +111,4 @@ texture = ExtResource("4_dy2e4")
|
|||
layout_mode = 2
|
||||
text = "123456"
|
||||
|
||||
[connection signal="pressed" from="PanelContainer/VBoxContainer/HBoxContainer/Button" to="." method="Close"]
|
||||
[connection signal="pressed" from="PanelContainer/VBoxContainer/HBoxContainer/Exit" to="." method="Exit"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue