Exemple #1
0
        /**
         * <summary>Creates a new instance of the 'Save: Set Option' Action, set to change the state of subtitles</summary>
         * <param name = "newState">If True, subtitles will be enabled</param>
         * <returns>The generated Action</returns>
         */
        public static ActionOptionSet CreateNew_Subtitles(bool newState)
        {
            ActionOptionSet newAction = (ActionOptionSet)CreateInstance <ActionOptionSet>();

            newAction.method = OptionSetMethod.Subtitles;
            newAction.index  = (newState) ? 1 : 0;
            return(newAction);
        }
Exemple #2
0
        /**
         * <summary>Creates a new instance of the 'Save: Set Option' Action, set to change the speech volume</summary>
         * <param name = "newVolume">The new speech volume, as a decimal</param>
         * <returns>The generated Action</returns>
         */
        public static ActionOptionSet CreateNew_SpeechVolume(float newVolume)
        {
            ActionOptionSet newAction = (ActionOptionSet)CreateInstance <ActionOptionSet>();

            newAction.method = OptionSetMethod.SpeechVolume;
            newAction.volume = newVolume;
            return(newAction);
        }
Exemple #3
0
        /**
         * <summary>Creates a new instance of the 'Save: Set Option' Action, set to change the active language</summary>
         * <param name = "languageIndex">The index number of the new language</param>
         * <param name = "splitLanguageType">Whether to switch text language, voice language, or both</param>
         * <returns>The generated Action</returns>
         */
        public static ActionOptionSet CreateNew_Language(int languageIndex, SplitLanguageType splitLanguageType = SplitLanguageType.TextAndVoice)
        {
            ActionOptionSet newAction = (ActionOptionSet)CreateInstance <ActionOptionSet>();

            newAction.method            = OptionSetMethod.Language;
            newAction.index             = languageIndex;
            newAction.splitLanguageType = splitLanguageType;
            return(newAction);
        }