Compare commits

...
1 Commits
2 changed files with 2 additions and 1 deletions

No files matched your search

+2 -1
View File
@@ -10,6 +10,7 @@ namespace Cthangover.Mods.ScenarioStudio.Tests.Live
using Cthangover.Mods.Dialog; using Cthangover.Mods.Dialog;
using Cthangover.Mods.Dialog.Action.Impls; using Cthangover.Mods.Dialog.Action.Impls;
using Cthangover.Mods.Dialog.Executable; using Cthangover.Mods.Dialog.Executable;
using Cthangover.Mods.Interface.View;
using Godot; using Godot;
/// <summary> /// <summary>
@@ -598,7 +599,7 @@ namespace Cthangover.Mods.ScenarioStudio.Tests.Live
var dir = ProjectSettings.GlobalizePath(_shotsDir); var dir = ProjectSettings.GlobalizePath(_shotsDir);
Directory.CreateDirectory(dir); Directory.CreateDirectory(dir);
var path = Path.Combine(dir, id + ".png"); var path = Path.Combine(dir, id + ".png");
GetViewport().GetTexture().GetImage().SavePng(path); ViewportCapture.SavePng(GetViewport(), path);
Log($"screenshot {path}"); Log($"screenshot {path}");
} }
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB