197 lines
8.2 KiB
Text
197 lines
8.2 KiB
Text
[gd_scene load_steps=33 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="PackedScene" uid="uid://d0iltvfnuao1q" path="res://NumpadButton.tscn" id="3_se7ci"]
|
|
[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://wkwpo1utjk0q" path="res://assets/numpad/background.png" id="5_r8wvv"]
|
|
[ext_resource type="Texture2D" uid="uid://bci1ygp5qx7r0" path="res://assets/numpad/zero-depressed.png" id="6_d0do2"]
|
|
[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://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://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://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://chjrg7h3vojsq" path="res://assets/numpad/six-depressed.png" id="18_0wwv4"]
|
|
[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://d2w2k37opnsfv" path="res://assets/numpad/eight.png" id="21_b3d1b"]
|
|
[ext_resource type="Texture2D" uid="uid://b0wpj7b8ojpgy" path="res://assets/numpad/eight-depressed.png" id="22_s5h2f"]
|
|
[ext_resource type="Texture2D" uid="uid://bufdeep1jnpue" path="res://assets/numpad/nine.png" id="23_wrs3y"]
|
|
[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://b5ijw66s6ibkb" path="res://assets/numpad/backspace-depressed.png" id="26_e06cl"]
|
|
[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://b7qyt2h17kjea" path="res://assets/gavel/audio/ask-bet.wav" id="32_dnpqj"]
|
|
|
|
[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(971, 563)
|
|
script = ExtResource("1_ep8l3")
|
|
audio_player = NodePath("GavelAudioPlayer")
|
|
|
|
[node name="TextureButton" type="TextureButton" parent="Gavel"]
|
|
offset_right = 40.0
|
|
offset_bottom = 40.0
|
|
texture_normal = ExtResource("25_3ueqa")
|
|
texture_pressed = ExtResource("26_e06cl")
|
|
|
|
[node name="GavelAudioPlayer" type="AudioStreamPlayer2D" parent="Gavel"]
|
|
stream = ExtResource("5_ky68s")
|
|
volume_db = 3.0
|
|
|
|
[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("32_dnpqj")
|
|
|
|
[node name="ProgressBar" type="ProgressBar" parent="."]
|
|
layout_mode = 0
|
|
offset_left = 477.0
|
|
offset_top = 684.0
|
|
offset_right = 804.0
|
|
offset_bottom = 711.0
|
|
fill_mode = 1
|
|
show_percentage = false
|
|
|
|
[connection signal="button_down" from="Gavel/TextureButton" to="Gavel" method="_on_texture_button_button_down"]
|