mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 21:54:58 +00:00
Updated pbCaptureScreen
This commit is contained in:
@@ -96,7 +96,11 @@ def pbScreenCapture
|
|||||||
filestart = sprintf("%s.%03d",filestart,(t.to_f-t.to_i)*1000) # milliseconds
|
filestart = sprintf("%s.%03d",filestart,(t.to_f-t.to_i)*1000) # milliseconds
|
||||||
capturefile = RTP.getSaveFileName(sprintf("%s.png",filestart))
|
capturefile = RTP.getSaveFileName(sprintf("%s.png",filestart))
|
||||||
if capturefile && safeExists?("rubyscreen.dll")
|
if capturefile && safeExists?("rubyscreen.dll")
|
||||||
|
if mkxp?
|
||||||
|
Graphics.screenshot(capturefile)
|
||||||
|
else
|
||||||
Graphics.snap_to_bitmap(false).saveToPng(capturefile)
|
Graphics.snap_to_bitmap(false).saveToPng(capturefile)
|
||||||
|
end
|
||||||
pbSEPlay("Pkmn exp full") if FileTest.audio_exist?("Audio/SE/Pkmn exp full")
|
pbSEPlay("Pkmn exp full") if FileTest.audio_exist?("Audio/SE/Pkmn exp full")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user