Enhance AIImages mod by adding debug logging for image clearing and window redraw events, improving visibility into state changes. Update AIImages.dll to reflect these changes.

This commit is contained in:
Leonid Pershin
2025-10-28 19:22:22 +03:00
parent beb1e2b2fc
commit 5f8f29a7dc
2 changed files with 5 additions and 0 deletions

Binary file not shown.

View File

@@ -162,6 +162,8 @@ namespace AIImages
totalSteps = 0; totalSteps = 0;
etaSeconds = 0.0; etaSeconds = 0.0;
DebugLogger.Log($"[AI Images] Cleared generated image for {newPawn?.Name}");
// Сбрасываем состояние сворачиваемых секций // Сбрасываем состояние сворачиваемых секций
showPositivePrompt = false; showPositivePrompt = false;
showNegativePrompt = false; showNegativePrompt = false;
@@ -177,6 +179,9 @@ namespace AIImages
this.InitialSize.y this.InitialSize.y
); );
// Принудительно перерисовываем окно
this.SetInitialSizeAndPosition();
DebugLogger.Log($"[AI Images] UpdatePawn completed for {newPawn?.Name}"); DebugLogger.Log($"[AI Images] UpdatePawn completed for {newPawn?.Name}");
} }