public CreditsScreen(MainMenuScreen owner_) { owner = owner_; mSpriteBatch = Game1.getInstance().getScreenManager().getSpriteBatch(); mBackgroundImage = new Background("mainmenu\\help\\Menu_credits"); mBackgroundImage.loadContent(Game1.getInstance().getScreenManager().getContent()); mBackgroundImage.setLocation(0, 50); mList.Add(mBackgroundImage); mCurrentBackground = mList.ElementAt(0); mCursor = new Cursor(); mCursor.loadContent(Game1.getInstance().getScreenManager().getContent()); mButtonBack = new Button("mainmenu\\buttons\\menu_credits_help_back", "mainmenu\\buttons\\menu_credits_help_back_select", "mainmenu\\buttons\\menu_credits_help_back_selected", new Rectangle(50, 464, 175, 124)); mButtonBack.loadContent(Game1.getInstance().getScreenManager().getContent()); mFade = new Fade(this, "fades\\blackfade", Fade.SPEED.ULTRAFAST); //executeFade(mFade, Fade.sFADE_IN_EFFECT_GRADATIVE); //mMenu = new MenuGrade(); SoundManager.LoadSound(cSOUND_HIGHLIGHT); }
private BaseScreen returnScreen(int id) { BaseScreen baseScreen = null; switch (id) { case SCREEN_ID_LOGOS_SCREEN: baseScreen = new LogosScreen(); break; case SCREEN_ID_MEMORYGAME: baseScreen = new MemoryGameScreen(); break; case SCREEN_ID_MAIN_MENU: baseScreen = new MainMenuScreen(); break; case SCREEN_ID_GAMEPLAY: baseScreen = new GamePlayScreen(); break; case SCREEN_ID_MAIN_MENU_HELP: //baseScreen = new HelpScreen(); break; case SCREEN_ID_MAIN_MENU_CREDITS: baseScreen = new CreditsScreen(null); break; case SCREEN_ID_HISTORY: baseScreen = new StoryScreen(); break; case SCREEN_ID_MACROMAP: baseScreen = new MacroMapScreen(); break; case SCREEN_ID_CHAR_SELECTION: baseScreen = new SelectionScreen(); break; case SCREEN_ID_GAMEOVER: baseScreen = new GameoverScreen(); break; case SCREEN_ID_SPLASHSCREEN: baseScreen = new SplashScreen(); break; //test purposes case SCREEN_ID_LOADING: baseScreen = new LoadingScreen(); break; case SCREEN_ID_ENDING_SCREEN: baseScreen = new EndingScreen(); break; } return(baseScreen); }
public HelpScreen(MainMenuScreen owner_) { mFromMainMenu = true; owner = owner_; init(); }