public override void OnLineStyleUpdated(string styleName)
        {
            DialogueStyle characterStyle = StylesController.GetStyle(styleName);

            CurrentStyle = characterStyle;

            TextManager.SetStyle(characterStyle.TextStyle);

            VoiceManager.SetStyle(characterStyle.VoiceStyle);
        }
Ejemplo n.º 2
0
        private DialogueStyle GetRawStyle(string characterName)
        {
            DialogueStyle characterStyle = DefaultStyle;

            if (Styles.ContainsKey(characterName))
            {
                characterStyle = Styles[characterName];
            }

            return(characterStyle);
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
 private void AddStyle(string characterName, DialogueStyle characterStyle)
 {
     Styles[characterName] = characterStyle;
 }