[gd_scene load_steps=7 format=3 uid="uid://bh51s85fqc5xx"]

[ext_resource type="Script" path="res://Script/title.gd" id="1_hmkqy"]
[ext_resource type="Texture2D" uid="uid://j2c0uuvv7p8j" path="res://Resource/Image/background.png" id="2_cyojd"]
[ext_resource type="Texture2D" uid="uid://rglpxnj5qnu6" path="res://Resource/Image/pay.png" id="3_d1736"]
[ext_resource type="AudioStream" uid="uid://btqux3mxvf35n" path="res://Resource/Sound/btn_click.mp3" id="4_sbner"]

[sub_resource type="AtlasTexture" id="AtlasTexture_tterc"]
atlas = ExtResource("3_d1736")
region = Rect2(800, 352, 272, 144)

[sub_resource type="AtlasTexture" id="AtlasTexture_asl3m"]
atlas = ExtResource("3_d1736")
region = Rect2(800, 200, 272, 144)

[node name="Title" type="Node2D"]
script = ExtResource("1_hmkqy")

[node name="Background" type="Sprite2D" parent="."]
texture = ExtResource("2_cyojd")
centered = false

[node name="buy" type="TextureButton" parent="."]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = 795.0
offset_top = 355.0
offset_right = 1067.0
offset_bottom = 499.0
grow_horizontal = 2
grow_vertical = 2
texture_normal = SubResource("AtlasTexture_tterc")
texture_pressed = SubResource("AtlasTexture_asl3m")

[node name="Panel" type="Panel" parent="."]
offset_left = 229.0
offset_top = 68.0
offset_right = 870.0
offset_bottom = 631.0

[node name="Label" type="Label" parent="Panel"]
layout_mode = 0
offset_left = 58.0
offset_top = 13.0
offset_right = 584.0
offset_bottom = 442.0
theme_override_font_sizes/font_size = 24
text = "There is a COVID-19 pandemic. You need to buy plenty of mask to protect yourself. You are calculating exact amount of different type of mask should be purchased. Let see if you can calculate correct amount or not.

Tutorial:
Click the mask on the shelves will add 1.
Click the mask on the cart will minus 1.
Once you satisfy the amount of each mask, click the cashier to verify."
horizontal_alignment = 1
vertical_alignment = 1
autowrap_mode = 2

[node name="Button" type="Button" parent="Panel"]
layout_mode = 0
offset_left = 236.0
offset_top = 471.0
offset_right = 404.0
offset_bottom = 548.0
theme_override_font_sizes/font_size = 32
text = "Start"

[node name="se_btn_click" type="AudioStreamPlayer" parent="."]
stream = ExtResource("4_sbner")

[connection signal="pressed" from="Panel/Button" to="." method="_on_button_pressed"]
