The Great Enspacening begins!

This commit is contained in:
Maruno17
2021-12-18 12:20:31 +00:00
parent 2480ab0f9e
commit f7b76ae62e
138 changed files with 567 additions and 567 deletions

View File

@@ -2,7 +2,7 @@
# Miniature game map drawing
#===============================================================================
class MapSprite
def initialize(map,viewport=nil)
def initialize(map,viewport = nil)
@sprite=Sprite.new(viewport)
@sprite.bitmap=createMinimap(map)
@sprite.x=(Graphics.width/2)-(@sprite.bitmap.width/2)
@@ -38,7 +38,7 @@ end
#
#===============================================================================
class SelectionSprite < Sprite
def initialize(viewport=nil)
def initialize(viewport = nil)
@sprite=Sprite.new(viewport)
@sprite.bitmap=nil
@sprite.z=2
@@ -87,7 +87,7 @@ end
#
#===============================================================================
class RegionMapSprite
def initialize(map,viewport=nil)
def initialize(map,viewport = nil)
@sprite=Sprite.new(viewport)
@sprite.bitmap=createRegionMap(map)
@sprite.x=(Graphics.width/2)-(@sprite.bitmap.width/2)

View File

@@ -10,7 +10,7 @@ def pbGetLegalMoves(species)
return moves
end
def pbSafeCopyFile(x,y,z=nil)
def pbSafeCopyFile(x,y,z = nil)
if safeExists?(x)
safetocopy = true
filedata = nil
@@ -245,7 +245,7 @@ end
#===============================================================================
# General list methods
#===============================================================================
def pbCommands2(cmdwindow,commands,cmdIfCancel,defaultindex=-1,noresize=false)
def pbCommands2(cmdwindow,commands,cmdIfCancel,defaultindex = -1,noresize = false)
cmdwindow.commands = commands
cmdwindow.index = defaultindex if defaultindex>=0
cmdwindow.x = 0
@@ -282,7 +282,7 @@ def pbCommands2(cmdwindow,commands,cmdIfCancel,defaultindex=-1,noresize=false)
return ret
end
def pbCommands3(cmdwindow,commands,cmdIfCancel,defaultindex=-1,noresize=false)
def pbCommands3(cmdwindow,commands,cmdIfCancel,defaultindex = -1,noresize = false)
cmdwindow.commands = commands
cmdwindow.index = defaultindex if defaultindex>=0
cmdwindow.x = 0
@@ -378,7 +378,7 @@ def pbChooseList(commands, default = 0, cancelValue = -1, sortType = 1)
return itemID
end
def pbCommandsSortable(cmdwindow,commands,cmdIfCancel,defaultindex=-1,sortable=false)
def pbCommandsSortable(cmdwindow,commands,cmdIfCancel,defaultindex = -1,sortable = false)
cmdwindow.commands = commands
cmdwindow.index = defaultindex if defaultindex >= 0
cmdwindow.x = 0

View File

