mtd/Scenes/card_constructor.tscn

150 lines
6.1 KiB
Plaintext
Raw Normal View History

2023-11-19 18:47:52 +11:00
[gd_scene load_steps=13 format=3 uid="uid://1b2ikdanl66b"]
[ext_resource type="Script" path="res://Scripts/card_printer.gd" id="1_7rhtj"]
[ext_resource type="PackedScene" uid="uid://dixtx38u4jhd7" path="res://Scenes/UI/card_hand.tscn" id="2_7ouw1"]
[ext_resource type="PackedScene" uid="uid://dsasunnk47n8o" path="res://Scenes/item_card.tscn" id="2_356ip"]
[ext_resource type="Script" path="res://Scripts/interact_button.gd" id="3_iia6u"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_s02au"]
albedo_color = Color(0.203922, 0.592157, 0.592157, 1)
[sub_resource type="BoxShape3D" id="BoxShape3D_0ebt5"]
size = Vector3(2.672, 1.75, 1)
2023-11-19 18:47:52 +11:00
[sub_resource type="BoxShape3D" id="BoxShape3D_und3g"]
size = Vector3(0.816972, 0.233429, 0.632978)
[sub_resource type="ViewportTexture" id="ViewportTexture_yf4je"]
viewport_path = NodePath("SubViewport")
[sub_resource type="ViewportTexture" id="ViewportTexture_3q3h0"]
viewport_path = NodePath("SubViewport2")
[sub_resource type="ViewportTexture" id="ViewportTexture_vyyy4"]
viewport_path = NodePath("SubViewport3")
[sub_resource type="BoxShape3D" id="BoxShape3D_ikdwj"]
size = Vector3(1.29447, 0.342125, 0.277604)
[sub_resource type="BoxShape3D" id="BoxShape3D_gv3t5"]
size = Vector3(0.763889, 0.773027, 0.0570252)
[node name="CardPrinter" type="StaticBody3D" node_paths=PackedStringArray("cards", "button_collider", "button_box", "choice_colliders")]
script = ExtResource("1_7rhtj")
cards = [NodePath("SubViewport/Node2D"), NodePath("SubViewport2/Node2D"), NodePath("SubViewport3/Node2D")]
item_card_scene = ExtResource("2_356ip")
button_collider = NodePath("StaticBody3D/CollisionShape3D2")
button_box = NodePath("StaticBody3D/CollisionShape3D2/CSGBox3D")
choice_colliders = [NodePath("StaticBody3D2/CollisionShape3D2"), NodePath("StaticBody3D3/CollisionShape3D2"), NodePath("StaticBody3D4/CollisionShape3D2")]
[node name="CSGBox3D" type="CSGBox3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.875, 0)
size = Vector3(2.672, 1.75, 1)
material = SubResource("StandardMaterial3D_s02au")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.875, 0)
shape = SubResource("BoxShape3D_0ebt5")
2023-11-19 18:47:52 +11:00
[node name="CollisionShape3D2" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.6825, 0.484672, 0)
shape = SubResource("BoxShape3D_und3g")
[node name="SubViewport" type="SubViewport" parent="."]
transparent_bg = true
render_target_update_mode = 4
[node name="Node2D" parent="SubViewport" instance=ExtResource("2_7ouw1")]
[node name="SubViewport2" type="SubViewport" parent="."]
transparent_bg = true
render_target_update_mode = 4
[node name="Node2D" parent="SubViewport2" instance=ExtResource("2_7ouw1")]
[node name="SubViewport3" type="SubViewport" parent="."]
transparent_bg = true
render_target_update_mode = 4
[node name="Node2D" parent="SubViewport3" instance=ExtResource("2_7ouw1")]
[node name="Node3D" type="Node3D" parent="."]
visible = false
[node name="Sprite3D" type="Sprite3D" parent="Node3D"]
2023-11-16 00:07:41 +11:00
transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, -0.805106, 1.12938, 0.500052)
texture_filter = 0
texture = SubResource("ViewportTexture_yf4je")
[node name="Sprite3D2" type="Sprite3D" parent="Node3D"]
2023-11-16 00:07:41 +11:00
transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0.0180808, 1.12938, 0.500052)
texture_filter = 0
texture = SubResource("ViewportTexture_3q3h0")
[node name="Sprite3D3" type="Sprite3D" parent="Node3D"]
2023-11-16 00:07:41 +11:00
transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0.843507, 1.12938, 0.500052)
texture_filter = 0
texture = SubResource("ViewportTexture_vyyy4")
[node name="StaticBody3D" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.444448, 0.610684)
collision_layer = 16
collision_mask = 0
script = ExtResource("3_iia6u")
press_cost = 15
hover_text = "Spend 15 Coins to print card"
[node name="CollisionShape3D2" type="CollisionShape3D" parent="StaticBody3D"]
shape = SubResource("BoxShape3D_ikdwj")
[node name="CSGBox3D" type="CSGBox3D" parent="StaticBody3D/CollisionShape3D2"]
size = Vector3(1.29447, 0.342125, 0.277604)
[node name="StaticBody3D2" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.756734, 1.15772, 0.610684)
collision_layer = 16
collision_mask = 0
script = ExtResource("3_iia6u")
hover_text = "Select card"
[node name="CollisionShape3D2" type="CollisionShape3D" parent="StaticBody3D2"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0466152, -0.0297148, -0.0917365)
shape = SubResource("BoxShape3D_gv3t5")
disabled = true
[node name="StaticBody3D3" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0672475, 1.15772, 0.610684)
collision_layer = 16
collision_mask = 0
script = ExtResource("3_iia6u")
button_press_value = 1
hover_text = "Select card"
[node name="CollisionShape3D2" type="CollisionShape3D" parent="StaticBody3D3"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0466152, -0.0297148, -0.0917365)
shape = SubResource("BoxShape3D_gv3t5")
disabled = true
[node name="StaticBody3D4" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.883877, 1.15772, 0.610684)
collision_layer = 16
collision_mask = 0
script = ExtResource("3_iia6u")
button_press_value = 2
hover_text = "Select card"
[node name="CollisionShape3D2" type="CollisionShape3D" parent="StaticBody3D4"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0466152, -0.0297148, -0.0917365)
shape = SubResource("BoxShape3D_gv3t5")
disabled = true
2023-11-19 18:47:52 +11:00
[node name="CSGBox3D2" type="CSGBox3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.6825, 0.484672, 0)
size = Vector3(0.816972, 0.233429, 0.632978)
material = SubResource("StandardMaterial3D_s02au")
[connection signal="button_interacted" from="StaticBody3D" to="." method="_on_static_body_3d_button_interacted"]
[connection signal="button_interacted" from="StaticBody3D2" to="." method="retrieve_card"]
[connection signal="button_interacted" from="StaticBody3D3" to="." method="retrieve_card"]
[connection signal="button_interacted" from="StaticBody3D4" to="." method="retrieve_card"]