public override void OnGUI() { GUI.contentColor = Color.green; try { DictionaryView <string, CheatCommandGroup> repositories = Singleton <CheatCommandsRepository> .instance.repositories; DebugHelper.Assert(repositories != null); DictionaryView <string, CheatCommandGroup> .Enumerator enumerator = repositories.GetEnumerator(); int num = 0; int num2 = 0; while (enumerator.MoveNext()) { KeyValuePair <string, CheatCommandGroup> current = enumerator.Current; string key = current.get_Key(); if (num2++ >= this.ParentView.skipCount && base.DrawButton(key, string.Empty)) { ConsoleViewMobile arg_80_0 = this.ParentView; KeyValuePair <string, CheatCommandGroup> current2 = enumerator.Current; arg_80_0.SelectGroup(current2.get_Value()); break; } GUILayout.Space((float)CommandDisplayBasicState.SpaceHeight); num++; } } finally { GUI.contentColor = Color.white; } }
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 DrawGroups() { DictionaryView <string, CheatCommandGroup> .Enumerator enumerator = this.currentGroup.ChildrenGroups.GetEnumerator(); while (enumerator.MoveNext()) { KeyValuePair <string, CheatCommandGroup> current = enumerator.Current; string key = current.get_Key(); if (this.Count++ >= this.ParentView.skipCount && base.DrawButton(key, string.Empty)) { ConsoleViewMobile arg_6E_0 = this.ParentView; KeyValuePair <string, CheatCommandGroup> current2 = enumerator.Current; arg_6E_0.SelectGroup(current2.get_Value()); } GUILayout.Space((float)CommandDisplayBasicState.SpaceHeight); } }
public CommandInGroupDisplayState(ConsoleWindow InParentWindow, ConsoleViewMobile InParentView) : base(InParentWindow, InParentView) { }
public CommandDisplayBasicState(ConsoleWindow InParentWindow, ConsoleViewMobile InParentView) { this.ParentWindow = InParentWindow; this.ParentView = InParentView; }