QQ图片20130727225245.jpg (14.44 KB, 下载次数: 20)
QQ图片20130727225458.jpg (3.68 KB, 下载次数: 18)
#-------------------------------------------------------------------------- # ● 绘制技能熟练度 #-------------------------------------------------------------------------- def draw_skill_exp(skill, x, y) return unless skill.can_lvup? return if skill.transformed change_color(system_color) text = SKILL_EXP_VOCAB draw_text(x, y, text_width(text), line_height, text) change_color(normal_color) color1 = text_color(18) color2 = text_color(20) current = @actor.skill_exp(skill.id) if @actor.skill_can_lvup?(skill.id) max = @actor.skill_next_exp(skill.id) rate = current.to_f / max draw_gauge(x+103, y, 120, rate, color1, color2) draw_current_and_max_values(x+76, y, 150, current, max, normal_color, normal_color) else draw_current_and_max_values(x+76, y, 150, "--", "--", normal_color, normal_color) end end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |