注册会员 登录
Project1 返回首页

失去记忆总比什么都没有好 ... https://rpg.blue/?310500 [收藏] [复制] [分享] [RSS] 总有一天,你一定会完全记得我的吧?夫拉特蕾?

日志

F06 - 队伍状态窗口显示改造

热度 4已有 1162 次阅读2012-10-21 14:36

#==============================================================================
# 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

鸡蛋

鲜花

刚表态过的朋友 (0 人)

评论 (0 个评论)

facelist doodle 涂鸦笔

您需要登录后才可以评论 登录 | 注册会员

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-4-27 09:50

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

返回顶部