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

@@ -816,7 +816,7 @@ def pbDebugFixInvalidTiles
changed = false
map = mapData.getMap(id)
next if !map || !mapData.mapinfos[id]
Win32API.SetWindowText(_INTL("Processing map {1} ({2})", id, mapData.mapinfos[id].name))
pbSetWindowText(_INTL("Processing map {1} ({2})", id, mapData.mapinfos[id].name))
passages = mapData.getTilesetPassages(map, id)
# Check all tiles in map for non-existent tiles
for x in 0...map.data.xsize

View File

@@ -317,28 +317,28 @@ end
def pbSaveMachines
machines = pbLoadSpeciesTMData
return if !machines
File.open("PBS/tm.txt","wb") { |f|
File.open("PBS/tm.txt", "wb") { |f|
f.write(0xEF.chr)
f.write(0xBB.chr)
f.write(0xBF.chr)
f.write("\# "+_INTL("See the documentation on the wiki to learn how to edit this file."))
f.write("\# " + _INTL("See the documentation on the wiki to learn how to edit this file."))
f.write("\r\n")
keys = machines.keys.sort { |a, b| GameData::Move.get(a).id_number <=> GameData::Move.get(b).id_number }
for i in 0...keys.length
Graphics.update if i%50==0
Win32API.SetWindowText(_INTL("Writing move {1}/{2}",i,keys.length)) if i%20==0
pbSetWindowText(_INTL("Writing move {1}/{2}", i, keys.length)) if i % 20 == 0
next if !machines[keys[i]]
movename = GameData::Move.get(keys[i]).id.to_s
next if !movename || movename==""
next if !movename || movename == ""
f.write("\#-------------------------------\r\n")
f.write(sprintf("[%s]\r\n",movename))
f.write(sprintf("[%s]\r\n", movename))
x = []
machines[keys[i]].each do |species|
speciesname = getConstantName(PBSpecies,species) rescue pbGetSpeciesConst(species) rescue nil
next if !speciesname || speciesname==""
speciesname = getConstantName(PBSpecies, species) rescue pbGetSpeciesConst(species) rescue nil
next if !speciesname || speciesname == ""
x.push(speciesname)
end
f.write(x.join(",")+"\r\n")
f.write(x.join(",") + "\r\n")
end
}
end
@@ -855,7 +855,7 @@ def pbSavePokemonData
end
if i%20==0
Graphics.update
Win32API.SetWindowText(_INTL("Processing species {1}...",i))
pbSetWindowText(_INTL("Processing species {1}...",i))
end
end
pokedata.close
@@ -1317,7 +1317,7 @@ def pbSavePokemonFormsData
end
if i%20==0
Graphics.update
Win32API.SetWindowText(_INTL("Processing species {1}...",i))
pbSetWindowText(_INTL("Processing species {1}...",i))
end
end
pokedata.close

View File

@@ -50,7 +50,7 @@ module ShadowText
elsif align==1
x+=(w/2)-(width/2)
end
pbDrawShadowText(bitmap,x,y,w,h,t,
pbDrawShadowText(bitmap,x,y+6,w,h,t,
disabled ? Color.new(26*8,26*8,25*8) : Color.new(12*8,12*8,12*8),
Color.new(26*8,26*8,25*8))
end
@@ -3485,7 +3485,7 @@ end
# Main
################################################################################
def animationEditorMain(animation)
viewport=Viewport.new(0,0,(512+288)*$ResizeFactor,(384+288)*$ResizeFactor)
viewport=Viewport.new(0, 0, SCREEN_WIDTH + 288, SCREEN_HEIGHT + 288)
viewport.z=99999
# Canvas
canvas=AnimationCanvas.new(animation[animation.selected],viewport)
@@ -3719,16 +3719,11 @@ def pbAnimationEditor
animation=PBAnimations.new
animation[0].graphic=""
end
oldsize=Win32API.client_size
oldzoom = $PokemonSystem.screensize
oldborder = $PokemonSystem.border
$PokemonSystem.border = 0
pbSetResizeFactor
Win32API.SetWindowPos((512+288)*$ResizeFactor,(384+288)*$ResizeFactor)
Graphics.resize_screen(SCREEN_WIDTH + 288, SCREEN_HEIGHT + 288)
pbSetResizeFactor(1)
animationEditorMain(animation)
$PokemonSystem.border = oldborder
pbSetResizeFactor(oldzoom)
Win32API.SetWindowPos(oldsize[0],oldsize[1])
Graphics.resize_screen(SCREEN_WIDTH, SCREEN_HEIGHT)
pbSetResizeFactor($PokemonSystem.screensize)
$game_map.autoplay if $game_map
end