private RollerControlButton[] buttons=new RollerControlButton[2];
private ButtonsRoller roller;
protected WorldMenu(Point p,int index) {
super(p, getGameWidth(),250);
roller=new ButtonsRoller(getPosition(),getWidth(),getHeight(),index);
buttons[0]=new RollerControlButton(new Point(getLeftX()+30,getY()),roller,true);
buttons[1]=new RollerControlButton(new Point(getRightX()-30,getY()),roller,false);
}