赞 | 0 |
VIP | 0 |
好人卡 | 3 |
积分 | 1 |
经验 | 1064 |
最后登录 | 2013-5-16 |
在线时间 | 518 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 518 小时
- 注册时间
- 2010-6-16
- 帖子
- 1073
|
技术不佳,高手勿笑~
截图:
脸图样本:
脚本:- #==============================================================================
- # ■ Scene_Status美化 by Rion幻音
- # 使用方法,把角色全身像放进Face文件夹里,
- # 名为:"角色脸图名称"-"角色脸图编号"
- #==============================================================================
- #==============================================================================
- # ■ Window_Base
- #------------------------------------------------------------------------------
- # 游戏中全部窗口的超级类。
- #==============================================================================
- class Window_Base < Window
- #--------------------------------------------------------------------------
- # ● 绘制角色全身图形
- # actor : 绘制的角色
- # x : 绘制点 X 座标
- # y : 绘制点 Y 座标
- #--------------------------------------------------------------------------
- def draw_actor_fullface(actor, x, y)
- bitmap = Cache.face("#{actor.face_name}-#{actor.face_index}")
- rect = Rect.new(0, 0, 544, 416)
- self.contents.blt(x, y, bitmap, rect)
- bitmap.dispose
- end
- end
- #==============================================================================
- # ■ Window_Status
- #------------------------------------------------------------------------------
- # 显示状态画面、完全规格的状态窗口。
- #==============================================================================
- class Window_Status < Window_Base
- #--------------------------------------------------------------------------
- # ● 刷新
- #--------------------------------------------------------------------------
- def refresh
- self.contents.clear
- draw_actor_name(@actor, 4, 0)
- draw_actor_class(@actor, 128, 0)
- draw_actor_fullface(@actor, 272, 128)
- draw_basic_info(4, 32)
- draw_parameters(32, 160)
- draw_exp_info(130, 32)
- draw_equipmentsback(200, 200, 120, 160)
- draw_equipments(200, 200)
- end
- #--------------------------------------------------------------------------
- # ● 绘制基础资料
- # x : 绘制点 X 座标
- # y : 绘制点 Y 座标
- #--------------------------------------------------------------------------
- def draw_basic_info(x, y)
- draw_actor_level(@actor, x, y + WLH * 0)
- draw_actor_state(@actor, x, y + WLH * 1)
- draw_actor_hp(@actor, x + 50, y + WLH * 2 + 12)
- draw_actor_mp(@actor, x + 50, y + WLH * 3 + 12)
- end
- #--------------------------------------------------------------------------
- # ● 绘制经验值
- # x : 绘制点 X 座标
- # y : 绘制点 Y 座标
- #--------------------------------------------------------------------------
- def draw_exp_info(x, y)
- s1 = @actor.exp_s
- s2 = @actor.next_rest_exp_s
- s_next = sprintf(Vocab::ExpNext, Vocab::level)
- self.contents.font.color = system_color
- self.contents.draw_text(x, y + WLH * 0, 180, WLH, Vocab::ExpTotal)
- self.contents.draw_text(x, y + WLH * 1, 180, WLH, s_next)
- self.contents.font.color = normal_color
- self.contents.draw_text(x, y + WLH * 0, 180, WLH, s1, 2)
- self.contents.draw_text(x, y + WLH * 1, 180, WLH, s2, 2)
- end
- #--------------------------------------------------------------------------
- # ● 绘制黑格
- # x : 绘制点 X 座标
- # y : 绘制点 Y 座标
- # w : 绘制宽度
- # h : 绘制高度
- #--------------------------------------------------------------------------
- def draw_equipmentsback(x, y, h, w)
- color = Color.new(0, 0, 0, 128)
- self.contents.fill_rect(x, y+24, w, h, color)
- end
- end
复制代码 |
评分
-
查看全部评分
|