コード例 #1
0
 private bool ShouldShowSubtitle(Subtitle subtitle)
 {
     if ((subtitle != null) && (settings != null) && (settings.subtitleSettings != null))
     {
         if ((subtitle.speakerInfo.characterType == CharacterType.NPC) && settings.GetShowNPCSubtitlesDuringLine())
         {
             return(true);
         }
         if ((subtitle.speakerInfo.characterType == CharacterType.PC) && settings.GetShowPCSubtitlesDuringLine())
         {
             return(!(_lastModeWasResponseMenu && settings.GetSkipPCSubtitleAfterResponseMenu()));
         }
     }
     return(false);
 }
コード例 #2
0
 private bool ShouldShowSubtitle(Subtitle subtitle)
 {
     if ((subtitle != null) && (settings != null) && (settings.subtitleSettings != null))
     {
         if (subtitle.formattedText.noSubtitle || string.Equals(subtitle.sequence, "None()") || string.Equals(subtitle.sequence, "None();"))
         {
             return(false);
         }
         if ((subtitle.speakerInfo.characterType == CharacterType.NPC) && settings.GetShowNPCSubtitlesDuringLine())
         {
             return(true);
         }
         if ((subtitle.speakerInfo.characterType == CharacterType.PC) && settings.GetShowPCSubtitlesDuringLine())
         {
             return(!(_lastModeWasResponseMenu && settings.GetSkipPCSubtitleAfterResponseMenu()));
         }
     }
     return(false);
 }