public void draw() { if (menuUp || isOptionsOpen) { GUI.enabled = false; } menuIcon.draw(); OptionsIconButton.draw(); GUI.depth = 1; drawButtons(); drawCustom(); PopupBackground.draw(); MenuTitleImage.draw(); OptionsTitleImage.draw(); GUI.enabled = true; toMainMenu.draw(); ExitGame.draw(); closeMenu.draw(); MusicVolumeButton.draw(); MusicVolumeIcon.draw(); EffectVolumeButton.draw(); EffectVolumeIcon.draw(); CloseOptionsPopupButton.draw(); }
public void draw() { if (menuUp || isOptionsOpen) { GUI.enabled = false; } menuIcon.draw(); OptionsIconButton.draw(); GUI.depth = 1; drawButtons(); drawCustom(); PopupBackground.draw(); Rect temp = PopupBackground.getRect(); temp.y = temp.y * .8f; GUI.DrawTexture(temp, assets.menuTexture); GUI.enabled = true; toMainMenu.draw(); ExitGame.draw(); closeMenu.draw(); CloseOptionsPopupButton.draw(); }