module ZZZ
# 战斗名设置方法:角色ID => 战斗名称
# 如果未设置的话会显示原来的名字
Zzz = {
1 => "1111"
2 => "2222"
}
end
class Game_Actor
def battle_name
return ZZZ::Zzz[self.id] != nil ? ZZZ::Zzz[self.id] : self.name
end
end
class Window_Base
def draw_actor_battle_name(actor, x, y)
self.contents.font.color = normal_color
self.contents.draw_text(x, y, 120, 32, actor.battle_name)
end
end
module ZZZ
# 战斗名设置方法:角色ID => 战斗名称
# 如果未设置的话会显示原来的名字
Zzz = {
1 => "1111"
2 => "2222"
}
end
class Game_Actor
def battle_name
return ZZZ::Zzz[self.id] != nil ? ZZZ::Zzz[self.id] : self.name
end
end
class Window_Base
def draw_actor_battle_name(actor, x, y)
self.contents.font.color = normal_color
self.contents.draw_text(x, y, 120, 32, actor.battle_name)
end
end