谢谢了 |
终于改好了,我好笨~ class Window_Base < Window def draw_actor_level(actor, x, y) self.contents.font.color = system_color if actor.level > 10 self.contents.draw_text(x, y, 70, 32, "初级Lv") a = actor.level-10 self.contents.draw_text(x + 60, y, 24, 32, a.to_s, 2) elsif actor.level > 0 self.contents.draw_text(x, y, 70, 32, "见习Lv") self.contents.draw_text(x + 60, y, 24, 32, actor.level.to_s, 2) end self.contents.font.color = normal_color end end |
class Window_Base < Window def draw_actor_level(actor, x, y) text = "" lv = "0" case actor.level when 1..10 text = "初级" lv = actor.level.to_s when 11..20 text = "中级" lv = (actor.level % 10).to_s when 21..30 text = "高级" lv = (actor.level % 20).to_s end self.contents.font.color = system_color self.contents.draw_text(x, y, 32, 32, text+"Lv:") self.contents.font.color = normal_color self.contents.draw_text(x + 32, y, 24, 32, lv, 2) end end |
本帖最后由 flzt5354 于 2009-8-7 15:36 编辑 额.你新改的效果变成 1-10级显示见习LV1 就是说等级升级了名称不变 11后显示初级LV1 也是一样升级名称不再变化- - ..额,Q你没什么反应... 郁闷..临时会话说我版本过低.. 明明是2009SP3了 |
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2025-1-9 16:32
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.