mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-21 13:45:59 +00:00
release 6.2
This commit is contained in:
@@ -3,6 +3,10 @@ module MessageConfig
|
||||
LIGHT_TEXT_SHADOW_COLOR = Color.new(72, 80, 88)
|
||||
DARK_TEXT_MAIN_COLOR = Color.new(80, 80, 88)
|
||||
DARK_TEXT_SHADOW_COLOR = Color.new(160, 160, 168)
|
||||
|
||||
BLUE_TEXT_MAIN_COLOR = Color.new(35, 130, 200)
|
||||
BLUE_TEXT_SHADOW_COLOR = Color.new(20, 75, 115)
|
||||
|
||||
FONT_NAME = "Power Green"
|
||||
FONT_SIZE = 29
|
||||
SMALL_FONT_NAME = "Power Green Small"
|
||||
|
||||
@@ -233,6 +233,7 @@ class AnimatedSprite < SpriteWrapper
|
||||
attr_reader :frameheight
|
||||
attr_reader :framecount
|
||||
attr_reader :animname
|
||||
attr_reader :playing
|
||||
|
||||
def initializeLong(animname, framecount, framewidth, frameheight, frameskip)
|
||||
@animname = pbBitmapName(animname)
|
||||
@@ -335,6 +336,11 @@ class AnimatedSprite < SpriteWrapper
|
||||
@playing = false
|
||||
end
|
||||
|
||||
def reset
|
||||
@frame=0
|
||||
@realframes = 0
|
||||
end
|
||||
|
||||
def update
|
||||
super
|
||||
if @playing
|
||||
@@ -390,6 +396,7 @@ class IconSprite < SpriteWrapper
|
||||
return if bitmap == nil
|
||||
@_iconbitmap = bitmap
|
||||
# for compatibility
|
||||
#
|
||||
self.bitmap = @_iconbitmap ? @_iconbitmap.bitmap : nil
|
||||
self.src_rect = oldrc
|
||||
end
|
||||
|
||||
@@ -67,6 +67,10 @@ class AnimatedBitmap
|
||||
@bitmap.bitmap;
|
||||
end
|
||||
|
||||
def bitmap=(bitmap)
|
||||
@bitmap.bitmap = bitmap;
|
||||
end
|
||||
|
||||
def currentIndex
|
||||
@bitmap.currentIndex;
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user