赞 | 7 |
VIP | 0 |
好人卡 | 3 |
积分 | 13 |
经验 | 35360 |
最后登录 | 2023-7-17 |
在线时间 | 806 小时 |
Lv3.寻梦者
- 梦石
- 0
- 星屑
- 1346
- 在线时间
- 806 小时
- 注册时间
- 2013-8-3
- 帖子
- 455
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
帮忙把显示经验值改成显示幸运值,谢谢{:2_282:}
#============================================================================== # 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
#==============================================================================
# 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
|
|