tools: Add cutscene player / subtitle editor window (#1429)

* stash

* temp

* tools: subtitle tool works! just gotta fill out the db / polish UX

* tools: added configuration for every subtitle we have so far

* tools: add some colors to the editor, time for repl controls and make it run the code!

* tools: continuing polish of tool, getting very close

* tools: finished UX polish, just need to write deserializers

* tools: added deserializer for subtitle data

* tools: exported subtitle files, all data appears intact

* tools: more UX polish and test all the cutscenes, majority work

* assets: update subtitle files

* lint: formatting and cleanup

* lint: codacy lints
This commit is contained in:
Tyler Wilding
2022-06-11 11:32:27 -04:00
committed by GitHub
parent 8ba89dd95e
commit 9fdf0bbc2f
45 changed files with 4322 additions and 1676 deletions
+2
View File
@@ -177,6 +177,8 @@ bool SubtitleTool::needs_run(const ToolInput& task) {
bool SubtitleTool::run(const ToolInput& task) {
GameSubtitleDB db;
db.m_subtitle_groups = std::make_unique<GameSubtitleGroups>();
db.m_subtitle_groups->hydrate_from_asset_file();
std::unordered_map<GameTextVersion, std::vector<std::string>> inputs;
open_text_project("subtitle", task.input.at(0), inputs);
for (auto& [ver, in] : inputs) {