#--------------------------------------------------------------------------
# ● 描绘 SP
# actor : 角色
# x : 描画目标 X 坐标
# y : 描画目标 Y 坐标
# width : 描画目标的宽
#--------------------------------------------------------------------------
def draw_actor_sp1(actor, x, y, width = 72)
# 描绘字符串 "SP"
self.contents.font.color = system_color
self.contents.draw_text(x, y, 24, 24, $data_system.words.sp)
# 计算描绘 MaxSP 所需的空间
if width - 24 >= 32
sp_x = x + 32# + width - 24
end
# 描绘 SP
self.contents.font.color = actor.sp == 0 ? knockout_color :
actor.sp <= actor.maxsp / 4 ? crisis_color : normal_color
self.contents.draw_text(sp_x, y, 32, 24, actor.sp.to_s, 2)
end
end#<——把这行删掉,包括这些字
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |