public static void PlayVoice(LoadAudioBase __instance) { if (Subtitles.SubtitleDictionary.TryGetValue(__instance.assetName, out string text)) { Caption.DisplaySubtitle(__instance, text); } }
public static void PlayVoice(LoadVoice __instance) { if (__instance.audioSource == null || __instance.audioSource.clip == null || __instance.audioSource.loop) { return; } if (Subtitles.HSceneProcInstance != null) { Caption.DisplayHSubtitle(__instance); } else if (Subtitles.ActionGameInfoInstance != null && GameObject.Find("ActionScene/ADVScene") == null) { Caption.DisplayDialogueSubtitle(__instance); } else if (Subtitles.SubtitleDictionary.TryGetValue(__instance.assetName, out string text)) { Caption.DisplaySubtitle(__instance, text); } }
public static void HVoiceCtrlInit() { Caption.InitGUI(); Subtitles.HSceneProcInstance = Object.FindObjectOfType <HSceneProc>(); }
public static void InfoInit(Info __instance) { Caption.InitGUI(); Subtitles.ActionGameInfoInstance = __instance; }