static public void ShowCommands() { var commands = table .Select(pair => string.Format( "- <b><i><color=#88ff88ff>{0}</color></i></b>\n" + "{1}", pair.Key, pair.Value.description)) .Aggregate((str, x) => str + "\n" + x); Log.Output(commands); }
static public void ShowCommands() { var commands = commands_ .Select(x => string.Format( "- <b><i><color=#88ff88ff>{0}</color></i></b>\n" + "{1}", x.command, x.description)) .Aggregate((str, x) => str + "\n" + x); Log.Output(commands); }
static public void ShowHistory() { if (Window.selected == null) { return; } string histories = ""; int num = Window.selected.history.Count; foreach (var command in Window.selected.history.list.ToArray().Reverse()) { histories += string.Format("{0}: {1}\n", num, command); --num; } Log.Output(histories); }
static public void ShowHelp() { var help = AssetHelper.Load <TextAsset>(helpTextFile); Log.Output(help.text); }
static public void ShowUsing() { Log.Output(GetUsing()); }
static public void ShowVars() { Log.Output(GetVars()); }
static public void ShowHelp() { var help = Resources.Load(helpTextFile) as TextAsset; Log.Output(help.text); }