[gd_scene format=3 uid="uid://bp0i0yks8p3ly"]

[ext_resource type="Script" uid="uid://87mx553o86gf" path="res://scenes/schematic_setup.gd" id="1_1j52r"]
[ext_resource type="Script" uid="uid://clqgq1n7v0ar" path="res://addons/card-framework/card_manager.gd" id="2_waqni"]
[ext_resource type="PackedScene" uid="uid://cbjawyutvn74s" path="res://scenes/Jass_card_factory.tscn" id="3_ggwjq"]
[ext_resource type="Script" uid="uid://dj46jo3lfbclo" path="res://addons/card-framework/hand.gd" id="4_unpya"]
[ext_resource type="Curve" uid="uid://bpxa7v4vk7pod" path="res://resources/Hand_Curve.tres" id="5_kdjyk"]
[ext_resource type="Curve" uid="uid://c2d322obqbcgc" path="res://resources/Hand_Curve_Vert.tres" id="6_ikr1a"]
[ext_resource type="Script" uid="uid://6ams8uvg43gu" path="res://addons/card-framework/pile.gd" id="7_rwigh"]
[ext_resource type="Texture2D" uid="uid://jxi7my6yp71x" path="res://icon.svg" id="8_waqni"]
[ext_resource type="Texture2D" uid="uid://besq7oa4a37mb" path="res://icon_red_background.webp" id="9_ggwjq"]
[ext_resource type="Curve" uid="uid://ddxsxuabgpk7w" path="res://resources/Hand_Curve_invert.tres" id="10_kdjyk"]
[ext_resource type="Curve" uid="uid://y6okl4wukojm" path="res://resources/Hand_Curve_Vert_invert.tres" id="10_unpya"]

[sub_resource type="CanvasTexture" id="CanvasTexture_ggwjq"]
diffuse_texture = ExtResource("8_waqni")

[sub_resource type="CanvasTexture" id="CanvasTexture_unpya"]
diffuse_texture = ExtResource("9_ggwjq")

[sub_resource type="CanvasTexture" id="CanvasTexture_kdjyk"]
diffuse_texture = ExtResource("8_waqni")

[node name="Schematic" type="Node2D" unique_id=590430084]
script = ExtResource("1_1j52r")
metadata/_edit_vertical_guides_ = [960.0, 480.0, 1440.0, 790.0, 980.0]
metadata/_edit_horizontal_guides_ = [600.0, 620.0, 370.0, 1000.0, -10.0]

[node name="CardManager" type="Control" parent="." unique_id=697562693]
layout_mode = 3
anchors_preset = 0
offset_right = 40.0
offset_bottom = 40.0
script = ExtResource("2_waqni")
card_factory_scene = ExtResource("3_ggwjq")
metadata/_custom_type_script = "uid://clqgq1n7v0ar"

[node name="deck" type="Control" parent="CardManager" unique_id=1132160114]
anchors_preset = 0
offset_left = 960.0
offset_top = 600.0
offset_right = 960.0
offset_bottom = 600.0
script = ExtResource("7_rwigh")
card_face_up = false
enable_drop_zone = false
metadata/_custom_type_script = "uid://6ams8uvg43gu"

[node name="Player1Hand" type="Control" parent="CardManager" unique_id=643995694]
anchors_preset = 0
offset_left = 480.0
offset_top = 1000.0
offset_right = 480.0
offset_bottom = 1000.0
script = ExtResource("4_unpya")
max_hand_size = 9
hand_rotation_curve = ExtResource("5_kdjyk")
hand_vertical_curve = ExtResource("6_ikr1a")
metadata/_custom_type_script = "uid://dj46jo3lfbclo"

[node name="Player1PlayPile" type="Control" parent="CardManager" unique_id=1899485437]
anchors_preset = 0
offset_left = 790.0
offset_top = 620.0
offset_right = 790.0
offset_bottom = 620.0
script = ExtResource("7_rwigh")
sensor_texture = SubResource("CanvasTexture_ggwjq")
sensor_visibility = true
metadata/_custom_type_script = "uid://6ams8uvg43gu"

