chore: storing version and changelog

This commit is contained in:
StraToN
2022-03-07 08:44:59 +00:00
parent 9e9111c7cb
commit 19272ffeb2
12 changed files with 128 additions and 124 deletions

View File

@@ -10,7 +10,7 @@ export(Color, RGB) var color_hover = Color(165.0,42.0,42.0, 1.0)
func _ready() -> void:
hide_chooser()
pause_mode = PAUSE_MODE_STOP
# Process the timeout display
func _process(delta: float) -> void:
@@ -25,9 +25,9 @@ func show_chooser():
var _vbox = $MarginContainer/ScrollContainer/VBoxContainer
for option_node in _vbox.get_children():
_vbox.remove_child(option_node)
_remove_avatar()
for option in self.dialog.options:
if option.is_valid():
var _option_node = Button.new()
@@ -39,14 +39,14 @@ func show_chooser():
_option_node.connect("pressed", self, "_on_answer_selected", [
option
])
if self.dialog.avatar != "-":
$AvatarContainer.add_child(
ResourceLoader.load(self.dialog.avatar).instance()
)
$MarginContainer.show()
if self.dialog.timeout > 0:
$Timer.start(self.dialog.timeout)
@@ -54,7 +54,7 @@ func show_chooser():
# Hide the chooser
func hide_chooser():
$MarginContainer.hide()
# An option was choosen, emit the option
#

View File

@@ -16,7 +16,7 @@ func _init() -> void:
# Register ourselves after setup
func _ready() -> void:
call_deferred("_register")
# Unregister ourselves
func _exit_tree() -> void:
@@ -34,7 +34,7 @@ func _register():
"hint": PROPERTY_HINT_DIR
}
)
_escoria.project_settings_manager.register_setting(
_escoria.project_settings_manager.TEXT_SPEED_PER_CHARACTER,
0.1,
@@ -42,7 +42,7 @@ func _register():
"type": TYPE_REAL
}
)
_escoria.project_settings_manager.register_setting(
_escoria.project_settings_manager.FAST_TEXT_SPEED_PER_CHARACTER,
0.25,
@@ -50,7 +50,7 @@ func _register():
"type": TYPE_REAL
}
)
_escoria.project_settings_manager.register_setting(
_escoria.project_settings_manager.MAX_TIME_TO_DISAPPEAR,
1.0,

View File

@@ -47,11 +47,11 @@ func _ready():
)
text_node.bbcode_enabled = true
tween.connect(
"tween_completed",
self,
"tween_completed",
self,
"_on_dialog_line_typed"
)
escoria.connect("paused", self, "_on_paused")
escoria.connect("resumed", self, "_on_resumed")
@@ -78,19 +78,19 @@ func say(character: String, line: String):
_is_speeding_up = false
popup_centered()
set_current_character(character)
text_node.bbcode_text = tr(line)
text_node.percent_visible = 0.0
var time_show_full_text = _text_speed_per_character * len(line)
tween.interpolate_property(text_node, "percent_visible",
0.0, 1.0, time_show_full_text,
Tween.TRANS_LINEAR, Tween.EASE_IN_OUT)
tween.start()
# Called by the dialog player when the
# Called by the dialog player when the
func speedup():
if not _is_speeding_up:
_is_speeding_up = true