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

@@ -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