class Scene_Title alias :old_start :start alias :old_terminate :terminate def start old_start @text_sprite = Sprite.new @text_sprite.x = 400 @text_sprite.y = 390 @text_sprite.bitmap = Bitmap.new(140,20) @text_sprite.bitmap.font.color = Color.new(255,255,0) @text_sprite.bitmap.draw_text(0,0,140,20,"聪聪全国第三帅") end def terminate old_terminate @text_sprite.bitmap.dispose @text_sprite.dispose end end
class Scene_Title
alias :old_start :start
alias :old_terminate :terminate
def start
old_start
@text_sprite = Sprite.new
@text_sprite.x = 400
@text_sprite.y = 390
@text_sprite.bitmap = Bitmap.new(140,20)
@text_sprite.bitmap.font.color = Color.new(255,255,0)
@text_sprite.bitmap.draw_text(0,0,140,20,"聪聪全国第三帅")
end
def terminate
old_terminate
@text_sprite.bitmap.dispose
@text_sprite.dispose
end
end
|