Colour pixel-art toolbar icon; studio_live screenshots through ViewportCapture (sRGB)

This commit is contained in:
cthangover committed 2026-10-23 09:03:54 +02:00
1 parent 164194ef50
commit 0b82bad3fd
2 files changed
+2 -1

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.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}");
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB