| 赞 | 0 |
| VIP | |
| 好人卡 | |
| 积分 | 6 |
| 经验 | |
| 最后登录 | 2026-5-3 |
| 在线时间 | 333 小时 |
- 梦石
- 0
- 星屑
- 604
- 在线时间
- 333 小时
- 注册时间
- 2011-11-19
- 回帖
- 166
|
发表于 2012-10-26 18:50:13
|
显示全部楼层
[pre lang="ruby" line="1"]#==============================================================================
# F06 - 队伍状态窗口显示改造 - By芙蕾娅
#------------------------------------------------------------------------------
# ★ - 新增 ☆ - 修改 ■ - 删除 ● - 无变更
#==============================================================================
module Freya
ExpGaugeColor1 = Color.new(192,128,255)
ExpGaugeColor2 = Color.new(204,192,255)
end
#==============================================================================
# ■ Window_Base
#------------------------------------------------------------------------------
# 游戏中所有窗口的父类
#==============================================================================
class Window_Base < Window
#--------------------------------------------------------------------------
# ● 绘制等级
#--------------------------------------------------------------------------
def draw_actor_level(actor, x, y)
a = actor.next_level_exp - actor.current_level_exp
b = actor.next_level_exp - actor.exp
rate = 1 - (b.to_f / a)
draw_gauge(x, y, 96, rate,Freya::ExpGaugeColor1, Freya::ExpGaugeColor2)
change_color(system_color)
draw_text(x, y, 32, line_height, Vocab::level_a)
change_color(normal_color)
draw_text(x + 32, y, 24, line_height, actor.level, 2)
end
#--------------------------------------------------------------------------
# ● 绘制简单的状态
#--------------------------------------------------------------------------
def draw_actor_simple_status(actor, x, y)
draw_actor_name(actor, x, y)
draw_actor_level(actor, x, y + line_height * 1)
draw_actor_icons(actor, x - 107, y + line_height * 2 + 12)
draw_actor_class(actor, x + 120, y)
draw_actor_hp(actor, x + 120, y + line_height * 1)
draw_actor_mp(actor, x + 120, y + line_height * 2)
end
end[/pre] |
|