song result screenshot implementation

This commit is contained in:
Hersi 2021-12-02 04:16:05 +01:00
parent 8e9c9d38fc
commit 571631a433
1 changed files with 9 additions and 0 deletions

View File

@ -174,6 +174,7 @@ local irHeartbeatRequested = false;
local irText = '' local irText = ''
game.LoadSkinSample("result") game.LoadSkinSample("result")
game.LoadSkinSample("shutter")
local handleSfx = function() local handleSfx = function()
if not bgSfxPlayed then if not bgSfxPlayed then
@ -722,3 +723,11 @@ render = function(deltaTime, showStats)
tickTransitions(deltaTime) tickTransitions(deltaTime)
end end
get_capture_rect = function ()
return (resX - fullX) / 2, 0, fullX, fullY
end
screenshot_captured = function(path)
game.PlaySample("shutter")
end