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

            CurrentStyle = characterStyle;

            TextManager.SetStyle(characterStyle.TextStyle);

            VoiceManager.SetStyle(characterStyle.VoiceStyle);
        }
예제 #2
0
        private DialogueStyle GetRawStyle(string characterName)
        {
            DialogueStyle characterStyle = DefaultStyle;

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

            return(characterStyle);
        }
예제 #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);
        }
예제 #4
0
 private void AddStyle(string characterName, DialogueStyle characterStyle)
 {
     Styles[characterName] = characterStyle;
 }