public override void OnLineStyleUpdated(string styleName) { DialogueStyle characterStyle = StylesController.GetStyle(styleName); CurrentStyle = characterStyle; TextManager.SetStyle(characterStyle.TextStyle); VoiceManager.SetStyle(characterStyle.VoiceStyle); }
private DialogueStyle GetRawStyle(string characterName) { DialogueStyle characterStyle = DefaultStyle; if (Styles.ContainsKey(characterName)) { characterStyle = Styles[characterName]; } return(characterStyle); }
public DialogueStyle GetStyle(string characterName) { DialogueStyle style = GetRawStyle(characterName); style.NormaliseDelay(0.1f, 0.1f, 1.0f); style.NormaliseSize(DialogueManager.GetTextSize(), 25, 50); style.NormaliseVolume(1.0f, 0.1f, 1.0f); style.NormalisePitch(2.0f, 1.0f, 3.0f); style.TextStyle.UpdateOptionals(DefaultStyle.TextStyle); style.VoiceStyle.UpdateOptionals(DefaultStyle.VoiceStyle); return(style); }
private void AddStyle(string characterName, DialogueStyle characterStyle) { Styles[characterName] = characterStyle; }