| 赞 | 14 |
| VIP | |
| 好人卡 | |
| 积分 | 6 |
| 经验 | |
| 最后登录 | 2026-8-9 |
| 在线时间 | 797 小时 |
- 梦石
- 0
- 星屑
- 606
- 在线时间
- 797 小时
- 注册时间
- 2014-7-1
- 回帖
- 501

|
发表于 2015-11-13 03:54:04
|
显示全部楼层
Window_Status
- #==============================================================================
- # ■ Window_Status
- #------------------------------------------------------------------------------
- # 显示状态画面、完全规格的状态窗口。
- #==============================================================================
- class Window_Status < Window_Base
- #--------------------------------------------------------------------------
- # ● 初始化对像
- # actor : 角色
- #--------------------------------------------------------------------------
- def initialize(actor)
- super(0, 0, 640, 480)
- self.contents = Bitmap.new(width - 32, height - 32)
- @actor = actor
- refresh
- end
- #--------------------------------------------------------------------------
- # ● 刷新
- #--------------------------------------------------------------------------
- def refresh
- self.contents.clear
- #坐标什么的自己调控一下就可以了解了
- #只要对应图片的名字和游戏名字一样就好了
- #立绘就自己弄了 反正图片已经有了
- bitmap = RPG::Cache.picture(@actor.name.to_s)
- self.contents.blt(x+180, y+20, bitmap, Rect.new(0, 0, 280, 300))
- self.contents.draw_text(x+160, y-30, 60, 32, @actor.name.to_s)
- draw_actor_graphic(@actor, 40, 112)
- draw_actor_name(@actor, 4, 0)
- draw_actor_class(@actor, 4 + 144, 0)
复制代码 |
评分
-
查看全部评分
|