private void Logo_OnMouseUp(object sender, MouseButtonEventArgs e) { #if DEBUG var result = MessageBox.Show("Yes: FTS\nNo: Save troubleshooting\nCancel: Cancel", "XIVLauncher Expert Debugging Interface", MessageBoxButton.YesNoCancel, MessageBoxImage.Question); switch (result) { case MessageBoxResult.Yes: var fts = new FirstTimeSetup(); fts.ShowDialog(); Log.Debug($"WasCompleted: {fts.WasCompleted}"); this.ReloadSettings(); break; case MessageBoxResult.No: MessageBox.Show(PackGenerator.SavePack()); break; case MessageBoxResult.Cancel: return; } #else if (_hasTriggeredLogo) { return; } Process.Start("explorer.exe", $"/select, \"{PackGenerator.SavePack()}\""); _hasTriggeredLogo = true; #endif }
public void Start() { PackGenerator packGen = new PackGenerator(); packGen.getPack(100, PackGenerator.PackTypes.Casters); arenaField = new Battlefield("testArena", "4x4", 4, 4); // test manual init arenaField.setupMonstersOnBattlefield(packGen.generatedPack); }
// Use this for initialization void Awake() { if (instance == null) { instance = this; } else { Destroy(this); } }
static void Main(string[] args) { if (String.IsNullOrEmpty(Command)) { Help.Print(); return; } #if !DEBUG try { #endif switch (Command) { case "docs": { DocGenerator.Run(); break; } case "sort": { TableSorter.Run(); break; } case "pack": { PackGenerator.Run(); break; } case "build": { // TODO: compiler command WriteLine("Sorry, this command isn't implemented yet :("); break; } case "help": { foreach (var name in GetPaths()) { WriteLine($"'{name}'"); switch (name.ToLower()) { case "docs": DocGenerator.GetHelp(); break; case "sort": TableSorter.GetHelp(); break; case "pack": PackGenerator.GetHelp(); break; case "help": WriteLine("Are you serious?"); break; default: WriteLine($"No help info found for '{name}'"); break; } WriteLine(); } break; } default: WriteLine($"Unknown command: '{Command}'"); break; } #if !DEBUG } catch (Exception ex) { ForegroundColor = ConsoleColor.Red; WriteLine(ex.Message); ResetColor(); Environment.Exit(1); } #endif }