private void OnSpriteTextureTranslation(object sender, TextureTranslationEventArgs e) { if (string.IsNullOrEmpty(e.Name)) { Logger.Log(LogLevel.Debug, $"Sprite({(sender as Image)?.name}) skipped due to name is empty."); return; } if (Resource.TranslateSprite(CurrentScene, e, out var resource)) { e.Translation = resource; Logger.Log(LogLevel.Debug, $"Sprite '{e.Name}' translated."); } else { try { if (Dumper.DumpSprite(CurrentScene, e)) { Logger.Log(LogLevel.Debug, $"Sprite '{e.Name}' dumped."); } } catch (Exception ex) { Logger.Log(LogLevel.Error, ex); } } }