查看: 2086|回复: 0

[已经过期] HP 这类的字如何定义?

[复制链接]
梦石
0
星屑
50
在线时间
26 小时
注册时间
2017-4-15
回帖
5
发表于 2017-4-19 19:24:33 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
想加入个疲劳值系统,修改后发现只是加了个条而已,前面没有字。。。是不是要在哪里定义一下这个如HP MP这样的图片?
如HP----
   MP----
       ----


Game_Battler
  #--------------------------------------------------------------------------
  def self.pl;          basic(8);     end   # PL
  def self.pl_a;        basic(9);     end   # PL(缩写)
  #--------------------------------------------------------------------------
end
Window_Base
  #--------------------------------------------------------------------------
  # ● 获取各种文字颜色
  #--------------------------------------------------------------------------
  def pl_gauge_color1;   text_color(26);  end;    # PL 值槽 1
  def pl_gauge_color2;   text_color(27);  end;    # PL 值槽 2  
  #--------------------------------------------------------------------------
  # ● 获取 PL 的文字颜色
  #--------------------------------------------------------------------------
  def pl_color(actor)
    return normal_color
  end
  #--------------------------------------------------------------------------
  # ● 绘制 PL
  #--------------------------------------------------------------------------
  def draw_actor_pl(actor, x, y, width = 124)
    draw_gauge(x, y, width, actor.pl_rate, pl_gauge_color1, pl_gauge_color2)
    change_color(system_color)
    draw_text(x, y, 30, line_height, Vocab::pl_a)
    change_color(tp_color(actor))
    draw_text(x + width - 42, y, 42, line_height, actor.tp.to_i, 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, y + line_height * 2)
    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)
    draw_actor_pl(actor, x + 120, y + line_height * 3)
end
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部