diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 00000000..3fdfcc09
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,4 @@
+[submodule "addons/vnkit"]
+ path = addons/vnkit
+ url = https://github.com/rakugoteam/Kits
+ branch = visual-novel
\ No newline at end of file
diff --git a/addons/vnkit b/addons/vnkit
new file mode 160000
index 00000000..157f455c
--- /dev/null
+++ b/addons/vnkit
@@ -0,0 +1 @@
+Subproject commit 157f455ca09dd4e69746804a2bc06d136d78733d
diff --git a/addons/vnkit/InGameUI/DialogueUI/ChoiceButton.tscn b/addons/vnkit/InGameUI/DialogueUI/ChoiceButton.tscn
deleted file mode 100644
index de603687..00000000
--- a/addons/vnkit/InGameUI/DialogueUI/ChoiceButton.tscn
+++ /dev/null
@@ -1,29 +0,0 @@
-[gd_scene load_steps=3 format=2]
-
-[ext_resource path="res://addons/advanced-text/nodes/AdvancedTextLabel.gd" type="Script" id=1]
-[ext_resource path="res://addons/advanced-text/examples/AdvancedTextButton/AdvancedTextButton.gd" type="Script" id=2]
-
-[node name="ChoiceButton" type="Button"]
-margin_top = 125.0
-margin_right = 500.0
-margin_bottom = 175.0
-rect_min_size = Vector2( 0, 50 )
-script = ExtResource( 2 )
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="AdvancedTextLabel" type="RichTextLabel" parent="."]
-anchor_right = 1.0
-anchor_bottom = 1.0
-mouse_filter = 1
-bbcode_enabled = true
-bbcode_text = "[center]First Choice[/center]"
-text = "First Choice"
-scroll_active = false
-script = ExtResource( 1 )
-__meta__ = {
-"_default_markup": "markdown",
-"_edit_use_anchors_": false
-}
-markup_text = "[center]First Choice[/center]"
diff --git a/addons/vnkit/InGameUI/DialogueUI/DialogueContainer.gd b/addons/vnkit/InGameUI/DialogueUI/DialogueContainer.gd
deleted file mode 100644
index 45abb255..00000000
--- a/addons/vnkit/InGameUI/DialogueUI/DialogueContainer.gd
+++ /dev/null
@@ -1,45 +0,0 @@
-extends VBoxContainer
-
-onready var dialog_label := $DialogLabel
-onready var answer_edit := $AnswerEdit
-
-func _ready() -> void:
- Rakugo.connect("say", self, "_on_say")
- Rakugo.connect("ask", self, "_on_ask")
- Rakugo.connect("step", self, "_on_step")
- answer_edit.connect("text_entered", self, "_on_answer_entered")
-
-func _on_say(character:Dictionary, text:String) -> void:
- show()
- if character.empty():
- character = Rakugo.get_narrator()
-
- var ch_name = character.get("name", "null")
- text = "# %s \n%s" % [ch_name, text]
- dialog_label.markup_text = text
- # prints("dialog_label:", dialog_label.bbcode_text)
-
-func _on_step():
- dialog_label.markup_text += "\n@shake 5, 10 {Press 'Enter' to continue...}"
- # hide()
-
-func _on_ask(character:Dictionary, question:String, default_answer:String) -> void:
- _on_say(character, question)
- answer_edit.show()
- answer_edit.grab_focus()
- answer_edit.placeholder_text = default_answer
-
-func _on_ask_entered(answer:String) -> void:
- answer_edit.hide()
- answer_edit.placeholder_text = ""
- answer_edit.text = ""
- Rakugo.ask_return(answer)
-
-func _process(delta) -> void:
- var ui_accept := Input.is_action_just_pressed("ui_accept")
- if Rakugo.is_waiting_step() and ui_accept:
- Rakugo.do_step()
-
-
-
-
diff --git a/addons/vnkit/InGameUI/DialogueUI/DialogueUI.tscn b/addons/vnkit/InGameUI/DialogueUI/DialogueUI.tscn
deleted file mode 100644
index f9155b0b..00000000
--- a/addons/vnkit/InGameUI/DialogueUI/DialogueUI.tscn
+++ /dev/null
@@ -1,59 +0,0 @@
-[gd_scene load_steps=5 format=2]
-
-[ext_resource path="res://addons/advanced-text/nodes/AdvancedTextLabel.gd" type="Script" id=1]
-[ext_resource path="res://addons/vnkit/fonts/AdvancedTextTheme.tres" type="Theme" id=2]
-[ext_resource path="res://addons/vnkit/fonts/NamesFont.tres" type="DynamicFont" id=3]
-[ext_resource path="res://addons/vnkit/InGameUI/DialogueUI/DialogueContainer.gd" type="Script" id=4]
-
-[node name="DialoguePanel" type="Panel"]
-anchor_top = 1.0
-anchor_right = 1.0
-anchor_bottom = 1.0
-margin_top = -163.0
-
-[node name="DialogueContainer" type="VBoxContainer" parent="."]
-anchor_right = 1.0
-anchor_bottom = 1.0
-size_flags_horizontal = 3
-size_flags_vertical = 3
-script = ExtResource( 4 )
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="DialogLabel" type="RichTextLabel" parent="DialogueContainer"]
-margin_right = 1024.0
-margin_bottom = 163.0
-rect_min_size = Vector2( 0, 50 )
-size_flags_horizontal = 3
-size_flags_vertical = 3
-theme = ExtResource( 2 )
-bbcode_enabled = true
-bbcode_text = "[font=res://addons/vnkit/fonts/NamesFont.tres]Character Name[/font]
-Character is saying somethings here.
-"
-text = "Character Name
-Character is saying somethings here.
-"
-scroll_active = false
-script = ExtResource( 1 )
-__meta__ = {
-"_default_markup": "markdown",
-"_edit_use_anchors_": false
-}
-markup_text = "# Character Name
-Character is saying somethings here.
-"
-markup = "markdown"
-headers_fonts = [ ExtResource( 3 ) ]
-
-[node name="AnswerEdit" type="LineEdit" parent="DialogueContainer"]
-visible = false
-margin_top = 113.0
-margin_right = 1280.0
-margin_bottom = 163.0
-rect_min_size = Vector2( 0, 50 )
-size_flags_horizontal = 3
-text = "Player anwsers this"
-caret_blink = true
-caret_blink_speed = 0.5
diff --git a/addons/vnkit/InGameUI/DialogueUI/MenuContainer.gd b/addons/vnkit/InGameUI/DialogueUI/MenuContainer.gd
deleted file mode 100644
index 7ff8af5b..00000000
--- a/addons/vnkit/InGameUI/DialogueUI/MenuContainer.gd
+++ /dev/null
@@ -1,31 +0,0 @@
-extends ScrollContainer
-
-export var choice_button_scene : PackedScene
-onready var choices_box := $ChoicesBox
-
-func _ready():
- Rakugo.connect("menu", self, "_on_menu")
-
-func on_choice_button_pressed(button:Button):
- Rakugo.menu_return(button.get_index())
- hide()
-
-func _on_menu(choices:Array):
- purge_children()
- for choice in choices:
- var button : AdvancedTextButton
- button = choice_button_scene.instance()
- button.hide()
- # adding to container must be first
- choices_box.add_child(button)
- # or else the text won't be set
- button.set_markup("markdown")
- button.set_markup_text("@center{" + choice + "}")
- button.connect("pressed", self, "on_choice_button_pressed", [button])
- button.show()
-
- show()
-
-func purge_children():
- for c in choices_box.get_children():
- choices_box.call_deferred('remove_child', c)
diff --git a/addons/vnkit/InGameUI/DialogueUI/Notification.gd b/addons/vnkit/InGameUI/DialogueUI/Notification.gd
deleted file mode 100644
index 3d33514d..00000000
--- a/addons/vnkit/InGameUI/DialogueUI/Notification.gd
+++ /dev/null
@@ -1,14 +0,0 @@
-extends Popup
-
-onready var label : AdvancedTextLabel = $Panel/Label
-onready var timer : Timer = $Timer
-
-func _ready():
- Rakugo.connect("notify", self, "_on_notify")
- timer.connect("timeout", self, "hide")
-
-func _on_notify(text):
- show()
- # TODO: make line below work
- # label.variables = Rakugo.variables
- label.markup_text = text
diff --git a/addons/vnkit/InGameUI/InGameUI.tscn b/addons/vnkit/InGameUI/InGameUI.tscn
deleted file mode 100644
index 0d58252e..00000000
--- a/addons/vnkit/InGameUI/InGameUI.tscn
+++ /dev/null
@@ -1,89 +0,0 @@
-[gd_scene load_steps=8 format=2]
-
-[ext_resource path="res://addons/advanced-text/nodes/AdvancedTextLabel.gd" type="Script" id=1]
-[ext_resource path="res://addons/vnkit/InGameUI/Notification.gd" type="Script" id=2]
-[ext_resource path="res://addons/vnkit/InGameUI/DialogueUI/MenuContainer.gd" type="Script" id=3]
-[ext_resource path="res://addons/vnkit/themes/flat_drak_theme.tres" type="Theme" id=4]
-[ext_resource path="res://addons/vnkit/InGameUI/DialogueUI/DialogueUI.tscn" type="PackedScene" id=5]
-[ext_resource path="res://addons/vnkit/InGameUI/QuickMenu/QuickMenu.tscn" type="PackedScene" id=7]
-[ext_resource path="res://addons/vnkit/InGameUI/DialogueUI/ChoiceButton.tscn" type="PackedScene" id=8]
-
-[node name="InGameUI" type="Control"]
-anchor_right = 1.0
-anchor_bottom = 1.0
-theme = ExtResource( 4 )
-
-[node name="TestBG" type="ColorRect" parent="."]
-visible = false
-anchor_right = 1.0
-anchor_bottom = 1.0
-color = Color( 0.631373, 0.121569, 0.121569, 1 )
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="Notification" type="Popup" parent="."]
-margin_right = 476.0
-margin_bottom = 40.0
-script = ExtResource( 2 )
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="Timer" type="Timer" parent="Notification"]
-one_shot = true
-
-[node name="Panel" type="Panel" parent="Notification"]
-anchor_right = 1.0
-anchor_bottom = 1.0
-
-[node name="Label" type="RichTextLabel" parent="Notification/Panel"]
-anchor_right = 1.0
-anchor_bottom = 1.0
-bbcode_enabled = true
-bbcode_text = "Notification"
-text = "Notification"
-script = ExtResource( 1 )
-__meta__ = {
-"_default_markup": "markdown",
-"_edit_use_anchors_": false
-}
-markup_text = "Notification"
-
-[node name="DialogueUI" type="Control" parent="."]
-anchor_right = 1.0
-anchor_bottom = 1.0
-
-[node name="DialogueUI" parent="DialogueUI" instance=ExtResource( 5 )]
-
-[node name="MenuContainer" type="ScrollContainer" parent="DialogueUI"]
-anchor_left = 0.119
-anchor_top = 0.067
-anchor_right = 0.9
-anchor_bottom = 0.733
-margin_left = 0.143997
-margin_top = -0.200001
-margin_right = 0.399963
-margin_bottom = 0.199982
-rect_min_size = Vector2( 800, 400 )
-rect_clip_content = false
-mouse_filter = 1
-size_flags_horizontal = 3
-size_flags_vertical = 3
-script = ExtResource( 3 )
-__meta__ = {
-"_editor_description_": ""
-}
-choice_button_scene = ExtResource( 8 )
-
-[node name="ChoicesBox" type="VBoxContainer" parent="DialogueUI/MenuContainer"]
-margin_right = 800.0
-margin_bottom = 400.0
-rect_min_size = Vector2( 500, 300 )
-size_flags_horizontal = 3
-size_flags_vertical = 3
-alignment = 1
-
-[node name="QuickMenu" parent="." instance=ExtResource( 7 )]
-margin_top = 436.0
-margin_bottom = 488.0
diff --git a/addons/vnkit/InGameUI/Notification.gd b/addons/vnkit/InGameUI/Notification.gd
deleted file mode 100644
index 3d33514d..00000000
--- a/addons/vnkit/InGameUI/Notification.gd
+++ /dev/null
@@ -1,14 +0,0 @@
-extends Popup
-
-onready var label : AdvancedTextLabel = $Panel/Label
-onready var timer : Timer = $Timer
-
-func _ready():
- Rakugo.connect("notify", self, "_on_notify")
- timer.connect("timeout", self, "hide")
-
-func _on_notify(text):
- show()
- # TODO: make line below work
- # label.variables = Rakugo.variables
- label.markup_text = text
diff --git a/addons/vnkit/InGameUI/QuickMenu/QuickMenu.gd b/addons/vnkit/InGameUI/QuickMenu/QuickMenu.gd
deleted file mode 100644
index 69524697..00000000
--- a/addons/vnkit/InGameUI/QuickMenu/QuickMenu.gd
+++ /dev/null
@@ -1,35 +0,0 @@
-extends Control
-
-func _on_Hide_pressed():
- Window.Tabs.get_child(1).hide()
-
-func _on_History_pressed():
- _on_Hide_pressed()
- Window.Screens.show_page("history")
-
-func _on_Back_pressed():
- pass # Replace with function body.
-
-func _on_Skip_pressed():
- pass # Replace with function body.
-
-func _on_Save_pressed():
- _on_Hide_pressed()
- Window.Screens.show_page("save")
-
-func _on_Load_pressed():
- _on_Hide_pressed()
- Window.Screens.show_page("load")
-
-func _on_Preferences_pressed():
- _on_Hide_pressed()
- Window.Screens.show_page("preferences")
-
-func _on_Quit_pressed():
- _on_Hide_pressed()
- Window.Screens.show_page("quit")
-
-func _process(delta):
- if Input.is_action_just_pressed("hide_ui"):
- var ui_visible = Window.Tabs.get_child(1).visible
- Window.Tabs.get_child(1).visible = not ui_visible
diff --git a/addons/vnkit/InGameUI/QuickMenu/QuickMenu.tscn b/addons/vnkit/InGameUI/QuickMenu/QuickMenu.tscn
deleted file mode 100644
index 67e74b32..00000000
--- a/addons/vnkit/InGameUI/QuickMenu/QuickMenu.tscn
+++ /dev/null
@@ -1,111 +0,0 @@
-[gd_scene load_steps=4 format=2]
-
-[ext_resource path="res://addons/vnkit/InGameUI/QuickMenu/QuickMenu.gd" type="Script" id=1]
-[ext_resource path="res://addons/material-design-icons/fonts/48.tres" type="DynamicFont" id=2]
-[ext_resource path="res://addons/material-design-icons/nodes/MaterialButton.gd" type="Script" id=3]
-
-[node name="QuickMenu" type="HBoxContainer"]
-margin_right = 1024.0
-margin_bottom = 52.0
-grow_vertical = 0
-mouse_filter = 2
-alignment = 2
-script = ExtResource( 1 )
-
-[node name="Hide" type="Button" parent="."]
-margin_left = 636.0
-margin_right = 688.0
-margin_bottom = 52.0
-hint_tooltip = "Hide"
-custom_fonts/font = ExtResource( 2 )
-text = ""
-script = ExtResource( 3 )
-icon_name = "comment-eye-outline"
-icon_size = "48"
-
-[node name="History" type="Button" parent="."]
-visible = false
-margin_left = 916.0
-margin_right = 968.0
-margin_bottom = 52.0
-hint_tooltip = "History"
-custom_fonts/font = ExtResource( 2 )
-text = ""
-script = ExtResource( 3 )
-icon_name = "book-open-variant"
-icon_size = "48"
-
-[node name="Back" type="Button" parent="."]
-margin_left = 692.0
-margin_right = 744.0
-margin_bottom = 52.0
-hint_tooltip = "RollBack"
-custom_fonts/font = ExtResource( 2 )
-text = ""
-script = ExtResource( 3 )
-icon_name = "step-backward"
-icon_size = "48"
-
-[node name="Skip" type="Button" parent="."]
-margin_left = 748.0
-margin_right = 800.0
-margin_bottom = 52.0
-hint_tooltip = "Toggle Skip"
-custom_fonts/font = ExtResource( 2 )
-text = ""
-script = ExtResource( 3 )
-icon_name = "skip-forward"
-icon_size = "48"
-
-[node name="Save" type="Button" parent="."]
-margin_left = 804.0
-margin_right = 856.0
-margin_bottom = 52.0
-hint_tooltip = "Save"
-custom_fonts/font = ExtResource( 2 )
-text = ""
-script = ExtResource( 3 )
-icon_name = "content-save-edit"
-icon_size = "48"
-
-[node name="Load" type="Button" parent="."]
-margin_left = 860.0
-margin_right = 912.0
-margin_bottom = 52.0
-hint_tooltip = "Load"
-custom_fonts/font = ExtResource( 2 )
-text = ""
-script = ExtResource( 3 )
-icon_name = "upload"
-icon_size = "48"
-
-[node name="Preferences" type="Button" parent="."]
-margin_left = 916.0
-margin_right = 968.0
-margin_bottom = 52.0
-hint_tooltip = "Preferences"
-custom_fonts/font = ExtResource( 2 )
-text = ""
-script = ExtResource( 3 )
-icon_name = "tune"
-icon_size = "48"
-
-[node name="Quit" type="Button" parent="."]
-margin_left = 972.0
-margin_right = 1024.0
-margin_bottom = 52.0
-hint_tooltip = "Quit"
-custom_fonts/font = ExtResource( 2 )
-text = ""
-script = ExtResource( 3 )
-icon_name = "exit-run"
-icon_size = "48"
-
-[connection signal="pressed" from="Hide" to="." method="_on_Hide_pressed"]
-[connection signal="pressed" from="History" to="." method="_on_History_pressed"]
-[connection signal="pressed" from="Back" to="." method="_on_Back_pressed"]
-[connection signal="pressed" from="Skip" to="." method="_on_Skip_pressed"]
-[connection signal="pressed" from="Save" to="." method="_on_Save_pressed"]
-[connection signal="pressed" from="Load" to="." method="_on_Load_pressed"]
-[connection signal="pressed" from="Preferences" to="." method="_on_Preferences_pressed"]
-[connection signal="pressed" from="Quit" to="." method="_on_Quit_pressed"]
diff --git a/addons/vnkit/InGameUI/QuickMenu/QuickMenuButton.gd b/addons/vnkit/InGameUI/QuickMenu/QuickMenuButton.gd
deleted file mode 100644
index f1a39c23..00000000
--- a/addons/vnkit/InGameUI/QuickMenu/QuickMenuButton.gd
+++ /dev/null
@@ -1,8 +0,0 @@
-extends Button
-
-export var quick_action:String = ''
-
-signal quick_button_pressed(quick_action)
-
-func _on_pressed():
- emit_signal("quick_button_pressed", quick_action)
diff --git a/addons/vnkit/InGameUI/QuickMenu/QuickMenuButton.tscn b/addons/vnkit/InGameUI/QuickMenu/QuickMenuButton.tscn
deleted file mode 100644
index 5eecb19b..00000000
--- a/addons/vnkit/InGameUI/QuickMenu/QuickMenuButton.tscn
+++ /dev/null
@@ -1,14 +0,0 @@
-[gd_scene load_steps=2 format=2]
-
-[ext_resource path="res://addons/vnkit/InGameUI/QuickMenu/QuickMenuButton.gd" type="Script" id=1]
-
-[node name="QuickButton" type="Button" groups=["quick_button"]]
-action_mode = 0
-text = "Quick"
-flat = true
-script = ExtResource( 1 )
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[connection signal="pressed" from="." to="." method="_on_pressed"]
diff --git a/addons/vnkit/QuitScreen/QuitConfirmDialog.gd b/addons/vnkit/QuitScreen/QuitConfirmDialog.gd
deleted file mode 100644
index 2663d33a..00000000
--- a/addons/vnkit/QuitScreen/QuitConfirmDialog.gd
+++ /dev/null
@@ -1,5 +0,0 @@
-extends AcceptDialog
-
-func _ready():
- self.get_ok().text = "Yes"
- self.add_cancel("No")
diff --git a/addons/vnkit/QuitScreen/QuitScreen.gd b/addons/vnkit/QuitScreen/QuitScreen.gd
deleted file mode 100644
index 3a072aa9..00000000
--- a/addons/vnkit/QuitScreen/QuitScreen.gd
+++ /dev/null
@@ -1,23 +0,0 @@
-extends Panel
-
-signal quit_confirm()
-
-func _notification(what):
- if what == MainLoop.NOTIFICATION_WM_QUIT_REQUEST:
- if visible:
- _on_confirmed()# If the confirmation is already display and the user calls to quit an other time the
- visible = true
-
-func _on_confirmed():
- Rakugo.prepare_quitting()
- # print("quit")
- get_tree().quit()
-
-func _on_visibility_changed():# Using self connected signal to also handle external use
- if visible:
- $QuitConfirmDialog.call_deferred("popup_centered")
-
-func _on_popup_hide():
- visible = false
- # prevent the input that cancelled quitting to trigger the step
- yield(get_tree().create_timer(0.1), "timeout")
diff --git a/addons/vnkit/QuitScreen/QuitScreen.tscn b/addons/vnkit/QuitScreen/QuitScreen.tscn
deleted file mode 100644
index e2aabc67..00000000
--- a/addons/vnkit/QuitScreen/QuitScreen.tscn
+++ /dev/null
@@ -1,33 +0,0 @@
-[gd_scene load_steps=4 format=2]
-
-[ext_resource path="res://addons/vnkit/themes/flat_drak_theme.tres" type="Theme" id=1]
-[ext_resource path="res://addons/vnkit/QuitScreen/QuitConfirmDialog.gd" type="Script" id=2]
-[ext_resource path="res://addons/vnkit/QuitScreen/QuitScreen.gd" type="Script" id=3]
-
-[node name="QuitScreen" type="Panel"]
-anchor_right = 1.0
-anchor_bottom = 1.0
-theme = ExtResource( 1 )
-script = ExtResource( 3 )
-
-[node name="QuitConfirmDialog" type="AcceptDialog" parent="."]
-visible = true
-anchor_left = 0.5
-anchor_top = 0.5
-anchor_right = 0.5
-anchor_bottom = 0.5
-grow_horizontal = 2
-grow_vertical = 2
-theme = ExtResource( 1 )
-window_title = ""
-resizable = true
-dialog_text = "Are you sure you want to quit?"
-dialog_hide_on_ok = false
-script = ExtResource( 2 )
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[connection signal="visibility_changed" from="." to="." method="_on_visibility_changed"]
-[connection signal="confirmed" from="QuitConfirmDialog" to="." method="_on_confirmed"]
-[connection signal="popup_hide" from="QuitConfirmDialog" to="." method="_on_popup_hide"]
diff --git a/addons/vnkit/Screens/AboutScreen/AboutScreen.tscn b/addons/vnkit/Screens/AboutScreen/AboutScreen.tscn
deleted file mode 100644
index ec2a563a..00000000
--- a/addons/vnkit/Screens/AboutScreen/AboutScreen.tscn
+++ /dev/null
@@ -1,53 +0,0 @@
-[gd_scene load_steps=3 format=2]
-
-[ext_resource path="res://addons/advanced-text/nodes/AdvancedTextLabel.gd" type="Script" id=1]
-[ext_resource path="res://addons/vnkit/fonts/AdvancedTextTheme.tres" type="Theme" id=3]
-
-[node name="AboutScreen" type="Panel"]
-anchor_right = 1.0
-anchor_bottom = 1.0
-
-[node name="ScrollContainer" type="ScrollContainer" parent="."]
-anchor_left = 0.1
-anchor_right = 0.9
-anchor_bottom = 1.0
-scroll_horizontal_enabled = false
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="DialogLabel" type="RichTextLabel" parent="ScrollContainer"]
-margin_right = 819.2
-margin_bottom = 600.0
-rect_min_size = Vector2( 0, 50 )
-size_flags_horizontal = 3
-size_flags_vertical = 3
-theme = ExtResource( 3 )
-bbcode_enabled = true
-bbcode_text = "[b]My Awesome Game[/b]
-[i]version 0.1[/i]
-[i]by me and team[/i]
-
-[b]About this game[/b]
-This is awesome game powered by Rakugo and Godot
-"
-text = "My Awesome Game
-version 0.1
-by me and team
-
-About this game
-This is awesome game powered by Rakugo and Godot
-"
-scroll_active = false
-script = ExtResource( 1 )
-__meta__ = {
-"_default_markup": "markdown"
-}
-markup_text = "**My Awesome Game**
-*version 0.1*
-*by me and team*
-
-**About this game**
-This is awesome game powered by Rakugo and Godot
-"
-markup = "markdown"
diff --git a/addons/vnkit/Screens/HistoryScreen/History.gd b/addons/vnkit/Screens/HistoryScreen/History.gd
deleted file mode 100644
index f0c43935..00000000
--- a/addons/vnkit/Screens/HistoryScreen/History.gd
+++ /dev/null
@@ -1,22 +0,0 @@
-extends VBoxContainer
-
-export(PackedScene) var HistoryItemTemplate: PackedScene
-onready var HistoryItem := load(HistoryItemTemplate.resource_path)
-
-
-func _ready() -> void:
- connect("visibility_changed", self, "_on_visibility_changed")
-
-
-func _on_visibility_changed() -> void:
- if not visible:
- return
-
- for c in self.get_children():
- remove_child(c)
- var new_item:Control = null
- for i in range(Rakugo.store.history.size()-1, -1, -1): #Inverting the array without data manipulation
- new_item = HistoryItem.instance()
- new_item.init(Rakugo.store.history[i])
- add_child(new_item)
- get_parent().call_deferred('scroll_to_bottom')
diff --git a/addons/vnkit/Screens/HistoryScreen/HistoryItem.gd b/addons/vnkit/Screens/HistoryScreen/HistoryItem.gd
deleted file mode 100644
index a5b59dda..00000000
--- a/addons/vnkit/Screens/HistoryScreen/HistoryItem.gd
+++ /dev/null
@@ -1,14 +0,0 @@
-extends PanelContainer
-
-onready var ch_name := $VBoxContainer/CharacterName
-onready var text := $VBoxContainer/Text
-
-
-func init(entry):
- if entry.character_tag and Rakugo.store.get(entry.character_tag):
- ch_name.markup_text = Rakugo.store.get(entry.character_tag)
- else:
- ch_name.markup_text = Rakugo.Say.get_narrator()
- if not ch_name.markup_text:
- ch_name.markup_text.visible = false
- text.markup_text = entry.text
diff --git a/addons/vnkit/Screens/HistoryScreen/HistoryItem.tscn b/addons/vnkit/Screens/HistoryScreen/HistoryItem.tscn
deleted file mode 100644
index e6aec8b5..00000000
--- a/addons/vnkit/Screens/HistoryScreen/HistoryItem.tscn
+++ /dev/null
@@ -1,59 +0,0 @@
-[gd_scene load_steps=18 format=2]
-
-[ext_resource path="res://addons/vnkit/Screens/HistoryScreen/HistoryItem.gd" type="Script" id=1]
-[ext_resource path="res://addons/advanced-text/nodes/AdvancedTextLabel.gd" type="Script" id=7]
-[ext_resource path="res://addons/vnkit/themes/flat_drak_theme.tres" type="Theme" id=8]
-[ext_resource path="res://addons/advanced-text/font/DejaVuSans-H3.tres" type="DynamicFont" id=9]
-[ext_resource path="res://addons/advanced-text/font/DejaVuSans-H1.tres" type="DynamicFont" id=10]
-[ext_resource path="res://addons/advanced-text/font/DejaVuSans-H2.tres" type="DynamicFont" id=11]
-
-[sub_resource type="StyleBoxFlat" id=1]
-content_margin_left = 10.0
-content_margin_right = 10.0
-content_margin_top = 10.0
-content_margin_bottom = 10.0
-bg_color = Color( 1, 1, 1, 0.121569 )
-
-[node name="HistoryItem" type="PanelContainer"]
-anchor_right = 1.0
-theme = ExtResource( 8 )
-custom_styles/panel = SubResource( 1 )
-script = ExtResource( 1 )
-
-[node name="VBoxContainer" type="VBoxContainer" parent="."]
-margin_left = 10.0
-margin_top = 10.0
-margin_right = 1270.0
-margin_bottom = 94.0
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="CharacterName" type="RichTextLabel" parent="VBoxContainer"]
-margin_right = 1260.0
-margin_bottom = 40.0
-rect_min_size = Vector2( 100, 40 )
-mouse_filter = 2
-size_flags_horizontal = 3
-size_flags_vertical = 3
-bbcode_text = "Speaker"
-text = "Speaker"
-scroll_active = false
-script = ExtResource( 7 )
-headers_fonts = [ ExtResource( 10 ), ExtResource( 11 ), ExtResource( 9 ) ]
-
-[node name="Text" type="RichTextLabel" parent="VBoxContainer"]
-margin_top = 44.0
-margin_right = 1260.0
-margin_bottom = 84.0
-rect_min_size = Vector2( 100, 40 )
-mouse_filter = 2
-size_flags_horizontal = 3
-size_flags_vertical = 3
-bbcode_enabled = true
-script = ExtResource( 7 )
-__meta__ = {
-"_default_markup": "markdown",
-"_editor_description_": ""
-}
-headers_fonts = [ ExtResource( 10 ), ExtResource( 11 ), ExtResource( 9 ) ]
diff --git a/addons/vnkit/Screens/HistoryScreen/HistoryScreen.tscn b/addons/vnkit/Screens/HistoryScreen/HistoryScreen.tscn
deleted file mode 100644
index 9fc629b5..00000000
--- a/addons/vnkit/Screens/HistoryScreen/HistoryScreen.tscn
+++ /dev/null
@@ -1,34 +0,0 @@
-[gd_scene load_steps=4 format=2]
-
-[ext_resource path="res://addons/vnkit/Screens/HistoryScreen/ScrollContainer.gd" type="Script" id=1]
-[ext_resource path="res://addons/vnkit/Screens/HistoryScreen/HistoryItem.tscn" type="PackedScene" id=2]
-[ext_resource path="res://addons/vnkit/Screens/HistoryScreen/History.gd" type="Script" id=3]
-
-[node name="HistoryScreen" type="Panel"]
-anchor_right = 1.0
-anchor_bottom = 1.0
-
-[node name="ScrollContainer" type="ScrollContainer" parent="."]
-anchor_left = 0.1
-anchor_top = 0.1
-anchor_right = 0.9
-anchor_bottom = 0.9
-grow_vertical = 0
-size_flags_horizontal = 3
-size_flags_vertical = 3
-follow_focus = true
-scroll_horizontal_enabled = false
-script = ExtResource( 1 )
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="History" type="VBoxContainer" parent="ScrollContainer"]
-margin_right = 1024.0
-margin_bottom = 576.0
-size_flags_horizontal = 3
-size_flags_vertical = 3
-custom_constants/separation = 10
-alignment = 1
-script = ExtResource( 3 )
-HistoryItemTemplate = ExtResource( 2 )
diff --git a/addons/vnkit/Screens/HistoryScreen/ScrollContainer.gd b/addons/vnkit/Screens/HistoryScreen/ScrollContainer.gd
deleted file mode 100644
index 742daf0f..00000000
--- a/addons/vnkit/Screens/HistoryScreen/ScrollContainer.gd
+++ /dev/null
@@ -1,6 +0,0 @@
-extends ScrollContainer
-
-
-func scroll_to_bottom():
- var scrollbar = get_v_scrollbar()
- scrollbar.value = scrollbar.max_value
diff --git a/addons/vnkit/Screens/MainMenuReturnConfirm.gd b/addons/vnkit/Screens/MainMenuReturnConfirm.gd
deleted file mode 100644
index 5faf145c..00000000
--- a/addons/vnkit/Screens/MainMenuReturnConfirm.gd
+++ /dev/null
@@ -1,17 +0,0 @@
-extends AcceptDialog
-
-signal show_main_menu(nav)
-
-func _ready():
- self.get_ok().text = "Yes"
- self.add_cancel("No")
-
-
-func _on_show_main_menu_confirm():
- self.popup_centered()
-
-
-func _on_confirmed():
- Rakugo.reset_game()
- emit_signal("show_main_menu", "main_menu")
- pass # Replace with function body.
diff --git a/addons/vnkit/Screens/MainMenuReturnConfirmPanel.gd b/addons/vnkit/Screens/MainMenuReturnConfirmPanel.gd
deleted file mode 100644
index 4e38da3d..00000000
--- a/addons/vnkit/Screens/MainMenuReturnConfirmPanel.gd
+++ /dev/null
@@ -1,9 +0,0 @@
-extends Panel
-
-
-func _on_show_main_menu_confirm():
- visible = true
-
-
-func _on_popup_hide():
- visible = false
diff --git a/addons/vnkit/Screens/MenuBar/MainMenu.gd b/addons/vnkit/Screens/MenuBar/MainMenu.gd
deleted file mode 100644
index a003b4d3..00000000
--- a/addons/vnkit/Screens/MenuBar/MainMenu.gd
+++ /dev/null
@@ -1,21 +0,0 @@
-extends Control
-
-
-func _on_show_menu(menu, game_started):
- if not game_started and (menu in ["main_menu", "return"]):
- visible = true
- $"../ReturnButton".visible = false
-
- if get_tree():
- for nb in get_tree().get_nodes_in_group("nav_button"):
- nb.pressed = false
-
- if "nav_button_main_menu" in nb.get_groups():
- nb.visible = true
-
- if "nav_button_game" in nb.get_groups():
- nb.visible = false
-
- return
-
- visible = false
diff --git a/addons/vnkit/Screens/MenuBar/MenuBar.gd b/addons/vnkit/Screens/MenuBar/MenuBar.gd
deleted file mode 100644
index 2592fc9e..00000000
--- a/addons/vnkit/Screens/MenuBar/MenuBar.gd
+++ /dev/null
@@ -1,27 +0,0 @@
-extends Panel
-
-signal show_menu(menu, game_started)
-signal nav_button_press(nav_action)
-
-func _ready():
- connect_buttons()
- disable_continue_button()
- _show_menu("main_menu", Rakugo.started)
-
-func disable_continue_button():
- if not File.new().file_exists(Rakugo.store_manager.get_save_path("auto")):
- for n in get_tree().get_nodes_in_group("nav_button_continue"):
- n.disabled = true
-
-func _show_menu(menu, game_started):
- emit_signal("show_menu", menu, game_started)
-
-func connect_buttons():
- for nb in get_tree().get_nodes_in_group("nav_button"):
- nb.connect("nav_button_pressed", self, "_on_nav_button_pressed")
-
-func _on_nav_button_pressed(nav_action):
- if nav_action != "quit":
- _show_menu(nav_action, Rakugo.started)
-
- emit_signal("nav_button_press", nav_action)
diff --git a/addons/vnkit/Screens/MenuBar/MenuBar.tscn b/addons/vnkit/Screens/MenuBar/MenuBar.tscn
deleted file mode 100644
index caef0e25..00000000
--- a/addons/vnkit/Screens/MenuBar/MenuBar.tscn
+++ /dev/null
@@ -1,178 +0,0 @@
-[gd_scene load_steps=7 format=2]
-
-[ext_resource path="res://addons/vnkit/Screens/MenuBar/MenuBar.gd" type="Script" id=1]
-[ext_resource path="res://addons/vnkit/Screens/MenuBar/SubMenu.gd" type="Script" id=4]
-[ext_resource path="res://addons/vnkit/Screens/MenuBar/MainMenu.gd" type="Script" id=5]
-[ext_resource path="res://addons/vnkit/Screens/MenuBar/NavMenuButton.tscn" type="PackedScene" id=6]
-[ext_resource path="res://addons/vnkit/Screens/MenuBar/menu_buttons.tres" type="ButtonGroup" id=7]
-
-[sub_resource type="StyleBoxFlat" id=2]
-content_margin_left = 40.0
-content_margin_right = 10.0
-draw_center = false
-border_width_right = 4
-border_color = Color( 0.756863, 0.878431, 1, 1 )
-
-[node name="MenuBar" type="Panel"]
-anchor_right = 1.0
-anchor_bottom = 1.0
-script = ExtResource( 1 )
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="SubMenu" type="Control" parent="."]
-anchor_right = 1.0
-anchor_bottom = 1.0
-script = ExtResource( 4 )
-__meta__ = {
-"_edit_group_": true,
-"_edit_lock_": true,
-"_edit_use_anchors_": false
-}
-
-[node name="CurrentSubMenu" type="Label" parent="SubMenu"]
-anchor_right = 1.0
-anchor_bottom = 0.25
-margin_left = 50.0
-margin_top = 50.0
-custom_colors/font_color = Color( 0.756863, 0.878431, 1, 1 )
-text = "Preferences"
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="Panel" type="Panel" parent="SubMenu"]
-anchor_top = 0.2
-anchor_right = 1.0
-anchor_bottom = 0.95
-custom_styles/panel = SubResource( 2 )
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="MainMenu" type="Control" parent="."]
-visible = false
-anchor_right = 1.0
-anchor_bottom = 1.0
-script = ExtResource( 5 )
-__meta__ = {
-"_edit_group_": true,
-"_edit_lock_": true,
-"_edit_use_anchors_": false
-}
-
-[node name="Panel" type="Panel" parent="MainMenu"]
-anchor_right = 1.0
-anchor_bottom = 1.0
-custom_styles/panel = SubResource( 2 )
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="NavList" type="VBoxContainer" parent="."]
-anchor_right = 1.0
-anchor_bottom = 1.0
-margin_left = 40.0
-custom_constants/separation = 12
-alignment = 1
-__meta__ = {
-"_edit_lock_": true,
-"_edit_use_anchors_": false
-}
-
-[node name="Start" parent="NavList" groups=["nav_button", "nav_button_main_menu"] instance=ExtResource( 6 )]
-margin_top = 176.0
-margin_right = 984.0
-margin_bottom = 190.0
-text = "Start"
-nav_action = "start"
-
-[node name="Continue" parent="NavList" groups=["nav_button", "nav_button_continue", "nav_button_main_menu"] instance=ExtResource( 6 )]
-margin_top = 202.0
-margin_right = 984.0
-margin_bottom = 216.0
-disabled = true
-text = "Continue"
-nav_action = "continue"
-
-[node name="History" parent="NavList" groups=["nav_button", "nav_button_game"] instance=ExtResource( 6 )]
-margin_top = 228.0
-margin_right = 984.0
-margin_bottom = 242.0
-toggle_mode = true
-group = ExtResource( 7 )
-text = "History"
-nav_action = "history"
-
-[node name="Save" parent="NavList" groups=["nav_button", "nav_button_game"] instance=ExtResource( 6 )]
-margin_top = 254.0
-margin_right = 984.0
-margin_bottom = 268.0
-toggle_mode = true
-group = ExtResource( 7 )
-text = "Save"
-nav_action = "save"
-
-[node name="Load" parent="NavList" groups=["nav_button"] instance=ExtResource( 6 )]
-margin_top = 280.0
-margin_right = 984.0
-margin_bottom = 294.0
-toggle_mode = true
-group = ExtResource( 7 )
-text = "Load"
-nav_action = "load"
-
-[node name="Preferences" parent="NavList" groups=["nav_button"] instance=ExtResource( 6 )]
-margin_top = 306.0
-margin_right = 984.0
-margin_bottom = 320.0
-toggle_mode = true
-group = ExtResource( 7 )
-text = "Preferences"
-nav_action = "preferences"
-
-[node name="MainMenu" parent="NavList" groups=["nav_button", "nav_button_game"] instance=ExtResource( 6 )]
-margin_top = 332.0
-margin_right = 984.0
-margin_bottom = 346.0
-text = "Main Menu"
-nav_action = "main_menu"
-
-[node name="About" parent="NavList" groups=["nav_button"] instance=ExtResource( 6 )]
-margin_top = 358.0
-margin_right = 984.0
-margin_bottom = 372.0
-toggle_mode = true
-group = ExtResource( 7 )
-text = "About"
-nav_action = "about"
-
-[node name="Help" parent="NavList" groups=["nav_button"] instance=ExtResource( 6 )]
-margin_top = 384.0
-margin_right = 984.0
-margin_bottom = 398.0
-toggle_mode = true
-group = ExtResource( 7 )
-text = "Help"
-nav_action = "help"
-
-[node name="Quit" parent="NavList" groups=["nav_button"] instance=ExtResource( 6 )]
-margin_top = 410.0
-margin_right = 984.0
-margin_bottom = 424.0
-text = "Quit"
-nav_action = "quit"
-
-[node name="ReturnButton" parent="." groups=["nav_button"] instance=ExtResource( 6 )]
-anchor_top = 0.85
-anchor_bottom = 0.85
-margin_left = 40.0
-margin_right = 133.0
-margin_bottom = 35.0
-text = "Return"
-nav_action = "return"
-
-[connection signal="show_menu" from="." to="SubMenu" method="_on_show_menu"]
-[connection signal="show_menu" from="." to="MainMenu" method="_on_show_menu"]
-[connection signal="pressed" from="NavList/Continue" to="." method="_on_Continue_pressed"]
diff --git a/addons/vnkit/Screens/MenuBar/NavMenuButton.gd b/addons/vnkit/Screens/MenuBar/NavMenuButton.gd
deleted file mode 100644
index 1d1b1547..00000000
--- a/addons/vnkit/Screens/MenuBar/NavMenuButton.gd
+++ /dev/null
@@ -1,8 +0,0 @@
-extends Button
-
-export var nav_action:String = ""
-
-signal nav_button_pressed(nav_action)
-
-func _on_pressed():
- emit_signal("nav_button_pressed", nav_action)
diff --git a/addons/vnkit/Screens/MenuBar/NavMenuButton.tscn b/addons/vnkit/Screens/MenuBar/NavMenuButton.tscn
deleted file mode 100644
index 3af9d58f..00000000
--- a/addons/vnkit/Screens/MenuBar/NavMenuButton.tscn
+++ /dev/null
@@ -1,14 +0,0 @@
-[gd_scene load_steps=3 format=2]
-
-[ext_resource path="res://addons/vnkit/Screens/MenuBar/NavMenuButton.gd" type="Script" id=2]
-
-[node name="NavButton" type="Button"]
-action_mode = 0
-text = "Nav"
-flat = true
-align = 0
-script = ExtResource( 2 )
-__meta__ = {
-"_edit_use_anchors_": false
-}
-[connection signal="pressed" from="." to="." method="_on_pressed"]
diff --git a/addons/vnkit/Screens/MenuBar/SubMenu.gd b/addons/vnkit/Screens/MenuBar/SubMenu.gd
deleted file mode 100644
index 01dafd9d..00000000
--- a/addons/vnkit/Screens/MenuBar/SubMenu.gd
+++ /dev/null
@@ -1,31 +0,0 @@
-extends Control
-
-var menu_names:Dictionary = {
- "history":"History",
- "save":"Save",
- "load":"Load",
- "preferences":"Preferences",
- "about":"About",
- "help":"Help"
-}
-
-func _on_show_menu(menu, game_started):
- if not menu in menu_names:
- visible = false
- return
-
- visible = true
- $"../ReturnButton".visible = true
-
- for nb in get_tree().get_nodes_in_group("nav_button"):
- if nb.text == menu_names[menu]:
- nb.pressed = true
-
- if "nav_button_main_menu" in nb.get_groups():
- nb.visible = not game_started
-
- if "nav_button_game" in nb.get_groups():
- nb.visible = game_started
-
-
- $CurrentSubMenu.text = menu_names[menu]
diff --git a/addons/vnkit/Screens/MenuBar/menu_buttons.tres b/addons/vnkit/Screens/MenuBar/menu_buttons.tres
deleted file mode 100644
index 0e55d740..00000000
--- a/addons/vnkit/Screens/MenuBar/menu_buttons.tres
+++ /dev/null
@@ -1,3 +0,0 @@
-[gd_resource type="ButtonGroup" format=2]
-
-[resource]
diff --git a/addons/vnkit/Screens/PreferencesScreen/AutoSpeedSlider.gd b/addons/vnkit/Screens/PreferencesScreen/AutoSpeedSlider.gd
deleted file mode 100644
index 2ad907bc..00000000
--- a/addons/vnkit/Screens/PreferencesScreen/AutoSpeedSlider.gd
+++ /dev/null
@@ -1,8 +0,0 @@
-extends Slider
-
-func _on_value_changed(value):
- ProjectSettings.set_setting(Kit.auto_mode_delay, abs(value))
-
-func _on_visibility_changed():
- if visible:
- value = -ProjectSettings.get_setting(Kit.auto_mode_delay)
diff --git a/addons/vnkit/Screens/PreferencesScreen/FullscreenCheck.gd b/addons/vnkit/Screens/PreferencesScreen/FullscreenCheck.gd
deleted file mode 100644
index 612fb3b5..00000000
--- a/addons/vnkit/Screens/PreferencesScreen/FullscreenCheck.gd
+++ /dev/null
@@ -1,17 +0,0 @@
-extends CheckButton
-
-
-func _ready():
- get_tree().get_root().connect("size_changed", self, "_on_window_resized")
-
-
-func _on_toggled(value):
- OS.window_fullscreen = value
-
-
-func _on_visibility_changed():
- pressed = OS.window_fullscreen
-
-
-func _on_window_resized():
- pressed = OS.window_fullscreen
diff --git a/addons/vnkit/Screens/PreferencesScreen/PreferencesScreen.tscn b/addons/vnkit/Screens/PreferencesScreen/PreferencesScreen.tscn
deleted file mode 100644
index c9ac8baa..00000000
--- a/addons/vnkit/Screens/PreferencesScreen/PreferencesScreen.tscn
+++ /dev/null
@@ -1,168 +0,0 @@
-[gd_scene load_steps=7 format=2]
-
-[ext_resource path="res://addons/vnkit/themes/flat_drak_theme.tres" type="Theme" id=1]
-[ext_resource path="res://addons/vnkit/Screens/PreferencesScreen/WindowCheck.gd" type="Script" id=2]
-[ext_resource path="res://addons/vnkit/Screens/PreferencesScreen/FullscreenCheck.gd" type="Script" id=3]
-[ext_resource path="res://addons/vnkit/Screens/PreferencesScreen/TextSpeedSlider.gd" type="Script" id=6]
-[ext_resource path="res://addons/vnkit/Screens/PreferencesScreen/AutoSpeedSlider.gd" type="Script" id=7]
-
-[sub_resource type="ButtonGroup" id=1]
-
-[node name="PreferencesScreen" type="Panel"]
-anchor_right = 1.0
-anchor_bottom = 1.0
-theme = ExtResource( 1 )
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="Rows" type="VBoxContainer" parent="."]
-anchor_left = 0.1
-anchor_top = 0.2
-anchor_right = 0.9
-anchor_bottom = 0.8
-custom_constants/separation = 40
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="OptionScreen" type="HBoxContainer" parent="Rows"]
-margin_right = 1024.0
-margin_bottom = 93.0
-custom_constants/separation = 100
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="Display" type="VBoxContainer" parent="Rows/OptionScreen"]
-margin_right = 138.0
-margin_bottom = 93.0
-theme = ExtResource( 1 )
-
-[node name="Title" type="Label" parent="Rows/OptionScreen/Display"]
-margin_right = 138.0
-margin_bottom = 27.0
-grow_horizontal = 0
-size_flags_vertical = 1
-theme = ExtResource( 1 )
-text = "Display"
-valign = 1
-
-[node name="WindowCheck" type="CheckButton" parent="Rows/OptionScreen/Display"]
-margin_top = 31.0
-margin_right = 138.0
-margin_bottom = 60.0
-theme = ExtResource( 1 )
-group = SubResource( 1 )
-text = "Window"
-script = ExtResource( 2 )
-
-[node name="FullscreenCheck" type="CheckButton" parent="Rows/OptionScreen/Display"]
-margin_top = 64.0
-margin_right = 138.0
-margin_bottom = 93.0
-theme = ExtResource( 1 )
-text = "Fullscreen"
-script = ExtResource( 3 )
-
-[node name="Skip" type="VBoxContainer" parent="Rows/OptionScreen"]
-margin_left = 238.0
-margin_right = 413.0
-margin_bottom = 93.0
-
-[node name="Title" type="Label" parent="Rows/OptionScreen/Skip"]
-margin_right = 175.0
-margin_bottom = 27.0
-grow_horizontal = 0
-size_flags_horizontal = 3
-size_flags_vertical = 1
-theme = ExtResource( 1 )
-text = "Skip"
-valign = 1
-
-[node name="UnseenTextCheck" type="CheckButton" parent="Rows/OptionScreen/Skip"]
-margin_top = 31.0
-margin_right = 175.0
-margin_bottom = 60.0
-theme = ExtResource( 1 )
-text = "Unseen Text"
-
-[node name="AfterChoicesCheck" type="CheckButton" parent="Rows/OptionScreen/Skip"]
-margin_top = 64.0
-margin_right = 175.0
-margin_bottom = 93.0
-grow_horizontal = 0
-theme = ExtResource( 1 )
-text = "After Choices"
-
-[node name="HBoxContainer" type="HBoxContainer" parent="Rows"]
-margin_top = 133.0
-margin_right = 1024.0
-margin_bottom = 255.0
-
-[node name="VBoxContainer" type="VBoxContainer" parent="Rows/HBoxContainer"]
-margin_right = 300.0
-margin_bottom = 122.0
-custom_constants/separation = 20
-
-[node name="TextSpeedBox" type="VBoxContainer" parent="Rows/HBoxContainer/VBoxContainer"]
-margin_right = 300.0
-margin_bottom = 51.0
-
-[node name="Label" type="Label" parent="Rows/HBoxContainer/VBoxContainer/TextSpeedBox"]
-margin_right = 300.0
-margin_bottom = 27.0
-size_flags_vertical = 1
-theme = ExtResource( 1 )
-text = "Text Speed"
-valign = 1
-
-[node name="TextSpeedSlider" type="HSlider" parent="Rows/HBoxContainer/VBoxContainer/TextSpeedBox"]
-margin_top = 31.0
-margin_right = 300.0
-margin_bottom = 51.0
-grow_horizontal = 0
-rect_min_size = Vector2( 300, 0 )
-size_flags_vertical = 1
-theme = ExtResource( 1 )
-min_value = -1.0
-max_value = -0.005
-step = 0.005
-value = -0.05
-ticks_on_borders = true
-script = ExtResource( 6 )
-
-[node name="AutoBox" type="VBoxContainer" parent="Rows/HBoxContainer/VBoxContainer"]
-margin_top = 71.0
-margin_right = 300.0
-margin_bottom = 122.0
-
-[node name="Label" type="Label" parent="Rows/HBoxContainer/VBoxContainer/AutoBox"]
-margin_right = 300.0
-margin_bottom = 27.0
-size_flags_vertical = 1
-theme = ExtResource( 1 )
-text = "Auto Forward Speed"
-valign = 1
-
-[node name="AutoSpeedSlider" type="HSlider" parent="Rows/HBoxContainer/VBoxContainer/AutoBox"]
-margin_top = 31.0
-margin_right = 300.0
-margin_bottom = 51.0
-grow_horizontal = 0
-rect_min_size = Vector2( 300, 0 )
-size_flags_vertical = 1
-theme = ExtResource( 1 )
-min_value = -10.0
-max_value = -0.1
-step = 0.1
-value = -3.0
-script = ExtResource( 7 )
-[connection signal="toggled" from="Rows/OptionScreen/Display/WindowCheck" to="Rows/OptionScreen/Display/WindowCheck" method="_on_toggled"]
-[connection signal="visibility_changed" from="Rows/OptionScreen/Display/WindowCheck" to="Rows/OptionScreen/Display/WindowCheck" method="_on_visibility_changed"]
-[connection signal="toggled" from="Rows/OptionScreen/Display/FullscreenCheck" to="Rows/OptionScreen/Display/FullscreenCheck" method="_on_toggled"]
-[connection signal="visibility_changed" from="Rows/OptionScreen/Display/FullscreenCheck" to="Rows/OptionScreen/Display/FullscreenCheck" method="_on_visibility_changed"]
-[connection signal="value_changed" from="Rows/HBoxContainer/VBoxContainer/TextSpeedBox/TextSpeedSlider" to="Rows/HBoxContainer/VBoxContainer/TextSpeedBox/TextSpeedSlider" method="_on_value_changed"]
-[connection signal="visibility_changed" from="Rows/HBoxContainer/VBoxContainer/TextSpeedBox/TextSpeedSlider" to="Rows/HBoxContainer/VBoxContainer/TextSpeedBox/TextSpeedSlider" method="_on_visibility_changed"]
-[connection signal="value_changed" from="Rows/HBoxContainer/VBoxContainer/AutoBox/AutoSpeedSlider" to="Rows/HBoxContainer/VBoxContainer/AutoBox/AutoSpeedSlider" method="_on_value_changed"]
-[connection signal="visibility_changed" from="Rows/HBoxContainer/VBoxContainer/AutoBox/AutoSpeedSlider" to="Rows/HBoxContainer/VBoxContainer/AutoBox/AutoSpeedSlider" method="_on_visibility_changed"]
diff --git a/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/SoundBusControl.gd b/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/SoundBusControl.gd
deleted file mode 100644
index 93bb8b73..00000000
--- a/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/SoundBusControl.gd
+++ /dev/null
@@ -1,67 +0,0 @@
-extends VBoxContainer
-
-export var default_volume := -30
-export(String) var label := "Volume"
-export(String) var bus_name := "Master"
-var bus_id := 0
-var volume := 0.0
-var mute := false
-
-
-func _ready() -> void:
- bus_id = AudioServer.get_bus_index(bus_name)
- $VBox/Label.text = label
-
- mute = false
-
- if bus_name in Kit.audio_buses:
- mute = bool(Kit.audio_buses[bus_name].mute)
-
- AudioServer.set_bus_mute(bus_id, mute)
- $VBox/CheckButton.pressed = !mute
- $VBox/CheckButton.connect("toggled", self, "set_bus_on" )
-
- volume = default_volume
-
- if bus_name in Kit.audio_buses:
- volume = float(Kit.audio_buses[bus_name].volume)
-
- AudioServer.set_bus_volume_db(bus_id, volume)
- $Bar.value = volume
-
- $Bar.connect("value_changed", self, "set_bus_volume")
- connect("visibility_changed", self, "_on_visibility_changed")
-
-
-func _on_visibility_changed() -> void:
- if not visible:
- return
-
- volume = AudioServer.get_bus_volume_db(bus_id)
- $Bar.value = volume
- mute = AudioServer.is_bus_mute(bus_id)
- $VBox/CheckButton.pressed = !mute
- Kit.audio_buses[bus_name] = {"mute":mute, "volume":volume}
-# prints("bus:", bus_name, bus_id,
-# AudioServer.get_bus_name(bus_id),
-# AudioServer.get_bus_index(bus_name),
-# "volume:", volume, "mute:", mute)
-
-
-func set_bus_volume(value: int):
- AudioServer.set_bus_volume_db(bus_id, value)
- volume = value
- Kit.audio_buses[bus_name] = {"mute":mute, "volume":volume}
-# prints("bus:", bus_name, bus_id,
-# AudioServer.get_bus_name(bus_id),
-# AudioServer.get_bus_index(bus_name),
-# "volume:", volume)
-
-
-func set_bus_on(value: bool) -> void:
- AudioServer.set_bus_mute(bus_id, !value)
- mute = value
-# prints("bus:", bus_name, bus_id,
-# AudioServer.get_bus_name(bus_id),
-# AudioServer.get_bus_index(bus_name),
-# "mute:", mute)
diff --git a/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/SoundBusControl.tscn b/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/SoundBusControl.tscn
deleted file mode 100644
index 1787dc6d..00000000
--- a/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/SoundBusControl.tscn
+++ /dev/null
@@ -1,120 +0,0 @@
-[gd_scene load_steps=2 format=2]
-
-[sub_resource type="GDScript" id=1]
-script/source = "extends VBoxContainer
-
-export var default_volume := -30
-export(String) var label := \"Volume\"
-export(String) var bus_name := \"Master\"
-var bus_id := 0
-var volume := 0.0
-var mute := false
-
-
-func _ready() -> void:
- bus_id = AudioServer.get_bus_index(bus_name)
- $Control/Label.text = label
-
- mute = false
-
- if bus_name in settings.audio_buses:
- mute = bool(settings.audio_buses[bus_name].mute)
-
- AudioServer.set_bus_mute(bus_id, mute)
- $Control/CheckButton.pressed = mute
-
- volume = default_volume
-
- if bus_name in settings.audio_buses:
- volume = float(settings.audio_buses[bus_name].volume)
-
- AudioServer.set_bus_volume_db(bus_id, volume)
- $Bar.value = volume
-
-
-func _on_visibility_changed() -> void:
- if not visible:
- return
-
- volume = AudioServer.get_bus_volume_db(bus_id)
- $Bar.value = volume
- mute = AudioServer.is_bus_mute(bus_id)
- $Control/CheckButton.pressed = mute
- settings.audio_buses[bus_name] = {\"mute\":mute, \"volume\":volume}
-# prints(\"bus:\", bus_name, bus_id,
-# AudioServer.get_bus_name(bus_id),
-# AudioServer.get_bus_index(bus_name),
-# \"volume:\", volume, \"mute:\", mute)
-
-
-func set_bus_volume(value: int):
- AudioServer.set_bus_volume_db(bus_id, value)
- volume = value
- settings.audio_buses[bus_name] = {\"mute\":mute, \"volume\":volume}
-# prints(\"bus:\", bus_name, bus_id,
-# AudioServer.get_bus_name(bus_id),
-# AudioServer.get_bus_index(bus_name),
-# \"volume:\", volume)
-
-
-func set_bus_on(value: bool) -> void:
- AudioServer.set_bus_mute(bus_id, !value)
- mute = value
-# prints(\"bus:\", bus_name, bus_id,
-# AudioServer.get_bus_name(bus_id),
-# AudioServer.get_bus_index(bus_name),
-# \"mute:\", mute)
-"
-
-[node name="SoundBusControl" type="VBoxContainer"]
-anchor_right = 1.0
-anchor_bottom = 1.0
-rect_min_size = Vector2( 300, 0 )
-script = SubResource( 1 )
-__meta__ = {
-"_edit_use_anchors_": false
-}
-default_volume = -20
-
-[node name="Control" type="Control" parent="."]
-margin_right = 1280.0
-margin_bottom = 40.0
-rect_min_size = Vector2( 0, 40 )
-
-[node name="Label" type="Label" parent="Control"]
-anchor_right = 1.0
-anchor_bottom = 1.0
-size_flags_horizontal = 3
-size_flags_vertical = 3
-text = "Volume"
-valign = 1
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="CheckButton" type="CheckButton" parent="Control"]
-anchor_left = 1.0
-anchor_right = 1.0
-anchor_bottom = 1.0
-grow_horizontal = 0
-rect_min_size = Vector2( 150, 0 )
-pressed = true
-text = "Mute"
-flat = true
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="Bar" type="HSlider" parent="."]
-margin_top = 44.0
-margin_right = 1280.0
-margin_bottom = 720.0
-size_flags_horizontal = 3
-size_flags_vertical = 3
-min_value = -50.0
-max_value = 12.0
-step = 0.1
-rounded = true
-[connection signal="visibility_changed" from="." to="." method="_on_visibility_changed"]
-[connection signal="toggled" from="Control/CheckButton" to="." method="set_bus_on"]
-[connection signal="value_changed" from="Bar" to="." method="set_bus_volume"]
diff --git a/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/icons/sound-off.png b/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/icons/sound-off.png
deleted file mode 100644
index 63e817ee..00000000
Binary files a/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/icons/sound-off.png and /dev/null differ
diff --git a/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/icons/sound-off.png.import b/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/icons/sound-off.png.import
deleted file mode 100644
index ca48d864..00000000
--- a/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/icons/sound-off.png.import
+++ /dev/null
@@ -1,35 +0,0 @@
-[remap]
-
-importer="texture"
-type="StreamTexture"
-path="res://.import/sound-off.png-adc514f7b00be52d0d3d9f8b3378a631.stex"
-metadata={
-"vram_texture": false
-}
-
-[deps]
-
-source_file="res://addons/vnkit/Screens/PreferencesScreen/SoundBusControl/icons/sound-off.png"
-dest_files=[ "res://.import/sound-off.png-adc514f7b00be52d0d3d9f8b3378a631.stex" ]
-
-[params]
-
-compress/mode=0
-compress/lossy_quality=0.7
-compress/hdr_mode=0
-compress/bptc_ldr=0
-compress/normal_map=0
-flags/repeat=0
-flags/filter=true
-flags/mipmaps=true
-flags/anisotropic=false
-flags/srgb=2
-process/fix_alpha_border=true
-process/premult_alpha=false
-process/HDR_as_SRGB=false
-process/invert_color=false
-process/normal_map_invert_y=false
-stream=false
-size_limit=0
-detect_3d=true
-svg/scale=1.0
diff --git a/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/icons/sound-off.svg b/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/icons/sound-off.svg
deleted file mode 100644
index 8984f090..00000000
--- a/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/icons/sound-off.svg
+++ /dev/null
@@ -1,66 +0,0 @@
-
-
diff --git a/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/icons/sound-off.svg.import b/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/icons/sound-off.svg.import
deleted file mode 100644
index d9151c3a..00000000
--- a/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/icons/sound-off.svg.import
+++ /dev/null
@@ -1,35 +0,0 @@
-[remap]
-
-importer="texture"
-type="StreamTexture"
-path="res://.import/sound-off.svg-f43fd8c7714c6206e752972afc24bccd.stex"
-metadata={
-"vram_texture": false
-}
-
-[deps]
-
-source_file="res://addons/vnkit/Screens/PreferencesScreen/SoundBusControl/icons/sound-off.svg"
-dest_files=[ "res://.import/sound-off.svg-f43fd8c7714c6206e752972afc24bccd.stex" ]
-
-[params]
-
-compress/mode=0
-compress/lossy_quality=0.7
-compress/hdr_mode=0
-compress/bptc_ldr=0
-compress/normal_map=0
-flags/repeat=0
-flags/filter=true
-flags/mipmaps=true
-flags/anisotropic=false
-flags/srgb=2
-process/fix_alpha_border=true
-process/premult_alpha=false
-process/HDR_as_SRGB=false
-process/invert_color=false
-process/normal_map_invert_y=false
-stream=false
-size_limit=0
-detect_3d=true
-svg/scale=1.0
diff --git a/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/icons/sound-on.png b/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/icons/sound-on.png
deleted file mode 100644
index 68c7989d..00000000
Binary files a/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/icons/sound-on.png and /dev/null differ
diff --git a/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/icons/sound-on.png.import b/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/icons/sound-on.png.import
deleted file mode 100644
index d4a51a15..00000000
--- a/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/icons/sound-on.png.import
+++ /dev/null
@@ -1,35 +0,0 @@
-[remap]
-
-importer="texture"
-type="StreamTexture"
-path="res://.import/sound-on.png-6fb9a1fc5990a03f024af58d97affeae.stex"
-metadata={
-"vram_texture": false
-}
-
-[deps]
-
-source_file="res://addons/vnkit/Screens/PreferencesScreen/SoundBusControl/icons/sound-on.png"
-dest_files=[ "res://.import/sound-on.png-6fb9a1fc5990a03f024af58d97affeae.stex" ]
-
-[params]
-
-compress/mode=0
-compress/lossy_quality=0.7
-compress/hdr_mode=0
-compress/bptc_ldr=0
-compress/normal_map=0
-flags/repeat=0
-flags/filter=true
-flags/mipmaps=true
-flags/anisotropic=false
-flags/srgb=2
-process/fix_alpha_border=true
-process/premult_alpha=false
-process/HDR_as_SRGB=false
-process/invert_color=false
-process/normal_map_invert_y=false
-stream=false
-size_limit=0
-detect_3d=true
-svg/scale=1.0
diff --git a/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/icons/sound-on.svg b/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/icons/sound-on.svg
deleted file mode 100644
index b5e14803..00000000
--- a/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/icons/sound-on.svg
+++ /dev/null
@@ -1,65 +0,0 @@
-
-
diff --git a/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/icons/sound-on.svg.import b/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/icons/sound-on.svg.import
deleted file mode 100644
index 4967504c..00000000
--- a/addons/vnkit/Screens/PreferencesScreen/SoundBusControl/icons/sound-on.svg.import
+++ /dev/null
@@ -1,35 +0,0 @@
-[remap]
-
-importer="texture"
-type="StreamTexture"
-path="res://.import/sound-on.svg-c3b1cdb3a1cad146b2b60c20601a0fcd.stex"
-metadata={
-"vram_texture": false
-}
-
-[deps]
-
-source_file="res://addons/vnkit/Screens/PreferencesScreen/SoundBusControl/icons/sound-on.svg"
-dest_files=[ "res://.import/sound-on.svg-c3b1cdb3a1cad146b2b60c20601a0fcd.stex" ]
-
-[params]
-
-compress/mode=0
-compress/lossy_quality=0.7
-compress/hdr_mode=0
-compress/bptc_ldr=0
-compress/normal_map=0
-flags/repeat=0
-flags/filter=true
-flags/mipmaps=true
-flags/anisotropic=false
-flags/srgb=2
-process/fix_alpha_border=true
-process/premult_alpha=false
-process/HDR_as_SRGB=false
-process/invert_color=false
-process/normal_map_invert_y=false
-stream=false
-size_limit=0
-detect_3d=true
-svg/scale=1.0
diff --git a/addons/vnkit/Screens/PreferencesScreen/TextSpeedSlider.gd b/addons/vnkit/Screens/PreferencesScreen/TextSpeedSlider.gd
deleted file mode 100644
index b8b25d91..00000000
--- a/addons/vnkit/Screens/PreferencesScreen/TextSpeedSlider.gd
+++ /dev/null
@@ -1,8 +0,0 @@
-extends Slider
-
-func _on_value_changed(value):
- ProjectSettings.set_setting(Kit.typing_effect_delay, abs(value))
-
-func _on_visibility_changed():
- if visible and ProjectSettings.has_setting(Kit.typing_effect_delay):
- value = -ProjectSettings.get_setting(Kit.typing_effect_delay)
diff --git a/addons/vnkit/Screens/PreferencesScreen/WindowCheck.gd b/addons/vnkit/Screens/PreferencesScreen/WindowCheck.gd
deleted file mode 100644
index 9830df23..00000000
--- a/addons/vnkit/Screens/PreferencesScreen/WindowCheck.gd
+++ /dev/null
@@ -1,26 +0,0 @@
-extends CheckButton
-
-func _ready():
- get_tree().get_root().connect("size_changed", self, "_on_window_resized")
-
-
-func _on_toggled(value):
- if value:
- OS.window_fullscreen = false
- OS.window_size.x = ProjectSettings.get_setting(Kit.width)
- OS.window_size.y = ProjectSettings.get_setting(Kit.height)
-
-
-func _on_visibility_changed():
- if is_window_default_size():
- pressed = true
-
-func _on_window_resized():
- pressed = is_window_default_size()
-
-func is_window_default_size():
- if !OS.window_fullscreen:
- if OS.window_size.x == ProjectSettings.get_setting(Kit.width):
- if OS.window_size.y == ProjectSettings.get_setting(Kit.height):
- return true
- return false
diff --git a/addons/vnkit/Screens/SavesScreen/ConfirmationDialog.gd b/addons/vnkit/Screens/SavesScreen/ConfirmationDialog.gd
deleted file mode 100644
index d9f868a5..00000000
--- a/addons/vnkit/Screens/SavesScreen/ConfirmationDialog.gd
+++ /dev/null
@@ -1,52 +0,0 @@
-extends AcceptDialog
-
-signal return_output(confirm_action)
-
-var output = false
-onready var negative_button:Button = self.add_cancel("No")
-
-func _ready():
- self.register_text_enter($LineEdit)
-
-func delete_confirm():
- output = false
- $LineEdit.visible = false
- self.dialog_text = "Are you sure you want to delete this save?"
- self.get_ok().text = "Yes"
- negative_button.text = "No"
- self.popup_centered()
-
-func overwrite_confirm(keep_both:bool = false):
- output = false
- $LineEdit.visible = false
- self.dialog_text = "Are you sure you want to overwrite your save?"
- if keep_both:
- self.get_ok().text = "Overwrite"
- negative_button.text = "Keep Both"
- else:
- self.get_ok().text = "Yes"
- negative_button.text = "No"
- self.popup_centered()
-
-func name_save_confirm(placeholder = null):
- output = false
- $LineEdit.visible = true
- if placeholder:
- $LineEdit.placeholder_text = placeholder
- self.dialog_text = "What do you want to name your save?\n"#This is a trick to make the Dialog bigger and place the LineEdit over the buttons
- self.get_ok().text = "Save"
- negative_button.text = "Cancel"
- self.popup_centered()
- self.dialog_text = "What do you want to name your save?"#This is a trick to make the Dialog bigger and place the LineEdit over the buttons
- $LineEdit.grab_focus()
-
-
-func _on_confirmed():
- if $LineEdit.visible:
- output = $LineEdit.text
- else:
- output = true
- hide()
-
-func _on_popup_hide():
- emit_signal("return_output", output)
diff --git a/addons/vnkit/Screens/SavesScreen/DateLabel.gd b/addons/vnkit/Screens/SavesScreen/DateLabel.gd
deleted file mode 100644
index 16cf33a9..00000000
--- a/addons/vnkit/Screens/SavesScreen/DateLabel.gd
+++ /dev/null
@@ -1,35 +0,0 @@
-extends Label
-
-const day_of_week = ["",
-"Monday",
-"Tuesday",
-"Wednesday",
-"Thursday",
-"Friday",
-"Saturday",
-"Sunday"]
-
-const months = ["",
-"January",
-"February",
-"March",
-"April",
-"May",
-"June",
-"July",
-"August",
-"September",
-"October",
-"November",
-"December"]
-
-func _on_set_datetime(datetime):
- if datetime == 0:
- text = ''
- return
- datetime = OS.get_datetime_from_unix_time(datetime)
- datetime.month = months[datetime.month]
- datetime.weekday = day_of_week[datetime.weekday]
- datetime.hour = "%02d" % datetime.hour
- datetime.minute = "%02d" % datetime.minute
- text = "{weekday}, {month} {day} {year}, {hour}:{minute}".format(datetime)
diff --git a/addons/vnkit/Screens/SavesScreen/DeleteButton.gd b/addons/vnkit/Screens/SavesScreen/DeleteButton.gd
deleted file mode 100644
index 1ebfb36e..00000000
--- a/addons/vnkit/Screens/SavesScreen/DeleteButton.gd
+++ /dev/null
@@ -1,5 +0,0 @@
-tool
-extends MaterialButton
-
-func _on_set_delete_button(visibility):
- visible = visibility
diff --git a/addons/vnkit/Screens/SavesScreen/DummySlot.tscn b/addons/vnkit/Screens/SavesScreen/DummySlot.tscn
deleted file mode 100644
index 265c5bf7..00000000
--- a/addons/vnkit/Screens/SavesScreen/DummySlot.tscn
+++ /dev/null
@@ -1,25 +0,0 @@
-[gd_scene load_steps=3 format=2]
-
-[ext_resource path="res://addons/material-design-icons/nodes/MaterialButton.gd" type="Script" id=1]
-[ext_resource path="res://addons/material-design-icons/fonts/128.tres" type="DynamicFont" id=2]
-
-[node name="DummySlot" type="Control"]
-anchor_right = 1.0
-anchor_bottom = 1.0
-rect_pivot_offset = Vector2( -434, -34 )
-size_flags_horizontal = 3
-size_flags_vertical = 3
-
-[node name="ColorRect" type="ColorRect" parent="."]
-anchor_right = 1.0
-anchor_bottom = 1.0
-color = Color( 0.168627, 0.709804, 0.737255, 1 )
-
-[node name="Save" type="Button" parent="."]
-anchor_right = 1.0
-anchor_bottom = 1.0
-custom_fonts/font = ExtResource( 2 )
-text = ""
-script = ExtResource( 1 )
-icon_name = "content-save-edit"
-icon_size = "128"
diff --git a/addons/vnkit/Screens/SavesScreen/GridContainer.gd b/addons/vnkit/Screens/SavesScreen/GridContainer.gd
deleted file mode 100644
index 3c2301a7..00000000
--- a/addons/vnkit/Screens/SavesScreen/GridContainer.gd
+++ /dev/null
@@ -1,18 +0,0 @@
-extends GridContainer
-
-var child_min_y_size = -1
-
-func set_child_min_size(child):
- if child_min_y_size == -1:
- var v_offset = self.get("custom_constants/vseparation")
- child_min_y_size = (get_parent().rect_size.y - v_offset) / 2
- child.rect_min_size.y = child_min_y_size
-
-func _on_add_save_slot(save_slot):
- add_child(save_slot)
- set_child_min_size(save_slot)
-
-func _on_clear_save_slots():
- for c in get_children():
- remove_child(c)
- c.queue_free()
diff --git a/addons/vnkit/Screens/SavesScreen/PageLabel.gd b/addons/vnkit/Screens/SavesScreen/PageLabel.gd
deleted file mode 100644
index 24b4841a..00000000
--- a/addons/vnkit/Screens/SavesScreen/PageLabel.gd
+++ /dev/null
@@ -1,24 +0,0 @@
-extends LineEdit
-
-var current_page = 0
-
-func _on_page_changed():
- current_page = ProjectSettings.get_setting(Kit.saves_ui_page)
- var saves_page_names = ProjectSettings.get_setting(Kit.saves_ui_pages)
- if current_page in saves_page_names:
- text = saves_page_names[current_page]
- else:
- match current_page:
- -1:
- self.editable = false
- text = "Quick saves"
- -2:
- self.editable = false
- text = "Automatic saves"
- _:
- text = "Page " + str(current_page)
-
-
-func _on_text_changed(new_text):
- var saves_page_names = ProjectSettings.get_setting(Kit.saves_ui_pages)
- saves_page_names[current_page] = new_text
diff --git a/addons/vnkit/Screens/SavesScreen/PageNavBar.gd b/addons/vnkit/Screens/SavesScreen/PageNavBar.gd
deleted file mode 100644
index 4586b441..00000000
--- a/addons/vnkit/Screens/SavesScreen/PageNavBar.gd
+++ /dev/null
@@ -1,39 +0,0 @@
-extends HBoxContainer
-
-
-signal change_page(page, incremental_change)
-
-
-# Called when the node enters the scene tree for the first time.
-func _ready():
- for b in get_children():
- b.connect("page_button_pressed", self, "_on_page_button_pressed")
-
-func _on_page_button_pressed(action):
- match action:
- "<":
- emit_signal("change_page", 0, -1)
- ">":
- emit_signal("change_page", 0, 1)
- "Q":
- emit_signal("change_page", 'Q', 0)
- _:
- emit_signal("change_page", int(action), 0)
-
-
-func _on_page_changed():
- var page = ProjectSettings.get_setting(Kit.saves_ui_page)
- for b in get_children():
- if b.text == str(page):
- b.pressed = true
- continue
-
- if [b.text, page] == ["Q", -1]:
- b.pressed = true
- continue
-
- if [b.text, page] == ["A", -2]:
- b.pressed = true
- continue
-
- b.pressed = false
diff --git a/addons/vnkit/Screens/SavesScreen/SaveNameLabel.gd b/addons/vnkit/Screens/SavesScreen/SaveNameLabel.gd
deleted file mode 100644
index 27c5ca89..00000000
--- a/addons/vnkit/Screens/SavesScreen/SaveNameLabel.gd
+++ /dev/null
@@ -1,13 +0,0 @@
-extends Label
-
-export var hide_default_name:bool = true
-export var display_placeholder:bool = false
-
-func _on_set_save_name(save_name):
- if hide_default_name and save_name == "save":
- save_name = ""
- if display_placeholder and not save_name:
- save_name = "Unnamed"
- if save_name == "empty":
- save_name = "New Save"
- text = save_name
diff --git a/addons/vnkit/Screens/SavesScreen/SavesScreen.gd b/addons/vnkit/Screens/SavesScreen/SavesScreen.gd
deleted file mode 100644
index 4d370e07..00000000
--- a/addons/vnkit/Screens/SavesScreen/SavesScreen.gd
+++ /dev/null
@@ -1,323 +0,0 @@
-extends Panel
-
-export var slot: PackedScene
-# export var dummy_slot: PackedScene
-
-export var popup_path:NodePath = 'ConfirmationPopup'
-onready var popup := get_node(popup_path)
-
-var screenshot := Image.new()
-var dir := Directory.new()
-var file = File.new()
-
-export var default_save_name := "save"
-var file_ext := "res"
-
-var save_mode = true setget set_mode
-var save_list:Array = []
-var save_pages:Dictionary = {}
-
-var use_pages:bool = false
-
-signal load_file
-signal mode_changed(save_mode)
-signal clear_save_slots()
-signal add_save_slot(save_slot)
-signal page_changed()
-
-func _ready() -> void:
- use_pages = ProjectSettings.get_setting(Kit.saves_ui_layout) == "pages"
-
- for e in get_tree().get_nodes_in_group("save_screen_page_ui_element"):
- e.visible = use_pages
-
- for e in get_tree().get_nodes_in_group("save_screen_scroll_ui_element"):
- e.scroll_vertical_enabled = not use_pages
-
- if use_pages:
- ProjectSettings.set_setting(Kit.saves_ui_page, 1)
- return
-
-func set_mode(mode):
- save_mode = mode
- emit_signal("mode_changed", mode)
- _on_visibility_changed()
-
-func update_save_pages():
- save_pages = {}
- var page_re = RegEx.new()
- page_re.compile("^([0-9]+)_([0-9]+)_(.+)")
-
- for save in save_list:
- var result = page_re.search(save)
- if result:
- var x = int(result.group(1))
- var y = int(result.group(2))
- save_pages[Vector2(x, y)] = result.get_string(3)
- prints("found save page:", x, y, result.get_string(3))
- pass
-
-func update_save_list(ignores = [""]):
- var contents = []
- if dir.open(Rakugo.store_manager.save_folder_path) == OK:
- dir.list_dir_begin()
- var file_name = dir.get_next()
-
- while file_name != "":
- if !dir.current_is_dir():
- if file_name.ends_with(file_ext):
- var i = false
-
- for ig in ignores:
- if ig in file_name:
- i = true
- break
-
- if not i:
- contents.append(file_name.replace("." + file_ext, ""))
- prints("found save:", file_name)
-
- file_name = dir.get_next()
-
- else:
- print("An error occurred when trying to access the path.")
-
- save_list = contents
- return contents
-
-func update_grid(_save_mode = null):
- if _save_mode != null:
- save_mode = _save_mode
-
- var saves:Array
- if save_mode:
- saves = update_save_list(["history", "auto", "quick", "back"])
- saves.append("empty")
- else:
- saves = update_save_list(["history"])
-
- if use_pages:
- update_save_pages()
- populate_grid_page()
- print("Displaying saves as pages")
- else:
- populate_grid(saves)
- print("Displaying saves as list")
-
-
-func populate_grid(saves):
- emit_signal("clear_save_slots")
-
- for save in saves:
- emit_signal("add_save_slot", new_slot_instance(save, Vector2.ZERO, save in ["empty", "auto"]))
-
-func populate_grid_page():
- emit_signal("clear_save_slots")
-
- var saves = []
- var current_page = ProjectSettings.get_setting(Kit.saves_ui_page)
- for i in range(6):
- var index = Vector2(current_page, i)
-
- if save_pages.has(index):
- saves.append(new_slot_instance(save_pages[index], index, false))
- prints("found save page:", index, save_pages[index])
- continue
-
- if save_mode:
- saves.append(new_slot_instance("empty", index, true))
- prints("creating empty save slot:", index)
- continue
-
- # saves.append(dummy_slot.instance())
-
- for x in saves:
- emit_signal("add_save_slot", x)
- $SavePage/ScrollContainer/GridContainer.add_child(x)
-
-func new_slot_instance(filename: String, page_index:Vector2, hide_dl_btn:bool) -> Node:
- var s = slot.instance()
- s.init(filename, page_index, hide_dl_btn)
- s.connect("select_save", self, "_on_save_select")
-
- if not hide_dl_btn:
- s.connect("delete_save", self, "_on_delete_save")
-
- s.show()
- return s
-
-func _on_delete_save(save_filename):
- popup.delete_confirm()
- if not yield(popup, "return_output"):
- return false
-
- var png_path = Rakugo.store_manager.get_save_path(save_filename, true)+".png"
- if file.file_exists(png_path):
- Rakugo.debug("remove image")
- dir.remove(png_path)
-
- var save_path = Rakugo.store_manager.get_save_path(save_filename)
- if file.file_exists(save_path):
- Rakugo.debug("remove save")
- dir.remove(save_path)
-
- update_grid()
-
-func _on_save_select(save_filename, page_index):
- if save_mode:
- if use_pages:
- save_page_save(save_filename, page_index)
- return
-
- # use_list
- save_save(save_filename)
- return
-
- # load_mode
- if use_pages:
- save_filename = "%d_%d_%s" % [page_index.x, page_index.y, save_filename]
-
- load_save(save_filename)
-
-func save_save(caller: String) -> bool:
- var new_save = false
- if caller == "empty":
- if ProjectSettings.get_setting(Kit.saves_ui_skip_naming):
- caller = get_next_iterative_name(default_save_name)
- else:
- new_save = true
- popup.name_save_confirm()
- var chosen_name = yield(popup, "return_output")
-
- # explicit check needed as "" doesn't count as true
- if not chosen_name is String:
- return false
-
- caller = chosen_name
- if not caller:
- caller = get_next_iterative_name(default_save_name)
-
- if caller in save_list:
- popup.overwrite_confirm(new_save)
- if not yield(popup, "return_output"):
- if !new_save:
- return false
-
- caller = get_next_iterative_name(caller)
-
- Rakugo.debug(caller)
-
- if !screenshot:
- return false
-
- #screenshot.flip_y()
- var png_path = Rakugo.store_manager.get_save_path(caller, true) + '.png'
- screenshot.save_png(png_path)
-
- Rakugo.debug(["caller:", caller])
- Rakugo.save_game(caller)
-
- update_grid()
- return true
-
-func save_page_save(caller: String, page_index:Vector2) -> bool:
- if page_index in save_pages:
- popup.overwrite_confirm()
- if not yield(popup, "return_output"):
- return false
-
- if ProjectSettings.get_setting(Kit.saves_ui_skip_naming):
- caller = default_save_name
- else:
- popup.name_save_confirm()
- var chosen_name = yield(popup, "return_output")
- if not chosen_name is String:#explicit check needed as "" doesn't count as true
- return false
-
- caller = chosen_name
- if !caller:
- caller = default_save_name
-
- caller = "%s_%s_%s" % [str(page_index.x), str(page_index.y), caller]
-
- Rakugo.debug(caller)
-
- if !screenshot:
- return false
-
- #screenshot.flip_y()
- var png_path = Rakugo.store_manager.get_save_path(caller, true) + '.png'
- screenshot.save_png(png_path)
-
- Rakugo.debug(["caller:", caller])
- Rakugo.save_game(caller)
-
- update_grid()
- #get_parent().in_game()
- return true
-
-func get_next_iterative_name(file_name):
- var iteration_re = RegEx.new()
- iteration_re.compile("(.*)([0-9]+)$")
- var result = iteration_re.search(file_name)
-
- var radical = file_name
- var iteration = 0
- if result:
- radical = result.get_string(1)
- iteration = int(result.get_string(2))
- iteration += 1
-
- else:
- radical = radical + "_"
-
- while (radical+str(iteration)) in save_list:
- iteration += 1
-
- return (radical+str(iteration))
-
-func load_save(caller: String) -> void:
- if Rakugo.load_game(caller):
- emit_signal("load_file")
- Window.select_ui_tab(1)
-
-func _on_visibility_changed():
- if !visible:
- return
-
- if use_pages:
- var page = ProjectSettings.get_setting(Kit.saves_ui_page)
- _on_change_page(page, 0)
-
- update_grid()
-
-
-func _on_change_page(page, incremental_change):
- match page:
- -1:
- page = "Q"
- -2:
- page = "A"
-
- match page:
- 0:
- var value = clamp(ProjectSettings.get_setting(Kit.saves_ui_page) + incremental_change, -2, 1000)
- ProjectSettings.set_setting(Kit.saves_ui_page, value)
- "Q":
- ProjectSettings.set_setting(Kit.saves_ui_page, -1)
- "A":
- ProjectSettings.set_setting(Kit.saves_ui_page, -2)
- _:
- ProjectSettings.set_setting(Kit.saves_ui_page, int(page))
-
- emit_signal("page_changed")
-
-func split_paged_savename(savename):
- var page_re = RegEx.new()
- page_re.compile("^([0-9]+)_([0-9]+)_(.+)")
- var result = page_re.search(savename)
-
- if result:
- return result.strings
-
- return []
diff --git a/addons/vnkit/Screens/SavesScreen/SavesScreen.tscn b/addons/vnkit/Screens/SavesScreen/SavesScreen.tscn
deleted file mode 100644
index 1f5b85e7..00000000
--- a/addons/vnkit/Screens/SavesScreen/SavesScreen.tscn
+++ /dev/null
@@ -1,322 +0,0 @@
-[gd_scene load_steps=21 format=2]
-
-[ext_resource path="res://addons/vnkit/Screens/SavesScreen/Slot.tscn" type="PackedScene" id=1]
-[ext_resource path="res://addons/vnkit/Screens/SavesScreen/SkipNamingButton.gd" type="Script" id=2]
-[ext_resource path="res://addons/vnkit/Screens/SavesScreen/GridContainer.gd" type="Script" id=3]
-[ext_resource path="res://addons/vnkit/Screens/SavesScreen/ScrollContainer.gd" type="Script" id=4]
-[ext_resource path="res://addons/vnkit/Screens/SavesScreen/SavesScreen.gd" type="Script" id=5]
-[ext_resource path="res://addons/vnkit/themes/flat_drak_theme.tres" type="Theme" id=6]
-[ext_resource path="res://addons/vnkit/Screens/SavesScreen/page_buttons.tres" type="ButtonGroup" id=7]
-[ext_resource path="res://addons/vnkit/Screens/SavesScreen/ConfirmationDialog.gd" type="Script" id=9]
-[ext_resource path="res://addons/vnkit/Screens/SavesScreen/PageNavBar.gd" type="Script" id=11]
-[ext_resource path="res://addons/vnkit/Screens/SavesScreen/SavesScreenPageButton.gd" type="Script" id=12]
-[ext_resource path="res://addons/vnkit/Screens/SavesScreen/PageLabel.gd" type="Script" id=13]
-[ext_resource path="res://addons/advanced-text/font/DejaVuSans.ttf" type="DynamicFontData" id=14]
-
-[sub_resource type="DynamicFont" id=4]
-size = 28
-font_data = ExtResource( 14 )
-
-[sub_resource type="StyleBoxEmpty" id=1]
-
-[sub_resource type="StyleBoxEmpty" id=2]
-
-[sub_resource type="StyleBoxEmpty" id=3]
-
-[sub_resource type="StyleBoxEmpty" id=5]
-content_margin_left = 40.0
-content_margin_right = 40.0
-content_margin_top = 40.0
-content_margin_bottom = 40.0
-
-[sub_resource type="DynamicFont" id=7]
-size = 32
-font_data = ExtResource( 14 )
-
-[sub_resource type="StyleBoxEmpty" id=6]
-
-[sub_resource type="StyleBoxEmpty" id=8]
-
-[node name="SavesScreen" type="Panel"]
-anchor_right = 1.0
-anchor_bottom = 1.0
-theme = ExtResource( 6 )
-script = ExtResource( 5 )
-slot = ExtResource( 1 )
-
-[node name="PageLabel" type="LineEdit" parent="." groups=["save_screen_page_ui_element"]]
-anchor_right = 1.0
-margin_bottom = 33.0
-grow_horizontal = 2
-size_flags_horizontal = 3
-custom_colors/font_color = Color( 0.6, 0.8, 1, 1 )
-custom_fonts/font = SubResource( 4 )
-custom_styles/read_only = SubResource( 1 )
-custom_styles/focus = SubResource( 2 )
-custom_styles/normal = SubResource( 3 )
-text = "Page 1"
-align = 1
-expand_to_text_length = true
-script = ExtResource( 13 )
-__meta__ = {
-"_edit_lock_": true,
-"_edit_use_anchors_": false
-}
-
-[node name="SavePage" type="Panel" parent="."]
-anchor_left = 0.04
-anchor_top = 0.25
-anchor_right = 0.96
-anchor_bottom = 0.87
-margin_left = 0.0400009
-margin_top = -111.0
-margin_right = -0.039978
-margin_bottom = 11.0
-custom_styles/panel = SubResource( 5 )
-
-[node name="ScrollContainer" type="ScrollContainer" parent="SavePage" groups=["save_screen_scroll_ui_element"]]
-anchor_right = 1.0
-anchor_bottom = 1.0
-size_flags_vertical = 3
-follow_focus = true
-scroll_horizontal_enabled = false
-scroll_vertical_enabled = false
-script = ExtResource( 4 )
-
-[node name="GridContainer" type="GridContainer" parent="SavePage/ScrollContainer"]
-margin_right = 942.0
-size_flags_horizontal = 3
-custom_constants/vseparation = 50
-custom_constants/hseparation = 7
-columns = 3
-script = ExtResource( 3 )
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="PageNavBar" type="HBoxContainer" parent="." groups=["save_screen_page_ui_element"]]
-anchor_left = 0.2
-anchor_top = 0.9
-anchor_right = 0.8
-anchor_bottom = 0.95
-custom_constants/separation = 20
-alignment = 1
-script = ExtResource( 11 )
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="PreviousPage" type="Button" parent="PageNavBar"]
-margin_left = 64.0
-margin_right = 95.0
-margin_bottom = 42.0
-rect_min_size = Vector2( 0, 30 )
-custom_fonts/font = SubResource( 7 )
-custom_styles/focus = SubResource( 6 )
-text = "<"
-flat = true
-script = ExtResource( 12 )
-
-[node name="QuisavePage" type="Button" parent="PageNavBar"]
-margin_left = 115.0
-margin_right = 130.0
-margin_bottom = 42.0
-rect_min_size = Vector2( 0, 30 )
-custom_styles/focus = SubResource( 8 )
-toggle_mode = true
-group = ExtResource( 7 )
-text = "Q"
-flat = true
-script = ExtResource( 12 )
-
-[node name="Page1" type="Button" parent="PageNavBar"]
-margin_left = 150.0
-margin_right = 162.0
-margin_bottom = 42.0
-rect_min_size = Vector2( 0, 30 )
-custom_styles/focus = SubResource( 6 )
-toggle_mode = true
-pressed = true
-group = ExtResource( 7 )
-text = "1"
-flat = true
-script = ExtResource( 12 )
-
-[node name="Page2" type="Button" parent="PageNavBar"]
-margin_left = 182.0
-margin_right = 194.0
-margin_bottom = 42.0
-rect_min_size = Vector2( 0, 30 )
-custom_styles/focus = SubResource( 6 )
-toggle_mode = true
-group = ExtResource( 7 )
-text = "2"
-flat = true
-script = ExtResource( 12 )
-
-[node name="Page3" type="Button" parent="PageNavBar"]
-margin_left = 214.0
-margin_right = 226.0
-margin_bottom = 42.0
-rect_min_size = Vector2( 0, 30 )
-custom_styles/focus = SubResource( 6 )
-toggle_mode = true
-group = ExtResource( 7 )
-text = "3"
-flat = true
-script = ExtResource( 12 )
-
-[node name="Page4" type="Button" parent="PageNavBar"]
-margin_left = 246.0
-margin_right = 258.0
-margin_bottom = 42.0
-rect_min_size = Vector2( 0, 30 )
-custom_styles/focus = SubResource( 6 )
-toggle_mode = true
-group = ExtResource( 7 )
-text = "4"
-flat = true
-script = ExtResource( 12 )
-
-[node name="Page5" type="Button" parent="PageNavBar"]
-margin_left = 278.0
-margin_right = 290.0
-margin_bottom = 42.0
-rect_min_size = Vector2( 0, 30 )
-custom_styles/focus = SubResource( 6 )
-toggle_mode = true
-group = ExtResource( 7 )
-text = "5"
-flat = true
-script = ExtResource( 12 )
-
-[node name="Page6" type="Button" parent="PageNavBar"]
-margin_left = 310.0
-margin_right = 322.0
-margin_bottom = 42.0
-rect_min_size = Vector2( 0, 30 )
-custom_styles/focus = SubResource( 6 )
-toggle_mode = true
-group = ExtResource( 7 )
-text = "6"
-flat = true
-script = ExtResource( 12 )
-
-[node name="Page7" type="Button" parent="PageNavBar"]
-margin_left = 342.0
-margin_right = 354.0
-margin_bottom = 42.0
-rect_min_size = Vector2( 0, 30 )
-custom_styles/focus = SubResource( 6 )
-toggle_mode = true
-group = ExtResource( 7 )
-text = "7"
-flat = true
-script = ExtResource( 12 )
-
-[node name="Page8" type="Button" parent="PageNavBar"]
-margin_left = 374.0
-margin_right = 386.0
-margin_bottom = 42.0
-rect_min_size = Vector2( 0, 30 )
-custom_styles/focus = SubResource( 6 )
-toggle_mode = true
-group = ExtResource( 7 )
-text = "8"
-flat = true
-script = ExtResource( 12 )
-
-[node name="Page9" type="Button" parent="PageNavBar"]
-margin_left = 406.0
-margin_right = 418.0
-margin_bottom = 42.0
-rect_min_size = Vector2( 0, 30 )
-custom_styles/focus = SubResource( 6 )
-toggle_mode = true
-group = ExtResource( 7 )
-text = "9"
-flat = true
-script = ExtResource( 12 )
-
-[node name="Page10" type="Button" parent="PageNavBar"]
-margin_left = 438.0
-margin_right = 458.0
-margin_bottom = 42.0
-rect_min_size = Vector2( 0, 30 )
-custom_styles/focus = SubResource( 6 )
-toggle_mode = true
-group = ExtResource( 7 )
-text = "10"
-flat = true
-script = ExtResource( 12 )
-
-[node name="Page11" type="Button" parent="PageNavBar"]
-margin_left = 478.0
-margin_right = 498.0
-margin_bottom = 42.0
-rect_min_size = Vector2( 0, 30 )
-custom_styles/focus = SubResource( 6 )
-toggle_mode = true
-group = ExtResource( 7 )
-text = "11"
-flat = true
-script = ExtResource( 12 )
-
-[node name="NextPage" type="Button" parent="PageNavBar"]
-margin_left = 518.0
-margin_right = 549.0
-margin_bottom = 42.0
-rect_min_size = Vector2( 0, 30 )
-custom_fonts/font = SubResource( 7 )
-custom_styles/focus = SubResource( 6 )
-text = ">"
-flat = true
-script = ExtResource( 12 )
-
-[node name="SkipNamingButton" type="CheckButton" parent="."]
-anchor_left = 0.8
-anchor_top = 0.9
-anchor_right = 0.9
-anchor_bottom = 0.95
-text = "Skip Naming"
-script = ExtResource( 2 )
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="ConfirmationPopup" type="AcceptDialog" parent="."]
-visible = true
-anchor_left = 0.5
-anchor_top = 0.5
-anchor_right = 0.5
-anchor_bottom = 0.5
-grow_horizontal = 2
-grow_vertical = 2
-window_title = ""
-dialog_text = "Are you sure you want to overwrite your save?"
-dialog_hide_on_ok = false
-script = ExtResource( 9 )
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="LineEdit" type="LineEdit" parent="ConfirmationPopup"]
-anchor_left = 0.1
-anchor_right = 0.9
-margin_left = -23.0
-margin_top = 22.0
-margin_right = 23.0
-margin_bottom = 60.0
-align = 1
-caret_blink = true
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[connection signal="visibility_changed" from="." to="." method="_on_visibility_changed"]
-[connection signal="text_changed" from="PageLabel" to="PageLabel" method="_on_text_changed"]
-[connection signal="visibility_changed" from="SavePage/ScrollContainer" to="SavePage/ScrollContainer" method="_on_visibility_changed"]
-[connection signal="change_page" from="PageNavBar" to="." method="_on_change_page"]
-[connection signal="toggled" from="SkipNamingButton" to="SkipNamingButton" method="_on_toggled"]
-[connection signal="confirmed" from="ConfirmationPopup" to="ConfirmationPopup" method="_on_confirmed"]
-[connection signal="popup_hide" from="ConfirmationPopup" to="ConfirmationPopup" method="_on_popup_hide"]
diff --git a/addons/vnkit/Screens/SavesScreen/SavesScreenPageButton.gd b/addons/vnkit/Screens/SavesScreen/SavesScreenPageButton.gd
deleted file mode 100644
index 85396baf..00000000
--- a/addons/vnkit/Screens/SavesScreen/SavesScreenPageButton.gd
+++ /dev/null
@@ -1,9 +0,0 @@
-extends Button
-
-signal page_button_pressed(action)
-
-func _ready():
- connect("pressed", self, "_on_pressed")
-
-func _on_pressed():
- emit_signal("page_button_pressed", self.text)
diff --git a/addons/vnkit/Screens/SavesScreen/ScreenshotRect.gd b/addons/vnkit/Screens/SavesScreen/ScreenshotRect.gd
deleted file mode 100644
index e5c0cbe8..00000000
--- a/addons/vnkit/Screens/SavesScreen/ScreenshotRect.gd
+++ /dev/null
@@ -1,4 +0,0 @@
-extends TextureRect
-
-func _on_set_screenshot(screenshot):
- set_texture(screenshot)
diff --git a/addons/vnkit/Screens/SavesScreen/ScrollContainer.gd b/addons/vnkit/Screens/SavesScreen/ScrollContainer.gd
deleted file mode 100644
index 68690812..00000000
--- a/addons/vnkit/Screens/SavesScreen/ScrollContainer.gd
+++ /dev/null
@@ -1,13 +0,0 @@
-extends ScrollContainer
-
-signal scroll(scroll_value)
-
-func _ready():
- get_v_scrollbar().connect("scrolling", self, "_on_scroll")
-
-func _on_scroll():
- ProjectSettings.set_setting(Kit.saves_ui_scroll, self.scroll_vertical)
-
-func _on_visibility_changed():
- if ProjectSettings.has_setting(Kit.saves_ui_scroll):
- self.scroll_vertical = ProjectSettings.get_setting(Kit.saves_ui_scroll)
diff --git a/addons/vnkit/Screens/SavesScreen/SkipNamingButton.gd b/addons/vnkit/Screens/SavesScreen/SkipNamingButton.gd
deleted file mode 100644
index ee57fbec..00000000
--- a/addons/vnkit/Screens/SavesScreen/SkipNamingButton.gd
+++ /dev/null
@@ -1,12 +0,0 @@
-extends CheckButton
-
-
-func _ready():
- pressed = ProjectSettings.get_setting(Kit.saves_ui_skip_naming)
-
-
-func _on_save_mode_changed(save_mode):
- visible = save_mode
-
-func _on_toggled(button_pressed):
- ProjectSettings.set_setting(Kit.saves_ui_skip_naming, button_pressed)
diff --git a/addons/vnkit/Screens/SavesScreen/Slot.gd b/addons/vnkit/Screens/SavesScreen/Slot.gd
deleted file mode 100644
index 86b5b332..00000000
--- a/addons/vnkit/Screens/SavesScreen/Slot.gd
+++ /dev/null
@@ -1,73 +0,0 @@
-extends Control
-
-signal delete_save(name)
-signal select_save(name, page_index)
-signal set_screenshot(screenshot)
-signal set_data_time(data_time)
-signal set_save_name(save_name)
-signal set_delete_button(visibility)
-
-var file := File.new()
-
-var save_name:String = ""
-var save_page_index:Vector2 = Vector2.ZERO
-var screenshot:ImageTexture = null
-
-func init(name:String, page_index:Vector2, hide_delete:bool = false):
- save_name = Rakugo.store_manager.get_save_name(name)
- save_page_index = page_index
-
- var filename = save_name
- if page_index:
- filename = "%s_%s_%s" % [str(save_page_index.x), str(save_page_index.y), save_name]
-
- if not hide_delete:
- var png_path = Rakugo.store_manager.get_save_path(filename + ".png", true)
- if file.file_exists(png_path):
- Rakugo.debug("slot exist, loading image")
- set_screenshot(load_screenshot_texture(png_path))
- else:
- hide_delete_button()
-
- set_save_name(save_name)
-
- if save_name == "empty":
- set_data_time(0)
- else:
- set_data_time(file.get_modified_time(Rakugo.store_manager.get_save_path(filename)))
-
-func load_screenshot_texture(path):
- var image_file = File.new()
- image_file.open(path, File.READ)
-
- var image = Image.new()
- image.load_png_from_buffer(image_file.get_buffer(image_file.get_len()))
-
- image_file.close()
- image.lock()
-
- var output = ImageTexture.new()
- output.create_from_image(image)
- return output
-
-func _on_save_select():
- emit_signal("select_save", save_name, save_page_index)
-
-func _on_save_delete():
- if save_page_index:
- emit_signal("delete_save", "%s_%s_%s" % [str(save_page_index.x), str(save_page_index.y), save_name])
- else:
- emit_signal("delete_save", save_name)
-
-func set_screenshot(texture):
- self.screenshot = texture
- emit_signal("set_screenshot", texture)
-
-func set_data_time(data_time):
- emit_signal("set_data_time", data_time)
-
-func set_save_name(savename):
- emit_signal("set_save_name", savename)
-
-func hide_delete_button():
- emit_signal("set_delete_button", false)
diff --git a/addons/vnkit/Screens/SavesScreen/Slot.tscn b/addons/vnkit/Screens/SavesScreen/Slot.tscn
deleted file mode 100644
index cf865af0..00000000
--- a/addons/vnkit/Screens/SavesScreen/Slot.tscn
+++ /dev/null
@@ -1,141 +0,0 @@
-[gd_scene load_steps=13 format=2]
-
-[ext_resource path="res://addons/material-design-icons/fonts/48.tres" type="DynamicFont" id=1]
-[ext_resource path="res://addons/vnkit/Screens/SavesScreen/SlotButton.gd" type="Script" id=2]
-[ext_resource path="res://addons/vnkit/Screens/SavesScreen/ScreenshotRect.gd" type="Script" id=3]
-[ext_resource path="res://addons/vnkit/Screens/SavesScreen/Slot.gd" type="Script" id=4]
-[ext_resource path="res://addons/vnkit/Screens/SavesScreen/DateLabel.gd" type="Script" id=5]
-[ext_resource path="res://addons/vnkit/Screens/SavesScreen/SaveNameLabel.gd" type="Script" id=6]
-[ext_resource path="res://addons/vnkit/Screens/SavesScreen/DeleteButton.gd" type="Script" id=7]
-[ext_resource path="res://addons/material-design-icons/nodes/MaterialButton.gd" type="Script" id=8]
-[ext_resource path="res://addons/material-design-icons/fonts/32.tres" type="DynamicFont" id=9]
-
-[sub_resource type="StyleBoxLine" id=1]
-content_margin_left = 5.0
-color = Color( 0.756863, 0.878431, 1, 1 )
-grow_begin = 0.0
-grow_end = -42.0
-thickness = 5
-vertical = true
-
-[sub_resource type="StyleBoxEmpty" id=2]
-content_margin_left = 5.0
-content_margin_right = 5.0
-content_margin_top = 5.0
-content_margin_bottom = 5.0
-
-[sub_resource type="StyleBoxFlat" id=3]
-bg_color = Color( 0.376471, 0.505882, 0.631373, 1 )
-
-[node name="Slot" type="Control"]
-anchor_right = 1.0
-anchor_bottom = 1.0
-size_flags_horizontal = 3
-size_flags_vertical = 3
-script = ExtResource( 4 )
-
-[node name="Button" type="Button" parent="."]
-anchor_right = 1.0
-anchor_bottom = 1.0
-size_flags_horizontal = 3
-size_flags_vertical = 3
-custom_styles/hover = SubResource( 1 )
-custom_styles/pressed = SubResource( 2 )
-custom_styles/focus = SubResource( 2 )
-custom_styles/disabled = SubResource( 2 )
-custom_styles/normal = SubResource( 2 )
-script = ExtResource( 2 )
-__meta__ = {
-"_edit_use_anchors_": false
-}
-screenshot_panel_path = NodePath("VBoxContainer/Panel")
-
-[node name="VBoxContainer" type="VBoxContainer" parent="Button"]
-anchor_right = 1.0
-anchor_bottom = 1.0
-margin_left = 10.0
-size_flags_horizontal = 3
-size_flags_vertical = 3
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="Panel" type="Panel" parent="Button/VBoxContainer"]
-margin_right = 1014.0
-margin_bottom = 564.0
-mouse_filter = 2
-size_flags_vertical = 3
-custom_styles/panel = SubResource( 3 )
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="ScreenshotRect" type="TextureRect" parent="Button/VBoxContainer/Panel"]
-anchor_right = 1.0
-anchor_bottom = 1.0
-size_flags_horizontal = 3
-size_flags_vertical = 3
-expand = true
-stretch_mode = 7
-script = ExtResource( 3 )
-
-[node name="Delete" type="Button" parent="Button/VBoxContainer/Panel/ScreenshotRect"]
-visible = false
-anchor_left = 1.0
-anchor_right = 1.0
-margin_left = -32.0
-margin_bottom = 30.0
-grow_horizontal = 0
-rect_min_size = Vector2( 32, 30 )
-custom_fonts/font = ExtResource( 9 )
-text = ""
-flat = true
-script = ExtResource( 7 )
-icon_name = "trash-can"
-icon_size = "32"
-
-[node name="Delete2" type="Button" parent="Button/VBoxContainer/Panel/ScreenshotRect"]
-margin_left = 961.0
-margin_top = 2.0
-margin_right = 1013.0
-margin_bottom = 54.0
-custom_fonts/font = ExtResource( 1 )
-text = ""
-script = ExtResource( 8 )
-icon_name = "trash-can"
-icon_size = "48"
-
-[node name="DateLabel" type="Label" parent="Button/VBoxContainer"]
-margin_top = 568.0
-margin_right = 1014.0
-margin_bottom = 582.0
-size_flags_vertical = 1
-custom_colors/font_color = Color( 0.768627, 0.768627, 0.768627, 1 )
-text = "Wednesday, September 30 2020, 00:00"
-align = 1
-script = ExtResource( 5 )
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="SaveNameLabel" type="Label" parent="Button/VBoxContainer"]
-margin_top = 586.0
-margin_right = 1014.0
-margin_bottom = 600.0
-size_flags_vertical = 1
-custom_colors/font_color = Color( 0.768627, 0.768627, 0.768627, 1 )
-text = "save_filename"
-align = 1
-clip_text = true
-script = ExtResource( 6 )
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[connection signal="set_delete_button" from="." to="Button/VBoxContainer/Panel/ScreenshotRect/Delete" method="_on_set_delete_button"]
-[connection signal="set_save_name" from="." to="Button/VBoxContainer/SaveNameLabel" method="_on_set_save_name"]
-[connection signal="set_screenshot" from="." to="Button/VBoxContainer/Panel/ScreenshotRect" method="_on_set_screenshot"]
-[connection signal="pressed" from="Button" to="." method="_on_save_select"]
-[connection signal="resized" from="Button/VBoxContainer/Panel" to="Button" method="_on_screenshot_panel_resized"]
-[connection signal="visibility_changed" from="Button/VBoxContainer/Panel" to="Button" method="_on_screenshot_panel_visibility_changed"]
-[connection signal="pressed" from="Button/VBoxContainer/Panel/ScreenshotRect/Delete" to="." method="_on_save_delete"]
diff --git a/addons/vnkit/Screens/SavesScreen/SlotButton.gd b/addons/vnkit/Screens/SavesScreen/SlotButton.gd
deleted file mode 100644
index aa287402..00000000
--- a/addons/vnkit/Screens/SavesScreen/SlotButton.gd
+++ /dev/null
@@ -1,19 +0,0 @@
-extends Button
-
-#This script is to always keep the left line on hovering a slot the same size as the screenshot panel, mimicking Ren'Py
-
-export var screenshot_panel_path:NodePath = ''
-onready var screenshot_panel:Panel = get_node(screenshot_panel_path)
-
-func update_line_height():
- var style_box_line:StyleBoxLine = self.get("custom_styles/hover")
- style_box_line.grow_end = screenshot_panel.rect_size.y - self.rect_size.y
-
-
-func _on_screenshot_panel_resized():
- update_line_height()
-
-
-func _on_screenshot_panel_visibility_changed():
- if screenshot_panel.visible:
- update_line_height()
diff --git a/addons/vnkit/Screens/SavesScreen/page_buttons.tres b/addons/vnkit/Screens/SavesScreen/page_buttons.tres
deleted file mode 100644
index 0e55d740..00000000
--- a/addons/vnkit/Screens/SavesScreen/page_buttons.tres
+++ /dev/null
@@ -1,3 +0,0 @@
-[gd_resource type="ButtonGroup" format=2]
-
-[resource]
diff --git a/addons/vnkit/Screens/Screens.gd b/addons/vnkit/Screens/Screens.gd
deleted file mode 100644
index 551efb19..00000000
--- a/addons/vnkit/Screens/Screens.gd
+++ /dev/null
@@ -1,110 +0,0 @@
-extends Control
-
-signal show_menu(menu, game_started)
-signal show_main_menu_confirm()
-
-func _ready():
- # get_tree().paused = true
- get_tree().set_auto_accept_quit(false)
- Rakugo.connect("game_ended", self, "_on_game_end")
- connect("visibility_changed", self, "_on_visibility_changed")
-
-func _on_nav_button_press(nav):
- match nav:
- "start":
- Window.select_ui_tab(1)
- Rakugo.start()
-
- "continue":
- if !Rakugo.loadfile("auto"):
- return
- else:
- Window.select_ui_tab(1)
-
- "save":
- save_menu(get_screenshot())
-
- "load":
- load_menu()
-
- "main_menu":
- if Rakugo.started:
- emit_signal("show_main_menu_confirm")
- else:
- show_page(nav)
-
- "return":
- if Rakugo.started:
- Window.select_ui_tab(1)
- else:
- show_page(nav)
-
- "quit":
- Window.QuitScreen.show()
-
- _:
- show_page(nav)
-
-
-const page_action_index:Dictionary = {
- 'main_menu':0,
- 'return':0,
- 'about':1,
- 'help':1,
- 'history':2,
- 'preferences':3,
- 'save':4,
- 'load':4
-}
-
-func show_page(action):
- emit_signal("show_menu", action, Rakugo.started)
- if action in page_action_index:
- $SubMenus.current_tab = page_action_index[action]
- Window.select_ui_tab(0)
-
-func save_menu(screenshot):
- $SubMenus/SavesSlotScreen.save_mode = true
- $SubMenus/SavesSlotScreen.screenshot = screenshot
- show_page("save")
-
-func load_menu():
- $SubMenus/SavesSlotScreen.save_mode = false
- show_page("load")
-
-func _on_game_end():
- Window.select_ui_tab(0)
-
-func get_screenshot():
- var screenshot:Image = get_tree().get_root().get_texture().get_data()
- screenshot.flip_y()
- return screenshot
-
-func _screenshot_on_input(event):
- if !event.is_action_pressed("rakugo_screenshot"):
- return
-
- var dir = Directory.new()
- var screenshots_dir = "user://screenshots"
-
- if !dir.dir_exists(screenshots_dir):
- dir.make_dir(screenshots_dir)
-
- var datetime = OS.get_datetime()
- var s = "{day}-{month}-{year}_{hour}-{minute}-{second}.png".format(datetime)
- get_screenshot().save_png(screenshots_dir.plus_file(s))
-
-func _input(event):
- if visible:
- if event.is_action_pressed("ui_cancel"):
- _on_nav_button_press("return")
-
-func _on_SavesSlotScreen_mode_changed(save_mode):
- if save_mode:
- emit_signal("show_menu", "save", Rakugo.started)
- else:
- emit_signal("show_menu", "load", Rakugo.started)
-
-func _on_visibility_changed():
- get_tree().paused = visible
-
diff --git a/addons/vnkit/Screens/Screens.tscn b/addons/vnkit/Screens/Screens.tscn
deleted file mode 100644
index a6eb7347..00000000
--- a/addons/vnkit/Screens/Screens.tscn
+++ /dev/null
@@ -1,102 +0,0 @@
-[gd_scene load_steps=11 format=2]
-
-[ext_resource path="res://addons/vnkit/Screens/Screens.gd" type="Script" id=2]
-[ext_resource path="res://addons/vnkit/Screens/TitleScreen/TitleScreen.tscn" type="PackedScene" id=3]
-[ext_resource path="res://addons/vnkit/Screens/MainMenuReturnConfirm.gd" type="Script" id=4]
-[ext_resource path="res://addons/vnkit/Screens/AboutScreen/AboutScreen.tscn" type="PackedScene" id=5]
-[ext_resource path="res://addons/vnkit/Screens/MainMenuReturnConfirmPanel.gd" type="Script" id=6]
-[ext_resource path="res://addons/vnkit/Screens/SavesScreen/SavesScreen.tscn" type="PackedScene" id=7]
-[ext_resource path="res://addons/vnkit/Screens/HistoryScreen/HistoryScreen.tscn" type="PackedScene" id=9]
-[ext_resource path="res://addons/vnkit/Screens/PreferencesScreen/PreferencesScreen.tscn" type="PackedScene" id=12]
-[ext_resource path="res://addons/vnkit/Screens/MenuBar/MenuBar.tscn" type="PackedScene" id=16]
-
-[sub_resource type="StyleBoxEmpty" id=1]
-
-[node name="Screens" type="Control"]
-anchor_right = 1.0
-anchor_bottom = 1.0
-grow_horizontal = 0
-grow_vertical = 0
-size_flags_horizontal = 0
-size_flags_vertical = 0
-script = ExtResource( 2 )
-__meta__ = {
-"_edit_lock_": true,
-"_edit_use_anchors_": false
-}
-
-[node name="Background" type="TextureRect" parent="."]
-anchor_right = 1.0
-anchor_bottom = 1.0
-mouse_filter = 2
-__meta__ = {
-"_edit_lock_": true
-}
-
-[node name="SubMenus" type="TabContainer" parent="."]
-anchor_left = 0.22
-anchor_right = 1.0
-anchor_bottom = 1.0
-mouse_filter = 2
-custom_styles/panel = SubResource( 1 )
-tabs_visible = false
-__meta__ = {
-"_edit_lock_": true,
-"_edit_use_anchors_": false
-}
-
-[node name="TitleScreen" parent="SubMenus" instance=ExtResource( 3 )]
-mouse_filter = 2
-
-[node name="AboutScreen" parent="SubMenus" instance=ExtResource( 5 )]
-visible = false
-mouse_filter = 2
-
-[node name="HistoryScreen" parent="SubMenus" instance=ExtResource( 9 )]
-visible = false
-mouse_filter = 2
-
-[node name="PreferencesScreen" parent="SubMenus" instance=ExtResource( 12 )]
-visible = false
-mouse_filter = 2
-
-[node name="SavesSlotScreen" parent="SubMenus" instance=ExtResource( 7 )]
-visible = false
-mouse_filter = 2
-dummy_slot = null
-
-[node name="MenuBar" parent="." instance=ExtResource( 16 )]
-anchor_right = 0.22
-mouse_filter = 2
-
-[node name="MainMenuReturnConfirmPanel" type="Panel" parent="."]
-visible = false
-anchor_right = 1.0
-anchor_bottom = 1.0
-mouse_filter = 2
-script = ExtResource( 6 )
-__meta__ = {
-"_edit_lock_": true,
-"_edit_use_anchors_": false
-}
-
-[node name="MainMenuReturnConfirm" type="AcceptDialog" parent="MainMenuReturnConfirmPanel"]
-anchor_left = 0.5
-anchor_top = 0.5
-anchor_right = 0.5
-anchor_bottom = 0.5
-grow_horizontal = 2
-grow_vertical = 2
-popup_exclusive = true
-window_title = "Alarm!"
-dialog_text = "Are you sure you want to return to the main menu?
-This will lose unsaved progress."
-script = ExtResource( 4 )
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[connection signal="nav_button_press" from="MenuBar" to="." method="_on_nav_button_press"]
-[connection signal="confirmed" from="MainMenuReturnConfirmPanel/MainMenuReturnConfirm" to="MainMenuReturnConfirmPanel/MainMenuReturnConfirm" method="_on_confirmed"]
-[connection signal="popup_hide" from="MainMenuReturnConfirmPanel/MainMenuReturnConfirm" to="MainMenuReturnConfirmPanel" method="_on_popup_hide"]
-[connection signal="show_main_menu" from="MainMenuReturnConfirmPanel/MainMenuReturnConfirm" to="." method="_on_nav_button_press"]
diff --git a/addons/vnkit/Screens/TitleScreen/TitleScreen.tscn b/addons/vnkit/Screens/TitleScreen/TitleScreen.tscn
deleted file mode 100644
index c2f4ffa7..00000000
--- a/addons/vnkit/Screens/TitleScreen/TitleScreen.tscn
+++ /dev/null
@@ -1,25 +0,0 @@
-[gd_scene load_steps=3 format=2]
-
-[ext_resource path="res://addons/advanced-text/nodes/AdvancedTextLabel.gd" type="Script" id=1]
-[ext_resource path="res://addons/vnkit/fonts/AdvancedTextTheme.tres" type="Theme" id=2]
-
-[node name="TitleScreen" type="Control"]
-anchor_right = 1.0
-anchor_bottom = 1.0
-
-[node name="AdvancedTextLabel" type="RichTextLabel" parent="."]
-anchor_top = 1.0
-anchor_right = 1.0
-anchor_bottom = 1.0
-margin_top = -76.0
-theme = ExtResource( 2 )
-bbcode_enabled = true
-bbcode_text = "[right][b]My Awesome Game[/b][/right]
-[right][i]version 0.1[/i][/right]"
-text = "My Awesome Game
-version 0.1"
-scroll_active = false
-script = ExtResource( 1 )
-markup_text = "@right{**My Awesome Game**}
-@right{*version 0.1*}"
-markup = "markdown"
diff --git a/addons/vnkit/Window/Loading.gd b/addons/vnkit/Window/Loading.gd
deleted file mode 100644
index 6dba058e..00000000
--- a/addons/vnkit/Window/Loading.gd
+++ /dev/null
@@ -1,13 +0,0 @@
-extends Control
-
-
-func _ready():
- hide()
- Rakugo.connect("loading", self, '_on_loading')
-
-func _on_loading(progress:float):
- if progress == 1:
- hide()
- else:
- show()
- print("Loading progress is %s"%progress)
diff --git a/addons/vnkit/Window/LoadingProgressBar.gd b/addons/vnkit/Window/LoadingProgressBar.gd
deleted file mode 100644
index 0cafacf4..00000000
--- a/addons/vnkit/Window/LoadingProgressBar.gd
+++ /dev/null
@@ -1,13 +0,0 @@
-extends ProgressBar
-
-
-func _ready():
- Rakugo.connect('loading', self, 'on_loading')
- self.set_max(1)
-
-func on_loading(progress:float):
- if progress < 1:
- show()
- self.set_value(progress)
- else:
- hide()
diff --git a/addons/vnkit/Window/Window.gd b/addons/vnkit/Window/Window.gd
deleted file mode 100644
index 7ff995fe..00000000
--- a/addons/vnkit/Window/Window.gd
+++ /dev/null
@@ -1,43 +0,0 @@
-extends CanvasLayer
-
-onready var Tabs := $Panel/Tabs
-onready var Screens := $Panel/Tabs/Screens
-onready var QuitScreen := $Panel/QuitScreen
-
-var fullscreen : bool setget _set_fullscreen, _get_fullscreen
-
-func _set_fullscreen(value:bool):
- ProjectSettings.set_setting(Kit.fullscreen, value)
-
-func _get_fullscreen() -> bool:
- return ProjectSettings.get_setting(Kit.fullscreen)
-
-func _ready():
- OS.window_fullscreen = fullscreen
- if ProjectSettings.has_setting(Kit.maximized):
- OS.window_maximized = ProjectSettings.get_setting(Kit.maximized)
-
- if not(true in [OS.window_fullscreen, OS.window_maximized]):
- center_window()
-
- get_tree().get_root().connect("size_changed", self, "_on_window_resized")
-
-func get_window_setting(setting:String) -> float:
- return ProjectSettings.get_setting(setting) * 1.0
-
-func center_window():
- var size = OS.get_screen_size(OS.current_screen)
- OS.window_position = (size - OS.window_size) * 0.5
-
-func _on_window_resized():
- fullscreen = OS.window_fullscreen
- ProjectSettings.set_setting(Kit.maximized, OS.window_maximized)
- if not OS.window_fullscreen and not OS.window_maximized:
- ProjectSettings.set_setting(Kit.width, OS.window_size.x)
- ProjectSettings.set_setting(Kit.height, OS.window_size.y)
-
-func select_ui_tab(tab:int):
- Tabs.current_tab = tab
-
-func get_current_ui():
- return Tabs.get_current_tab_control()
diff --git a/addons/vnkit/Window/Window.tscn b/addons/vnkit/Window/Window.tscn
deleted file mode 100644
index bac8d40d..00000000
--- a/addons/vnkit/Window/Window.tscn
+++ /dev/null
@@ -1,86 +0,0 @@
-[gd_scene load_steps=11 format=2]
-
-[ext_resource path="res://addons/vnkit/Window/Window.gd" type="Script" id=1]
-[ext_resource path="res://addons/vnkit/InGameUI/InGameUI.tscn" type="PackedScene" id=2]
-[ext_resource path="res://addons/vnkit/Screens/Screens.tscn" type="PackedScene" id=4]
-[ext_resource path="res://addons/vnkit/Window/Loading.gd" type="Script" id=7]
-[ext_resource path="res://addons/vnkit/Window/LoadingProgressBar.gd" type="Script" id=8]
-[ext_resource path="res://addons/vnkit/QuitScreen/QuitScreen.tscn" type="PackedScene" id=9]
-
-[sub_resource type="StyleBoxEmpty" id=1]
-
-[sub_resource type="StyleBoxEmpty" id=2]
-
-[sub_resource type="StyleBoxEmpty" id=3]
-
-[sub_resource type="StyleBoxEmpty" id=4]
-
-[node name="Window" type="CanvasLayer"]
-pause_mode = 2
-follow_viewport_enable = true
-script = ExtResource( 1 )
-
-[node name="Panel" type="Control" parent="."]
-margin_top = -1.0
-margin_right = 1025.0
-margin_bottom = 598.0
-mouse_filter = 2
-
-[node name="Tabs" type="TabContainer" parent="Panel"]
-anchor_right = 1.0
-anchor_bottom = 1.0
-mouse_filter = 1
-custom_styles/tab_fg = SubResource( 1 )
-custom_styles/tab_disabled = SubResource( 2 )
-custom_styles/tab_bg = SubResource( 3 )
-custom_styles/panel = SubResource( 4 )
-tabs_visible = false
-
-[node name="Screens" parent="Panel/Tabs" instance=ExtResource( 4 )]
-
-[node name="InGameUI" parent="Panel/Tabs" instance=ExtResource( 2 )]
-visible = false
-
-[node name="Loading" type="Control" parent="Panel/Tabs"]
-visible = false
-anchor_right = 1.0
-anchor_bottom = 1.0
-mouse_filter = 2
-script = ExtResource( 7 )
-
-[node name="Panel" type="Panel" parent="Panel/Tabs/Loading"]
-anchor_right = 1.0
-anchor_bottom = 1.0
-rect_min_size = Vector2( 1024, 600 )
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="VBoxContainer" type="VBoxContainer" parent="Panel/Tabs/Loading/Panel"]
-anchor_left = 0.2
-anchor_right = 0.8
-anchor_bottom = 0.9
-grow_horizontal = 2
-alignment = 1
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="Label" type="Label" parent="Panel/Tabs/Loading/Panel/VBoxContainer"]
-margin_top = 254.0
-margin_right = 615.0
-margin_bottom = 268.0
-size_flags_horizontal = 3
-size_flags_vertical = 1
-text = "Loading"
-align = 1
-
-[node name="LoadingProgressBar" type="ProgressBar" parent="Panel/Tabs/Loading/Panel/VBoxContainer"]
-margin_top = 272.0
-margin_right = 615.0
-margin_bottom = 286.0
-size_flags_vertical = 1
-script = ExtResource( 8 )
-
-[node name="QuitScreen" parent="Panel" instance=ExtResource( 9 )]
-visible = false
diff --git a/addons/vnkit/Window/blur_shadermaterial.tres b/addons/vnkit/Window/blur_shadermaterial.tres
deleted file mode 100644
index 01913a6a..00000000
--- a/addons/vnkit/Window/blur_shadermaterial.tres
+++ /dev/null
@@ -1,24 +0,0 @@
-[gd_resource type="ShaderMaterial" load_steps=2 format=2]
-
-[sub_resource type="Shader" id=1]
-code = "shader_type canvas_item;
-render_mode blend_mix;
-
-uniform float radius = 4.0;
-
-void fragment() {
- vec4 col = texture(TEXTURE, UV);
- vec2 ps = TEXTURE_PIXEL_SIZE;
-
- col += texture(TEXTURE, UV + vec2(0.0, -radius) * ps);
- col += texture(TEXTURE, UV + vec2(0.0, radius) * ps);
- col += texture(TEXTURE, UV + vec2(-radius, 0.0) * ps);
- col += texture(TEXTURE, UV + vec2(radius, 0.0) * ps);
- col /= 5.0;
-
- COLOR = col;
-}"
-
-[resource]
-shader = SubResource( 1 )
-shader_param/radius = 0.0
diff --git a/addons/vnkit/fonts/AdvancedTextTheme.tres b/addons/vnkit/fonts/AdvancedTextTheme.tres
deleted file mode 100644
index ea3308e6..00000000
--- a/addons/vnkit/fonts/AdvancedTextTheme.tres
+++ /dev/null
@@ -1,57 +0,0 @@
-[gd_resource type="Theme" load_steps=12 format=2]
-
-[ext_resource path="res://addons/advanced-text/font/DejaVuSans-Bold.ttf" type="DynamicFontData" id=1]
-[ext_resource path="res://addons/advanced-text/font/DejaVuSans.ttf" type="DynamicFontData" id=2]
-[ext_resource path="res://addons/advanced-text/font/DejaVuSans-BoldOblique.ttf" type="DynamicFontData" id=3]
-[ext_resource path="res://addons/advanced-text/font/DejaVuSans-Oblique.ttf" type="DynamicFontData" id=4]
-[ext_resource path="res://addons/advanced-text/font/DejaVuSansMono.ttf" type="DynamicFontData" id=5]
-
-[sub_resource type="DynamicFont" id=6]
-size = 32
-use_filter = true
-font_data = ExtResource( 2 )
-
-[sub_resource type="DynamicFont" id=1]
-size = 32
-use_filter = true
-font_data = ExtResource( 1 )
-
-[sub_resource type="DynamicFont" id=2]
-size = 32
-use_filter = true
-font_data = ExtResource( 3 )
-
-[sub_resource type="DynamicFont" id=3]
-size = 32
-use_filter = true
-font_data = ExtResource( 4 )
-
-[sub_resource type="DynamicFont" id=4]
-size = 32
-use_filter = true
-font_data = ExtResource( 5 )
-
-[sub_resource type="DynamicFont" id=5]
-size = 32
-use_filter = true
-font_data = ExtResource( 2 )
-
-[resource]
-LineEdit/fonts/font = SubResource( 6 )
-RichTextLabel/colors/default_color = Color( 1, 1, 1, 1 )
-RichTextLabel/colors/font_color_selected = Color( 0.49, 0.49, 0.49, 1 )
-RichTextLabel/colors/font_color_shadow = Color( 0, 0, 0, 0 )
-RichTextLabel/colors/selection_color = Color( 0.1, 0.1, 1, 0.8 )
-RichTextLabel/constants/line_separation = 1
-RichTextLabel/constants/shadow_as_outline = 0
-RichTextLabel/constants/shadow_offset_x = 1
-RichTextLabel/constants/shadow_offset_y = 1
-RichTextLabel/constants/table_hseparation = 3
-RichTextLabel/constants/table_vseparation = 3
-RichTextLabel/fonts/bold_font = SubResource( 1 )
-RichTextLabel/fonts/bold_italics_font = SubResource( 2 )
-RichTextLabel/fonts/italics_font = SubResource( 3 )
-RichTextLabel/fonts/mono_font = SubResource( 4 )
-RichTextLabel/fonts/normal_font = SubResource( 5 )
-RichTextLabel/styles/focus = null
-RichTextLabel/styles/normal = null
diff --git a/addons/vnkit/fonts/NamesFont.tres b/addons/vnkit/fonts/NamesFont.tres
deleted file mode 100644
index f774e1ed..00000000
--- a/addons/vnkit/fonts/NamesFont.tres
+++ /dev/null
@@ -1,7 +0,0 @@
-[gd_resource type="DynamicFont" load_steps=2 format=2]
-
-[ext_resource path="res://addons/advanced-text/font/DejaVuSans-Bold.ttf" type="DynamicFontData" id=1]
-
-[resource]
-size = 40
-font_data = ExtResource( 1 )
diff --git a/addons/vnkit/kit.gd b/addons/vnkit/kit.gd
deleted file mode 100644
index 05c003a4..00000000
--- a/addons/vnkit/kit.gd
+++ /dev/null
@@ -1,116 +0,0 @@
-# Kit
-extends Node
-
-var kit_settings := {
- auto_mode_delay = "addons/kit/auto_mode_delay",
- typing_effect_delay = "addons/kit/typing_effect_delay",
- skip_delay = "addons/kit/skip_delay",
- saves_ui_page = "addons/kit/saves/current_page",
- saves_ui_pages = "addons/kit/saves/page_names",
- saves_ui_layout = "addons/kit/saves/layout",
- saves_ui_scroll = "addons/kit/saves/scroll",
- saves_ui_skip_naming = "addons/kit/saves/skip_naming",
-}
-
-var godot_settings := {
- width = "display/window/size/width",
- height = "display/window/size/height",
- fullscreen = "display/window/size/fullscreen",
- maximized = "display/window/size/maximized",
-}
-
-var audio_bus := [
- "Master",
- "BGM",
- "SFX",
- "Dialogs"
-]
-
-func _ready():
- pause_mode = PAUSE_MODE_PROCESS
- var f := File.new()
- if f.file_exists("user://kit_config.cfg"):
- load_conf()
-
-func set_audio_bus(bus_name:String, volume:float, mute := false):
- var bus_id = AudioServer.get_bus_index(bus_name)
- AudioServer.set_bus_mute(bus_id, mute)
- AudioServer.set_bus_volume_db(bus_id, volume)
-
-func get_audio_bus(bus_name:String):
- var bus_id = AudioServer.get_bus_index(bus_name)
- var mute = AudioServer.is_bus_mute(bus_id)
- var volume = AudioServer.get_bus_volume_db(bus_id)
- return {"mute":mute, "volume": volume}
-
-func _set(property:String, value) -> bool:
- if property in kit_settings:
- ProjectSettings.set_setting(kit_settings[property], value)
- return true
-
- if property in godot_settings:
- ProjectSettings.set_setting(godot_settings[property], value)
- return true
-
- return false
-
-func _get_property_list():
- var list = []
- list.append_array(kit_settings.keys())
- list.append_array(godot_settings.keys())
- return list
-
-func _get(property : String):
- if property in kit_settings:
- return ProjectSettings.get_setting(kit_settings[property])
-
- if property in godot_settings:
- return ProjectSettings.get_setting(godot_settings[property])
-
- return null
-
-func save_conf() -> void:
- var config := ConfigFile.new()
-
- # for setting in kit_settings:
- # var value = ProjectSettings.get(kit_settings[setting])
- # config.set_value("kit", setting, value)
-
- for setting in godot_settings:
- var value = ProjectSettings.get(godot_settings[setting])
- config.set_value("godot", setting, value)
-
- for bus_name in audio_bus:
- var bus = get_audio_bus(bus_name)
- set_audio_bus(bus_name, bus.volume, bus.mute)
- config.set_value("audio/" + bus_name, "volume", bus.volume)
- config.set_value("audio/" + bus_name, "mute", bus.mute)
-
- config.save("user://kit_config.cfg")
-
-func load_conf() -> int:
- var config = ConfigFile.new()
- var error = config.load("user://kit_config.cfg")
-
- if error != OK:
- prints("Error loading config file:", error)
- return error
-
- # for setting in kit_settings:
- # var value = config.get_value("kit", setting)
- # if value != null:
- # ProjectSettings.set_setting(kit_settings[setting], value)
-
- for setting in godot_settings:
- var value = config.get_value("godot", setting)
- if value != null:
- ProjectSettings.set_setting(godot_settings[setting], value)
-
- for bus_name in audio_bus:
- var bus = get_audio_bus(bus_name)
- var volume = config.get_value("audio/" + bus_name, "volume")
- var mute = config.get_value("audio/" + bus_name, "mute")
- if volume != null:
- set_audio_bus(bus_name, volume, mute)
-
- return error
diff --git a/addons/vnkit/plugin.cfg b/addons/vnkit/plugin.cfg
deleted file mode 100644
index 4d1ae9b3..00000000
--- a/addons/vnkit/plugin.cfg
+++ /dev/null
@@ -1,7 +0,0 @@
-[plugin]
-
-name="Visual Novel Kit"
-description=""
-author="Jeremi Biernacki"
-version="1.0"
-script="plugin.gd"
diff --git a/addons/vnkit/plugin.gd b/addons/vnkit/plugin.gd
deleted file mode 100644
index 187aa818..00000000
--- a/addons/vnkit/plugin.gd
+++ /dev/null
@@ -1,52 +0,0 @@
-tool
-extends EditorPlugin
-
-func _enter_tree():
- var base_path = get_script().get_path().get_base_dir()
- add_autoload_singleton("Kit", base_path.plus_file("kit.gd"))
-
- if !ProjectSettings.has_setting("addons/kit/auto_mode_delay"):
- ProjectSettings.set_setting("addons/kit/auto_mode_delay", 3)
-
- if !ProjectSettings.has_setting("addons/kit/skip_delay"):
- ProjectSettings.set_setting("addons/kit/skip_delay", 0.5)
-
- if !ProjectSettings.has_setting("addons/kit/typing_effect_delay"):
- ProjectSettings.set_setting("addons/kit/typing_effect_delay", 0.05)
-
- if !ProjectSettings.has_setting("addons/kit/saves/current_page"):
- ProjectSettings.set_setting("addons/kit/saves/current_page", 0)
-
- if !ProjectSettings.has_setting("addons/kit/saves/page_names"):
- ProjectSettings.set_setting("addons/kit/saves/page_names", [])
-
- if !ProjectSettings.has_setting("addons/kit/saves/layout"):
- ProjectSettings.set_setting("addons/kit/saves/layout", "pages")
-
- ProjectSettings.add_property_info({
- "name": "addons/kit/saves/layout",
- "type": TYPE_STRING,
- "hint": PROPERTY_HINT_ENUM,
- "hint_string": "pages, list"
- })
-
- if !ProjectSettings.has_setting("addons/kit/saves/current_scroll"):
- ProjectSettings.set_setting("addons/kit/saves/current_scroll", 0)
-
- if !ProjectSettings.has_setting("addons/kit/saves/skip_naming"):
- ProjectSettings.set_setting("addons/kit/saves/skip_naming", true)
-
- ProjectSettings.set_order("addons/kit/auto_mode_delay", 0)
-
-
-func _exit_tree():
- ProjectSettings.set_setting("addons/kit/auto_mode_delay", null)
- ProjectSettings.set_setting("addons/kit/skip_delay", null)
- ProjectSettings.set_setting("addons/kit/typing_effect_delay", null)
- ProjectSettings.set_setting("addons/kit/saves/current_page", null)
- ProjectSettings.set_setting("addons/kit/saves/page_names", null)
- ProjectSettings.remove_property_info("addons/kit/saves/layout")
- ProjectSettings.set_setting("addons/kit/saves/layout", null)
- ProjectSettings.set_setting("addons/kit/saves/current_scroll", null)
- ProjectSettings.set_setting("addons/kit/saves/skip_naming", null)
-
diff --git a/addons/vnkit/themes/flat_drak_theme.tres b/addons/vnkit/themes/flat_drak_theme.tres
deleted file mode 100644
index 916644f9..00000000
--- a/addons/vnkit/themes/flat_drak_theme.tres
+++ /dev/null
@@ -1,134 +0,0 @@
-[gd_resource type="Theme" load_steps=22 format=2]
-
-[ext_resource path="res://addons/advanced-text/font/DejaVuSans-Bold.ttf" type="DynamicFontData" id=1]
-[ext_resource path="res://addons/advanced-text/font/DejaVuSans-Oblique.ttf" type="DynamicFontData" id=2]
-[ext_resource path="res://addons/advanced-text/font/DejaVuSans-BoldOblique.ttf" type="DynamicFontData" id=3]
-[ext_resource path="res://addons/advanced-text/font/DejaVuSansMono.ttf" type="DynamicFontData" id=4]
-[ext_resource path="res://addons/advanced-text/font/DejaVuSans.ttf" type="DynamicFontData" id=5]
-
-[sub_resource type="StyleBoxFlat" id=7]
-bg_color = Color( 0.72, 0.72, 0.72, 0.635294 )
-corner_radius_top_left = 2
-corner_radius_top_right = 2
-corner_radius_bottom_right = 2
-corner_radius_bottom_left = 2
-
-[sub_resource type="StyleBoxFlat" id=8]
-bg_color = Color( 0.321569, 0.580392, 0.890196, 0.494118 )
-expand_margin_left = 2.0
-expand_margin_right = 2.0
-expand_margin_top = 2.0
-expand_margin_bottom = 2.0
-
-[sub_resource type="StyleBoxFlat" id=9]
-bg_color = Color( 0.321569, 0.635294, 0.890196, 1 )
-corner_radius_top_left = 2
-corner_radius_top_right = 2
-corner_radius_bottom_right = 2
-corner_radius_bottom_left = 2
-
-[sub_resource type="StyleBoxFlat" id=10]
-bg_color = Color( 0.156863, 0.156863, 0.156863, 0.635294 )
-border_width_left = 2
-border_width_top = 2
-border_width_right = 2
-border_width_bottom = 2
-border_color = Color( 0.321569, 0.580392, 0.890196, 1 )
-border_blend = true
-corner_radius_top_left = 2
-corner_radius_top_right = 2
-corner_radius_bottom_right = 2
-corner_radius_bottom_left = 2
-
-[sub_resource type="StyleBoxFlat" id=11]
-bg_color = Color( 0.321569, 0.580392, 0.890196, 1 )
-corner_radius_top_left = 2
-corner_radius_top_right = 2
-corner_radius_bottom_right = 2
-corner_radius_bottom_left = 2
-
-[sub_resource type="DynamicFont" id=6]
-size = 32
-use_filter = true
-font_data = ExtResource( 5 )
-
-[sub_resource type="StyleBoxFlat" id=12]
-bg_color = Color( 0.156863, 0.156863, 0.156863, 0.635294 )
-border_width_left = 2
-border_width_top = 2
-border_width_right = 2
-border_width_bottom = 2
-border_color = Color( 0.321569, 0.580392, 0.890196, 1 )
-
-[sub_resource type="StyleBoxFlat" id=13]
-bg_color = Color( 0.156863, 0.156863, 0.156863, 0.635294 )
-
-[sub_resource type="StyleBoxFlat" id=14]
-bg_color = Color( 0.156863, 0.156863, 0.156863, 0.635294 )
-
-[sub_resource type="StyleBoxFlat" id=15]
-bg_color = Color( 0.156863, 0.156863, 0.156863, 0.635294 )
-border_width_top = 20
-border_color = Color( 0.360784, 0.647059, 1, 1 )
-expand_margin_top = 20.0
-
-[sub_resource type="DynamicFont" id=1]
-size = 32
-use_filter = true
-font_data = ExtResource( 1 )
-
-[sub_resource type="DynamicFont" id=2]
-size = 32
-use_filter = true
-font_data = ExtResource( 3 )
-
-[sub_resource type="DynamicFont" id=3]
-size = 32
-use_filter = true
-font_data = ExtResource( 2 )
-
-[sub_resource type="DynamicFont" id=4]
-size = 32
-use_filter = true
-font_data = ExtResource( 4 )
-
-[sub_resource type="DynamicFont" id=5]
-size = 32
-use_filter = true
-font_data = ExtResource( 5 )
-
-[sub_resource type="StyleBoxFlat" id=16]
-bg_color = Color( 0.156863, 0.156863, 0.156863, 0.635294 )
-border_width_top = 20
-border_color = Color( 0.360784, 0.647059, 1, 1 )
-expand_margin_top = 20.0
-
-[resource]
-Button/styles/disabled = SubResource( 7 )
-Button/styles/focus = SubResource( 8 )
-Button/styles/hover = SubResource( 9 )
-Button/styles/normal = SubResource( 10 )
-Button/styles/pressed = SubResource( 11 )
-LineEdit/fonts/font = SubResource( 6 )
-LineEdit/styles/focus = SubResource( 12 )
-LineEdit/styles/normal = SubResource( 13 )
-Panel/styles/panel = SubResource( 14 )
-PopupDialog/styles/panel = SubResource( 15 )
-RichTextLabel/colors/default_color = Color( 1, 1, 1, 1 )
-RichTextLabel/colors/font_color_selected = Color( 0.49, 0.49, 0.49, 1 )
-RichTextLabel/colors/font_color_shadow = Color( 0, 0, 0, 0 )
-RichTextLabel/colors/selection_color = Color( 0.1, 0.1, 1, 0.8 )
-RichTextLabel/constants/line_separation = 1
-RichTextLabel/constants/shadow_as_outline = 0
-RichTextLabel/constants/shadow_offset_x = 1
-RichTextLabel/constants/shadow_offset_y = 1
-RichTextLabel/constants/table_hseparation = 3
-RichTextLabel/constants/table_vseparation = 3
-RichTextLabel/fonts/bold_font = SubResource( 1 )
-RichTextLabel/fonts/bold_italics_font = SubResource( 2 )
-RichTextLabel/fonts/italics_font = SubResource( 3 )
-RichTextLabel/fonts/mono_font = SubResource( 4 )
-RichTextLabel/fonts/normal_font = SubResource( 5 )
-RichTextLabel/styles/focus = null
-RichTextLabel/styles/normal = null
-WindowDialog/styles/panel = SubResource( 16 )
diff --git a/plug.gd b/plug.gd
index 48d15e04..b9d53db1 100644
--- a/plug.gd
+++ b/plug.gd
@@ -1,19 +1,12 @@
extends "res://addons/gd-plug/plug.gd"
+
func _plugging():
# Declare your plugins in here with plug(src, args)
# By default, only "addons/" directory will be installed
plug("rakugoteam/Emojis-For-Godot", {"include": ["addons", ".import/"]})
plug("rakugoteam/Godot-Material-Icons", {"include": ["addons", ".import/"]})
plug("rakugoteam/Rakugo", {"include": ["addons/rakugo", ".import/"]})
- plug("rakugoteam/BaseKit", {
- "include": ["addons/kit", "addons/gd-plug"],
- "exclude": ["addons/kit/plugin.cfg"],
- "on_update": "post_kit_update"
- })
-
+
## comment-out if of you don't want to update kit itself
# plug("rakugoteam/VisualNovelKit", {"include": ["addons", "plug.gd"]})
-
-func post_kit_update(plugin : Dictionary):
- directory_copy_recursively("addons/kit/", "addons/vnkit")
\ No newline at end of file