[node name="Player1Stiche" type="Control" parent="CardManager" unique_id=740577652]
anchors_preset = 0
offset_left = 790.0
offset_top = 1000.0
offset_right = 790.0
offset_bottom = 1000.0
script = ExtResource("7_rwigh")
card_face_up = false
sensor_texture = SubResource("CanvasTexture_unpya")
metadata/_custom_type_script = "uid://6ams8uvg43gu"

[node name="Player2Hand" type="Control" parent="CardManager" unique_id=1455320999]
anchors_preset = 0
offset_left = 1440.0
offset_top = 1000.0
offset_right = 1440.0
offset_bottom = 1000.0
script = ExtResource("4_unpya")
card_face_up = false
hand_rotation_curve = ExtResource("5_kdjyk")
hand_vertical_curve = ExtResource("6_ikr1a")
metadata/_custom_type_script = "uid://dj46jo3lfbclo"

[node name="Player2PlayPile" type="Control" parent="CardManager" unique_id=1774061344]
anchors_preset = 0
offset_left = 980.0
offset_top = 620.0
offset_right = 980.0
offset_bottom = 620.0
script = ExtResource("7_rwigh")
sensor_texture = SubResource("CanvasTexture_kdjyk")
sensor_visibility = true
metadata/_custom_type_script = "uid://6ams8uvg43gu"

[node name="Player2Stiche" type="Control" parent="CardManager" unique_id=561191290]
anchors_preset = 0
offset_left = 980.0
offset_top = 1000.0
offset_right = 980.0
offset_bottom = 1000.0
script = ExtResource("7_rwigh")
card_face_up = false
metadata/_custom_type_script = "uid://6ams8uvg43gu"

[node name="Player3Hand" type="Control" parent="CardManager" unique_id=1841661362]
anchors_preset = 0
offset_left = 1440.0
offset_top = -10.0
offset_right = 1440.0
offset_bottom = -10.0
script = ExtResource("4_unpya")
card_face_up = false
hand_rotation_curve = ExtResource("10_kdjyk")
hand_vertical_curve = ExtResource("10_unpya")
metadata/_custom_type_script = "uid://dj46jo3lfbclo"

[node name="Player3PlayPile" type="Control" parent="CardManager" unique_id=28196538]
anchors_preset = 0
offset_left = 980.0
offset_top = 370.0
offset_right = 980.0
offset_bottom = 370.0
script = ExtResource("7_rwigh")
sensor_texture = ExtResource("8_waqni")
sensor_visibility = true
metadata/_custom_type_script = "uid://6ams8uvg43gu"

[node name="Player3Stiche" type="Control" parent="CardManager" unique_id=1273928195]
anchors_preset = 0
offset_left = 980.0
offset_top = -10.0
offset_right = 980.0
offset_bottom = -10.0
script = ExtResource("7_rwigh")
card_face_up = false
metadata/_custom_type_script = "uid://6ams8uvg43gu"

[node name="Player4Hand" type="Control" parent="CardManager" unique_id=1883169134]
anchors_preset = 0
offset_left = 480.0
offset_top = -10.0
offset_right = 480.0
offset_bottom = -10.0
script = ExtResource("4_unpya")
card_face_up = false
card_hover_distance = 0.0
hand_rotation_curve = ExtResource("10_kdjyk")
hand_vertical_curve = ExtResource("10_unpya")
metadata/_custom_type_script = "uid://dj46jo3lfbclo"

[node name="Player4PlayPile" type="Control" parent="CardManager" unique_id=1625790580]
anchors_preset = 0
offset_left = 790.0
offset_top = 370.0
offset_right = 790.0
offset_bottom = 370.0
script = ExtResource("7_rwigh")
sensor_texture = ExtResource("8_waqni")
sensor_visibility = true
metadata/_custom_type_script = "uid://6ams8uvg43gu"

[node name="Player4Stiche" type="Control" parent="CardManager" unique_id=1604931271]
anchors_preset = 0
offset_left = 790.0
offset_top = -10.0
offset_right = 790.0
offset_bottom = -10.0
script = ExtResource("7_rwigh")
card_face_up = false
metadata/_custom_type_script = "uid://6ams8uvg43gu"
