public void closeUpMenu() { menuUp = false; PopupBackground.setTargetPosition(new Vector2(menuClosedPosition.x, menuClosedPosition.y)); PopupBackground.setPositionToValue(15f); //temp.x = temp.x + Screen.width * .5f; toMainMenu.setTargetPosition(new Vector2(menuClosedPosition.x + Screen.width * .05f, menuClosedPosition.y + Screen.height * .25f)); toMainMenu.setPositionToValue(15f); ExitGame.setTargetPosition(new Vector2(menuClosedPosition.x + Screen.width * .05f, menuClosedPosition.y + Screen.height * .25f * 1.75f)); ExitGame.setPositionToValue(15f); closeMenu.setTargetPosition(new Vector2(menuClosedPosition.x + Screen.width * .05f, menuClosedPosition.y + Screen.height * .25f * 2.5f)); closeMenu.setPositionToValue(15f); }
public void OpenOptionsPopup() { isOptionsOpen = true; PopupBackground.setTargetPosition(new Vector2(menuOpenPosition.x, menuOpenPosition.y)); PopupBackground.setPositionToValue(15f); OptionsTitleImage.setTargetPosition(new Vector2(menuOpenPosition.x, menuOpenPosition.y)); OptionsTitleImage.setPositionToValue(15f); MusicVolumeButton.setTargetPosition(new Vector2(menuOpenPosition.x, menuOpenPosition.y + Screen.height * .25f)); MusicVolumeButton.setPositionToValue(15f); MusicVolumeIcon.setTargetPosition(new Vector2(MusicVolumeIcon.getRect().x, menuOpenPosition.y + Screen.height * .25f)); MusicVolumeIcon.setPositionToValue(15f); EffectVolumeButton.setTargetPosition(new Vector2(menuOpenPosition.x, menuOpenPosition.y + Screen.height * .25f * 1.75f)); EffectVolumeButton.setPositionToValue(15f); EffectVolumeIcon.setTargetPosition(new Vector2(EffectVolumeIcon.getRect().x, menuOpenPosition.y + Screen.height * .25f * 1.75f)); EffectVolumeIcon.setPositionToValue(15f); CloseOptionsPopupButton.setTargetPosition(new Vector2(menuOpenPosition.x + Screen.width * .05f, menuOpenPosition.y + Screen.height * .25f * 2.5f)); CloseOptionsPopupButton.setPositionToValue(15f); }