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;
|
||||||
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 |
Reference in new issue
Block a user