I'm trying to make a window in the Battle System showing the enemy's name, but somehow it doesn't work, it doesn't show the name. That's the window I have:
Code:
class Window_EnemyName < Window_Base
def initialize
super(0, 320, 160, 160)
self.contents = Bitmap.new(width - 32, height - 32)
refresh
end
def refresh
self.contents.clear
for i in 0...$game_troop.enemies.size
enemy = $game_troop.enemies[i]
y = i * 32
self.contents.draw_text(4, y, 130, 64, "#{enemy.name}")
end
end
end