6.4 update (minus sprites)

This commit is contained in:
infinitefusion
2024-12-21 09:43:11 -05:00
parent f70c2cfde4
commit 1e325366d2
1717 changed files with 140299 additions and 27845 deletions

View File

@@ -1,6 +1,7 @@
#===============================================================================
#
#===============================================================================
class AnimatedBitmap
attr_reader :path
attr_reader :filename
@@ -23,6 +24,19 @@ class AnimatedBitmap
end
end
def setup_from_bitmap(bitmap,hue=0)
@path = ""
@filename = ""
@bitmap = GifBitmap.new("", '', hue)
@bitmap.bitmap = bitmap;
end
def self.from_bitmap(bitmap, hue=0)
obj = allocate
obj.send(:setup_from_bitmap, bitmap, hue)
obj
end
def pbSetColor(r = 0, g = 0, b = 0, a = 255)
color = Color.new(r, g, b, a)
pbSetColorValue(color)
@@ -40,7 +54,7 @@ class AnimatedBitmap
def shiftColors(offset = 0)
@bitmap = GifBitmap.new(@path, @filename, offset)
@bitmap.bitmap.hue_change(offset)
end
def [](index)
@@ -133,6 +147,7 @@ class AnimatedBitmap
end
#===============================================================================
#
#===============================================================================