[gd_scene load_steps=24 format=3 uid="uid://dt4nq0nkmjiit"]

[ext_resource type="Script" uid="uid://b5tcsve1oo5ht" path="res://game_manager.gd" id="1_ig7tw"]
[ext_resource type="Texture2D" uid="uid://cvqsf1nlfqwpr" path="res://assets/background/background.png" id="1_lquwl"]
[ext_resource type="PackedScene" uid="uid://bohp0o2smdkwe" path="res://desk.tscn" id="2_0xm2m"]
[ext_resource type="FontFile" uid="uid://cm28kqtqj3a6n" path="res://assets/amiga4ever pro.ttf" id="2_5vw27"]
[ext_resource type="Texture2D" uid="uid://cpj3xw8js3h3" path="res://assets/chairs/chairs_back.png" id="2_7mycd"]
[ext_resource type="Texture2D" uid="uid://d03ot1f34pyhu" path="res://assets/chairs/chairs_front.png" id="3_272bh"]
[ext_resource type="AudioStream" uid="uid://db67ob7kkhsc0" path="res://assets/game sfx/failed-round.wav" id="5_cegan"]
[ext_resource type="AudioStream" uid="uid://cicodo74wnevu" path="res://assets/game sfx/next-round.wav" id="6_82xsv"]
[ext_resource type="PackedScene" uid="uid://c1acpop6amvcl" path="res://audience_manager.tscn" id="6_272bh"]
[ext_resource type="PackedScene" uid="uid://b8key4hjaldui" path="res://turn_manager.tscn" id="7_272bh"]
[ext_resource type="Texture2D" uid="uid://d2142cf22t1lv" path="res://assets/buttons/button1.png" id="9_2cqfq"]
[ext_resource type="PackedScene" uid="uid://donkfeu1x888o" path="res://paintings/painting.tscn" id="9_kek77"]
[ext_resource type="Script" uid="uid://bg1vk1o2eq3fg" path="res://bark_buttons.gd" id="9_yaehf"]
[ext_resource type="Texture2D" uid="uid://ut655l8y8xmi" path="res://assets/buttons/button1pressed.png" id="10_yaehf"]
[ext_resource type="Texture2D" uid="uid://c0iad21xtnjdd" path="res://assets/buttons/button3.png" id="11_074og"]
[ext_resource type="Texture2D" uid="uid://dx4dadmb37khl" path="res://assets/buttons/button3pressed.png" id="12_cegan"]
[ext_resource type="Texture2D" uid="uid://14hw6p3ck5e7" path="res://assets/buttons/button2.png" id="13_82xsv"]
[ext_resource type="Texture2D" uid="uid://dve6bedyuod2b" path="res://assets/buttons/button2pressed.png" id="14_getpj"]
[ext_resource type="Texture2D" uid="uid://heqlxtsfl26k" path="res://assets/buttons/button4.png" id="15_ryguw"]
[ext_resource type="Texture2D" uid="uid://bnjj1gp2jx82x" path="res://assets/buttons/button4pressed.png" id="16_d13ii"]
[ext_resource type="PackedScene" uid="uid://6a4hl2twv0lj" path="res://cursor_manager.tscn" id="20_82xsv"]
[ext_resource type="AudioStream" uid="uid://b6u25i4ivxist" path="res://theme.ogg" id="22_ryguw"]

[sub_resource type="Theme" id="Theme_272bh"]
default_font = ExtResource("2_5vw27")
default_font_size = 12

[node name="Main" type="Node"]

[node name="Background" type="Sprite2D" parent="."]
position = Vector2(640, 360)
texture = ExtResource("1_lquwl")

[node name="Chairs" type="Node2D" parent="."]

[node name="ChairsBack" type="Sprite2D" parent="Chairs"]
position = Vector2(640, 360)
texture = ExtResource("2_7mycd")

[node name="ChairsFront" type="Sprite2D" parent="Chairs"]
position = Vector2(640, 360)
texture = ExtResource("3_272bh")

[node name="Painting" parent="." instance=ExtResource("9_kek77")]
position = Vector2(1075, 130)

[node name="GameManager" type="Node2D" parent="." node_paths=PackedStringArray("audience_manager", "desk", "turn_manager", "current_bid_display")]
script = ExtResource("1_ig7tw")
audience_manager = NodePath("../AudienceManager")
desk = NodePath("../Desk")
turn_manager = NodePath("../TurnManager")
current_bid_display = NodePath("../UI/RichTextLabel")

[node name="Timer" type="Timer" parent="GameManager"]
wait_time = 300.0

[node name="FailedPainting" type="AudioStreamPlayer" parent="GameManager"]
stream = ExtResource("5_cegan")
volume_db = -10.0

[node name="NextPainting" type="AudioStreamPlayer" parent="GameManager"]
stream = ExtResource("6_82xsv")
volume_db = -4.933

[node name="Desk" parent="." node_paths=PackedStringArray("game_manager", "turn_manager", "audience_manager") instance=ExtResource("2_0xm2m")]
game_manager = NodePath("../GameManager")
turn_manager = NodePath("../TurnManager")
audience_manager = NodePath("../AudienceManager")

[node name="UI" type="Control" parent="."]
layout_mode = 3
anchors_preset = 0

[node name="RichTextLabel" type="RichTextLabel" parent="UI"]
layout_mode = 0
offset_left = 480.0
offset_top = 434.0
offset_right = 796.0
offset_bottom = 457.0
theme = SubResource("Theme_272bh")
text = "Current Bid: $0"
horizontal_alignment = 1
vertical_alignment = 1

[node name="AudienceManager" parent="." node_paths=PackedStringArray("desk", "game_manager", "bark_buttons") instance=ExtResource("6_272bh")]
desk = NodePath("../Desk")
game_manager = NodePath("../GameManager")
bark_buttons = NodePath("../BarkButtons")

[node name="TurnManager" parent="." node_paths=PackedStringArray("desk", "game_manager", "audience_manager") instance=ExtResource("7_272bh")]
tts_sentence_speed = 4.5
desk = NodePath("../Desk")
game_manager = NodePath("../GameManager")
audience_manager = NodePath("../AudienceManager")

[node name="BarkButtons" type="Node2D" parent="." node_paths=PackedStringArray("turn_manager")]
position = Vector2(180, 500)
script = ExtResource("9_yaehf")
turn_manager = NodePath("../TurnManager")

[node name="GreatBuy" type="TextureButton" parent="BarkButtons"]
offset_top = -14.0
offset_right = 100.0
offset_bottom = 86.0
texture_normal = ExtResource("9_2cqfq")
texture_pressed = ExtResource("10_yaehf")
texture_hover = ExtResource("10_yaehf")

[node name="InvestmentPiece" type="TextureButton" parent="BarkButtons"]
offset_left = -98.0
offset_top = 47.0
offset_right = 2.0
offset_bottom = 147.0
texture_normal = ExtResource("11_074og")
texture_pressed = ExtResource("12_cegan")
texture_hover = ExtResource("12_cegan")

[node name="StunningMessage" type="TextureButton" parent="BarkButtons"]
offset_left = -4.0
offset_top = 103.0
offset_right = 96.0
offset_bottom = 203.0
texture_normal = ExtResource("13_82xsv")
texture_pressed = ExtResource("14_getpj")
texture_hover = ExtResource("14_getpj")

[node name="InnovativeArtist" type="TextureButton" parent="BarkButtons"]
offset_left = 92.0
offset_top = 43.0
offset_right = 192.0
offset_bottom = 143.0
texture_normal = ExtResource("15_ryguw")
texture_pressed = ExtResource("16_d13ii")
texture_hover = ExtResource("16_d13ii")

[node name="CursorManager" parent="." instance=ExtResource("20_82xsv")]

[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("22_ryguw")
volume_db = -14.0
autoplay = true

[connection signal="button_down" from="BarkButtons/GreatBuy" to="BarkButtons" method="_on_great_buy_button_down"]
[connection signal="button_down" from="BarkButtons/InvestmentPiece" to="BarkButtons" method="_on_investment_piece_button_down"]
[connection signal="button_down" from="BarkButtons/StunningMessage" to="BarkButtons" method="_on_stunning_message_button_down"]
[connection signal="button_down" from="BarkButtons/InnovativeArtist" to="BarkButtons" method="_on_innovative_artist_button_down"]
