Removed all uses of SpriteWrapper (#184)

This commit is contained in:
Golisopod-User
2022-06-19 22:17:23 +05:30
committed by GitHub
parent 8b3d95943a
commit ad93eb7774
25 changed files with 50 additions and 61 deletions

View File

@@ -163,7 +163,7 @@ end
################################################################################
# Sprite sheet scrolling bar
################################################################################
class AnimationWindow < SpriteWrapper
class AnimationWindow < Sprite
attr_reader :animbitmap
attr_reader :start
attr_reader :selected

View File

@@ -1,7 +1,7 @@
################################################################################
# Paths and interpolation
################################################################################
class ControlPointSprite < SpriteWrapper
class ControlPointSprite < Sprite
attr_accessor :dragging
def initialize(red, viewport = nil)
@@ -50,7 +50,7 @@ end
class PointSprite < SpriteWrapper
class PointSprite < Sprite
def initialize(x, y, viewport = nil)
super(viewport)
self.bitmap = Bitmap.new(2, 2)

View File

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