Abolished screen border, screenshots are now png format, removed Sprite Resizer scripts, credited mkxp-z

This commit is contained in:
Maruno17
2020-11-24 22:41:05 +00:00
parent 4af57f6501
commit bba24abc1a
18 changed files with 186 additions and 871 deletions

View File

@@ -21,14 +21,7 @@ def pbChooseLanguage
end
if !respond_to?("pbSetResizeFactor")
def pbSetResizeFactor(dummy,dummy2=false); end
def setScreenBorderName(border); end
$ResizeFactor = 1.0
$ResizeFactorMul = 100
$ResizeOffsetX = 0
$ResizeOffsetY = 0
$ResizeFactorSet = false
def pbSetResizeFactor(dummy); end
module Graphics
def self.snap_to_bitmap; return nil; end
@@ -62,12 +55,12 @@ def pbSetUpSystem
game_system = Game_System.new
pokemonSystem = PokemonSystem.new
end
if !$INEDITOR
if $INEDITOR
pbSetResizeFactor(1.0)
else
$game_system = game_system
$PokemonSystem = pokemonSystem
pbSetResizeFactor([$PokemonSystem.screensize,3].min)
else
pbSetResizeFactor(1.0)
pbSetResizeFactor([$PokemonSystem.screensize, 4].min)
end
# Load constants
begin
@@ -90,13 +83,10 @@ end
def pbScreenCapture
t = pbGetTimeNow
filestart = t.strftime("[%Y-%m-%d] %H_%M_%S")
filestart = sprintf("%s.%03d",filestart,(t.to_f-t.to_i)*1000) # milliseconds
capturefile = RTP.getSaveFileName(sprintf("%s.bmp",filestart))
# if capturefile && safeExists?("rubyscreen.dll")
Graphics.screenshot(capturefile)
# Graphics.snap_to_bitmap.saveToPng(capturefile)
pbSEPlay("Pkmn exp full") if FileTest.audio_exist?("Audio/SE/Pkmn exp full")
# end
filestart = sprintf("%s.%03d", filestart, (t.to_f - t.to_i) * 1000) # milliseconds
capturefile = RTP.getSaveFileName(sprintf("%s.png", filestart))
Graphics.snap_to_bitmap.save_to_png(capturefile)
pbSEPlay("Pkmn exp full") if FileTest.audio_exist?("Audio/SE/Pkmn exp full")
end
def pbDebugF7