@@ -78,7 +78,7 @@ end
def pbSpriteHitTest(sprite,x,y,usealpha=true,wholecanvas=false)
def pbSpriteHitTest(sprite,x,y,usealpha = true,wholecanvas = false)
return false if !sprite || sprite.disposed?
return false if !sprite.bitmap
return false if !sprite.visible
@@ -170,7 +170,7 @@ class AnimationWindow < SpriteWrapper
NUMFRAMES=5
def initialize(x,y,width,height,viewport=nil)
def initialize(x,y,width,height,viewport = nil)
super(viewport)
@animbitmap=nil
@arrows=AnimatedBitmap.new("Graphics/Pictures/arrows")
@@ -306,7 +306,7 @@ class CanvasAnimationWindow < AnimationWindow
return @canvas.animbitmap
end
def initialize(canvas,x,y,width,height,viewport=nil)
def initialize(canvas,x,y,width,height,viewport = nil)
@canvas=canvas
super(x,y,width,height,viewport)
end
@@ -318,7 +318,7 @@ end
# Cel sprite
################################################################################
class InvalidatableSprite < Sprite
def initialize(viewport=nil)
def initialize(viewport = nil)
super(viewport)
@invalid=false
end
@@ -362,7 +362,7 @@ class SpriteFrame < InvalidatableSprite
NUM_ROWS = (PBAnimation::MAX_SPRITES.to_f/10).ceil # 10 frame number icons in each row
def initialize(id,sprite,viewport,previous=false)
def initialize(id,sprite,viewport,previous = false)
super(viewport)
@id=id
@sprite=sprite
@@ -436,7 +436,7 @@ class AnimationCanvas < Sprite
BORDERSIZE=64
def initialize(animation,viewport=nil)
def initialize(animation,viewport = nil)
super(viewport)
@currentframe=0
@currentcel=-1
@@ -518,7 +518,7 @@ class AnimationCanvas < Sprite
super
end
def play(oppmove=false)
def play(oppmove = false)
if !@playing
@sprites["pokemon_0"]=Sprite.new(@viewport)
@sprites["pokemon_0"].bitmap=@user
@@ -1005,7 +1005,7 @@ end
class AnimationNameWindow
def initialize(canvas,x,y,width,height,viewport=nil)
def initialize(canvas,x,y,width,height,viewport = nil)
@canvas=canvas
@oldname=nil
@window=Window_UnformattedTextPokemon.newWithSize(

View File

@@ -1,5 +1,5 @@
module ShadowText
def shadowtext(bitmap,x,y,w,h,t,disabled=false,align=0)
def shadowtext(bitmap,x,y,w,h,t,disabled = false,align = 0)
width=bitmap.text_size(t).width
if align==2
x+=(w-width)

View File

@@ -4,7 +4,7 @@
class ControlPointSprite < SpriteWrapper
attr_accessor :dragging
def initialize(red,viewport=nil)
def initialize(red,viewport = nil)
super(viewport)
self.bitmap=Bitmap.new(6,6)
self.bitmap.fill_rect(0,0,6,1,Color.new(0,0,0))
@@ -51,7 +51,7 @@ end
class PointSprite < SpriteWrapper
def initialize(x,y,viewport=nil)
def initialize(x,y,viewport = nil)
super(viewport)
self.bitmap=Bitmap.new(2,2)
self.bitmap.fill_rect(0,0,2,2,Color.new(0,0,0))
@@ -129,7 +129,7 @@ class PointPath
@totaldist=0
end
def smoothPointPath(frames,roundValues=false)
def smoothPointPath(frames,roundValues = false)
if frames<0
raise ArgumentError.new("frames out of range: #{frames}")
end

View File

@@ -681,7 +681,7 @@ end
def chooseMapPoint(map,rgnmap=false)
def chooseMapPoint(map,rgnmap = false)
viewport=Viewport.new(0,0,Graphics.width,Graphics.height)
viewport.z=99999
title = Window_UnformattedTextPokemon.newWithSize(_INTL("Click a point on the map."),
@@ -1546,7 +1546,7 @@ end
#===============================================================================
# Core property editor script
#===============================================================================
def pbPropertyList(title,data,properties,saveprompt=false)
def pbPropertyList(title,data,properties,saveprompt = false)
viewport = Viewport.new(0,0,Graphics.width,Graphics.height)
viewport.z = 99999
list = pbListWindow([], Graphics.width / 2)

View File

@@ -59,7 +59,7 @@ class SpriteWindow_DebugVariables < Window_DrawableCommand
refresh
end
def shadowtext(x,y,w,h,t,align=0,colors=0)
def shadowtext(x,y,w,h,t,align = 0,colors = 0)
width = self.contents.text_size(t).width
if align==1 # Right aligned
x += (w-width)
@@ -364,7 +364,7 @@ class SpriteWindow_DebugRoamers < Window_DrawableCommand
return self.roamerCount+2
end
def shadowtext(t,x,y,w,h,align=0,colors=0)
def shadowtext(t,x,y,w,h,align = 0,colors = 0)
width = self.contents.text_size(t).width
if align==1
x += (w-width) # Right aligned
@@ -823,7 +823,7 @@ class PokemonDebugPartyScreen
return ret
end
def pbShowCommands(text,commands,index=0)
def pbShowCommands(text,commands,index = 0)
ret = -1
@helpWindow.visible = true
using(cmdwindow = Window_CommandPokemonColor.new(commands)) {
@@ -852,7 +852,7 @@ class PokemonDebugPartyScreen
return ret
end
def pbChooseMove(pkmn,text,index=0)
def pbChooseMove(pkmn,text,index = 0)
moveNames = []
for i in pkmn.moves
if i.total_pp<=0

View File

@@ -302,7 +302,7 @@ end
#
#===============================================================================
class MapLister
def initialize(selmap,addGlobal=false)
def initialize(selmap,addGlobal = false)
@sprite = SpriteWrapper.new
@sprite.bitmap = nil
@sprite.x = Graphics.width * 3 / 4