赞 | 0 |
VIP | 26 |
好人卡 | 0 |
积分 | 1 |
经验 | 10158 |
最后登录 | 2012-5-22 |
在线时间 | 8 小时 |
Lv1.梦旅人 伸手爱好者
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 8 小时
- 注册时间
- 2009-3-28
- 帖子
- 527
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 悠悠炸弹 于 2009-8-28 14:02 编辑
这是 状态菜单重排加图
本来是在菜单中是以战斗图来显示的.现在我想把它改成自定义的头像.
要怎么改动呢?谢谢- #==============================================================================
- # ■ 本脚本源自www.66rpg.com,转载与使用请保留此信息
- #==============================================================================
- #==============================================================================
- # by Claimh, http://www.k3.dion.ne.jp/~claimh/
- #==============================================================================
- class Window_Base
- def draw_battler_graphic(actor, x, y)
- battler=RPG::Cache.battler(actor.battler_name, actor.battler_hue)
- w = battler.width
- h = battler.height
- self.contents.blt(x-w/2, y-h, battler, Rect.new(0, 0, w,h),150)
- end
- end
- class Window_MenuStatus < Window_Selectable
- def refresh
- self.contents.clear
- @item_max = $game_party.actors.size
- for i in 0...$game_party.actors.size
- x = 64
- y = i * 116
- actor = $game_party.actors[i]
- if (i % 2) == 0
- draw_battler_graphic(actor, x - 5, y + 180 - i * 20)
- draw_actor_name(actor, x+50, y)
- draw_actor_class(actor, x + 144+50, y)
- draw_actor_level(actor, x+50, y + 32)
- draw_actor_state(actor, x + 90+40, y + 32)
- draw_actor_exp(actor, x+50, y + 64)
- draw_actor_hp(actor, x + 236, y + 32)
- draw_actor_sp(actor, x + 236, y + 64)
- else
- draw_battler_graphic(actor, x +315, y + 180 - i * 20)
- draw_actor_name(actor, x-60, y)
- draw_actor_class(actor, x +144-60, y)
- draw_actor_level(actor, x-60, y + 32)
- draw_actor_state(actor, x + 90-60, y + 32)
- draw_actor_exp(actor, x-60, y + 64)
- draw_actor_hp(actor, x +196-60, y + 32)
- draw_actor_sp(actor, x +196-60, y + 64)
- end
- end
- end
- end
复制代码 |
|