- 注册时间
- 2005-2-21
- 最后登录
- 2019-4-22
③业余
知道我是谁吗?
- 积分
- 117
|

楼主 |
发表于 2005-3-1 11:37:13
|
显示全部楼层
在Window_Base 中加入
将脸型图加入Battlers文件夹“actor.battler_name”_f.png
actor.battler_name为战斗人员名称
def draw_actor_graphic(actor, x, y)
f_name = actor.battler_name + \"_f\"
f_hue = actor.battler_hue
bitmap = RPG::Cache.battler(f_name, f_hue)
cw = bitmap.width; ch = bitmap.height
src_rect = Rect.new(0, 0, cw, ch)
self.contents.blt(x - cw / 2, y - ch, bitmap, src_rect)
end
搞定
[em01] |
|