private void OnReverseLampshow(LampShow x) { //Select a lampshow before reversing if (x != null) { Log($"Reversing Lampshow. {x.Key}"); var reverseFileName = _lampshowPath + $"\\{Path.GetFileNameWithoutExtension(x.File)}_reversed{Path.GetExtension(x.File)}"; var result = _lampshowEdit.ReverseLampshowFile(Path.Combine(_lampshowPath, x.File), reverseFileName); if (!string.IsNullOrWhiteSpace(result)) { if (!this.AssetFiles.Any(s => s == result)) { this.AssetFiles.Add(result); Log("Reverse Lampshow added"); return; } Log("Lampshow reversed but not added, already exists.", Category.Warn); } else { Log($"Failed to reverse Lampshow. {x.Key}", Category.Warn); } } }
public LampShowMode(IGameController game) : base(game, 3) { this.Lampshow = new LampShow(game); this.ShowOver = true; }