
If you want to test it yourself, i made a example scene, just call SceneManager.call(Scene_PartySelect) and you'll see. here's my code:
Code:
I don't know how to fix it, and neither if i was clear enough with my bad english, but if someone could fix it and/or tell me what i did wrong i'll be glad. Thanks in advice.class Window_CharList < Window_Selectable
def initialize(x,y)
super(x, y, 70, Graphics.height - y)
@itens = []
make_item_list
select(0)
activate
refresh
end
def item_max
@itens ? @itens.size : 1
end
def item
@itens && index >= 0 ? @itens[index] : nil
end
def item_rect(index)
rect = Rect.new
rect.width = 38
rect.height = 38
rect.x = 4
rect.y = index * rect.height
rect
end
def make_item_list
for i in 1...$data_actors.size
@itens[i - 1] = $game_actors[i]
end
end
def draw_item(index)
item = @itens[index]
if item
rect = item_rect(index)
draw_actor_graphic(item, 22, rect.y + 36)
end
end
def refresh
contents.clear
for i in 0...@itens.size
draw_item(i)
end
end
end
class Scene_PartySelect < Scene_MenuBase
def start
super
create_all_windows
end
def create_all_windows
@charlist_window = Window_CharLista.new(0,0)
@charlist_window.set_handler(:cancel, method(:return_scene))
end
end