def initialize(char,bitmap,opacity,plus,hs)
sync(char)
@key = bitmap
#修改如下
if Light_Bitcore[@key].disposed?
Light_Bitcore.initialize
end
#修改如上
@bitmap = Light_Bitcore[@key].clone
@range = @bitmap.width/2
@w = @bitmap.width
@h = @bitmap.height
@mr = @range - 16
@opacity = opacity
@plus = plus
@hs = hs
render if @hs
end
def initialize(char,bitmap,opacity,plus,hs)
sync(char)
@key = bitmap
#修改如下
if Light_Bitcore[@key].disposed?
Light_Bitcore.initialize
end
#修改如上
@bitmap = Light_Bitcore[@key].clone
@range = @bitmap.width/2
@w = @bitmap.width
@h = @bitmap.height
@mr = @range - 16
@opacity = opacity
@plus = plus
@hs = hs
render if @hs
end