Visual novel scene progress
This commit is contained in:
235
scenes/dialogue_scene.tscn
Normal file
235
scenes/dialogue_scene.tscn
Normal file
@@ -0,0 +1,235 @@
|
||||
[gd_scene format=3 uid="uid://c35md0oc82je2"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cyl18yt5hxyb5" path="res://assets/sprites/dialogue_ui.BMP" id="1_cno1m"]
|
||||
[ext_resource type="Theme" uid="uid://dx26d6py3n8xi" path="res://resources/main_ui_theme.tres" id="1_qpcyj"]
|
||||
[ext_resource type="Texture2D" uid="uid://dj621xih5cam7" path="res://assets/sprites/dialogue_continue.BMP" id="2_qpcyj"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_cno1m"]
|
||||
bg_color = Color(0, 0, 0, 1)
|
||||
|
||||
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_bhyd5"]
|
||||
blend_mode = 1
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2e7es"]
|
||||
atlas = ExtResource("1_cno1m")
|
||||
region = Rect2(0, 0, 800, 228)
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_bhyd5"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_xcky8"]
|
||||
atlas = ExtResource("2_qpcyj")
|
||||
region = Rect2(0, 0, 30, 27)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_q4mab"]
|
||||
atlas = ExtResource("2_qpcyj")
|
||||
region = Rect2(30, 0, 30, 27)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_o6y45"]
|
||||
atlas = ExtResource("2_qpcyj")
|
||||
region = Rect2(60, 0, 30, 27)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_18hkw"]
|
||||
atlas = ExtResource("2_qpcyj")
|
||||
region = Rect2(90, 0, 30, 27)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_w4lkc"]
|
||||
atlas = ExtResource("2_qpcyj")
|
||||
region = Rect2(120, 0, 30, 27)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_kolsc"]
|
||||
atlas = ExtResource("2_qpcyj")
|
||||
region = Rect2(150, 0, 30, 27)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_6myds"]
|
||||
atlas = ExtResource("2_qpcyj")
|
||||
region = Rect2(180, 0, 30, 27)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_6ge27"]
|
||||
atlas = ExtResource("2_qpcyj")
|
||||
region = Rect2(210, 0, 30, 27)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_i6h2p"]
|
||||
atlas = ExtResource("2_qpcyj")
|
||||
region = Rect2(240, 0, 30, 27)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_6kf4t"]
|
||||
atlas = ExtResource("2_qpcyj")
|
||||
region = Rect2(270, 0, 30, 27)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_dox35"]
|
||||
atlas = ExtResource("2_qpcyj")
|
||||
region = Rect2(300, 0, 30, 27)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_lapyf"]
|
||||
atlas = ExtResource("2_qpcyj")
|
||||
region = Rect2(330, 0, 30, 27)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_61f6o"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_xcky8")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_q4mab")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_o6y45")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_18hkw")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_w4lkc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_kolsc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_6myds")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_6ge27")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_i6h2p")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_6kf4t")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_dox35")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_lapyf")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 10.0
|
||||
}]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_cno1m"]
|
||||
atlas = ExtResource("1_cno1m")
|
||||
region = Rect2(1, 257, 22, 25)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qpcyj"]
|
||||
atlas = ExtResource("1_cno1m")
|
||||
region = Rect2(23, 257, 22, 25)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_bhyd5"]
|
||||
atlas = ExtResource("1_cno1m")
|
||||
region = Rect2(45, 257, 22, 25)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_61f6o"]
|
||||
atlas = ExtResource("1_cno1m")
|
||||
region = Rect2(67, 257, 22, 25)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_6ui40"]
|
||||
atlas = ExtResource("1_cno1m")
|
||||
region = Rect2(89, 257, 22, 25)
|
||||
|
||||
[node name="DialogueScene" type="Control" unique_id=1681812093]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("1_qpcyj")
|
||||
|
||||
[node name="BackgroundColor" type="Panel" parent="." unique_id=452136654]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_cno1m")
|
||||
|
||||
[node name="VerticalScreen" type="VBoxContainer" parent="." unique_id=529668640]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
alignment = 2
|
||||
|
||||
[node name="DialogueBox" type="TextureRect" parent="VerticalScreen" unique_id=1915405731]
|
||||
self_modulate = Color(1, 1, 1, 0.078431375)
|
||||
material = SubResource("CanvasItemMaterial_bhyd5")
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 8
|
||||
texture = SubResource("AtlasTexture_2e7es")
|
||||
|
||||
[node name="Text" type="VBoxContainer" parent="VerticalScreen/DialogueBox" unique_id=939057416]
|
||||
layout_mode = 0
|
||||
offset_left = 50.0
|
||||
offset_top = 100.0
|
||||
offset_right = 750.0
|
||||
offset_bottom = 175.0
|
||||
|
||||
[node name="Speaker" type="RichTextLabel" parent="VerticalScreen/DialogueBox/Text" unique_id=956457649]
|
||||
custom_minimum_size = Vector2(0, 25)
|
||||
layout_mode = 2
|
||||
bbcode_enabled = true
|
||||
text = "Test Speaker"
|
||||
scroll_active = false
|
||||
|
||||
[node name="Body" type="Label" parent="VerticalScreen/DialogueBox/Text" unique_id=364265039]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
text = "Lorem ipsum dolor"
|
||||
label_settings = SubResource("LabelSettings_bhyd5")
|
||||
|
||||
[node name="VerticalDBox" type="VBoxContainer" parent="VerticalScreen/DialogueBox" unique_id=1761650639]
|
||||
layout_mode = 1
|
||||
anchors_preset = 12
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
|
||||
[node name="BottomRow" type="HBoxContainer" parent="VerticalScreen/DialogueBox/VerticalDBox" unique_id=1729668164]
|
||||
layout_mode = 2
|
||||
alignment = 2
|
||||
|
||||
[node name="Control" type="Control" parent="VerticalScreen/DialogueBox/VerticalDBox/BottomRow" unique_id=924058102]
|
||||
custom_minimum_size = Vector2(400, 0)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ContinuePlacer" type="Control" parent="VerticalScreen/DialogueBox/VerticalDBox/BottomRow" unique_id=1584205137]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ContinueSprite" type="AnimatedSprite2D" parent="VerticalScreen/DialogueBox/VerticalDBox/BottomRow/ContinuePlacer" unique_id=1540136989]
|
||||
position = Vector2(0, 5)
|
||||
sprite_frames = SubResource("SpriteFrames_61f6o")
|
||||
autoplay = "default"
|
||||
|
||||
[node name="Spacer2" type="Control" parent="VerticalScreen/DialogueBox/VerticalDBox/BottomRow" unique_id=1533161680]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="DialogueButtons" type="HBoxContainer" parent="VerticalScreen/DialogueBox/VerticalDBox/BottomRow" unique_id=1572455129]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="History" type="TextureButton" parent="VerticalScreen/DialogueBox/VerticalDBox/BottomRow/DialogueButtons" unique_id=535301616]
|
||||
layout_mode = 2
|
||||
texture_normal = SubResource("AtlasTexture_cno1m")
|
||||
|
||||
[node name="Auto" type="TextureButton" parent="VerticalScreen/DialogueBox/VerticalDBox/BottomRow/DialogueButtons" unique_id=1254069471]
|
||||
layout_mode = 2
|
||||
texture_normal = SubResource("AtlasTexture_qpcyj")
|
||||
|
||||
[node name="FastForward" type="TextureButton" parent="VerticalScreen/DialogueBox/VerticalDBox/BottomRow/DialogueButtons" unique_id=1088780299]
|
||||
layout_mode = 2
|
||||
texture_normal = SubResource("AtlasTexture_bhyd5")
|
||||
|
||||
[node name="Skip" type="TextureButton" parent="VerticalScreen/DialogueBox/VerticalDBox/BottomRow/DialogueButtons" unique_id=1854859021]
|
||||
layout_mode = 2
|
||||
texture_normal = SubResource("AtlasTexture_61f6o")
|
||||
|
||||
[node name="Hide" type="TextureButton" parent="VerticalScreen/DialogueBox/VerticalDBox/BottomRow/DialogueButtons" unique_id=1549897664]
|
||||
layout_mode = 2
|
||||
texture_normal = SubResource("AtlasTexture_6ui40")
|
||||
@@ -3,7 +3,7 @@
|
||||
[ext_resource type="PackedScene" uid="uid://cy7r0udfcsqbn" path="res://prefabs/combat_ui.tscn" id="1_6gip4"]
|
||||
[ext_resource type="PackedScene" uid="uid://dkhyh5ce4iuk3" path="res://prefabs/combat_map.tscn" id="2_iuoca"]
|
||||
[ext_resource type="Script" uid="uid://dfojm3n0em4ef" path="res://nodes/player_controller.gd" id="3_esrqm"]
|
||||
[ext_resource type="Script" uid="uid://csdcbi2gtwrly" path="res://scripts/camera_controller.gd" id="4_ww3c6"]
|
||||
[ext_resource type="Script" uid="uid://csdcbi2gtwrly" path="res://scripts/battle/camera_controller.gd" id="4_ww3c6"]
|
||||
[ext_resource type="AudioStream" uid="uid://dsikulned64qt" path="res://assets/music/combat_bgm_01.OGG" id="5_ficdm"]
|
||||
[ext_resource type="Script" uid="uid://cf4ivrcbky0s3" path="res://nodes/combat_system.gd" id="6_combat"]
|
||||
[ext_resource type="Script" uid="uid://dnsqtsx4u2hx4" path="res://nodes/strategy_phase.gd" id="7_strat"]
|
||||
@@ -23,7 +23,6 @@ dl_map = NodePath("../CombatMap")
|
||||
script = ExtResource("6_combat")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="." unique_id=1739569732]
|
||||
position = Vector2(384, 216)
|
||||
script = ExtResource("4_ww3c6")
|
||||
|
||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="." unique_id=1057500234]
|
||||
|
||||
@@ -1,5 +1,110 @@
|
||||
[gd_scene format=3 uid="uid://dsg3pxopc0fab"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cyl18yt5hxyb5" path="res://assets/sprites/dialogue_ui.BMP" id="1_xtnmq"]
|
||||
[ext_resource type="Texture2D" uid="uid://dj621xih5cam7" path="res://assets/sprites/dialogue_continue.BMP" id="2_4b6ix"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_xtnmq"]
|
||||
bg_color = Color(0, 0, 0, 1)
|
||||
|
||||
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_xyfjv"]
|
||||
blend_mode = 1
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qmngx"]
|
||||
atlas = ExtResource("1_xtnmq")
|
||||
region = Rect2(0, 0, 800, 227)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_3sx2y"]
|
||||
atlas = ExtResource("2_4b6ix")
|
||||
region = Rect2(0, 0, 30, 27)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_6inra"]
|
||||
atlas = ExtResource("2_4b6ix")
|
||||
region = Rect2(30, 0, 30, 27)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ptlyn"]
|
||||
atlas = ExtResource("2_4b6ix")
|
||||
region = Rect2(60, 0, 30, 27)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_jvfhn"]
|
||||
atlas = ExtResource("2_4b6ix")
|
||||
region = Rect2(90, 0, 30, 27)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_fvlad"]
|
||||
atlas = ExtResource("2_4b6ix")
|
||||
region = Rect2(120, 0, 30, 27)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_kklm6"]
|
||||
atlas = ExtResource("2_4b6ix")
|
||||
region = Rect2(150, 0, 30, 27)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1rigp"]
|
||||
atlas = ExtResource("2_4b6ix")
|
||||
region = Rect2(180, 0, 30, 27)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qw2nj"]
|
||||
atlas = ExtResource("2_4b6ix")
|
||||
region = Rect2(210, 0, 30, 27)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_bubp4"]
|
||||
atlas = ExtResource("2_4b6ix")
|
||||
region = Rect2(240, 0, 30, 27)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_iivyk"]
|
||||
atlas = ExtResource("2_4b6ix")
|
||||
region = Rect2(270, 0, 30, 27)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_5hpqg"]
|
||||
atlas = ExtResource("2_4b6ix")
|
||||
region = Rect2(300, 0, 30, 27)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_256wb"]
|
||||
atlas = ExtResource("2_4b6ix")
|
||||
region = Rect2(330, 0, 30, 27)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_r6vt6"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_3sx2y")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_6inra")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ptlyn")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_jvfhn")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_fvlad")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_kklm6")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_1rigp")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_qw2nj")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_bubp4")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_iivyk")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_5hpqg")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_256wb")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[node name="VnScene" type="Control" unique_id=74039790]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
@@ -7,3 +112,47 @@ anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Panel" type="Panel" parent="." unique_id=108231475]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_xtnmq")
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="." unique_id=546478917]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
alignment = 2
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="VBoxContainer" unique_id=653606980]
|
||||
material = SubResource("CanvasItemMaterial_xyfjv")
|
||||
layout_mode = 2
|
||||
texture = SubResource("AtlasTexture_qmngx")
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/TextureRect" unique_id=1212665758]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
alignment = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/TextureRect/VBoxContainer" unique_id=238151332]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="Control" type="Control" parent="VBoxContainer/TextureRect/VBoxContainer/HBoxContainer" unique_id=1997339270]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="VBoxContainer/TextureRect/VBoxContainer/HBoxContainer/Control" unique_id=419477945]
|
||||
position = Vector2(0, -27)
|
||||
sprite_frames = SubResource("SpriteFrames_r6vt6")
|
||||
autoplay = "default"
|
||||
|
||||
Reference in New Issue
Block a user