class Window_Base < Window
def draw_actor_level(actor, x, y)
self.contents.font.color = system_color
#============================================
if actor.level > 1
self.contents.draw_text(x, y, 32, ...
霜冻之狼 发表于 2009-8-7 14:44
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")
self.contents.draw_text(x + 60, y, 24, 32, "10", 2)
elsif actor.level > 0
self.contents.draw_text(x, y, 70, 32, "见习Lv")
self.contents.draw_text(x + 60, y, 24, 32, "1", 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 ...
后知后觉 发表于 2009-8-7 15:45
临时有事走开了~~来晚了~~~尽管如此,霜冻之狼的办法是简单的枚举,其实完全可以用哈希表######在下面填好你的等级与名称对应,应该看得懂~~~~
Custom_Words = {1=>"初级", 11=>"见习", 21=>"转正", 99 => ...
goahead 发表于 2009-8-7 16:28
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |