#==============================================================================
# ADD-ON - LAYOUT
#==============================================================================
# By Moghunter
#==============================================================================
class Window_BattleCommand < React
attr_reader :commands
def initialize(actor, width)
@actor = actor
@item_max = @actor.battle_commands.size
super(0, 0, width + 100, (@item_max + 1) * 32)
self.x = -9999
self.opacity = 0
@actor = actor
@column_max = 1
@commands = @actor.battle_commands
if @commands == []
name = actor.name
exit
end
self.contents = Bitmap.new(width - 32, (@item_max + 1) * 32)
refresh
self.index = 0
end
def refresh
self.contents.clear
@item_max = @actor.battle_commands.size
@commands = @actor.battle_commands
self.contents.dispose
self.height = (@item_max + 1) * 32
self.contents = Bitmap.new(width - 32, (@item_max + 1) * 32 - 32)
for i in 0...@item_max
draw_item(i, normal_color)
end
end
def draw_item(index, color)
#draw_commando(0, 100)
#draw_face2(@actor,30,90)
#draw_name(@actor, 2, 2)
draw_com(@actor, 100, 200)
end
def disable_item(index)
draw_item(index, disabled_color)
end
end
Sulle ultime righe c'è...:draw_com(@actor, 100, 200)Se io lo sposto di 10 l'immagine si abbassa ma con 2 bug :(
1)i comandi iniziano a scomparire
2) il cursore si muove come se le X/Y siano standard anke se io le ho modificate:(
P.S: lo script è leggermente modificato dall'originale!


















