public void showMenu ( Stage stage , float x , float y ) { setPosition ( x , y - getHeight ( ) ) ; if ( stage . getHeight ( ) - getY ( ) > stage . getHeight ( ) ) setY ( getY ( ) + getHeight ( ) ) ; ActorUtils . keepWithinStage ( stage , this ) ; stage . addActor ( this ) ; }
Shows menu as given stage coordinates