[gd_scene load_steps=57 format=3 uid="uid://bohp0o2smdkwe"]

[ext_resource type="Script" uid="uid://c2mrlu8d75ry4" path="res://gavel.gd" id="1_ep8l3"]
[ext_resource type="Script" uid="uid://d2ophrxm0wtr6" path="res://desk.gd" id="1_yugeg"]
[ext_resource type="Script" uid="uid://l7wiwo13pb0f" path="res://numpad.gd" id="2_t5y75"]
[ext_resource type="Texture2D" uid="uid://cb0jnygwva3eb" path="res://assets/gavel/gavel-idle.png" id="3_dnpqj"]
[ext_resource type="PackedScene" uid="uid://d0iltvfnuao1q" path="res://NumpadButton.tscn" id="3_se7ci"]
[ext_resource type="Texture2D" uid="uid://c0408rn86yj3a" path="res://assets/gavel/gave-hit-frame_01.png" id="4_8hhu5"]
[ext_resource type="Texture2D" uid="uid://b033bbyvv7td1" path="res://assets/gavel/gavel-hit-frame_17.png" id="4_qtawj"]
[ext_resource type="Texture2D" uid="uid://cepssq6wpywy5" path="res://assets/numpad/zero.png" id="4_tm3w8"]
[ext_resource type="AudioStream" uid="uid://biyqgj25si2ei" path="res://assets/gavel/audio/gavel.wav" id="5_ky68s"]
[ext_resource type="Texture2D" uid="uid://bxnr3kw0g3clk" path="res://assets/gavel/gavel-hit-frame_07.png" id="5_ndbkw"]
[ext_resource type="Texture2D" uid="uid://wkwpo1utjk0q" path="res://assets/numpad/background.png" id="5_r8wvv"]
[ext_resource type="Texture2D" uid="uid://khjrnxifafwc" path="res://assets/gavel/gavel-hit-frame_02.png" id="5_vlpsm"]
[ext_resource type="Texture2D" uid="uid://ckal7lpkxevms" path="res://assets/gavel/gavel-hit-frame_03.png" id="6_b3d1b"]
[ext_resource type="Texture2D" uid="uid://bci1ygp5qx7r0" path="res://assets/numpad/zero-depressed.png" id="6_d0do2"]
[ext_resource type="Texture2D" uid="uid://b4yeji3q85rgg" path="res://assets/gavel/gavel-hit-frame_04.png" id="7_s5h2f"]
[ext_resource type="Texture2D" uid="uid://cgrl7q65xeb7d" path="res://assets/numpad/one.png" id="7_yugeg"]
[ext_resource type="Texture2D" uid="uid://cxsg3dhld267c" path="res://assets/numpad/one-depressed.png" id="8_ky68s"]
[ext_resource type="Texture2D" uid="uid://ck70ssbvyxgmc" path="res://assets/gavel/gavel-hit-frame_05.png" id="8_wrs3y"]
[ext_resource type="Texture2D" uid="uid://ckgrplbeu40x5" path="res://assets/gavel/gavel-hit-frame_06.png" id="9_gi6o1"]
[ext_resource type="Texture2D" uid="uid://bdfuhnj3irl82" path="res://assets/numpad/two.png" id="9_jnk24"]
[ext_resource type="Texture2D" uid="uid://dv8u6d8c8swi8" path="res://assets/numpad/two-depressed.png" id="10_v5y5a"]
[ext_resource type="Texture2D" uid="uid://lp73ci5y7v53" path="res://assets/gavel/gavel-hit-frame_08.png" id="11_3ueqa"]
[ext_resource type="Texture2D" uid="uid://bxcbl5b6g7ie7" path="res://assets/numpad/three.png" id="11_dnpqj"]
[ext_resource type="Texture2D" uid="uid://bgbbch0cjp3hm" path="res://assets/numpad/three-depressed.png" id="12_t3f8v"]
[ext_resource type="Texture2D" uid="uid://c8gspko7fo4wx" path="res://assets/numpad/four.png" id="13_qtawj"]
[ext_resource type="Texture2D" uid="uid://c7j1g0hg0b3s3" path="res://assets/gavel/gavel-hit-frame_09.png" id="14_8sdgr"]
[ext_resource type="Texture2D" uid="uid://cpypcy7ejhcwo" path="res://assets/numpad/four-depressed.png" id="14_ndbkw"]
[ext_resource type="Texture2D" uid="uid://clxk7nsl6qxbb" path="res://assets/numpad/five.png" id="15_7517r"]
[ext_resource type="Texture2D" uid="uid://c8msio2r4igbg" path="res://assets/numpad/five-depressed.png" id="16_mx6qw"]
[ext_resource type="Texture2D" uid="uid://c1386dkc5k4oh" path="res://assets/numpad/six.png" id="17_8smoy"]
[ext_resource type="Texture2D" uid="uid://u48qajvm4asb" path="res://assets/gavel/gavel-hit-frame_12.png" id="17_b1kty"]
[ext_resource type="Texture2D" uid="uid://chjrg7h3vojsq" path="res://assets/numpad/six-depressed.png" id="18_0wwv4"]
[ext_resource type="Texture2D" uid="uid://css67kl4b47er" path="res://assets/gavel/gavel-hit-frame_13.png" id="18_jj486"]
[ext_resource type="Texture2D" uid="uid://cv3hiliw35x0d" path="res://assets/numpad/seven.png" id="19_8hhu5"]
[ext_resource type="Texture2D" uid="uid://68o5n47sukg2" path="res://assets/numpad/seven-depressed.png" id="20_vlpsm"]
[ext_resource type="Texture2D" uid="uid://dbbvj7r14rcob" path="res://assets/gavel/gavel-hit-frame_15.png" id="20_xrwg0"]
[ext_resource type="Texture2D" uid="uid://d2w2k37opnsfv" path="res://assets/numpad/eight.png" id="21_b3d1b"]
[ext_resource type="Texture2D" uid="uid://jv1l0m3j6tyn" path="res://assets/gavel/gavel-hit-frame_16.png" id="21_eax30"]
[ext_resource type="Texture2D" uid="uid://bcfts7ubnapp3" path="res://assets/gavel/gavel-hit-frame_18.png" id="22_00sob"]
[ext_resource type="Texture2D" uid="uid://b0wpj7b8ojpgy" path="res://assets/numpad/eight-depressed.png" id="22_s5h2f"]
[ext_resource type="Texture2D" uid="uid://cyom172wq5lgr" path="res://assets/gavel/gavel-hit-frame_19.png" id="23_f1g2l"]
[ext_resource type="Texture2D" uid="uid://bufdeep1jnpue" path="res://assets/numpad/nine.png" id="23_wrs3y"]
[ext_resource type="Texture2D" uid="uid://c5162neitvj0m" path="res://assets/gavel/gavel-hit-frame_20.png" id="24_38ug8"]
[ext_resource type="Texture2D" uid="uid://dlu05p3xgcmxp" path="res://assets/numpad/nine-depressed.png" id="24_gi6o1"]
[ext_resource type="Texture2D" uid="uid://d1g5cd4bpre08" path="res://assets/numpad/backspace.png" id="25_3ueqa"]
[ext_resource type="Texture2D" uid="uid://dpbs5omkgs2mu" path="res://assets/gavel/gavel-hit-frame_21.png" id="25_kxdm1"]
[ext_resource type="Texture2D" uid="uid://b5ijw66s6ibkb" path="res://assets/numpad/backspace-depressed.png" id="26_e06cl"]
[ext_resource type="Texture2D" uid="uid://cgdy173ukgmo1" path="res://assets/gavel/gavel-hit-frame_22.png" id="26_kpd5h"]
[ext_resource type="Texture2D" uid="uid://mm2l5d1s3rah" path="res://assets/gavel/gavel-hit-frame_23.png" id="27_6p2km"]
[ext_resource type="Texture2D" uid="uid://bwhf5712gd67h" path="res://assets/numpad/ask.png" id="27_unpof"]
[ext_resource type="Texture2D" uid="uid://cxwxmqnnbyl3s" path="res://assets/numpad/ask-depressed.png" id="28_4l1rv"]
[ext_resource type="AudioStream" uid="uid://bvto7ghmy8j0o" path="res://assets/gavel/audio/invalid-bet.wav" id="31_v5y5a"]
[ext_resource type="AudioStream" uid="uid://bq5yl788b424g" path="res://assets/numpad/ask-bet-final.wav" id="53_mq8ri"]

