Version 3.1.0: voice lines linked across all languages from the game data
This commit is contained in:
@@ -375,11 +375,11 @@ class TextPanel(QWidget):
|
||||
if self.kind == "subs":
|
||||
by_key = ws.catalog.by_key
|
||||
for s in tx.subtitles(lang):
|
||||
snd = by_key.get(s.sound) # None when the line's archive is not loaded
|
||||
snd = by_key.get(s.sounds[0]) if s.sounds else None # None: the line's archive is not loaded
|
||||
who = (snd.character or snd.characters_inferred) if snd else ""
|
||||
cat = snd.category if snd else ""
|
||||
rows.append(Row(subtitles.key(lang, s.speech, s.line),
|
||||
[s.speech, s.line + 1, who, cat, s.room], s.text, s.sound or None))
|
||||
[s.speech, s.line + 1, who, cat, s.room], s.text, s.sounds[0] if s.sounds else None))
|
||||
else:
|
||||
for e in tx.menu(lang):
|
||||
rows.append(Row("MENU:" + e.key, [e.file, e.section, e.name + ("#%d" % e.occurrence if e.occurrence > 1 else "")],
|
||||
|
||||
Reference in New Issue
Block a user