Comitting progress

This commit is contained in:
2025-05-05 23:52:10 -05:00
parent 424edaf581
commit 4ad63b8c41
6 changed files with 25 additions and 10 deletions

View File

@@ -17,7 +17,7 @@ config/icon="res://icon.svg"
[autoload]
DEBUG="*res://scenes/Debug.tscn"
DEBUG="*res://scenes/Singletons/Debug.tscn"
BATTLE="*res://scripts/Singletons/Battle.gd"
CUTSCENE="*res://scripts/Singletons/Cutscene.gd"
COOKING="*res://scripts/Singletons/Cooking.gd"
@@ -26,7 +26,7 @@ OVERWORLD="*res://scripts/Singletons/Overworld.gd"
PAUSE="*res://scripts/Singletons/Pause.gd"
QUEST="*res://scripts/Singletons/Quest.gd"
SCENE_MANAGER="*res://scripts/Singletons/SceneManager.gd"
VN="*res://scripts/Singletons/VN.gd"
VN="*res://scenes/Singletons/VN.tscn"
[dotnet]

View File

@@ -6,8 +6,8 @@
[ext_resource type="Texture2D" uid="uid://cofrgefp8e617" path="res://textures/human.png" id="4_rvn3n"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_ls7r8"]
radius = 0.331611
height = 0.804274
radius = 0.437175
height = 0.945346
[sub_resource type="QuadMesh" id="QuadMesh_dyaax"]
@@ -28,7 +28,6 @@ fov = 30.0
script = ExtResource("2_tr66j")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.126485)
shape = SubResource("CapsuleShape3D_ls7r8")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]

View File

@@ -6,8 +6,8 @@
[ext_resource type="Texture2D" uid="uid://cofrgefp8e617" path="res://textures/human.png" id="4_vo0ku"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_dw1sy"]
radius = 0.331611
height = 0.804274
radius = 0.420979
height = 0.919425
[sub_resource type="QuadMesh" id="QuadMesh_xhkdv"]
@@ -24,7 +24,6 @@ script = ExtResource("1_1muh7")
interactCutscene = ExtResource("2_jwvuu")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.126485)
shape = SubResource("CapsuleShape3D_dw1sy")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]

18
scenes/Singletons/VN.tscn Normal file
View File

@@ -0,0 +1,18 @@
[gd_scene load_steps=3 format=3 uid="uid://b6pl1cq5y05ad"]
[ext_resource type="Script" uid="uid://benvf7v4p4i2l" path="res://scripts/Singletons/VN.gd" id="1_01fad"]
[ext_resource type="PackedScene" uid="uid://bkx3l0kckf4a8" path="res://scenes/UI/VNTextbox.tscn" id="2_adm0d"]
[node name="VN" type="Node"]
script = ExtResource("1_01fad")
[node name="UI" type="Control" parent="."]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="VNTextbox" parent="UI" instance=ExtResource("2_adm0d")]
layout_mode = 1

View File

@@ -2,5 +2,4 @@ class_name VNSystem extends Node
const VNTextbox = preload("res://scripts/UI/VNTextbox.gd")
func getTextbox() -> VNTextbox:
return null
# return get_tree().current_scene.get_node("UI/VNTextbox") as VNTextbox;
return $UI/VNTextbox;