Project1
标题:
HP 这类的字如何定义?
[打印本页]
作者:
林家三少
时间:
2017-4-19 19:24
标题:
HP 这类的字如何定义?
想加入个疲劳值系统,修改后发现只是加了个条而已,前面没有字。。。是不是要在哪里定义一下这个如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
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1