Exemplo n.º 1
0
        /**
         * <summary>Creates a new instance of the 'Save: Manage profile' Action, set to create a new profile</summary>
         * <param name = "labelGlobalStringVariableID">If non-negative, the ID number of a Global String variable whose value will be used as the new profile's label</param>
         * <returns>The generated Action</returns>
         */
        public static ActionManageProfiles CreateNew_CreateProfile(int labelGlobalStringVariableID = -1)
        {
            ActionManageProfiles newAction = (ActionManageProfiles)CreateInstance <ActionManageProfiles>();

            newAction.manageProfileType = ManageProfileType.CreateProfile;
            newAction.useCustomLabel    = (labelGlobalStringVariableID >= 0);
            newAction.varID             = labelGlobalStringVariableID;
            return(newAction);
        }
Exemplo n.º 2
0
        /**
         * <summary>Creates a new instance of the 'Save: Manage profile' Action, set to select a profile</summary>
         * <param name = "deleteProfileType">The type of profile to select</param>
         * <param name = "menuName">The name of the menu containing the ProfilesList element</param>
         * <param name = "elementName">The name of the ProfilesList element</param>
         * <param name = "indexOrID">The index or variable ID number referenced by the selectProfileType</param>
         * <returns>The generated Action</returns>
         */
        public static ActionManageProfiles CreateNew_SwitchActiveProfile(DeleteProfileType selectProfileType, string menuName, string elementName, int indexOrID)
        {
            ActionManageProfiles newAction = (ActionManageProfiles)CreateInstance <ActionManageProfiles>();

            newAction.manageProfileType = ManageProfileType.SwitchActiveProfile;
            newAction.deleteProfileType = selectProfileType;
            newAction.profileIndex      = indexOrID;
            newAction.slotVarID         = indexOrID;
            return(newAction);
        }
Exemplo n.º 3
0
        /**
         * <summary>Creates a new instance of the 'Save: Manage profile' Action, set to rename a profile</summary>
         * <param name = "deleteProfileType">The type of profile to rename</param>
         * <param name = "menuName">The name of the menu containing the ProfilesList element</param>
         * <param name = "elementName">The name of the ProfilesList element</param>
         * <param name = "indexOrID">The index or variable ID number referenced by the renameProfileType</param>
         * <returns>The generated Action</returns>
         */
        public static ActionManageProfiles CreateNew_RenameProfile(int labelGlobalStringVariableID, DeleteProfileType renameProfileType, string menuName, string elementName, int indexOrID)
        {
            ActionManageProfiles newAction = (ActionManageProfiles)CreateInstance <ActionManageProfiles>();

            newAction.manageProfileType = ManageProfileType.RenameProfile;
            newAction.deleteProfileType = renameProfileType;
            newAction.varID             = labelGlobalStringVariableID;
            newAction.profileIndex      = indexOrID;
            newAction.slotVarID         = indexOrID;
            return(newAction);
        }