mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 08:45:33 +00:00
Computers
This commit is contained in:
parent
f873cba98b
commit
c41967572b
23 changed files with 655 additions and 11 deletions
19
Dialogue/Characters/Navigator.dch
Normal file
19
Dialogue/Characters/Navigator.dch
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"@path": "res://addons/dialogic/Resources/character.gd",
|
||||
"@subpath": NodePath(""),
|
||||
"_translation_id": "",
|
||||
"color": Color(1, 1, 1, 1),
|
||||
"custom_info": {
|
||||
"sound_mood_default": "",
|
||||
"sound_moods": {},
|
||||
"style": ""
|
||||
},
|
||||
"default_portrait": "",
|
||||
"description": "",
|
||||
"display_name": "Navigator",
|
||||
"mirror": false,
|
||||
"nicknames": [""],
|
||||
"offset": Vector2(0, 0),
|
||||
"portraits": {},
|
||||
"scale": 1.0
|
||||
}
|
||||
29
Dialogue/Characters/Rumia.dch
Normal file
29
Dialogue/Characters/Rumia.dch
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
"@path": "res://addons/dialogic/Resources/character.gd",
|
||||
"@subpath": NodePath(""),
|
||||
"_translation_id": "",
|
||||
"color": Color(1, 1, 1, 1),
|
||||
"custom_info": {
|
||||
"sound_mood_default": "",
|
||||
"sound_moods": {},
|
||||
"style": ""
|
||||
},
|
||||
"default_portrait": "Default",
|
||||
"description": "",
|
||||
"display_name": "Rumia",
|
||||
"mirror": false,
|
||||
"nicknames": [""],
|
||||
"offset": Vector2(0, 0),
|
||||
"portraits": {
|
||||
"Default": {
|
||||
"export_overrides": {
|
||||
"image": "\"res://Sprites/Actors/Rumia.png\""
|
||||
},
|
||||
"mirror": false,
|
||||
"offset": Vector2(0, 0),
|
||||
"scale": 1,
|
||||
"scene": ""
|
||||
}
|
||||
},
|
||||
"scale": 1.0
|
||||
}
|
||||
29
Dialogue/Characters/computer.dch
Normal file
29
Dialogue/Characters/computer.dch
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
"@path": "res://addons/dialogic/Resources/character.gd",
|
||||
"@subpath": NodePath(""),
|
||||
"_translation_id": "",
|
||||
"color": Color(1, 1, 1, 1),
|
||||
"custom_info": {
|
||||
"sound_mood_default": "",
|
||||
"sound_moods": {},
|
||||
"style": ""
|
||||
},
|
||||
"default_portrait": "default",
|
||||
"description": "",
|
||||
"display_name": "Computer",
|
||||
"mirror": false,
|
||||
"nicknames": [""],
|
||||
"offset": Vector2(0, 0),
|
||||
"portraits": {
|
||||
"default": {
|
||||
"export_overrides": {
|
||||
"image": "\"res://Sprites/Portraits/Computer.png\""
|
||||
},
|
||||
"mirror": false,
|
||||
"offset": Vector2(0, 0),
|
||||
"scale": 1,
|
||||
"scene": ""
|
||||
}
|
||||
},
|
||||
"scale": 1.0
|
||||
}
|
||||
74
Dialogue/Styles/Computer_Style.tres
Normal file
74
Dialogue/Styles/Computer_Style.tres
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
[gd_resource type="Resource" script_class="DialogicStyle" load_steps=18 format=3 uid="uid://colrg0i302n1y"]
|
||||
|
||||
[ext_resource type="Script" path="res://addons/dialogic/Resources/dialogic_style_layer.gd" id="1_5pxx8"]
|
||||
[ext_resource type="PackedScene" uid="uid://c1k5m0w3r40xf" path="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_FullBackground/full_background_layer.tscn" id="2_omxqb"]
|
||||
[ext_resource type="PackedScene" uid="uid://cn674foxwedqu" path="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_Input/full_advance_input_layer.tscn" id="3_hwmwc"]
|
||||
[ext_resource type="PackedScene" path="res://Dialogue/Styles/Layers/TextboxWithPortrait/custom_textbox_with_portrait_.tscn" id="4_q2bg1"]
|
||||
[ext_resource type="PackedScene" uid="uid://dsbwnp5hegnu3" path="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_Glossary/glossary_popup_layer.tscn" id="5_tyx7t"]
|
||||
[ext_resource type="PackedScene" uid="uid://dhk6j6eb6e3q" path="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_VN_Choices/vn_choice_layer.tscn" id="6_h46rb"]
|
||||
[ext_resource type="PackedScene" uid="uid://cvgf4c6gg0tsy" path="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_TextInput/text_input_layer.tscn" id="7_mhlqd"]
|
||||
[ext_resource type="PackedScene" uid="uid://lx24i8fl6uo" path="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_History/history_layer.tscn" id="8_sf1vu"]
|
||||
[ext_resource type="Script" path="res://addons/dialogic/Resources/dialogic_style.gd" id="9_cga22"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_0p1al"]
|
||||
script = ExtResource("1_5pxx8")
|
||||
overrides = {}
|
||||
|
||||
[sub_resource type="Resource" id="Resource_lkh4h"]
|
||||
script = ExtResource("1_5pxx8")
|
||||
scene = ExtResource("2_omxqb")
|
||||
overrides = {}
|
||||
|
||||
[sub_resource type="Resource" id="Resource_kp0rr"]
|
||||
script = ExtResource("1_5pxx8")
|
||||
scene = ExtResource("3_hwmwc")
|
||||
overrides = {}
|
||||
|
||||
[sub_resource type="Resource" id="Resource_tj7qo"]
|
||||
script = ExtResource("1_5pxx8")
|
||||
scene = ExtResource("4_q2bg1")
|
||||
overrides = {
|
||||
"box_size": "Vector2(300, 80)",
|
||||
"name_label_custom_size": "9.0",
|
||||
"name_label_use_global_size": "false",
|
||||
"text_custom_size": "6.0",
|
||||
"text_use_global_size": "false"
|
||||
}
|
||||
|
||||
[sub_resource type="Resource" id="Resource_8ghaa"]
|
||||
script = ExtResource("1_5pxx8")
|
||||
scene = ExtResource("5_tyx7t")
|
||||
overrides = {}
|
||||
|
||||
[sub_resource type="Resource" id="Resource_skxtv"]
|
||||
script = ExtResource("1_5pxx8")
|
||||
scene = ExtResource("6_h46rb")
|
||||
overrides = {}
|
||||
|
||||
[sub_resource type="Resource" id="Resource_hx2hh"]
|
||||
script = ExtResource("1_5pxx8")
|
||||
scene = ExtResource("7_mhlqd")
|
||||
overrides = {}
|
||||
|
||||
[sub_resource type="Resource" id="Resource_b6uw4"]
|
||||
script = ExtResource("1_5pxx8")
|
||||
scene = ExtResource("8_sf1vu")
|
||||
overrides = {}
|
||||
|
||||
[resource]
|
||||
script = ExtResource("9_cga22")
|
||||
name = "Computer_Style"
|
||||
layer_list = Array[String](["10", "11", "12", "13", "14", "15", "16"])
|
||||
layer_info = {
|
||||
"": SubResource("Resource_0p1al"),
|
||||
"10": SubResource("Resource_lkh4h"),
|
||||
"11": SubResource("Resource_kp0rr"),
|
||||
"12": SubResource("Resource_tj7qo"),
|
||||
"13": SubResource("Resource_8ghaa"),
|
||||
"14": SubResource("Resource_skxtv"),
|
||||
"15": SubResource("Resource_hx2hh"),
|
||||
"16": SubResource("Resource_b6uw4")
|
||||
}
|
||||
base_overrides = {}
|
||||
layers = Array[ExtResource("1_5pxx8")]([])
|
||||
metadata/_latest_layer = "12"
|
||||
|
|
@ -0,0 +1,124 @@
|
|||
[gd_scene load_steps=7 format=3 ]
|
||||
|
||||
[ext_resource type="Script" path="res://addons/dialogic/Modules/Character/node_portrait_container.gd" id="1_4jxq7"]
|
||||
[ext_resource type="Script" path="res://Dialogue/Styles/Layers/TextboxWithPortrait/speaker_portrait_textbox_layer.gd" id="1_7jt4d"]
|
||||
[ext_resource type="Script" path="res://addons/dialogic/Modules/Text/node_name_label.gd" id="2_y0h34"]
|
||||
[ext_resource type="Script" path="res://addons/dialogic/Modules/Text/node_dialog_text.gd" id="3_11puy"]
|
||||
[ext_resource type="Script" path="res://addons/dialogic/Modules/Text/node_type_sound.gd" id="5_sr2qw"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_dmg1w"]
|
||||
bg_color = Color(0.254902, 0.254902, 0.254902, 1)
|
||||
skew = Vector2(0.073, 0)
|
||||
corner_radius_top_left = 3
|
||||
corner_radius_top_right = 3
|
||||
corner_radius_bottom_right = 3
|
||||
corner_radius_bottom_left = 3
|
||||
|
||||
[node name="TextboxWithSpeakerPortrait" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
script = ExtResource("1_7jt4d")
|
||||
box_panel = "res://addons/dialogic/Modules/DefaultLayoutParts/Layer_SpeakerPortraitTextbox/default_stylebox.tres"
|
||||
|
||||
[node name="Anchor" type="Control" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 7
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="Panel" type="PanelContainer" parent="Anchor"]
|
||||
unique_name_in_owner = true
|
||||
self_modulate = Color(0.533333, 0.376471, 0.176471, 1)
|
||||
layout_mode = 1
|
||||
anchors_preset = 7
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -250.0
|
||||
offset_top = -200.0
|
||||
offset_right = 250.0
|
||||
offset_bottom = -50.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="HBox" type="HBoxContainer" parent="Anchor/Panel"]
|
||||
layout_mode = 2
|
||||
mouse_filter = 2
|
||||
theme_override_constants/separation = 15
|
||||
|
||||
[node name="PortraitPanel" type="Panel" parent="Anchor/Panel/HBox"]
|
||||
unique_name_in_owner = true
|
||||
clip_children = 1
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_stretch_ratio = 0.3
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_dmg1w")
|
||||
|
||||
[node name="PortraitBackgroundColor" type="ColorRect" parent="Anchor/Panel/HBox/PortraitPanel"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -7.0
|
||||
offset_top = -3.0
|
||||
offset_right = 7.0
|
||||
offset_bottom = 3.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
color = Color(0, 0, 0, 0.231373)
|
||||
|
||||
[node name="DialogicNode_PortraitContainer" type="Control" parent="Anchor/Panel/HBox/PortraitPanel/PortraitBackgroundColor"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = 4.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
script = ExtResource("1_4jxq7")
|
||||
mode = 1
|
||||
container_ids = PackedStringArray("1")
|
||||
debug_character_portrait = "speaker"
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="Anchor/Panel/HBox"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="DialogicNode_NameLabel" type="Label" parent="Anchor/Panel/HBox/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 8
|
||||
text = "Name"
|
||||
script = ExtResource("2_y0h34")
|
||||
|
||||
[node name="DialogicNode_DialogText" type="RichTextLabel" parent="Anchor/Panel/HBox/VBoxContainer" node_paths=PackedStringArray("textbox_root")]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_font_sizes/normal_font_size = 6
|
||||
bbcode_enabled = true
|
||||
text = "Some text"
|
||||
scroll_following = true
|
||||
visible_characters_behavior = 1
|
||||
script = ExtResource("3_11puy")
|
||||
textbox_root = NodePath("../../..")
|
||||
|
||||
[node name="DialogicNode_TypeSounds" type="AudioStreamPlayer" parent="Anchor/Panel/HBox/VBoxContainer/DialogicNode_DialogText"]
|
||||
script = ExtResource("5_sr2qw")
|
||||
|
|
@ -0,0 +1,129 @@
|
|||
@tool
|
||||
extends DialogicLayoutLayer
|
||||
|
||||
enum Alignments {LEFT, CENTER, RIGHT}
|
||||
enum LimitedAlignments {LEFT=0, RIGHT=1}
|
||||
|
||||
@export_group('Text')
|
||||
@export_subgroup("Text")
|
||||
@export var text_alignment: Alignments = Alignments.LEFT
|
||||
@export_subgroup('Size')
|
||||
@export var text_use_global_size: bool = true
|
||||
@export var text_custom_size: int = 15
|
||||
@export_subgroup('Color')
|
||||
@export var text_use_global_color: bool = true
|
||||
@export var text_custom_color: Color = Color.WHITE
|
||||
@export_subgroup('Fonts')
|
||||
@export var use_global_fonts: bool = true
|
||||
@export_file('*.ttf', '*.tres') var custom_normal_font: String = ""
|
||||
@export_file('*.ttf', '*.tres') var custom_bold_font: String = ""
|
||||
@export_file('*.ttf', '*.tres') var custom_italic_font: String = ""
|
||||
@export_file('*.ttf', '*.tres') var custom_bold_italic_font: String = ""
|
||||
|
||||
@export_group('Name Label')
|
||||
@export_subgroup("Color")
|
||||
enum NameLabelColorModes {GLOBAL_COLOR, CHARACTER_COLOR, CUSTOM_COLOR}
|
||||
@export var name_label_color_mode: NameLabelColorModes = NameLabelColorModes.GLOBAL_COLOR
|
||||
@export var name_label_custom_color: Color = Color.WHITE
|
||||
@export_subgroup("Behaviour")
|
||||
@export var name_label_alignment: Alignments = Alignments.LEFT
|
||||
@export var name_label_hide_when_no_character: bool = false
|
||||
@export_subgroup("Font & Size")
|
||||
@export var name_label_use_global_size: bool = true
|
||||
@export var name_label_custom_size: int = 15
|
||||
@export var name_label_use_global_font: bool = true
|
||||
@export_file('*.ttf', '*.tres') var name_label_customfont: String = ""
|
||||
|
||||
@export_group('Box')
|
||||
@export_subgroup("Box")
|
||||
@export_file('*.tres') var box_panel: String = this_folder.path_join("default_stylebox.tres")
|
||||
@export var box_modulate_global_color: bool = true
|
||||
@export var box_modulate_custom_color: Color = Color(0.47247135639191, 0.31728461384773, 0.16592600941658)
|
||||
@export var box_size: Vector2 = Vector2(600, 160)
|
||||
@export var box_distance: int = 25
|
||||
|
||||
@export_group('Portrait')
|
||||
@export_subgroup('Portrait')
|
||||
@export var portrait_stretch_factor: float = 0.3
|
||||
@export var portrait_position: LimitedAlignments = LimitedAlignments.LEFT
|
||||
@export var portrait_bg_modulate: Color = Color(0, 0, 0, 0.5137255191803)
|
||||
|
||||
|
||||
## Called by dialogic whenever export overrides might change
|
||||
func _apply_export_overrides() -> void:
|
||||
## FONT SETTINGS
|
||||
var dialog_text: DialogicNode_DialogText = %DialogicNode_DialogText
|
||||
dialog_text.alignment = text_alignment as DialogicNode_DialogText.Alignment
|
||||
|
||||
var text_size: int = text_custom_size
|
||||
if text_use_global_size:
|
||||
text_size = get_global_setting(&'font_size', text_custom_size)
|
||||
|
||||
dialog_text.add_theme_font_size_override(&"normal_font_size", text_size)
|
||||
dialog_text.add_theme_font_size_override(&"bold_font_size", text_size)
|
||||
dialog_text.add_theme_font_size_override(&"italics_font_size", text_size)
|
||||
dialog_text.add_theme_font_size_override(&"bold_italics_font_size", text_size)
|
||||
|
||||
|
||||
var text_color: Color = text_custom_color
|
||||
if text_use_global_color:
|
||||
text_color = get_global_setting(&'font_color', text_custom_color)
|
||||
dialog_text.add_theme_color_override(&"default_color", text_color)
|
||||
|
||||
var normal_font: String = custom_normal_font
|
||||
if use_global_fonts and ResourceLoader.exists(get_global_setting(&'font', '') as String):
|
||||
normal_font = get_global_setting(&'font', '')
|
||||
|
||||
if !normal_font.is_empty():
|
||||
dialog_text.add_theme_font_override(&"normal_font", load(normal_font) as Font)
|
||||
if !custom_bold_font.is_empty():
|
||||
dialog_text.add_theme_font_override(&"bold_font", load(custom_bold_font) as Font)
|
||||
if !custom_italic_font.is_empty():
|
||||
dialog_text.add_theme_font_override(&"italics_font", load(custom_italic_font) as Font)
|
||||
if !custom_bold_italic_font.is_empty():
|
||||
dialog_text.add_theme_font_override(&"bold_italics_font", load(custom_bold_italic_font) as Font)
|
||||
|
||||
## BOX SETTINGS
|
||||
var panel: PanelContainer = %Panel
|
||||
var portrait_panel: Panel = %PortraitPanel
|
||||
if box_modulate_global_color:
|
||||
panel.self_modulate = get_global_setting(&'bg_color', box_modulate_custom_color)
|
||||
else:
|
||||
panel.self_modulate = box_modulate_custom_color
|
||||
panel.size = box_size
|
||||
panel.position = Vector2(-box_size.x/2, -box_size.y-box_distance)
|
||||
portrait_panel.size_flags_stretch_ratio = portrait_stretch_factor
|
||||
|
||||
var stylebox: StyleBox = load(box_panel)
|
||||
panel.add_theme_stylebox_override(&'panel', stylebox)
|
||||
|
||||
## PORTRAIT SETTINGS
|
||||
var portrait_background_color: ColorRect = %PortraitBackgroundColor
|
||||
portrait_background_color.color = portrait_bg_modulate
|
||||
|
||||
portrait_panel.get_parent().move_child(portrait_panel, portrait_position)
|
||||
|
||||
## NAME LABEL SETTINGS
|
||||
var name_label: DialogicNode_NameLabel = %DialogicNode_NameLabel
|
||||
if name_label_use_global_size:
|
||||
name_label.add_theme_font_size_override(&"font_size", get_global_setting(&'font_size', name_label_custom_size) as int)
|
||||
else:
|
||||
name_label.add_theme_font_size_override(&"font_size", name_label_custom_size)
|
||||
|
||||
var name_label_font: String = name_label_customfont
|
||||
if name_label_use_global_font and ResourceLoader.exists(get_global_setting(&'font', '') as String):
|
||||
name_label_font = get_global_setting(&'font', '')
|
||||
if !name_label_font.is_empty():
|
||||
name_label.add_theme_font_override(&'font', load(name_label_font) as Font)
|
||||
|
||||
name_label.use_character_color = false
|
||||
match name_label_color_mode:
|
||||
NameLabelColorModes.GLOBAL_COLOR:
|
||||
name_label.add_theme_color_override(&"font_color", get_global_setting(&'font_color', name_label_custom_color) as Color)
|
||||
NameLabelColorModes.CUSTOM_COLOR:
|
||||
name_label.add_theme_color_override(&"font_color", name_label_custom_color)
|
||||
NameLabelColorModes.CHARACTER_COLOR:
|
||||
name_label.use_character_color = true
|
||||
|
||||
name_label.horizontal_alignment = name_label_alignment as HorizontalAlignment
|
||||
name_label.hide_when_empty = name_label_hide_when_no_character
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
[gd_resource type="Resource" script_class="DialogicStyle" load_steps=18 format=3 uid="uid://o7nq8i88igxp"]
|
||||
[gd_resource type="Resource" script_class="DialogicStyle" load_steps=19 format=3 uid="uid://o7nq8i88igxp"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cqpb3ie51rwl5" path="res://addons/dialogic/Modules/DefaultLayoutParts/Base_Default/default_layout_base.tscn" id="1_4vo3k"]
|
||||
[ext_resource type="Script" path="res://addons/dialogic/Resources/dialogic_style_layer.gd" id="1_5pbjb"]
|
||||
[ext_resource type="PackedScene" uid="uid://c1k5m0w3r40xf" path="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_FullBackground/full_background_layer.tscn" id="2_6fieu"]
|
||||
[ext_resource type="PackedScene" uid="uid://cn674foxwedqu" path="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_Input/full_advance_input_layer.tscn" id="3_uwd3s"]
|
||||
|
|
@ -12,6 +13,7 @@
|
|||
|
||||
[sub_resource type="Resource" id="Resource_ycww1"]
|
||||
script = ExtResource("1_5pbjb")
|
||||
scene = ExtResource("1_4vo3k")
|
||||
overrides = {}
|
||||
|
||||
[sub_resource type="Resource" id="Resource_fuhfn"]
|
||||
|
|
|
|||
75
Dialogue/Styles/VN.tres
Normal file
75
Dialogue/Styles/VN.tres
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
[gd_resource type="Resource" script_class="DialogicStyle" load_steps=20 format=3 uid="uid://b6omw5u7u4f3"]
|
||||
|
||||
[ext_resource type="Script" path="res://addons/dialogic/Resources/dialogic_style_layer.gd" id="1_47mos"]
|
||||
[ext_resource type="PackedScene" uid="uid://c1k5m0w3r40xf" path="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_FullBackground/full_background_layer.tscn" id="2_obap8"]
|
||||
[ext_resource type="PackedScene" uid="uid://cy1y14inwkplb" path="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_VN_Portraits/vn_portrait_layer.tscn" id="3_kxjow"]
|
||||
[ext_resource type="PackedScene" uid="uid://cn674foxwedqu" path="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_Input/full_advance_input_layer.tscn" id="4_d8rd6"]
|
||||
[ext_resource type="PackedScene" uid="uid://bquja8jyk8kbr" path="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_VN_Textbox/vn_textbox_layer.tscn" id="5_bks8v"]
|
||||
[ext_resource type="PackedScene" uid="uid://dsbwnp5hegnu3" path="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_Glossary/glossary_popup_layer.tscn" id="6_mk3bt"]
|
||||
[ext_resource type="PackedScene" uid="uid://dhk6j6eb6e3q" path="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_VN_Choices/vn_choice_layer.tscn" id="7_8cj1f"]
|
||||
[ext_resource type="PackedScene" uid="uid://cvgf4c6gg0tsy" path="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_TextInput/text_input_layer.tscn" id="8_aoqfk"]
|
||||
[ext_resource type="PackedScene" uid="uid://lx24i8fl6uo" path="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_History/history_layer.tscn" id="9_86wuu"]
|
||||
[ext_resource type="Script" path="res://addons/dialogic/Resources/dialogic_style.gd" id="10_ixmpf"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_mqh25"]
|
||||
script = ExtResource("1_47mos")
|
||||
overrides = {}
|
||||
|
||||
[sub_resource type="Resource" id="Resource_5h7h2"]
|
||||
script = ExtResource("1_47mos")
|
||||
scene = ExtResource("2_obap8")
|
||||
overrides = {}
|
||||
|
||||
[sub_resource type="Resource" id="Resource_qrpnw"]
|
||||
script = ExtResource("1_47mos")
|
||||
scene = ExtResource("3_kxjow")
|
||||
overrides = {}
|
||||
|
||||
[sub_resource type="Resource" id="Resource_dgo1k"]
|
||||
script = ExtResource("1_47mos")
|
||||
scene = ExtResource("4_d8rd6")
|
||||
overrides = {}
|
||||
|
||||
[sub_resource type="Resource" id="Resource_6e5ca"]
|
||||
script = ExtResource("1_47mos")
|
||||
scene = ExtResource("5_bks8v")
|
||||
overrides = {}
|
||||
|
||||
[sub_resource type="Resource" id="Resource_30jrk"]
|
||||
script = ExtResource("1_47mos")
|
||||
scene = ExtResource("6_mk3bt")
|
||||
overrides = {}
|
||||
|
||||
[sub_resource type="Resource" id="Resource_aobjt"]
|
||||
script = ExtResource("1_47mos")
|
||||
scene = ExtResource("7_8cj1f")
|
||||
overrides = {}
|
||||
|
||||
[sub_resource type="Resource" id="Resource_dr1ns"]
|
||||
script = ExtResource("1_47mos")
|
||||
scene = ExtResource("8_aoqfk")
|
||||
overrides = {}
|
||||
|
||||
[sub_resource type="Resource" id="Resource_tdu6c"]
|
||||
script = ExtResource("1_47mos")
|
||||
scene = ExtResource("9_86wuu")
|
||||
overrides = {}
|
||||
|
||||
[resource]
|
||||
script = ExtResource("10_ixmpf")
|
||||
name = "VN"
|
||||
layer_list = Array[String](["10", "11", "12", "13", "14", "15", "16", "17"])
|
||||
layer_info = {
|
||||
"": SubResource("Resource_mqh25"),
|
||||
"10": SubResource("Resource_5h7h2"),
|
||||
"11": SubResource("Resource_qrpnw"),
|
||||
"12": SubResource("Resource_dgo1k"),
|
||||
"13": SubResource("Resource_6e5ca"),
|
||||
"14": SubResource("Resource_30jrk"),
|
||||
"15": SubResource("Resource_aobjt"),
|
||||
"16": SubResource("Resource_dr1ns"),
|
||||
"17": SubResource("Resource_tdu6c")
|
||||
}
|
||||
base_overrides = {}
|
||||
layers = Array[ExtResource("1_47mos")]([])
|
||||
metadata/_latest_layer = "13"
|
||||
6
Dialogue/Timelines/Rumia_Intro.dtl
Normal file
6
Dialogue/Timelines/Rumia_Intro.dtl
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
Cirno: Rumia? Why are you here?
|
||||
Rumia: I have no idea, I was flying through the forest in my darkness bubble and I ended up here
|
||||
Cirno: Great, now follow me, I can protect you from the people here
|
||||
Rumia: I don't want to be protected by you, I'm plenty strong myself
|
||||
Cirno: No way, I am the strongest
|
||||
Rumia: Well, let's settle this with a battle
|
||||
3
Dialogue/Timelines/computer1.dtl
Normal file
3
Dialogue/Timelines/computer1.dtl
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
computer: Hi, this is a computer, I display lore and data
|
||||
Cirno: I cannot read
|
||||
Navigator: Don't worry, I'll read it aloud for you through the ComLink
|
||||
16
Scenes/Activable/DialogueStarter.tscn
Normal file
16
Scenes/Activable/DialogueStarter.tscn
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://cwtw1l6y54roe"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Activables/DialogueStarter.cs" id="1_nlikr"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_glhl1"]
|
||||
|
||||
[node name="DialogueStarter" type="Area2D" node_paths=PackedStringArray("_dialogueEndActivationTargets")]
|
||||
monitoring = false
|
||||
monitorable = false
|
||||
script = ExtResource("1_nlikr")
|
||||
_trackName = ""
|
||||
_dialogueEndActivationTargets = []
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_glhl1")
|
||||
disabled = true
|
||||
17
Scenes/Interactable/Computer.tscn
Normal file
17
Scenes/Interactable/Computer.tscn
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://doqmmuuuprl3s"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Interactables/Switch.cs" id="1_62csb"]
|
||||
[ext_resource type="Texture2D" uid="uid://dyk2r7qkhdtkp" path="res://Sprites/Props/Computer.png" id="1_bo0p8"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_wv7xi"]
|
||||
|
||||
[node name="Computer" type="Area2D" groups=["Interactable"]]
|
||||
collision_layer = 4
|
||||
collision_mask = 2
|
||||
script = ExtResource("1_62csb")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_wv7xi")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_bo0p8")
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -21,18 +21,25 @@ public partial class DialogueStarter : Activable
|
|||
_gameManager = this.GetGameManager();
|
||||
|
||||
_dialogic = GetNode("/root/Dialogic");
|
||||
|
||||
_dialogic.Connect("timeline_ended", Callable.From(OnTimelineEnded));
|
||||
}
|
||||
|
||||
private void OnTimelineEnded()
|
||||
{
|
||||
|
||||
if (_dialogic.IsConnected("timeline_ended", Callable.From(OnTimelineEnded)))
|
||||
{
|
||||
_dialogic.Disconnect("timeline_ended", Callable.From(OnTimelineEnded));
|
||||
}
|
||||
|
||||
DialogueEndAction();
|
||||
}
|
||||
|
||||
public override void Activate(ActivationType activationType = ActivationType.Toggle)
|
||||
{
|
||||
_gameManager.ChangeState(GameState.Dialogue);
|
||||
|
||||
_dialogic.Connect("timeline_ended", Callable.From(OnTimelineEnded));
|
||||
|
||||
_dialogic.Call("start", _trackName);
|
||||
// Script dialogic = ResourceLoader.Load("res://addons/dialogic/Other/DialogicClass.gd") as Script;
|
||||
// var dialog = (Node) dialogic.Call("start","timeline");
|
||||
|
|
|
|||
17
Scripts/Interactables/Computer.cs
Normal file
17
Scripts/Interactables/Computer.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using Godot;
|
||||
using System;
|
||||
|
||||
public partial class Computer : Interactable
|
||||
{
|
||||
[Export] public Activable Target { get; set; }
|
||||
public override bool Activate()
|
||||
{
|
||||
if (MeetsRequirements())
|
||||
{
|
||||
Target?.Activate();
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
BIN
Sprites/Portraits/Computer.aseprite
(Stored with Git LFS)
Normal file
BIN
Sprites/Portraits/Computer.aseprite
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Sprites/Portraits/Computer.png
(Stored with Git LFS)
Normal file
BIN
Sprites/Portraits/Computer.png
(Stored with Git LFS)
Normal file
Binary file not shown.
34
Sprites/Portraits/Computer.png.import
Normal file
34
Sprites/Portraits/Computer.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bwuh531p3jex4"
|
||||
path="res://.godot/imported/Computer.png-d4d7e7e31b97f1406739c9cf47034c01.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Sprites/Portraits/Computer.png"
|
||||
dest_files=["res://.godot/imported/Computer.png-d4d7e7e31b97f1406739c9cf47034c01.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
Sprites/Props/Computer.aseprite
(Stored with Git LFS)
Normal file
BIN
Sprites/Props/Computer.aseprite
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Sprites/Props/Computer.png
(Stored with Git LFS)
Normal file
BIN
Sprites/Props/Computer.png
(Stored with Git LFS)
Normal file
Binary file not shown.
34
Sprites/Props/Computer.png.import
Normal file
34
Sprites/Props/Computer.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dyk2r7qkhdtkp"
|
||||
path="res://.godot/imported/Computer.png-6d571e4f4b9da97af3354b190b4ddf88.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Sprites/Props/Computer.png"
|
||||
dest_files=["res://.godot/imported/Computer.png-6d571e4f4b9da97af3354b190b4ddf88.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
|
|
@ -89,7 +89,9 @@ texture = ExtResource("1_70kxh")
|
|||
4:0/0 = 0
|
||||
5:0/0 = 0
|
||||
6:0/0 = 0
|
||||
6:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(8, -6, -6, -6, -6, 2, 8, 2)
|
||||
7:0/0 = 0
|
||||
7:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -6, 6, -6, 6, 2, -8, 2)
|
||||
8:0/0 = 0
|
||||
9:0/0 = 0
|
||||
0:1/0 = 0
|
||||
|
|
|
|||
|
|
@ -34,14 +34,19 @@ Dialogic="*res://addons/dialogic/Core/DialogicGameHandler.gd"
|
|||
[dialogic]
|
||||
|
||||
directories/dch_directory={
|
||||
"Cirno": "res://Dialogue/Characters/Cirno.dch"
|
||||
"Cirno": "res://Dialogue/Characters/Cirno.dch",
|
||||
"Navigator": "res://Dialogue/Characters/Navigator.dch",
|
||||
"Rumia": "res://Dialogue/Characters/Rumia.dch",
|
||||
"computer": "res://Dialogue/Characters/computer.dch"
|
||||
}
|
||||
directories/dtl_directory={
|
||||
"Rumia_Intro": "res://Dialogue/Timelines/Rumia_Intro.dtl",
|
||||
"computer1": "res://Dialogue/Timelines/computer1.dtl",
|
||||
"testintro": "res://Dialogue/Timelines/testintro.dtl",
|
||||
"timeline": "res://Dialogue/timeline.dtl"
|
||||
}
|
||||
glossary/default_case_sensitive=true
|
||||
layout/style_list=["res://Dialogue/Styles/Textbox_style.tres"]
|
||||
layout/style_list=["res://Dialogue/Styles/Textbox_style.tres", "res://Dialogue/Styles/VN.tres", "res://Dialogue/Styles/Computer_Style.tres"]
|
||||
layout/default_style="res://Dialogue/Styles/Textbox_style.tres"
|
||||
variables={}
|
||||
extensions_folder="res://addons/dialogic_additions"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue