private void InitMapButton(ContentManager content) { m_PolarBear = new ReleaseButton(); m_PolarBear.Init(content, new Vector2(290, 65), 0.5f, "UI/UnLocked"); m_PolarBear.UserTouchEvent = OnTouchPolarBearButton; m_Armadillo = new ReleaseButton(); m_Armadillo.Init(content, new Vector2(230, 315), 0.5f, "UI/Locked"); m_Armadillo.UserTouchEvent = OnTouchArmadilloButton; m_Panda = new ReleaseButton(); m_Panda.Init(content, new Vector2(575, 100), 0.5f, "UI/Locked"); m_Panda.UserTouchEvent = OnTouchPandaButton; m_Frog = new ReleaseButton(); m_Frog.Init(content, new Vector2(160, 180), 0.5f, "UI/Locked"); m_Frog.UserTouchEvent = OnTouchFrogButton; m_Rhinoceros = new ReleaseButton(); m_Rhinoceros.Init(content, new Vector2(440, 180), 0.5f, "UI/Locked"); m_Rhinoceros.UserTouchEvent = OnTouchRhinocerosButton; m_Antelope = new ReleaseButton(); m_Antelope.Init(content, new Vector2(400, 290), 0.5f, "UI/Locked"); m_Antelope.UserTouchEvent = OnTouchAntelopeButton; m_Tuna = new ReleaseButton(); m_Tuna.Init(content, new Vector2(650, 350), 0.5f, "UI/Locked"); m_Tuna.UserTouchEvent = OnTouchTunaButton; }
private void InitUI(ContentManager content) { m_HomeButton = new ReleaseButton(); m_HomeButton.Init(content, new Vector2(5, 5), 0.5f, "UI/Home"); m_HomeButton.UserTouchEvent = OnTouchHomeButton; m_OptionButton = new ReleaseButton(); m_OptionButton.Init(content, new Vector2(715, 5), 0.5f, "UI/Option"); m_OptionButton.UserTouchEvent = OnTouchOptionButton; }
public override void Init(ContentManager content) { m_BackgroundImage = content.Load <Texture2D>("MapScreen/Background"); m_SettingBackground = content.Load <Texture2D>("UI/SettingBackground"); m_SettingCancelButton = new ReleaseButton(); m_SettingCancelButton.Init(content, new Vector2(650, 100), 0.7f, "UI/SettingCancel"); m_SettingCancelButton.UserTouchEvent = OnTouchSettingCancelButton; m_ButtonS = content.Load <SoundEffect>("Music/ButtonS"); InitUI(content); InitMapButton(content); }
private void InitUI(ContentManager content) { m_HomeButton = new ReleaseButton(); m_HomeButton.Init(content, new Vector2(5, 5), 0.5f, "UI/Home"); m_HomeButton.UserTouchEvent = OnTouchHomeButton; m_OptionButton = new ReleaseButton(); m_OptionButton.Init(content, new Vector2(715, 5), 0.5f, "UI/Option"); m_OptionButton.UserTouchEvent = OnTouchOptionButton; m_Resetbutton = new ReleaseButton(); m_Resetbutton.Init(content, new Vector2(500, 400), 0.85f, "ResultScreen/AgainMark"); m_Resetbutton.UserTouchEvent = OnTouchResetButton; }
public override void Init(ContentManager content, string fieldName) { m_BackgroundImage = content.Load <Texture2D>("StageScreen/" + fieldName + "/Background"); m_GuideLine = content.Load <Texture2D>("StageScreen/" + fieldName + "/StageGuideLine"); m_FriendImage = content.Load <Texture2D>("StageScreen/" + fieldName + "/Uncomplete" + fieldName); m_SettingBackground = content.Load <Texture2D>("UI/SettingBackground"); m_SettingCancelButton = new ReleaseButton(); m_SettingCancelButton.Init(content, new Vector2(650, 100), 0.7f, "UI/SettingCancel"); m_SettingCancelButton.UserTouchEvent = OnTouchSettingCancelButton; m_ButtonS = content.Load <SoundEffect>("Music/ButtonS"); InitUI(content); InitStageButton(content, fieldName); }
private void InitButton(ContentManager content) { m_StartButton = new ReleaseButton(); m_StartButton.Init(content, new Vector2(15, 280), 0.5f, "TitleScreen/Start"); m_StartButton.UserTouchEvent = OnTouchStartButton; m_ContinueButton = new ReleaseButton(); m_ContinueButton.Init(content, new Vector2(25, 345), 0.5f, "TitleScreen/Continue"); m_ContinueButton.UserTouchEvent = OnTouchContinueButton; m_ExitButton = new ReleaseButton(); m_ExitButton.Init(content, new Vector2(30, 410), 0.5f, "TitleScreen/Exit"); m_ExitButton.UserTouchEvent = OnTouchExitButton; m_OptionButton = new ReleaseButton(); m_OptionButton.Init(content, new Vector2(715, 5), 0.5f, "TitleScreen/Option"); m_OptionButton.UserTouchEvent = OnTouchOptionButton; }
public override void Init(ContentManager content) { m_BackgroundImage = content.Load <Texture2D>("ResultScreen/Background"); m_PpuoooImage = content.Load <Texture2D>("ResultScreen/Ppuooo"); m_ResultImage = content.Load <Texture2D>("ResultScreen/Result"); m_LeafImage = content.Load <Texture2D>("ResultScreen/Leaf"); m_EmptyBeadImage = content.Load <Texture2D>("ResultScreen/EmptyBead"); m_FullBeadImage = content.Load <Texture2D>("ResultScreen/FullBead"); m_Font = content.Load <SpriteFont>("ResultScreen/myFont"); m_SettingBackground = content.Load <Texture2D>("UI/SettingBackground"); m_SettingCancelButton = new ReleaseButton(); m_SettingCancelButton.Init(content, new Vector2(650, 100), 0.7f, "UI/SettingCancel"); m_SettingCancelButton.UserTouchEvent = OnTouchSettingCancelButton; m_Success = content.Load <Texture2D>("ResultScreen/Success"); InitUI(content); }
private void InitStageButton(ContentManager content, string fieldName) { m_FirstStage = new ReleaseButton(); m_FirstStage.Init(content, new Vector2(30, 260), 0.5f, "StageScreen/" + fieldName + "/CompleteFirstStage"); m_FirstStage.UserTouchEvent = OnTouchFirstStageButton; m_SecondStage = new ReleaseButton(); m_SecondStage.Init(content, new Vector2(75, 120), 0.5f, "StageScreen/" + fieldName + "/CompleteSecondStage"); m_SecondStage.UserTouchEvent = OnTouchSecondStageButton; m_ThirdStage = new ReleaseButton(); m_ThirdStage.Init(content, new Vector2(240, 35), 0.5f, "StageScreen/" + fieldName + "/CompleteThirdStage"); m_ThirdStage.UserTouchEvent = OnTouchThirdStageButton; m_FourthStage = new ReleaseButton(); m_FourthStage.Init(content, new Vector2(280, 250), 0.5f, "StageScreen/" + fieldName + "/CompleteFourthStage"); m_FourthStage.UserTouchEvent = OnTouchFourthStageButton; m_FinalStage = new ReleaseButton(); m_FinalStage.Init(content, new Vector2(480, 40), 0.5f, "StageScreen/" + fieldName + "/CompleteFinalStage"); m_FinalStage.UserTouchEvent = OnTouchFinalStageButton; }
public override void Init(ContentManager content) { Story.Add(content.Load <Texture2D>("StoryScreen/01")); Story.Add(content.Load <Texture2D>("StoryScreen/02")); Story.Add(content.Load <Texture2D>("StoryScreen/03")); Story.Add(content.Load <Texture2D>("StoryScreen/04")); Story.Add(content.Load <Texture2D>("StoryScreen/05")); Story.Add(content.Load <Texture2D>("StoryScreen/06")); Story.Add(content.Load <Texture2D>("StoryScreen/07")); Story.Add(content.Load <Texture2D>("StoryScreen/08")); Story.Add(content.Load <Texture2D>("StoryScreen/09")); Story.Add(content.Load <Texture2D>("StoryScreen/10")); Story.Add(content.Load <Texture2D>("StoryScreen/11")); Story.Add(content.Load <Texture2D>("StoryScreen/12")); Story.Add(content.Load <Texture2D>("StoryScreen/13")); m_SkipButton = new ReleaseButton(); m_SkipButton.Init(content, new Vector2(700, 20), 1f, "StoryScreen/SkipButton"); m_SkipButton.UserTouchEvent = OnTouchSkipButton; m_TapButton = new ReleaseButton(); m_TapButton.Init(content, new Vector2(0, 0), 1f, "StoryScreen/EmptyButton"); m_TapButton.UserTouchEvent = OnTouchTapButton; }