team_selected_troops = [] for i in 0...@selected_units.size team_selected_troops[i] = Figter_data::THE_NAME.index(team_selected_troops[i]) end a=team_selected_troops.flatten #p a #=> [2,3,4,5,6] x=544 for i in 0...a.size $game_screen.pictures[i+1].show("头像#{a[i] }", 0,x, 550, 100, 100, 255, 0) x-=87 end
team_selected_troops = []
for i in 0...@selected_units.size
team_selected_troops[i] = Figter_data::THE_NAME.index(team_selected_troops[i])
end
a=team_selected_troops.flatten
#p a #=> [2,3,4,5,6]
x=544
for i in 0...a.size
$game_screen.pictures[i+1].show("头像#{a[i]
}", 0,x, 550, 100, 100, 255, 0)
x-=87
end
|