mirror of
https://github.com/open-goal/jak-project
synced 2026-08-21 23:00:45 -04:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user