Colour pixel-art toolbar icon; studio_live screenshots through ViewportCapture (sRGB)
This commit is contained in:
1 parent
164194ef50
commit
0b82bad3fd
2 files changed
+2
-1
No files matched your search
@@ -10,6 +10,7 @@ namespace Cthangover.Mods.ScenarioStudio.Tests.Live
|
||||
using Cthangover.Mods.Dialog;
|
||||
using Cthangover.Mods.Dialog.Action.Impls;
|
||||
using Cthangover.Mods.Dialog.Executable;
|
||||
using Cthangover.Mods.Interface.View;
|
||||
using Godot;
|
||||
|
||||
/// <summary>
|
||||
@@ -598,7 +599,7 @@ namespace Cthangover.Mods.ScenarioStudio.Tests.Live
|
||||
var dir = ProjectSettings.GlobalizePath(_shotsDir);
|
||||
Directory.CreateDirectory(dir);
|
||||
var path = Path.Combine(dir, id + ".png");
|
||||
GetViewport().GetTexture().GetImage().SavePng(path);
|
||||
ViewportCapture.SavePng(GetViewport(), path);
|
||||
Log($"screenshot {path}");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user