protected void DrawArugments() { ArgumentDescriptionAttribute[] ArgTypes = CheatCommand.argumentsTypes; string[] Arguments = CheatCommand.arguments; int DrawCount = 0; if (ArgTypes != null && ArgTypes.Length > 0) { DebugHelper.Assert(ArgTypes.Length == Arguments.Length); for (int i = 0; i < ArgTypes.Length; ++i) { ArgumentDescriptionAttribute ArgAttr = ArgTypes[i]; if (!DrawArgument(ArgAttr, i, ArgTypes, ref Arguments, ref Arguments[i])) { break; } ++DrawCount; } } if (DrawButton(CheatCommand.comment)) { logger.AddMessage(CheatCommand.StartProcess(Arguments)); } }
private void DrawCommand(string InGroupName, string InName, ICheatCommand InCommand) { GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true)); ArgumentDescriptionAttribute[] ArgTypes = InCommand.argumentsTypes; string[] Arguments = InCommand.arguments; if (ArgTypes != null && ArgTypes.Length > 0) { DebugHelper.Assert(ArgTypes.Length == Arguments.Length); for (int i = 0; i < ArgTypes.Length; ++i) { ArgumentDescriptionAttribute ArgAttr = ArgTypes[i]; if (!DrawArgument(ArgAttr, ArgTypes, ref Arguments, ref Arguments[i])) { break; } } } if (GUILayout.Button(InCommand.comment, GUILayout.Width(InCommand.comment.Length * 12 + 10))) { Logger.AddMessage(InCommand.StartProcess(Arguments)); } GUILayout.EndHorizontal(); }
protected void DrawCommands() { var Iter = currentGroup.Commands.GetEnumerator(); int Index = 0; while (Iter.MoveNext()) { if (Iter.Current.Value.isHiddenInMobile) { continue; } GUILayout.BeginHorizontal(); try { string FunctionName = Iter.Current.Value.comment; if (Count++ >= ParentView.skipCount) { if (DrawButton(FunctionName, Iter.Current.Value.fullyHelper)) { ICheatCommand Command = Iter.Current.Value; if (Command.argumentsTypes == null || Command.argumentsTypes.Length == 0) { // execute this command directly. logger.AddMessage(Command.StartProcess(new string[] { "" })); } else { logger.Clear(); ParentView.SelectionCommand(Iter.Current.Value); break; } } GUILayout.Label(GUI.tooltip, ParentView.CustomLabelStyle); GUI.tooltip = ""; } ++Index; } finally { GUILayout.EndHorizontal(); } GUILayout.Space(SpaceHeight); } }
protected void DrawCommands() { DictionaryView <string, ICheatCommand> .Enumerator enumerator = this.currentGroup.Commands.GetEnumerator(); int num = 0; while (enumerator.MoveNext()) { KeyValuePair <string, ICheatCommand> current = enumerator.Current; if (!current.get_Value().isHiddenInMobile) { GUILayout.BeginHorizontal(new GUILayoutOption[0]); try { KeyValuePair <string, ICheatCommand> current2 = enumerator.Current; string comment = current2.get_Value().comment; if (this.Count++ >= this.ParentView.skipCount) { string arg_92_1 = comment; KeyValuePair <string, ICheatCommand> current3 = enumerator.Current; if (base.DrawButton(arg_92_1, current3.get_Value().fullyHelper)) { KeyValuePair <string, ICheatCommand> current4 = enumerator.Current; ICheatCommand value = current4.get_Value(); if (value.argumentsTypes != null && value.argumentsTypes.Length != 0) { base.logger.Clear(); ConsoleViewMobile arg_10A_0 = this.ParentView; KeyValuePair <string, ICheatCommand> current5 = enumerator.Current; arg_10A_0.SelectionCommand(current5.get_Value()); break; } base.logger.AddMessage(value.StartProcess(new string[] { string.Empty })); } GUILayout.Label(GUI.tooltip, this.ParentView.CustomLabelStyle, new GUILayoutOption[0]); GUI.tooltip = string.Empty; } num++; } finally { GUILayout.EndHorizontal(); } GUILayout.Space((float)CommandDisplayBasicState.SpaceHeight); } } }
protected void DrawCommands() { DictionaryView <string, ICheatCommand> .Enumerator enumerator = this.currentGroup.Commands.GetEnumerator(); int num = 0; while (enumerator.MoveNext()) { KeyValuePair <string, ICheatCommand> current = enumerator.Current; if (!current.Value.isHiddenInMobile) { GUILayout.BeginHorizontal(new GUILayoutOption[0]); try { KeyValuePair <string, ICheatCommand> pair2 = enumerator.Current; string comment = pair2.Value.comment; if (this.Count++ >= base.ParentView.skipCount) { KeyValuePair <string, ICheatCommand> pair3 = enumerator.Current; if (base.DrawButton(comment, pair3.Value.fullyHelper)) { KeyValuePair <string, ICheatCommand> pair4 = enumerator.Current; ICheatCommand command = pair4.Value; if ((command.argumentsTypes == null) || (command.argumentsTypes.Length == 0)) { string[] inArguments = new string[] { string.Empty }; base.logger.AddMessage(command.StartProcess(inArguments)); } else { base.logger.Clear(); KeyValuePair <string, ICheatCommand> pair5 = enumerator.Current; base.ParentView.SelectionCommand(pair5.Value); break; } } GUILayout.Label(GUI.tooltip, base.ParentView.CustomLabelStyle, new GUILayoutOption[0]); GUI.tooltip = string.Empty; } num++; } finally { GUILayout.EndHorizontal(); } GUILayout.Space((float)CommandDisplayBasicState.SpaceHeight); } } }
private void DrawCommand(string InGroupName, string InName, ICheatCommand InCommand) { GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true)); ArgumentDescriptionAttribute[] ArgTypes = InCommand.argumentsTypes; string[] Arguments = InCommand.arguments; if (ArgTypes != null && ArgTypes.Length > 0) { DebugHelper.Assert(ArgTypes.Length == Arguments.Length); for (int i = 0; i < ArgTypes.Length; ++i) { ArgumentDescriptionAttribute ArgAttr = ArgTypes[i]; if (!DrawArgument(ArgAttr, ArgTypes, ref Arguments, ref Arguments[i])) { break; } } } if (GUILayout.Button(InCommand.comment, GUILayout.Width(InCommand.comment.Length * 12 + 10))) { Logger.AddMessage(InCommand.StartProcess(Arguments)); } GUILayout.EndHorizontal(); }