/* * Draws the choosen popup with the buttons */ public void DisplayPopUp(SpectrumEnums.popUpId id) { // maybe a popup manager, to dispose popups after being x. switch (id) { case SpectrumEnums.popUpId.win: displayedPopUp = new PopUp(game, this, player, SpectrumEnums.popUpId.win); break; case SpectrumEnums.popUpId.lose: displayedPopUp = new PopUp(game, this, player, SpectrumEnums.popUpId.lose); break; case SpectrumEnums.popUpId.custom: displayedPopUp = new PopUp(game, this, player, SpectrumEnums.popUpId.custom, "Not enough Ink", "You need to collect all the ink in order to proceed to the next level."); break; default: break; } displayedPopUp.Draw(spriteBatch); }
/* * Draws the Act and Level Selection menu */ protected void DrawActSelection() { displayedPopUp = new PopUp(game, this, player, SpectrumEnums.popUpId.levelSelection); displayedPopUp.Draw(spriteBatch); }
/* *Draws the Settings menu */ protected void DrawSettingsMenu() { displayedPopUp = new PopUp(game, this, player, SpectrumEnums.popUpId.settingsMenu); displayedPopUp.Draw(spriteBatch); }
/* * Draws the choosen popup with the buttons */ public void DisplayPopUp(SpectrumEnums.popUpId id) { // maybe a popup manager, to dispose popups after being x. switch (id) { case SpectrumEnums.popUpId.win: displayedPopUp = new PopUp(game, this, player, SpectrumEnums.popUpId.win); break; case SpectrumEnums.popUpId.lose: displayedPopUp = new PopUp(game, this, player, SpectrumEnums.popUpId.lose); break; case SpectrumEnums.popUpId.custom: displayedPopUp = new PopUp(game, this, player, SpectrumEnums.popUpId.custom, "Not enough Ink", "You need to collect all the ink\n in order to proceed to the next level.\nGoogoos (enemies) also give ink!"); break; case SpectrumEnums.popUpId.musicSettings: displayedPopUp = new PopUp(game, this, player, SpectrumEnums.popUpId.musicSettings); break; case SpectrumEnums.popUpId.deleteSaveFile: displayedPopUp = new PopUp(game, this, player, SpectrumEnums.popUpId.deleteSaveFile); break; case SpectrumEnums.popUpId.gameAnalytics: displayedPopUp = new PopUp(game, this, player, SpectrumEnums.popUpId.gameAnalytics); break; default: break; } displayedPopUp.Draw(spriteBatch); }