[sub_resource type="SpriteFrames" id="SpriteFrames_g470s"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("4_8hhu5")
}, {
"duration": 1.0,
"texture": ExtResource("5_vlpsm")
}, {
"duration": 1.0,
"texture": ExtResource("6_b3d1b")
}, {
"duration": 1.0,
"texture": ExtResource("7_s5h2f")
}, {
"duration": 1.0,
"texture": ExtResource("8_wrs3y")
}, {
"duration": 1.0,
"texture": ExtResource("9_gi6o1")
}, {
"duration": 1.0,
"texture": ExtResource("5_ndbkw")
}, {
"duration": 1.0,
"texture": ExtResource("11_3ueqa")
}, {
"duration": 1.0,
"texture": ExtResource("14_8sdgr")
}],
"loop": false,
"name": &"Hover",
"speed": 15.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("4_8hhu5")
}],
"loop": true,
"name": &"Idle",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("17_b1kty")
}, {
"duration": 1.0,
"texture": ExtResource("18_jj486")
}, {
"duration": 1.0,
"texture": ExtResource("20_xrwg0")
}, {
"duration": 1.0,
"texture": ExtResource("21_eax30")
}, {
"duration": 1.0,
"texture": ExtResource("4_qtawj")
}, {
"duration": 1.0,
"texture": ExtResource("22_00sob")
}],
"loop": false,
"name": &"Press",
"speed": 20.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("23_f1g2l")
}, {
"duration": 1.0,
"texture": ExtResource("24_38ug8")
}, {
"duration": 1.0,
"texture": ExtResource("25_kxdm1")
}, {
"duration": 1.0,
"texture": ExtResource("26_kpd5h")
}, {
"duration": 1.0,
"texture": ExtResource("27_6p2km")
}, {
"duration": 1.0,
"texture": ExtResource("3_dnpqj")
}],
"loop": false,
"name": &"Unhover",
"speed": 15.0
}]

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_8sdgr"]
bg_color = Color(0.5109665, 0, 0.077832855, 1)

