赞 | 7 |
VIP | 20 |
好人卡 | 0 |
积分 | 16 |
经验 | 11472 |
最后登录 | 2024-7-10 |
在线时间 | 526 小时 |
Lv3.寻梦者 宛若
- 梦石
- 0
- 星屑
- 1573
- 在线时间
- 526 小时
- 注册时间
- 2007-8-19
- 帖子
- 1493
|
- class Sprite_Battler
- alias diyrpg_initialize initialize
- def initialize(viewport,battler = nil)
- diyrpg_initialize(viewport,battler)
- @name_sprite = Sprite.new(viewport)
- @name = ""
- @name_sprite.z = 9999
- end
- alias diyrpg_dispose dispose
- def dispose
- diyrpg_dispose
- @name_sprite.dispose
- end
- alias diyrpg_update update
- def update
- if @battler == nil
- @name_sprite.bitmap = nil
- else
- if @battler.name != @name and @battler.is_a?(Game_Enemy) and not @battler.hidden and not @battler.dead?
- @name_sprite.bitmap = Bitmap.new(256,32)
- @name_sprite.bitmap.draw_text(0,0,256,32,@battler.name)
- @name = @battler.name
- @name_sprite.x = @battler.screen_x
- @name_sprite.y = @battler.screen_y
- end
- end
- diyrpg_update
- end
- end
复制代码 |
|