/** * <summary>Creates a new instance of the 'Menu: Set Input box text' Action, set to update an InputBox element from a Global String variable</summary> * <param name = "menuName">The name of the Menu containing the InputBox element</param> * <param name = "inputBoxElementName">The name of the InputBox element</param> * <param name = "globalStringVariableID">The ID number of the Global String variable with the InputBox element's new display text</param> * <returns>The generated Action</returns> */ public static ActionMenuSetInputBox CreateNew_SetFromVariable(string menuName, string inputBoxElementName, int globalStringVariableID) { ActionMenuSetInputBox newAction = (ActionMenuSetInputBox)CreateInstance <ActionMenuSetInputBox>(); newAction.menuName = menuName; newAction.elementName = inputBoxElementName; newAction.varID = globalStringVariableID; return(newAction); }
/** * <summary>Creates a new instance of the 'Menu: Set Input box text' Action, set to update an InputBox element directly</summary> * <param name = "menuName">The name of the Menu containing the InputBox element</param> * <param name = "inputBoxElementName">The name of the InputBox element</param> * <param name = "newText">The new text to display in the InputBox element</param> * <returns>The generated Action</returns> */ public static ActionMenuSetInputBox CreateNew_SetDirectly(string menuName, string inputBoxElementName, string newText) { ActionMenuSetInputBox newAction = (ActionMenuSetInputBox)CreateInstance <ActionMenuSetInputBox>(); newAction.menuName = menuName; newAction.elementName = inputBoxElementName; newAction.newLabel = newText; return(newAction); }