Compare commits
1
Commits
164194ef50
...
v0.1.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0b82bad3fd |
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}");
|
||||
}
|
||||
|
||||
|
||||
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