[sub_resource type="Theme" id="Theme_8sdgr"]
ProgressBar/styles/fill = SubResource("StyleBoxFlat_8sdgr")

[node name="Desk" type="Control" node_paths=PackedStringArray("numpad", "gavel")]
layout_mode = 3
anchors_preset = 0
offset_right = 1280.0
offset_bottom = 720.0
script = ExtResource("1_yugeg")
numpad = NodePath("Numpad")
gavel = NodePath("Gavel")

[node name="Gavel" type="Node2D" parent="." node_paths=PackedStringArray("audio_player")]
position = Vector2(825, 300)
script = ExtResource("1_ep8l3")
audio_player = NodePath("GavelAudioPlayer")

[node name="TextureButton" type="TextureButton" parent="Gavel"]
offset_right = 480.0
offset_bottom = 420.0

[node name="GavelAudioPlayer" type="AudioStreamPlayer2D" parent="Gavel"]
stream = ExtResource("5_ky68s")
volume_db = 3.0

[node name="GavelAnimations" type="AnimatedSprite2D" parent="Gavel"]
position = Vector2(240, 210)
sprite_frames = SubResource("SpriteFrames_g470s")
animation = &"Press"
autoplay = "Idle"

[node name="Numpad" type="Node2D" parent="." node_paths=PackedStringArray("progress_bar", "reminder_timer", "error_audio_player", "success_audio_player")]
position = Vector2(640, 570)
script = ExtResource("2_t5y75")
progress_bar = NodePath("../ProgressBar")
reminder_timer = NodePath("ReminderTimer")
error_audio_player = NodePath("ErrorSoundPlayer")
success_audio_player = NodePath("SuccessSoundPlayer")

[node name="Sprite2D" type="Sprite2D" parent="Numpad"]
texture = ExtResource("5_r8wvv")

[node name="0" parent="Numpad" instance=ExtResource("3_se7ci")]
offset_left = -53.0
offset_top = 60.0
offset_right = 48.0
offset_bottom = 108.0
texture_normal = ExtResource("4_tm3w8")
texture_pressed = ExtResource("6_d0do2")

[node name="1" parent="Numpad" instance=ExtResource("3_se7ci")]
offset_left = -158.0
offset_top = -99.0
offset_right = -57.0
offset_bottom = -51.0
texture_normal = ExtResource("7_yugeg")
texture_pressed = ExtResource("8_ky68s")
button_value = 1

[node name="2" parent="Numpad" instance=ExtResource("3_se7ci")]
offset_left = -53.0
offset_top = -99.0
offset_right = 48.0
offset_bottom = -51.0
texture_normal = ExtResource("9_jnk24")
texture_pressed = ExtResource("10_v5y5a")
button_value = 2

[node name="3" parent="Numpad" instance=ExtResource("3_se7ci")]
offset_left = 53.0
offset_top = -99.0
offset_right = 154.0
offset_bottom = -51.0
texture_normal = ExtResource("11_dnpqj")
texture_pressed = ExtResource("12_t3f8v")
button_value = 3

[node name="4" parent="Numpad" instance=ExtResource("3_se7ci")]
offset_left = -158.0
offset_top = -45.0
offset_right = -57.0
offset_bottom = 3.0
texture_normal = ExtResource("13_qtawj")
texture_pressed = ExtResource("14_ndbkw")
button_value = 4

[node name="5" parent="Numpad" instance=ExtResource("3_se7ci")]
offset_left = -53.0
offset_top = -45.0
offset_right = 48.0
offset_bottom = 3.0
texture_normal = ExtResource("15_7517r")
texture_pressed = ExtResource("16_mx6qw")
button_value = 5

[node name="6" parent="Numpad" instance=ExtResource("3_se7ci")]
offset_left = 53.0
offset_top = -45.0
offset_right = 154.0
offset_bottom = 3.0
texture_normal = ExtResource("17_8smoy")
texture_pressed = ExtResource("18_0wwv4")
button_value = 6

[node name="7" parent="Numpad" instance=ExtResource("3_se7ci")]
offset_left = -158.0
offset_top = 8.0
offset_right = -57.0
offset_bottom = 56.0
texture_normal = ExtResource("19_8hhu5")
texture_pressed = ExtResource("20_vlpsm")
button_value = 7

[node name="8" parent="Numpad" instance=ExtResource("3_se7ci")]
offset_left = -53.0
offset_top = 8.0
offset_right = 48.0
offset_bottom = 56.0
texture_normal = ExtResource("21_b3d1b")
texture_pressed = ExtResource("22_s5h2f")
button_value = 8

[node name="9" parent="Numpad" instance=ExtResource("3_se7ci")]
offset_left = 53.0
offset_top = 9.0
offset_right = 154.0
offset_bottom = 57.0
texture_normal = ExtResource("23_wrs3y")
texture_pressed = ExtResource("24_gi6o1")
button_value = 9

[node name="Backspace" parent="Numpad" instance=ExtResource("3_se7ci")]
offset_left = -158.0
offset_top = 60.0
offset_right = -57.0
offset_bottom = 108.0
texture_normal = ExtResource("25_3ueqa")
texture_pressed = ExtResource("26_e06cl")
button_value = 10

[node name="Submit" parent="Numpad" instance=ExtResource("3_se7ci")]
offset_left = 54.0
offset_top = 61.0
offset_right = 155.0
offset_bottom = 109.0
texture_normal = ExtResource("27_unpof")
texture_pressed = ExtResource("28_4l1rv")
button_value = 11

[node name="ReminderTimer" type="Timer" parent="Numpad"]
wait_time = 7.0
one_shot = true

[node name="ErrorSoundPlayer" type="AudioStreamPlayer2D" parent="Numpad"]
stream = ExtResource("31_v5y5a")

[node name="SuccessSoundPlayer" type="AudioStreamPlayer2D" parent="Numpad"]
stream = ExtResource("53_mq8ri")

[node name="ProgressBar" type="ProgressBar" parent="."]
layout_mode = 0
offset_left = 477.0
offset_top = 690.0
offset_right = 804.0
offset_bottom = 704.0
theme = SubResource("Theme_8sdgr")
theme_type_variation = &"Red"
show_percentage = false

[connection signal="button_down" from="Gavel/TextureButton" to="Gavel" method="_on_texture_button_button_down"]
[connection signal="mouse_entered" from="Gavel/TextureButton" to="Gavel" method="_on_texture_button_mouse_entered"]
[connection signal="mouse_exited" from="Gavel/TextureButton" to="Gavel" method="_on_texture_button_mouse_exited"]
