예제 #1
0
 public override void LoadContent()
 {
     m_titleText           = new SpriteObj("GamePausedTitleText_Sprite");
     m_titleText.X         = 660f;
     m_titleText.Y         = 72f;
     m_titleText.ForceDraw = true;
     m_infoObjList         = new List <PauseInfoObj>();
     m_infoObjList.Add(new PauseInfoObj());
     m_profileCard = new SpriteObj("TitleProfileCard_Sprite");
     m_profileCard.OutlineWidth = 2;
     m_profileCard.Scale        = new Vector2(2f, 2f);
     m_profileCard.Position     = new Vector2(m_profileCard.Width, 720 - m_profileCard.Height);
     m_profileCard.ForceDraw    = true;
     m_optionsIcon              = new SpriteObj("TitleOptionsIcon_Sprite");
     m_optionsIcon.Scale        = new Vector2(2f, 2f);
     m_optionsIcon.OutlineWidth = m_profileCard.OutlineWidth;
     m_optionsIcon.Position     = new Vector2(1320 - m_optionsIcon.Width * 2 + 120, m_profileCard.Y);
     m_optionsIcon.ForceDraw    = true;
     m_profileCardKey           = new KeyIconTextObj(Game.JunicodeFont);
     m_profileCardKey.Align     = Types.TextAlign.Centre;
     m_profileCardKey.FontSize  = 12f;
     m_profileCardKey.Text      = "[Input:" + 7 + "]";
     m_profileCardKey.Position  = new Vector2(m_profileCard.X,
                                              m_profileCard.Bounds.Top - m_profileCardKey.Height - 10);
     m_profileCardKey.ForceDraw = true;
     m_optionsKey           = new KeyIconTextObj(Game.JunicodeFont);
     m_optionsKey.Align     = Types.TextAlign.Centre;
     m_optionsKey.FontSize  = 12f;
     m_optionsKey.Text      = "[Input:" + 4 + "]";
     m_optionsKey.Position  = new Vector2(m_optionsIcon.X, m_optionsIcon.Bounds.Top - m_optionsKey.Height - 10);
     m_optionsKey.ForceDraw = true;
     base.LoadContent();
 }
예제 #2
0
        public override void LoadContent(GraphicsDevice graphics)
        {
            m_tutorialText              = new KeyIconTextObj(Game.JunicodeLargeFont);
            m_tutorialText.FontSize     = 28f;
            m_tutorialText.Text         = "[Input:" + 10 + "] to Jump";
            m_tutorialText.Align        = Types.TextAlign.Centre;
            m_tutorialText.OutlineWidth = 2;
            m_tutorialText.ForcedScale  = new Vector2(0.8f, 0.8f);
            m_creditsText               = new TextObj(Game.JunicodeFont);
            m_creditsText.FontSize      = 20f;
            m_creditsText.Text          = "Cellar Door Games";
            m_creditsText.DropShadow    = new Vector2(2f, 2f);
            m_creditsTitleText          = (m_creditsText.Clone() as TextObj);
            m_creditsTitleText.FontSize = 14f;
            var textObj = new TextObj(Game.JunicodeFont);

            textObj.FontSize     = 12f;
            textObj.Text         = "Down Attack this";
            textObj.OutlineWidth = 2;
            textObj.Align        = Types.TextAlign.Centre;
            textObj.Position     = m_waypointList[m_waypointList.Count - 1].Position;
            textObj.X           -= 25f;
            textObj.Y           -= 70f;
            GameObjList.Add(textObj);
            base.LoadContent(graphics);
        }
예제 #3
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         Console.WriteLine("Disposing Options Screen");
         foreach (var current in m_optionsArray)
         {
             current.Dispose();
         }
         m_optionsArray.Clear();
         m_optionsArray = null;
         m_bgSprite.Dispose();
         m_bgSprite            = null;
         m_optionsTitle        = null;
         m_changeControlsTitle = null;
         m_backToMenuObj       = null;
         m_confirmText.Dispose();
         m_confirmText = null;
         m_cancelText.Dispose();
         m_cancelText = null;
         m_navigationText.Dispose();
         m_navigationText = null;
         m_optionsBar.Dispose();
         m_optionsBar     = null;
         m_selectedOption = null;
         m_quickDropText.Dispose();
         m_quickDropText       = null;
         m_quickDropObj        = null;
         m_enableSteamCloudObj = null;
         m_reduceQualityObj    = null;
         base.Dispose();
     }
 }
예제 #4
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         m_tutorialText.Dispose();
         m_tutorialText = null;
         m_waypointList.Clear();
         m_waypointList = null;
         m_creditsText.Dispose();
         m_creditsText = null;
         m_creditsTitleText.Dispose();
         m_creditsTitleText = null;
         Array.Clear(m_tutorialTextList, 0, m_tutorialTextList.Length);
         Array.Clear(m_tutorialControllerTextList, 0, m_tutorialControllerTextList.Length);
         Array.Clear(m_creditsTextTitleList, 0, m_creditsTextTitleList.Length);
         Array.Clear(m_creditsTextList, 0, m_creditsTextList.Length);
         m_tutorialTextList           = null;
         m_creditsTextTitleList       = null;
         m_creditsTextList            = null;
         m_tutorialControllerTextList = null;
         m_door         = null;
         m_doorSprite   = null;
         m_diary        = null;
         m_speechBubble = null;
         base.Dispose();
     }
 }
예제 #5
0
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         Console.WriteLine("Disposing Get Item Screen");
         this.m_continueText.Dispose();
         this.m_continueText = null;
         this.m_levelUpBGImage.Dispose();
         this.m_levelUpBGImage = null;
         SpriteObj[] levelUpParticles = this.m_levelUpParticles;
         for (int i = 0; i < levelUpParticles.Length; i++)
         {
             SpriteObj spriteObj = levelUpParticles[i];
             spriteObj.Dispose();
         }
         Array.Clear(this.m_levelUpParticles, 0, this.m_levelUpParticles.Length);
         this.m_levelUpParticles = null;
         this.m_buildUpSound = null;
         this.m_itemSprite.Dispose();
         this.m_itemSprite = null;
         this.m_itemFoundSprite.Dispose();
         this.m_itemFoundSprite = null;
         this.m_itemFoundText.Dispose();
         this.m_itemFoundText = null;
         this.m_tripStat1.Dispose();
         this.m_tripStat2.Dispose();
         this.m_tripStat1 = null;
         this.m_tripStat2 = null;
         this.m_tripStat1FoundText.Dispose();
         this.m_tripStat2FoundText.Dispose();
         this.m_tripStat1FoundText = null;
         this.m_tripStat2FoundText = null;
         base.Dispose();
     }
 }
예제 #6
0
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         Console.WriteLine("Disposing Game Over Boss Screen");
         this.m_lastBoss = null;
         this.m_dialoguePlate.Dispose();
         this.m_dialoguePlate = null;
         this.m_continueText.Dispose();
         this.m_continueText = null;
         this.m_playerGhost.Dispose();
         this.m_playerGhost = null;
         this.m_spotlight.Dispose();
         this.m_spotlight = null;
         this.m_bossFallSound.Dispose();
         this.m_bossFallSound = null;
         this.m_bossKneesSound.Dispose();
         this.m_bossKneesSound = null;
         this.m_playerFrame.Dispose();
         this.m_playerFrame = null;
         this.m_king.Dispose();
         this.m_king = null;
         base.Dispose();
     }
 }
예제 #7
0
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         Console.WriteLine("Disposing Options Screen");
         foreach (OptionsObj current in this.m_optionsArray)
         {
             current.Dispose();
         }
         this.m_optionsArray.Clear();
         this.m_optionsArray = null;
         this.m_bgSprite.Dispose();
         this.m_bgSprite = null;
         this.m_optionsTitle = null;
         this.m_changeControlsTitle = null;
         this.m_backToMenuObj = null;
         this.m_confirmText.Dispose();
         this.m_confirmText = null;
         this.m_cancelText.Dispose();
         this.m_cancelText = null;
         this.m_navigationText.Dispose();
         this.m_navigationText = null;
         this.m_optionsBar.Dispose();
         this.m_optionsBar = null;
         this.m_selectedOption = null;
         this.m_quickDropText.Dispose();
         this.m_quickDropText = null;
         this.m_quickDropObj = null;
         this.m_enableSteamCloudObj = null;
         this.m_reduceQualityObj = null;
         base.Dispose();
     }
 }
예제 #8
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         Console.WriteLine("Disposing Game Over Boss Screen");
         m_lastBoss = null;
         m_dialoguePlate.Dispose();
         m_dialoguePlate = null;
         m_continueText.Dispose();
         m_continueText = null;
         m_playerGhost.Dispose();
         m_playerGhost = null;
         m_spotlight.Dispose();
         m_spotlight = null;
         m_bossFallSound.Dispose();
         m_bossFallSound = null;
         m_bossKneesSound.Dispose();
         m_bossKneesSound = null;
         m_playerFrame.Dispose();
         m_playerFrame = null;
         m_king.Dispose();
         m_king = null;
         base.Dispose();
     }
 }
예제 #9
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         Console.WriteLine("Disposing Get Item Screen");
         m_continueText.Dispose();
         m_continueText = null;
         m_levelUpBGImage.Dispose();
         m_levelUpBGImage = null;
         var levelUpParticles = m_levelUpParticles;
         for (var i = 0; i < levelUpParticles.Length; i++)
         {
             var spriteObj = levelUpParticles[i];
             spriteObj.Dispose();
         }
         Array.Clear(m_levelUpParticles, 0, m_levelUpParticles.Length);
         m_levelUpParticles = null;
         m_buildUpSound     = null;
         m_itemSprite.Dispose();
         m_itemSprite = null;
         m_itemFoundSprite.Dispose();
         m_itemFoundSprite = null;
         m_itemFoundText.Dispose();
         m_itemFoundText = null;
         m_tripStat1.Dispose();
         m_tripStat2.Dispose();
         m_tripStat1 = null;
         m_tripStat2 = null;
         m_tripStat1FoundText.Dispose();
         m_tripStat2FoundText.Dispose();
         m_tripStat1FoundText = null;
         m_tripStat2FoundText = null;
         base.Dispose();
     }
 }
예제 #10
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         m_title.Dispose();
         m_title = null;
         m_slot1Container.Dispose();
         m_slot1Container = null;
         m_slot2Container.Dispose();
         m_slot2Container = null;
         m_slot3Container.Dispose();
         m_slot3Container = null;
         m_slotArray.Clear();
         m_slotArray    = null;
         m_selectedSlot = null;
         m_confirmText.Dispose();
         m_confirmText = null;
         m_cancelText.Dispose();
         m_cancelText = null;
         m_navigationText.Dispose();
         m_navigationText = null;
         m_deleteProfileText.Dispose();
         m_deleteProfileText = null;
         base.Dispose();
     }
 }
예제 #11
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         Console.WriteLine("Disposing Enchantress Screen");
         if (m_rainSound != null)
         {
             m_rainSound.Dispose();
         }
         m_rainSound = null;
         m_enchantressUI.Dispose();
         m_enchantressUI = null;
         m_equipmentDescriptionText.Dispose();
         m_equipmentDescriptionText = null;
         m_selectionIcon.Dispose();
         m_selectionIcon = null;
         m_equipmentTitleText.Dispose();
         m_equipmentTitleText = null;
         m_activeIconArray    = null;
         foreach (var current in m_masterIconArray)
         {
             for (var i = 0; i < current.Length; i++)
             {
                 current[i].Dispose();
                 current[i] = null;
             }
             Array.Clear(current, 0, current.Length);
         }
         m_masterIconArray.Clear();
         m_masterIconArray = null;
         m_descriptionText.Dispose();
         m_descriptionText = null;
         m_unlockCostContainer.Dispose();
         m_unlockCostContainer = null;
         m_instructionsText.Dispose();
         m_instructionsText = null;
         m_instructionsTitleText.Dispose();
         m_instructionsTitleText = null;
         m_equippedIcon.Dispose();
         m_equippedIcon = null;
         Player         = null;
         m_confirmText.Dispose();
         m_confirmText = null;
         m_cancelText.Dispose();
         m_cancelText = null;
         m_navigationText.Dispose();
         m_navigationText = null;
         m_playerMoney    = null;
         foreach (var current2 in m_newIconList)
         {
             current2.Dispose();
         }
         m_newIconList.Clear();
         m_newIconList = null;
         base.Dispose();
     }
 }
예제 #12
0
        public override void LoadContent()
        {
            m_continueText           = new KeyIconTextObj(Game.JunicodeFont);
            m_continueText.FontSize  = 14f;
            m_continueText.Align     = Types.TextAlign.Right;
            m_continueText.Opacity   = 0f;
            m_continueText.Position  = new Vector2(1270f, 30f);
            m_continueText.ForceDraw = true;
            var dropShadow   = new Vector2(2f, 2f);
            var textureColor = new Color(255, 254, 128);

            m_dialoguePlate           = new ObjContainer("DialogBox_Character");
            m_dialoguePlate.Position  = new Vector2(660f, 610f);
            m_dialoguePlate.ForceDraw = true;
            var textObj = new TextObj(Game.JunicodeFont);

            textObj.Align      = Types.TextAlign.Centre;
            textObj.Text       = "Your valor shown in battle shall never be forgotten.";
            textObj.FontSize   = 18f;
            textObj.DropShadow = dropShadow;
            textObj.Position   = new Vector2(0f, -(float)m_dialoguePlate.Height / 2 + 25);
            m_dialoguePlate.AddChild(textObj);
            var keyIconTextObj = new KeyIconTextObj(Game.JunicodeFont);

            keyIconTextObj.FontSize     = 12f;
            keyIconTextObj.Align        = Types.TextAlign.Centre;
            keyIconTextObj.Text         = "\"Arrrrggghhhh\"";
            keyIconTextObj.DropShadow   = dropShadow;
            keyIconTextObj.Y            = 10f;
            keyIconTextObj.TextureColor = textureColor;
            m_dialoguePlate.AddChild(keyIconTextObj);
            var textObj2 = new TextObj(Game.JunicodeFont);

            textObj2.FontSize   = 8f;
            textObj2.Text       = "-Player X's parting words";
            textObj2.Y          = keyIconTextObj.Y;
            textObj2.Y         += 40f;
            textObj2.X         += 20f;
            textObj2.DropShadow = dropShadow;
            m_dialoguePlate.AddChild(textObj2);
            m_playerGhost = new SpriteObj("PlayerGhost_Sprite");
            m_playerGhost.AnimationDelay = 0.1f;
            m_spotlight                 = new SpriteObj("GameOverSpotlight_Sprite");
            m_spotlight.Rotation        = 90f;
            m_spotlight.ForceDraw       = true;
            m_spotlight.Position        = new Vector2(660f, 40 + m_spotlight.Height);
            m_playerFrame               = new LineageObj(null, true);
            m_playerFrame.DisablePlaque = true;
            m_king = new SpriteObj("King_Sprite");
            m_king.OutlineWidth   = 2;
            m_king.AnimationDelay = 0.1f;
            m_king.PlayAnimation();
            m_king.Scale = new Vector2(2f, 2f);
            base.LoadContent();
        }
예제 #13
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         Console.WriteLine("Disposing Skill Screen");
         m_titleText.Dispose();
         m_titleText = null;
         m_bg.Dispose();
         m_bg = null;
         m_cloud1.Dispose();
         m_cloud1 = null;
         m_cloud2.Dispose();
         m_cloud2 = null;
         m_cloud3.Dispose();
         m_cloud3 = null;
         m_cloud4.Dispose();
         m_cloud4 = null;
         m_cloud5.Dispose();
         m_cloud5 = null;
         m_continueText.Dispose();
         m_continueText = null;
         m_toggleIconsText.Dispose();
         m_toggleIconsText = null;
         m_confirmText.Dispose();
         m_confirmText = null;
         m_navigationText.Dispose();
         m_navigationText = null;
         m_dialoguePlate.Dispose();
         m_dialoguePlate = null;
         m_selectionIcon.Dispose();
         m_selectionIcon = null;
         m_impactEffectPool.Dispose();
         m_impactEffectPool = null;
         m_manor.Dispose();
         m_manor    = null;
         m_shakeObj = null;
         m_playerMoney.Dispose();
         m_playerMoney = null;
         m_coinIcon.Dispose();
         m_coinIcon         = null;
         m_skillCurrent     = null;
         m_skillCost        = null;
         m_skillCostBG      = null;
         m_skillDescription = null;
         m_inputDescription = null;
         m_skillUpgrade     = null;
         m_skillLevel       = null;
         m_skillIcon        = null;
         m_skillTitle       = null;
         m_descriptionDivider.Dispose();
         m_descriptionDivider = null;
         base.Dispose();
     }
 }
예제 #14
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         m_tutorialText.Dispose();
         m_tutorialText = null;
         m_king.Dispose();
         m_king = null;
         base.Dispose();
     }
 }
예제 #15
0
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         this.m_tutorialText.Dispose();
         this.m_tutorialText = null;
         this.m_king.Dispose();
         this.m_king = null;
         base.Dispose();
     }
 }
예제 #16
0
 private void OnEnter()
 {
     m_selectedEntryIndex         = 0;
     m_selectedEntry              = m_buttonTitle[m_selectedEntryIndex];
     m_selectedEntry.TextureColor = Color.Yellow;
     m_selectedButton             = null;
     m_settingKey           = false;
     m_lockControls         = false;
     m_setKeyPlate.Scale    = Vector2.Zero;
     m_setKeyPlate.Position = new Vector2(660f, 360f);
 }
예제 #17
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         Console.WriteLine("Disposing Map Screen");
         if (m_mapDisplay != null)
         {
             m_mapDisplay.Dispose();
         }
         m_mapDisplay = null;
         if (m_legend != null)
         {
             m_legend.Dispose();
         }
         m_legend = null;
         if (m_playerIcon != null)
         {
             m_playerIcon.Dispose();
         }
         m_playerIcon = null;
         if (m_teleporterList != null)
         {
             Array.Clear(m_teleporterList, 0, m_teleporterList.Length);
         }
         m_teleporterList = null;
         if (m_titleText != null)
         {
             m_titleText.Dispose();
         }
         m_titleText = null;
         if (m_continueText != null)
         {
             m_continueText.Dispose();
         }
         m_continueText = null;
         if (m_recentreText != null)
         {
             m_recentreText.Dispose();
         }
         m_recentreText = null;
         if (m_navigationText != null)
         {
             m_navigationText.Dispose();
         }
         m_navigationText = null;
         m_alzheimersQuestionMarks.Dispose();
         m_alzheimersQuestionMarks = null;
         base.Dispose();
     }
 }
예제 #18
0
 public override void LoadContent(GraphicsDevice graphics)
 {
     this.m_tutorialText = new KeyIconTextObj(Game.JunicodeLargeFont);
     this.m_tutorialText.FontSize = 28f;
     this.m_tutorialText.Text = "Press [Input:" + 12 + "] to Attack";
     this.m_tutorialText.Align = Types.TextAlign.Centre;
     this.m_tutorialText.OutlineWidth = 2;
     this.m_king = new KingObj("King_Sprite");
     this.m_king.OutlineWidth = 2;
     this.m_king.AnimationDelay = 0.1f;
     this.m_king.PlayAnimation(true);
     this.m_king.IsWeighted = false;
     this.m_king.IsCollidable = true;
     this.m_king.Scale = new Vector2(2f, 2f);
     base.LoadContent(graphics);
 }
예제 #19
0
 public override void LoadContent(GraphicsDevice graphics)
 {
     m_tutorialText              = new KeyIconTextObj(Game.JunicodeLargeFont);
     m_tutorialText.FontSize     = 28f;
     m_tutorialText.Text         = "Press [Input:" + 12 + "] to Attack";
     m_tutorialText.Align        = Types.TextAlign.Centre;
     m_tutorialText.OutlineWidth = 2;
     m_king = new KingObj("King_Sprite");
     m_king.OutlineWidth   = 2;
     m_king.AnimationDelay = 0.1f;
     m_king.PlayAnimation();
     m_king.IsWeighted   = false;
     m_king.IsCollidable = true;
     m_king.Scale        = new Vector2(2f, 2f);
     base.LoadContent(graphics);
 }
예제 #20
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         Console.WriteLine("Disposing Lineage Screen");
         m_titleText.Dispose();
         m_titleText          = null;
         m_selectedLineageObj = null;
         foreach (var current in m_currentBranchArray)
         {
             current.Dispose();
         }
         m_currentBranchArray.Clear();
         m_currentBranchArray = null;
         foreach (var current2 in m_masterArray)
         {
             if (!current2.IsDisposed)
             {
                 current2.Dispose();
             }
         }
         m_masterArray.Clear();
         m_masterArray = null;
         if (m_startingLineageObj != null)
         {
             m_startingLineageObj.Dispose();
         }
         m_startingLineageObj = null;
         m_background.Dispose();
         m_background = null;
         m_bgShadow.Dispose();
         m_bgShadow    = null;
         m_selectTween = null;
         m_descriptionPlate.Dispose();
         m_descriptionPlate = null;
         m_confirmText.Dispose();
         m_confirmText = null;
         m_navigationText.Dispose();
         m_navigationText = null;
         m_rerollText.Dispose();
         m_rerollText = null;
         base.Dispose();
     }
 }
예제 #21
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         Console.WriteLine("Disposing Profile Card Screen");
         m_frontCard.Dispose();
         m_frontCard = null;
         m_backCard.Dispose();
         m_backCard         = null;
         m_playerName       = null;
         m_money            = null;
         m_levelClass       = null;
         m_playerHUD        = null;
         m_frontTrait1      = null;
         m_frontTrait2      = null;
         m_playerBG         = null;
         m_classDescription = null;
         m_author           = null;
         m_playerStats      = null;
         m_equipmentTitle   = null;
         m_runesTitle       = null;
         m_equipmentList.Clear();
         m_equipmentList = null;
         m_runeBackTitleList.Clear();
         m_runeBackTitleList = null;
         m_runeBackDescriptionList.Clear();
         m_runeBackDescriptionList = null;
         m_playerSprite.Dispose();
         m_playerSprite = null;
         m_spellIcon.Dispose();
         m_spellIcon = null;
         m_tombStoneSprite.Dispose();
         m_tombStoneSprite = null;
         m_cancelText.Dispose();
         m_cancelText = null;
         m_dataList1.Clear();
         m_dataList1 = null;
         m_dataList2.Clear();
         m_dataList2 = null;
         base.Dispose();
     }
 }
예제 #22
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         m_buttonTitle.Clear();
         m_buttonTitle = null;
         m_keyboardControls.Clear();
         m_keyboardControls = null;
         m_gamepadControls.Clear();
         m_gamepadControls = null;
         m_selectedEntry   = null;
         m_selectedButton  = null;
         m_setKeyPlate.Dispose();
         m_setKeyPlate = null;
         Array.Clear(m_controlKeys, 0, m_controlKeys.Length);
         m_controlKeys = null;
         m_selectionBar.Dispose();
         m_selectionBar = null;
         base.Dispose();
     }
 }
예제 #23
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         foreach (var current in m_frameList)
         {
             current.Dispose();
         }
         m_frameList.Clear();
         m_frameList = null;
         foreach (var current2 in m_plaqueList)
         {
             current2.Dispose();
         }
         m_plaqueList.Clear();
         m_plaqueList = null;
         m_cameraPosList.Clear();
         m_cameraPosList = null;
         foreach (var current3 in m_nameList)
         {
             current3.Dispose();
         }
         m_nameList.Clear();
         m_nameList = null;
         foreach (var current4 in m_slainCountText)
         {
             current4.Dispose();
         }
         m_slainCountText.Clear();
         m_slainCountText = null;
         m_endingMask.Dispose();
         m_endingMask = null;
         m_continueText.Dispose();
         m_continueText = null;
         m_background.Dispose();
         m_background = null;
         base.Dispose();
     }
 }
예제 #24
0
 public override void LoadContent()
 {
     m_levelUpBGImage           = new SpriteObj("BlueprintFoundBG_Sprite");
     m_levelUpBGImage.ForceDraw = true;
     m_levelUpBGImage.Visible   = false;
     m_levelUpParticles         = new SpriteObj[10];
     for (var i = 0; i < m_levelUpParticles.Length; i++)
     {
         m_levelUpParticles[i] = new SpriteObj("LevelUpParticleFX_Sprite");
         m_levelUpParticles[i].AnimationDelay = 0.0416666679f;
         m_levelUpParticles[i].ForceDraw      = true;
         m_levelUpParticles[i].Visible        = false;
     }
     m_itemSprite              = new SpriteObj("BlueprintIcon_Sprite");
     m_itemSprite.ForceDraw    = true;
     m_itemSprite.OutlineWidth = 2;
     m_tripStat1                  = (m_itemSprite.Clone() as SpriteObj);
     m_tripStat2                  = (m_itemSprite.Clone() as SpriteObj);
     m_itemFoundText              = new TextObj(Game.JunicodeFont);
     m_itemFoundText.FontSize     = 18f;
     m_itemFoundText.Align        = Types.TextAlign.Centre;
     m_itemFoundText.Text         = "";
     m_itemFoundText.Position     = m_itemEndPos;
     m_itemFoundText.Y           += 70f;
     m_itemFoundText.ForceDraw    = true;
     m_itemFoundText.OutlineWidth = 2;
     m_tripStat1FoundText         = (m_itemFoundText.Clone() as TextObj);
     m_tripStat2FoundText         = (m_itemFoundText.Clone() as TextObj);
     m_itemFoundSprite            = new SpriteObj("BlueprintFoundText_Sprite");
     m_itemFoundSprite.ForceDraw  = true;
     m_itemFoundSprite.Visible    = false;
     m_continueText               = new KeyIconTextObj(Game.JunicodeFont);
     m_continueText.FontSize      = 14f;
     m_continueText.Text          = "to continue";
     m_continueText.Align         = Types.TextAlign.Centre;
     m_continueText.Position      = new Vector2(1320 - m_continueText.Width, 720 - m_continueText.Height - 10);
     m_continueText.ForceDraw     = true;
     base.LoadContent();
 }
예제 #25
0
        private void InitializeTextObjs()
        {
            m_descriptionText                    = new TextObj(Game.JunicodeFont);
            m_descriptionText.FontSize           = 9f;
            m_instructionsTitleText              = new TextObj();
            m_instructionsTitleText.Font         = Game.JunicodeFont;
            m_instructionsTitleText.FontSize     = 10f;
            m_instructionsTitleText.TextureColor = new Color(237, 202, 138);
            m_instructionsTitleText.Text         = "Instructions:";
            m_instructionsText                   = new KeyIconTextObj();
            m_instructionsText.Font              = Game.JunicodeFont;
            m_instructionsText.FontSize          = 10f;
            m_unlockCostContainer                = new ObjContainer();
            var textObj = new TextObj();

            textObj.Font         = Game.JunicodeFont;
            textObj.FontSize     = 10f;
            textObj.TextureColor = Color.Yellow;
            textObj.Position     = new Vector2(50f, 9f);
            m_unlockCostContainer.AddChild(new SpriteObj("BlacksmithUI_CoinBG_Sprite"));
            m_unlockCostContainer.AddChild(textObj);
            m_descriptionText.Position = new Vector2(m_enchantressUI.X + 140f,
                                                     m_enchantressUI.Y - m_enchantressUI.Height / 2 + 20f + 40f);
            m_instructionsTitleText.Position = new Vector2(m_enchantressUI.X + 140f,
                                                           m_descriptionText.Bounds.Bottom + 20);
            m_instructionsText.Position       = new Vector2(m_instructionsTitleText.X, m_instructionsTitleText.Bounds.Bottom);
            m_unlockCostContainer.Position    = new Vector2(m_enchantressUI.X + 114f, 485f);
            m_equipmentTitleText              = new TextObj(Game.JunicodeFont);
            m_equipmentTitleText.ForceDraw    = true;
            m_equipmentTitleText.FontSize     = 10f;
            m_equipmentTitleText.DropShadow   = new Vector2(2f, 2f);
            m_equipmentTitleText.TextureColor = new Color(237, 202, 138);
            m_equipmentTitleText.Position     = new Vector2(m_enchantressUI.X + 140f, m_descriptionText.Y - 50f);
            m_descriptionText.Visible         = false;
            m_instructionsTitleText.Visible   = false;
            m_instructionsText.Visible        = false;
            m_unlockCostContainer.Visible     = false;
        }
예제 #26
0
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         Console.WriteLine("Disposing Pause Screen");
         foreach (PauseScreen.PauseInfoObj current in this.m_infoObjList)
         {
             current.Dispose();
         }
         this.m_infoObjList.Clear();
         this.m_infoObjList = null;
         this.m_titleText.Dispose();
         this.m_titleText = null;
         this.m_profileCard.Dispose();
         this.m_profileCard = null;
         this.m_optionsIcon.Dispose();
         this.m_optionsIcon = null;
         this.m_profileCardKey.Dispose();
         this.m_profileCardKey = null;
         this.m_optionsKey.Dispose();
         this.m_optionsKey = null;
         base.Dispose();
     }
 }
예제 #27
0
 public override void LoadContent()
 {
     m_frontCard           = new ObjContainer("CardFront_Character");
     m_frontCard.ForceDraw = true;
     m_frontCard.Position  = new Vector2(145f, 30f);
     m_frontCard.GetChildAt(0).TextureColor = Color.Red;
     m_frontCard.GetChildAt(2).TextureColor = Color.Red;
     LoadFrontCard();
     m_backCard           = new ObjContainer("CardBack_Character");
     m_backCard.ForceDraw = true;
     m_backCard.Position  = new Vector2(m_frontCard.X + m_backCard.Width + 100f, m_frontCard.Y);
     m_backCard.AddChild(m_playerName.Clone() as GameObj);
     m_backCard.GetChildAt(0).TextureColor = Color.Red;
     m_backCard.GetChildAt(2).TextureColor = Color.Red;
     LoadBackCard();
     m_playerSprite                 = new ObjContainer("PlayerIdle_Character");
     m_playerSprite.ForceDraw       = true;
     m_playerSprite.Scale           = new Vector2(2f, 2f);
     m_playerSprite.OutlineWidth    = 2;
     m_tombStoneSprite              = new SpriteObj("Tombstone_Sprite");
     m_tombStoneSprite.ForceDraw    = true;
     m_tombStoneSprite.Scale        = new Vector2(3f, 3f);
     m_tombStoneSprite.OutlineWidth = 2;
     m_spellIcon              = new SpriteObj(SpellType.Icon(12));
     m_spellIcon.Position     = new Vector2(350f, 295f);
     m_spellIcon.OutlineWidth = 2;
     m_spellIcon.ForceDraw    = true;
     m_cancelText             = new KeyIconTextObj(Game.JunicodeFont);
     m_cancelText.Text        = "to exit options";
     m_cancelText.Align       = Types.TextAlign.Right;
     m_cancelText.DropShadow  = new Vector2(2f, 2f);
     m_cancelText.FontSize    = 12f;
     m_cancelText.Position    = new Vector2(1290f, 650f);
     m_cancelText.ForceDraw   = true;
     base.LoadContent();
 }
예제 #28
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         Console.WriteLine("Disposing Game Over Screen");
         m_player = null;
         m_dialoguePlate.Dispose();
         m_dialoguePlate = null;
         m_continueText.Dispose();
         m_continueText = null;
         m_playerGhost.Dispose();
         m_playerGhost = null;
         m_spotlight.Dispose();
         m_spotlight = null;
         m_playerFallSound.Dispose();
         m_playerFallSound = null;
         m_playerSwordFallSound.Dispose();
         m_playerSwordFallSound = null;
         m_playerSwordSpinSound.Dispose();
         m_playerSwordSpinSound = null;
         m_objKilledPlayer      = null;
         if (m_enemyList != null)
         {
             m_enemyList.Clear();
         }
         m_enemyList = null;
         if (m_enemyStoredPositions != null)
         {
             m_enemyStoredPositions.Clear();
         }
         m_enemyStoredPositions = null;
         m_playerFrame.Dispose();
         m_playerFrame = null;
         base.Dispose();
     }
 }
예제 #29
0
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         Console.WriteLine("Disposing Game Over Screen");
         this.m_player = null;
         this.m_dialoguePlate.Dispose();
         this.m_dialoguePlate = null;
         this.m_continueText.Dispose();
         this.m_continueText = null;
         this.m_playerGhost.Dispose();
         this.m_playerGhost = null;
         this.m_spotlight.Dispose();
         this.m_spotlight = null;
         this.m_playerFallSound.Dispose();
         this.m_playerFallSound = null;
         this.m_playerSwordFallSound.Dispose();
         this.m_playerSwordFallSound = null;
         this.m_playerSwordSpinSound.Dispose();
         this.m_playerSwordSpinSound = null;
         this.m_objKilledPlayer = null;
         if (this.m_enemyList != null)
         {
             this.m_enemyList.Clear();
         }
         this.m_enemyList = null;
         if (this.m_enemyStoredPositions != null)
         {
             this.m_enemyStoredPositions.Clear();
         }
         this.m_enemyStoredPositions = null;
         this.m_playerFrame.Dispose();
         this.m_playerFrame = null;
         base.Dispose();
     }
 }
예제 #30
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         Console.WriteLine("Disposing Pause Screen");
         foreach (var current in m_infoObjList)
         {
             current.Dispose();
         }
         m_infoObjList.Clear();
         m_infoObjList = null;
         m_titleText.Dispose();
         m_titleText = null;
         m_profileCard.Dispose();
         m_profileCard = null;
         m_optionsIcon.Dispose();
         m_optionsIcon = null;
         m_profileCardKey.Dispose();
         m_profileCardKey = null;
         m_optionsKey.Dispose();
         m_optionsKey = null;
         base.Dispose();
     }
 }
예제 #31
0
        public override void LoadContent()
        {
            m_mapDisplay.InitializeAlphaMap(new Rectangle(50, 50, 1220, 620), Camera);
            m_mapDisplay.CameraOffset = new Vector2(660f, 360f);
            m_legend           = new ObjContainer();
            m_legend.ForceDraw = true;
            var spriteObj = new SpriteObj("TraitsScreenPlate_Sprite");

            m_legend.AddChild(spriteObj);
            spriteObj.Scale = new Vector2(0.75f, 0.58f);
            var textObj = new TextObj(Game.JunicodeFont);

            textObj.Align        = Types.TextAlign.Centre;
            textObj.Position     = new Vector2(m_legend.Width / 2 * spriteObj.ScaleX, m_legend.Bounds.Top + 10);
            textObj.Text         = "Legend";
            textObj.FontSize     = 12f;
            textObj.DropShadow   = new Vector2(2f, 2f);
            textObj.TextureColor = new Color(213, 213, 173);
            m_legend.AddChild(textObj);
            m_legend.AnimationDelay = 0.0333333351f;
            m_legend.Position       = new Vector2(1320 - m_legend.Width - 20, 720 - m_legend.Height - 20);
            var spriteObj2 = new SpriteObj("MapPlayerIcon_Sprite");

            spriteObj2.Position = new Vector2(30f, 60f);
            spriteObj2.PlayAnimation();
            m_legend.AddChild(spriteObj2);
            var num        = 30;
            var spriteObj3 = new SpriteObj("MapBossIcon_Sprite");

            spriteObj3.Position = new Vector2(spriteObj2.X, spriteObj2.Y + num);
            spriteObj3.PlayAnimation();
            m_legend.AddChild(spriteObj3);
            var spriteObj4 = new SpriteObj("MapLockedChestIcon_Sprite");

            spriteObj4.Position = new Vector2(spriteObj2.X, spriteObj3.Y + num);
            spriteObj4.PlayAnimation();
            m_legend.AddChild(spriteObj4);
            var spriteObj5 = new SpriteObj("MapFairyChestIcon_Sprite");

            spriteObj5.Position = new Vector2(spriteObj2.X, spriteObj4.Y + num);
            spriteObj5.PlayAnimation();
            m_legend.AddChild(spriteObj5);
            var spriteObj6 = new SpriteObj("MapChestUnlocked_Sprite");

            spriteObj6.Position = new Vector2(spriteObj2.X, spriteObj5.Y + num);
            m_legend.AddChild(spriteObj6);
            var spriteObj7 = new SpriteObj("MapTeleporterIcon_Sprite");

            spriteObj7.Position = new Vector2(spriteObj2.X, spriteObj6.Y + num);
            spriteObj7.PlayAnimation();
            m_legend.AddChild(spriteObj7);
            var spriteObj8 = new SpriteObj("MapBonusIcon_Sprite");

            spriteObj8.Position = new Vector2(spriteObj2.X, spriteObj7.Y + num);
            spriteObj8.PlayAnimation();
            m_legend.AddChild(spriteObj8);
            var textObj2 = new TextObj(Game.JunicodeFont);

            textObj2.Position = new Vector2(spriteObj2.X + 50f, 55f);
            textObj2.Text     =
                "You are here \nBoss location \nUnopened chest \nFairy chest \nOpened chest \nTeleporter \nBonus Room";
            textObj2.FontSize   = 10f;
            textObj2.DropShadow = new Vector2(2f, 2f);
            m_legend.AddChild(textObj2);
            spriteObj2.X               += 4f;
            spriteObj2.Y               += 4f;
            m_titleText                 = new SpriteObj("TeleporterTitleText_Sprite");
            m_titleText.ForceDraw       = true;
            m_titleText.X               = 660f;
            m_titleText.Y               = 72f;
            m_playerIcon                = new ObjContainer("PlayerWalking_Character");
            m_playerIcon.Scale          = new Vector2(0.6f, 0.6f);
            m_playerIcon.AnimationDelay = 0.1f;
            m_playerIcon.PlayAnimation();
            m_playerIcon.ForceDraw    = true;
            m_playerIcon.OutlineWidth = 2;
            m_playerIcon.GetChildAt(1).TextureColor = Color.Red;
            m_playerIcon.GetChildAt(7).TextureColor = Color.Red;
            m_playerIcon.GetChildAt(8).TextureColor = Color.Red;
            m_playerIcon.GetChildAt(16).Visible     = false;
            m_playerIcon.GetChildAt(5).Visible      = false;
            m_playerIcon.GetChildAt(13).Visible     = false;
            m_playerIcon.GetChildAt(0).Visible      = false;
            m_playerIcon.GetChildAt(15).Visible     = false;
            m_playerIcon.GetChildAt(14).Visible     = false;
            m_continueText             = new KeyIconTextObj(Game.JunicodeFont);
            m_continueText.Text        = "to close map";
            m_continueText.FontSize    = 12f;
            m_continueText.ForceDraw   = true;
            m_continueText.Position    = new Vector2(50f, 200 - m_continueText.Height - 40);
            m_recentreText             = new KeyIconTextObj(Game.JunicodeFont);
            m_recentreText.Text        = "to re-center on player";
            m_recentreText.FontSize    = 12f;
            m_recentreText.Position    = new Vector2(m_continueText.X, 200 - m_continueText.Height - 80);
            m_recentreText.ForceDraw   = true;
            m_navigationText           = new KeyIconTextObj(Game.JunicodeFont);
            m_navigationText.Text      = "to move map";
            m_navigationText.FontSize  = 12f;
            m_navigationText.Position  = new Vector2(m_continueText.X, 200 - m_continueText.Height - 120);
            m_navigationText.ForceDraw = true;
            base.LoadContent();
        }
예제 #32
0
        public override void LoadContent()
        {
            m_impactEffectPool.Initialize();
            m_manor           = new ObjContainer("TraitsCastle_Character");
            m_manor.Scale     = new Vector2(2f, 2f);
            m_manor.ForceDraw = true;
            for (var i = 0; i < m_manor.NumChildren; i++)
            {
                m_manor.GetChildAt(i).Visible = false;
                m_manor.GetChildAt(i).Opacity = 0f;
            }
            m_dialoguePlate           = new ObjContainer("TraitsScreenPlate_Container");
            m_dialoguePlate.ForceDraw = true;
            m_dialoguePlate.Position  = new Vector2(1320 - m_dialoguePlate.Width / 2, 360f);
            m_skillIcon          = new SpriteObj("Icon_Health_Up_Sprite");
            m_skillIcon.Position = new Vector2(-110f, -200f);
            m_dialoguePlate.AddChild(m_skillIcon);
            m_skillTitle              = new TextObj(Game.JunicodeFont);
            m_skillTitle.Text         = "Skill name";
            m_skillTitle.DropShadow   = new Vector2(2f, 2f);
            m_skillTitle.TextureColor = new Color(236, 197, 132);
            m_skillTitle.Position     = new Vector2(m_skillIcon.Bounds.Right + 15, m_skillIcon.Y);
            m_skillTitle.FontSize     = 12f;
            m_dialoguePlate.AddChild(m_skillTitle);
            m_skillDescription          = new TextObj(Game.JunicodeFont);
            m_skillDescription.Text     = "Description text goes here.  Let's see how well the word wrap function works.";
            m_skillDescription.Position = new Vector2(m_dialoguePlate.GetChildAt(1).X - 30f,
                                                      m_dialoguePlate.GetChildAt(1).Bounds.Bottom + 20);
            m_skillDescription.FontSize     = 10f;
            m_skillDescription.DropShadow   = new Vector2(2f, 2f);
            m_skillDescription.TextureColor = new Color(228, 218, 208);
            m_skillDescription.WordWrap(m_dialoguePlate.Width - 50);
            m_dialoguePlate.AddChild(m_skillDescription);
            m_inputDescription              = new KeyIconTextObj(Game.JunicodeFont);
            m_inputDescription.Text         = "Input descriptions go here..";
            m_inputDescription.Position     = new Vector2(m_skillIcon.X - 30f, m_skillDescription.Bounds.Bottom + 20);
            m_inputDescription.FontSize     = 10f;
            m_inputDescription.DropShadow   = new Vector2(2f, 2f);
            m_inputDescription.TextureColor = new Color(228, 218, 208);
            m_inputDescription.WordWrap(m_dialoguePlate.Width - 50);
            m_dialoguePlate.AddChild(m_inputDescription);
            m_descriptionDivider            = new SpriteObj("Blank_Sprite");
            m_descriptionDivider.ScaleX     = 250f / m_descriptionDivider.Width;
            m_descriptionDivider.ScaleY     = 0.25f;
            m_descriptionDivider.ForceDraw  = true;
            m_descriptionDivider.DropShadow = new Vector2(2f, 2f);
            m_skillCurrent              = new TextObj(Game.JunicodeFont);
            m_skillCurrent.Position     = new Vector2(m_inputDescription.X, m_inputDescription.Bounds.Bottom + 10);
            m_skillCurrent.FontSize     = 10f;
            m_skillCurrent.DropShadow   = new Vector2(2f, 2f);
            m_skillCurrent.TextureColor = new Color(228, 218, 208);
            m_skillCurrent.WordWrap(m_dialoguePlate.Width - 50);
            m_dialoguePlate.AddChild(m_skillCurrent);
            m_skillUpgrade    = (m_skillCurrent.Clone() as TextObj);
            m_skillUpgrade.Y += 15f;
            m_dialoguePlate.AddChild(m_skillUpgrade);
            m_skillLevel    = (m_skillUpgrade.Clone() as TextObj);
            m_skillLevel.Y += 15f;
            m_dialoguePlate.AddChild(m_skillLevel);
            m_skillCost              = new TextObj(Game.JunicodeFont);
            m_skillCost.X            = m_skillIcon.X;
            m_skillCost.Y            = 182f;
            m_skillCost.FontSize     = 10f;
            m_skillCost.DropShadow   = new Vector2(2f, 2f);
            m_skillCost.TextureColor = Color.Yellow;
            m_dialoguePlate.AddChild(m_skillCost);
            m_skillCostBG          = new SpriteObj("SkillTreeGoldIcon_Sprite");
            m_skillCostBG.Position = new Vector2(-180f, 180f);
            m_dialoguePlate.AddChild(m_skillCostBG);
            m_dialoguePlate.ForceDraw = true;
            m_bg           = new SpriteObj("TraitsBG_Sprite");
            m_bg.Scale     = new Vector2(1320f / m_bg.Width, 1320f / m_bg.Width);
            m_bg.ForceDraw = true;
            m_cloud1       = new SpriteObj("TraitsCloud1_Sprite")
            {
                ForceDraw = true
            };
            m_cloud2 = new SpriteObj("TraitsCloud2_Sprite")
            {
                ForceDraw = true
            };
            m_cloud3 = new SpriteObj("TraitsCloud3_Sprite")
            {
                ForceDraw = true
            };
            m_cloud4 = new SpriteObj("TraitsCloud4_Sprite")
            {
                ForceDraw = true
            };
            m_cloud5 = new SpriteObj("TraitsCloud5_Sprite")
            {
                ForceDraw = true
            };
            var opacity = 1f;

            m_cloud1.Opacity               = opacity;
            m_cloud2.Opacity               = opacity;
            m_cloud3.Opacity               = opacity;
            m_cloud4.Opacity               = opacity;
            m_cloud5.Opacity               = opacity;
            m_cloud1.Position              = new Vector2(CDGMath.RandomInt(0, 1520), CDGMath.RandomInt(0, 360));
            m_cloud2.Position              = new Vector2(CDGMath.RandomInt(0, 1520), CDGMath.RandomInt(0, 360));
            m_cloud3.Position              = new Vector2(CDGMath.RandomInt(0, 1520), CDGMath.RandomInt(0, 360));
            m_cloud4.Position              = new Vector2(CDGMath.RandomInt(0, 1520), CDGMath.RandomInt(0, 360));
            m_cloud5.Position              = new Vector2(CDGMath.RandomInt(0, 1520), CDGMath.RandomInt(0, 360));
            m_selectionIcon                = new SpriteObj("IconHalo_Sprite");
            m_selectionIcon.ForceDraw      = true;
            m_selectionIcon.AnimationDelay = 0.1f;
            m_selectionIcon.PlayAnimation();
            m_selectionIcon.Scale        = new Vector2(1.1f, 1.1f);
            m_titleText                  = new SpriteObj("ManorTitleText_Sprite");
            m_titleText.X                = m_titleText.Width / 2f + 20f;
            m_titleText.Y                = 64.8f;
            m_titleText.ForceDraw        = true;
            m_continueText               = new KeyIconTextObj(Game.JunicodeFont);
            m_continueText.ForceDraw     = true;
            m_continueText.FontSize      = 12f;
            m_continueText.DropShadow    = new Vector2(2f, 2f);
            m_continueText.Position      = new Vector2(1300f, 630f);
            m_continueText.Align         = Types.TextAlign.Right;
            m_toggleIconsText            = new KeyIconTextObj(Game.JunicodeFont);
            m_toggleIconsText.ForceDraw  = true;
            m_toggleIconsText.FontSize   = 12f;
            m_toggleIconsText.DropShadow = new Vector2(2f, 2f);
            m_toggleIconsText.Position   = new Vector2(m_continueText.X, m_continueText.Y + 40f);
            m_toggleIconsText.Align      = Types.TextAlign.Right;
            m_confirmText                = new KeyIconTextObj(Game.JunicodeFont);
            m_confirmText.Align          = Types.TextAlign.Right;
            m_confirmText.FontSize       = 12f;
            m_confirmText.DropShadow     = new Vector2(2f, 2f);
            m_confirmText.Position       = new Vector2(1300f, 10f);
            m_confirmText.ForceDraw      = true;
            m_navigationText             = new KeyIconTextObj(Game.JunicodeFont);
            m_navigationText.Align       = Types.TextAlign.Right;
            m_navigationText.FontSize    = 12f;
            m_navigationText.DropShadow  = new Vector2(2f, 2f);
            m_navigationText.Position    = new Vector2(m_confirmText.X, m_confirmText.Y + 40f);
            m_navigationText.ForceDraw   = true;
            m_coinIcon              = new SpriteObj("CoinIcon_Sprite");
            m_coinIcon.Position     = new Vector2(1100f, 585f);
            m_coinIcon.Scale        = new Vector2(0.9f, 0.9f);
            m_coinIcon.ForceDraw    = true;
            m_playerMoney           = new TextObj(Game.GoldFont);
            m_playerMoney.Align     = Types.TextAlign.Left;
            m_playerMoney.Text      = "1000";
            m_playerMoney.FontSize  = 30f;
            m_playerMoney.Position  = new Vector2(m_coinIcon.X + 35f, m_coinIcon.Y);
            m_playerMoney.ForceDraw = true;
            base.LoadContent();
        }
예제 #33
0
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         Console.WriteLine("Disposing Skill Screen");
         this.m_titleText.Dispose();
         this.m_titleText = null;
         this.m_bg.Dispose();
         this.m_bg = null;
         this.m_cloud1.Dispose();
         this.m_cloud1 = null;
         this.m_cloud2.Dispose();
         this.m_cloud2 = null;
         this.m_cloud3.Dispose();
         this.m_cloud3 = null;
         this.m_cloud4.Dispose();
         this.m_cloud4 = null;
         this.m_cloud5.Dispose();
         this.m_cloud5 = null;
         this.m_continueText.Dispose();
         this.m_continueText = null;
         this.m_toggleIconsText.Dispose();
         this.m_toggleIconsText = null;
         this.m_confirmText.Dispose();
         this.m_confirmText = null;
         this.m_navigationText.Dispose();
         this.m_navigationText = null;
         this.m_dialoguePlate.Dispose();
         this.m_dialoguePlate = null;
         this.m_selectionIcon.Dispose();
         this.m_selectionIcon = null;
         this.m_impactEffectPool.Dispose();
         this.m_impactEffectPool = null;
         this.m_manor.Dispose();
         this.m_manor = null;
         this.m_shakeObj = null;
         this.m_playerMoney.Dispose();
         this.m_playerMoney = null;
         this.m_coinIcon.Dispose();
         this.m_coinIcon = null;
         this.m_skillCurrent = null;
         this.m_skillCost = null;
         this.m_skillCostBG = null;
         this.m_skillDescription = null;
         this.m_inputDescription = null;
         this.m_skillUpgrade = null;
         this.m_skillLevel = null;
         this.m_skillIcon = null;
         this.m_skillTitle = null;
         this.m_descriptionDivider.Dispose();
         this.m_descriptionDivider = null;
         base.Dispose();
     }
 }
예제 #34
0
        public override void LoadContent()
        {
            Game.HSVEffect.Parameters["Saturation"].SetValue(0);
            m_background = new BackgroundObj("LineageScreenBG_Sprite");
            m_background.SetRepeated(true, true, Camera);
            m_background.X       -= 6600f;
            m_bgShadow            = new SpriteObj("LineageScreenShadow_Sprite");
            m_bgShadow.Scale      = new Vector2(11f, 11f);
            m_bgShadow.Y         -= 10f;
            m_bgShadow.ForceDraw  = true;
            m_bgShadow.Opacity    = 0.9f;
            m_bgShadow.Position   = new Vector2(660f, 360f);
            m_titleText           = new SpriteObj("LineageTitleText_Sprite");
            m_titleText.X         = 660f;
            m_titleText.Y         = 72f;
            m_titleText.ForceDraw = true;
            var num = 20;

            m_descriptionPlate           = new ObjContainer("LineageScreenPlate_Character");
            m_descriptionPlate.ForceDraw = true;
            m_descriptionPlate.Position  = new Vector2(1320 - m_descriptionPlate.Width - 30,
                                                       (720 - m_descriptionPlate.Height) / 2f);
            var textObj = new TextObj(Game.JunicodeFont);

            textObj.FontSize            = 12f;
            textObj.Align               = Types.TextAlign.Centre;
            textObj.OutlineColour       = new Color(181, 142, 39);
            textObj.OutlineWidth        = 2;
            textObj.Text                = "Sir Skunky the IV";
            textObj.OverrideParentScale = true;
            textObj.Position            = new Vector2(m_descriptionPlate.Width / 2f, 15f);
            textObj.LimitCorners        = true;
            m_descriptionPlate.AddChild(textObj);
            var textObj2 = textObj.Clone() as TextObj;

            textObj2.FontSize = 10f;
            textObj2.Text     = "Knight";
            textObj2.Align    = Types.TextAlign.Left;
            textObj2.X        = num;
            textObj2.Y       += 40f;
            m_descriptionPlate.AddChild(textObj2);
            var keyIconTextObj = new KeyIconTextObj(Game.JunicodeFont);

            keyIconTextObj.FontSize            = 8f;
            keyIconTextObj.OutlineColour       = textObj2.OutlineColour;
            keyIconTextObj.OutlineWidth        = 2;
            keyIconTextObj.OverrideParentScale = true;
            keyIconTextObj.Position            = textObj2.Position;
            keyIconTextObj.Text         = "Class description goes here";
            keyIconTextObj.Align        = Types.TextAlign.Left;
            keyIconTextObj.Y           += 30f;
            keyIconTextObj.X            = num + 20;
            keyIconTextObj.LimitCorners = true;
            m_descriptionPlate.AddChild(keyIconTextObj);
            for (var i = 0; i < 2; i++)
            {
                var textObj3 = textObj2.Clone() as TextObj;
                textObj3.Text  = "TraitName";
                textObj3.X     = num;
                textObj3.Align = Types.TextAlign.Left;
                if (i > 0)
                {
                    textObj3.Y = m_descriptionPlate.GetChildAt(m_descriptionPlate.NumChildren - 1).Y + 50f;
                }
                m_descriptionPlate.AddChild(textObj3);
                var textObj4 = textObj2.Clone() as TextObj;
                textObj4.Text     = "TraitDescription";
                textObj4.X        = num + 20;
                textObj4.FontSize = 8f;
                textObj4.Align    = Types.TextAlign.Left;
                m_descriptionPlate.AddChild(textObj4);
            }
            var textObj5 = textObj2.Clone() as TextObj;

            textObj5.Text     = "SpellName";
            textObj5.FontSize = 10f;
            textObj5.X        = num;
            textObj5.Align    = Types.TextAlign.Left;
            m_descriptionPlate.AddChild(textObj5);
            var keyIconTextObj2 = new KeyIconTextObj(Game.JunicodeFont);

            keyIconTextObj2.OutlineColour       = new Color(181, 142, 39);
            keyIconTextObj2.OutlineWidth        = 2;
            keyIconTextObj2.OverrideParentScale = true;
            keyIconTextObj2.Position            = new Vector2(m_descriptionPlate.Width / 2f, 15f);
            keyIconTextObj2.Y           += 40f;
            keyIconTextObj2.Text         = "SpellDescription";
            keyIconTextObj2.X            = num + 20;
            keyIconTextObj2.FontSize     = 8f;
            keyIconTextObj2.Align        = Types.TextAlign.Left;
            keyIconTextObj2.LimitCorners = true;
            m_descriptionPlate.AddChild(keyIconTextObj2);
            m_masterArray        = new List <LineageObj>();
            m_currentBranchArray = new List <LineageObj>();
            var arg_47E_0 = Vector2.Zero;

            m_confirmText               = new KeyIconTextObj(Game.JunicodeFont);
            m_confirmText.ForceDraw     = true;
            m_confirmText.FontSize      = 12f;
            m_confirmText.DropShadow    = new Vector2(2f, 2f);
            m_confirmText.Position      = new Vector2(1280f, 630f);
            m_confirmText.Align         = Types.TextAlign.Right;
            m_navigationText            = new KeyIconTextObj(Game.JunicodeFont);
            m_navigationText.Align      = Types.TextAlign.Right;
            m_navigationText.FontSize   = 12f;
            m_navigationText.DropShadow = new Vector2(2f, 2f);
            m_navigationText.Position   = new Vector2(m_confirmText.X, m_confirmText.Y + 40f);
            m_navigationText.ForceDraw  = true;
            m_rerollText            = new KeyIconTextObj(Game.JunicodeFont);
            m_rerollText.Align      = Types.TextAlign.Right;
            m_rerollText.FontSize   = 12f;
            m_rerollText.DropShadow = new Vector2(2f, 2f);
            m_rerollText.ForceDraw  = true;
            m_rerollText.Position   = new Vector2(1280f, 40f);
            base.LoadContent();
        }
예제 #35
0
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         foreach (SpriteObj current in this.m_frameList)
         {
             current.Dispose();
         }
         this.m_frameList.Clear();
         this.m_frameList = null;
         foreach (SpriteObj current2 in this.m_plaqueList)
         {
             current2.Dispose();
         }
         this.m_plaqueList.Clear();
         this.m_plaqueList = null;
         this.m_cameraPosList.Clear();
         this.m_cameraPosList = null;
         foreach (TextObj current3 in this.m_nameList)
         {
             current3.Dispose();
         }
         this.m_nameList.Clear();
         this.m_nameList = null;
         foreach (TextObj current4 in this.m_slainCountText)
         {
             current4.Dispose();
         }
         this.m_slainCountText.Clear();
         this.m_slainCountText = null;
         this.m_endingMask.Dispose();
         this.m_endingMask = null;
         this.m_continueText.Dispose();
         this.m_continueText = null;
         this.m_background.Dispose();
         this.m_background = null;
         base.Dispose();
     }
 }
예제 #36
0
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         Console.WriteLine("Disposing Title Screen");
         this.m_godRayTexture.Dispose();
         this.m_godRayTexture = null;
         this.m_bg.Dispose();
         this.m_bg = null;
         this.m_logo.Dispose();
         this.m_logo = null;
         this.m_castle.Dispose();
         this.m_castle = null;
         this.m_smallCloud1.Dispose();
         this.m_smallCloud2.Dispose();
         this.m_smallCloud3.Dispose();
         this.m_smallCloud4.Dispose();
         this.m_smallCloud5.Dispose();
         this.m_smallCloud1 = null;
         this.m_smallCloud2 = null;
         this.m_smallCloud3 = null;
         this.m_smallCloud4 = null;
         this.m_smallCloud5 = null;
         this.m_largeCloud1.Dispose();
         this.m_largeCloud1 = null;
         this.m_largeCloud2.Dispose();
         this.m_largeCloud2 = null;
         this.m_largeCloud3.Dispose();
         this.m_largeCloud3 = null;
         this.m_largeCloud4.Dispose();
         this.m_largeCloud4 = null;
         this.m_pressStartText.Dispose();
         this.m_pressStartText = null;
         this.m_pressStartText2.Dispose();
         this.m_pressStartText2 = null;
         this.m_copyrightText.Dispose();
         this.m_copyrightText = null;
         this.m_versionNumber.Dispose();
         this.m_versionNumber = null;
         this.m_titleText.Dispose();
         this.m_titleText = null;
         this.m_profileCard.Dispose();
         this.m_profileCard = null;
         this.m_optionsIcon.Dispose();
         this.m_optionsIcon = null;
         this.m_creditsIcon.Dispose();
         this.m_creditsIcon = null;
         this.m_profileCardKey.Dispose();
         this.m_profileCardKey = null;
         this.m_optionsKey.Dispose();
         this.m_optionsKey = null;
         this.m_creditsKey.Dispose();
         this.m_creditsKey = null;
         this.m_crown.Dispose();
         this.m_crown = null;
         this.m_profileSelectKey.Dispose();
         this.m_profileSelectKey = null;
         this.m_dlcIcon.Dispose();
         this.m_dlcIcon = null;
         this.m_seagullCue = null;
         base.Dispose();
     }
 }
예제 #37
0
 public override void LoadContent(GraphicsDevice graphics)
 {
     this.m_tutorialText = new KeyIconTextObj(Game.JunicodeLargeFont);
     this.m_tutorialText.FontSize = 28f;
     this.m_tutorialText.Text = "[Input:" + 10 + "] to Jump";
     this.m_tutorialText.Align = Types.TextAlign.Centre;
     this.m_tutorialText.OutlineWidth = 2;
     this.m_tutorialText.ForcedScale = new Vector2(0.8f, 0.8f);
     this.m_creditsText = new TextObj(Game.JunicodeFont);
     this.m_creditsText.FontSize = 20f;
     this.m_creditsText.Text = "Cellar Door Games";
     this.m_creditsText.DropShadow = new Vector2(2f, 2f);
     this.m_creditsTitleText = (this.m_creditsText.Clone() as TextObj);
     this.m_creditsTitleText.FontSize = 14f;
     TextObj textObj = new TextObj(Game.JunicodeFont);
     textObj.FontSize = 12f;
     textObj.Text = "Down Attack this";
     textObj.OutlineWidth = 2;
     textObj.Align = Types.TextAlign.Centre;
     textObj.Position = this.m_waypointList[this.m_waypointList.Count - 1].Position;
     textObj.X -= 25f;
     textObj.Y -= 70f;
     base.GameObjList.Add(textObj);
     base.LoadContent(graphics);
 }
예제 #38
0
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         this.m_title.Dispose();
         this.m_title = null;
         this.m_slot1Container.Dispose();
         this.m_slot1Container = null;
         this.m_slot2Container.Dispose();
         this.m_slot2Container = null;
         this.m_slot3Container.Dispose();
         this.m_slot3Container = null;
         this.m_slotArray.Clear();
         this.m_slotArray = null;
         this.m_selectedSlot = null;
         this.m_confirmText.Dispose();
         this.m_confirmText = null;
         this.m_cancelText.Dispose();
         this.m_cancelText = null;
         this.m_navigationText.Dispose();
         this.m_navigationText = null;
         this.m_deleteProfileText.Dispose();
         this.m_deleteProfileText = null;
         base.Dispose();
     }
 }
예제 #39
0
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         Console.WriteLine("Disposing Map Screen");
         if (this.m_mapDisplay != null)
         {
             this.m_mapDisplay.Dispose();
         }
         this.m_mapDisplay = null;
         if (this.m_legend != null)
         {
             this.m_legend.Dispose();
         }
         this.m_legend = null;
         if (this.m_playerIcon != null)
         {
             this.m_playerIcon.Dispose();
         }
         this.m_playerIcon = null;
         if (this.m_teleporterList != null)
         {
             Array.Clear(this.m_teleporterList, 0, this.m_teleporterList.Length);
         }
         this.m_teleporterList = null;
         if (this.m_titleText != null)
         {
             this.m_titleText.Dispose();
         }
         this.m_titleText = null;
         if (this.m_continueText != null)
         {
             this.m_continueText.Dispose();
         }
         this.m_continueText = null;
         if (this.m_recentreText != null)
         {
             this.m_recentreText.Dispose();
         }
         this.m_recentreText = null;
         if (this.m_navigationText != null)
         {
             this.m_navigationText.Dispose();
         }
         this.m_navigationText = null;
         this.m_alzheimersQuestionMarks.Dispose();
         this.m_alzheimersQuestionMarks = null;
         base.Dispose();
     }
 }
예제 #40
0
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         Console.WriteLine("Disposing Enchantress Screen");
         if (this.m_rainSound != null)
         {
             this.m_rainSound.Dispose();
         }
         this.m_rainSound = null;
         this.m_enchantressUI.Dispose();
         this.m_enchantressUI = null;
         this.m_equipmentDescriptionText.Dispose();
         this.m_equipmentDescriptionText = null;
         this.m_selectionIcon.Dispose();
         this.m_selectionIcon = null;
         this.m_equipmentTitleText.Dispose();
         this.m_equipmentTitleText = null;
         this.m_activeIconArray = null;
         foreach (SpriteObj[] current in this.m_masterIconArray)
         {
             for (int i = 0; i < current.Length; i++)
             {
                 current[i].Dispose();
                 current[i] = null;
             }
             Array.Clear(current, 0, current.Length);
         }
         this.m_masterIconArray.Clear();
         this.m_masterIconArray = null;
         this.m_descriptionText.Dispose();
         this.m_descriptionText = null;
         this.m_unlockCostContainer.Dispose();
         this.m_unlockCostContainer = null;
         this.m_instructionsText.Dispose();
         this.m_instructionsText = null;
         this.m_instructionsTitleText.Dispose();
         this.m_instructionsTitleText = null;
         this.m_equippedIcon.Dispose();
         this.m_equippedIcon = null;
         this.Player = null;
         this.m_confirmText.Dispose();
         this.m_confirmText = null;
         this.m_cancelText.Dispose();
         this.m_cancelText = null;
         this.m_navigationText.Dispose();
         this.m_navigationText = null;
         this.m_playerMoney = null;
         foreach (SpriteObj current2 in this.m_newIconList)
         {
             current2.Dispose();
         }
         this.m_newIconList.Clear();
         this.m_newIconList = null;
         base.Dispose();
     }
 }
예제 #41
0
 public override void LoadContent()
 {
     this.m_continueText = new KeyIconTextObj(Game.JunicodeFont);
     this.m_continueText.FontSize = 14f;
     this.m_continueText.Align = Types.TextAlign.Right;
     this.m_continueText.Opacity = 0f;
     this.m_continueText.Position = new Vector2(1270f, 30f);
     this.m_continueText.ForceDraw = true;
     Vector2 dropShadow = new Vector2(2f, 2f);
     Color textureColor = new Color(255, 254, 128);
     this.m_dialoguePlate = new ObjContainer("DialogBox_Character");
     this.m_dialoguePlate.Position = new Vector2(660f, 610f);
     this.m_dialoguePlate.ForceDraw = true;
     TextObj textObj = new TextObj(Game.JunicodeFont);
     textObj.Align = Types.TextAlign.Centre;
     textObj.Text = "Your valor shown in battle shall never be forgotten.";
     textObj.FontSize = 17f;
     textObj.DropShadow = dropShadow;
     textObj.Position = new Vector2(0f, (float)(-(float)this.m_dialoguePlate.Height / 2 + 25));
     this.m_dialoguePlate.AddChild(textObj);
     KeyIconTextObj keyIconTextObj = new KeyIconTextObj(Game.JunicodeFont);
     keyIconTextObj.FontSize = 12f;
     keyIconTextObj.Align = Types.TextAlign.Centre;
     keyIconTextObj.Text = "\"Arrrrggghhhh\"";
     keyIconTextObj.DropShadow = dropShadow;
     keyIconTextObj.Y = 0f;
     keyIconTextObj.TextureColor = textureColor;
     this.m_dialoguePlate.AddChild(keyIconTextObj);
     TextObj textObj2 = new TextObj(Game.JunicodeFont);
     textObj2.FontSize = 8f;
     textObj2.Text = "-Player X's parting words";
     textObj2.Y = keyIconTextObj.Y;
     textObj2.Y += 40f;
     textObj2.X += 20f;
     textObj2.DropShadow = dropShadow;
     this.m_dialoguePlate.AddChild(textObj2);
     this.m_playerGhost = new SpriteObj("PlayerGhost_Sprite");
     this.m_playerGhost.AnimationDelay = 0.1f;
     this.m_spotlight = new SpriteObj("GameOverSpotlight_Sprite");
     this.m_spotlight.Rotation = 90f;
     this.m_spotlight.ForceDraw = true;
     this.m_spotlight.Position = new Vector2(660f, (float)(40 + this.m_spotlight.Height));
     this.m_playerFrame = new LineageObj(null, true);
     this.m_playerFrame.DisablePlaque = true;
     base.LoadContent();
 }
예제 #42
0
 private void InitializeTextObjs()
 {
     this.m_descriptionText = new TextObj(Game.JunicodeFont);
     this.m_descriptionText.FontSize = 9f;
     this.m_instructionsTitleText = new TextObj(null);
     this.m_instructionsTitleText.Font = Game.JunicodeFont;
     this.m_instructionsTitleText.FontSize = 10f;
     this.m_instructionsTitleText.TextureColor = new Color(237, 202, 138);
     this.m_instructionsTitleText.Text = "Instructions:";
     this.m_instructionsText = new KeyIconTextObj(null);
     this.m_instructionsText.Font = Game.JunicodeFont;
     this.m_instructionsText.FontSize = 10f;
     this.m_unlockCostContainer = new ObjContainer();
     TextObj textObj = new TextObj(null);
     textObj.Font = Game.JunicodeFont;
     textObj.FontSize = 10f;
     textObj.TextureColor = Color.Yellow;
     textObj.Position = new Vector2(50f, 9f);
     this.m_unlockCostContainer.AddChild(new SpriteObj("BlacksmithUI_CoinBG_Sprite"));
     this.m_unlockCostContainer.AddChild(textObj);
     this.m_descriptionText.Position = new Vector2(this.m_enchantressUI.X + 140f, this.m_enchantressUI.Y - (float)(this.m_enchantressUI.Height / 2) + 20f + 40f);
     this.m_instructionsTitleText.Position = new Vector2(this.m_enchantressUI.X + 140f, (float)(this.m_descriptionText.Bounds.Bottom + 20));
     this.m_instructionsText.Position = new Vector2(this.m_instructionsTitleText.X, (float)this.m_instructionsTitleText.Bounds.Bottom);
     this.m_unlockCostContainer.Position = new Vector2(this.m_enchantressUI.X + 114f, 485f);
     this.m_equipmentTitleText = new TextObj(Game.JunicodeFont);
     this.m_equipmentTitleText.ForceDraw = true;
     this.m_equipmentTitleText.FontSize = 10f;
     this.m_equipmentTitleText.DropShadow = new Vector2(2f, 2f);
     this.m_equipmentTitleText.TextureColor = new Color(237, 202, 138);
     this.m_equipmentTitleText.Position = new Vector2(this.m_enchantressUI.X + 140f, this.m_descriptionText.Y - 50f);
     this.m_descriptionText.Visible = false;
     this.m_instructionsTitleText.Visible = false;
     this.m_instructionsText.Visible = false;
     this.m_unlockCostContainer.Visible = false;
 }
예제 #43
0
 public override void LoadContent()
 {
     this.m_enchantressUI = new ObjContainer("BlacksmithUI_Character");
     this.m_enchantressUI.Position = new Vector2(660f, 360f);
     this.m_playerMoney = new TextObj(Game.GoldFont);
     this.m_playerMoney.Align = Types.TextAlign.Left;
     this.m_playerMoney.Text = "1000";
     this.m_playerMoney.FontSize = 30f;
     this.m_playerMoney.OverrideParentScale = true;
     this.m_playerMoney.Position = new Vector2(210f, -225f);
     this.m_playerMoney.AnchorY = 10f;
     this.m_enchantressUI.AddChild(this.m_playerMoney);
     this.m_enchantressUI.GetChildAt(this.m_enchantressUI.NumChildren - 3).ChangeSprite("EnchantressUI_Title_Sprite");
     for (int i = 0; i < this.m_enchantressUI.NumChildren; i++)
     {
         this.m_enchantressUI.GetChildAt(i).Scale = Vector2.Zero;
     }
     this.m_selectionIcon = new SpriteObj("BlacksmithUI_SelectionIcon_Sprite");
     this.m_selectionIcon.PlayAnimation(true);
     this.m_selectionIcon.Scale = Vector2.Zero;
     this.m_selectionIcon.AnimationDelay = 0.1f;
     this.m_selectionIcon.ForceDraw = true;
     this.m_equipmentDescriptionText = new TextObj(Game.JunicodeFont);
     this.m_equipmentDescriptionText.Align = Types.TextAlign.Centre;
     this.m_equipmentDescriptionText.FontSize = 12f;
     this.m_equipmentDescriptionText.Position = new Vector2(230f, -20f);
     this.m_equipmentDescriptionText.Text = "Select a category";
     this.m_equipmentDescriptionText.WordWrap(190);
     this.m_equipmentDescriptionText.Scale = Vector2.Zero;
     this.m_enchantressUI.AddChild(this.m_equipmentDescriptionText);
     foreach (SpriteObj[] current in this.m_masterIconArray)
     {
         Vector2 absPosition = this.m_enchantressUI.GetChildAt(6).AbsPosition;
         absPosition.X += 85f;
         float x = absPosition.X;
         float num = 70f;
         float num2 = 80f;
         for (int j = 0; j < current.Length; j++)
         {
             current[j] = new SpriteObj("BlacksmithUI_QuestionMarkIcon_Sprite");
             current[j].Position = absPosition;
             current[j].Scale = Vector2.Zero;
             current[j].ForceDraw = true;
             absPosition.X += num;
             if (absPosition.X > x + num * 4f)
             {
                 absPosition.X = x;
                 absPosition.Y += num2;
             }
         }
     }
     this.InitializeTextObjs();
     this.m_equippedIcon = new SpriteObj("BlacksmithUI_EquippedIcon_Sprite");
     this.m_confirmText = new KeyIconTextObj(Game.JunicodeFont);
     this.m_confirmText.Text = "to close map";
     this.m_confirmText.FontSize = 12f;
     this.m_confirmText.Position = new Vector2(50f, 550f);
     this.m_confirmText.ForceDraw = true;
     this.m_cancelText = new KeyIconTextObj(Game.JunicodeFont);
     this.m_cancelText.Text = "to re-center on player";
     this.m_cancelText.FontSize = 12f;
     this.m_cancelText.Position = new Vector2(this.m_confirmText.X, this.m_confirmText.Y + 40f);
     this.m_cancelText.ForceDraw = true;
     this.m_navigationText = new KeyIconTextObj(Game.JunicodeFont);
     this.m_navigationText.Text = "to move map";
     this.m_navigationText.FontSize = 12f;
     this.m_navigationText.Position = new Vector2(this.m_confirmText.X, this.m_confirmText.Y + 80f);
     this.m_navigationText.ForceDraw = true;
     this.m_newIconList = new List<SpriteObj>();
     for (int k = 0; k < 55; k++)
     {
         SpriteObj spriteObj = new SpriteObj("BlacksmithUI_NewIcon_Sprite");
         spriteObj.Visible = false;
         spriteObj.Scale = new Vector2(1.1f, 1.1f);
         this.m_newIconList.Add(spriteObj);
     }
     base.LoadContent();
 }
예제 #44
0
 public override void LoadContent()
 {
     m_blacksmithUI                    = new ObjContainer("BlacksmithUI_Character");
     m_blacksmithUI.Position           = new Vector2(660f, 360f);
     m_playerMoney                     = new TextObj(Game.GoldFont);
     m_playerMoney.Align               = Types.TextAlign.Left;
     m_playerMoney.Text                = "1000";
     m_playerMoney.FontSize            = 30f;
     m_playerMoney.OverrideParentScale = true;
     m_playerMoney.Position            = new Vector2(210f, -225f);
     m_playerMoney.AnchorY             = 10f;
     m_blacksmithUI.AddChild(m_playerMoney);
     for (var i = 0; i < m_blacksmithUI.NumChildren; i++)
     {
         m_blacksmithUI.GetChildAt(i).Scale = Vector2.Zero;
     }
     m_selectionIcon = new SpriteObj("BlacksmithUI_SelectionIcon_Sprite");
     m_selectionIcon.PlayAnimation();
     m_selectionIcon.Scale               = Vector2.Zero;
     m_selectionIcon.AnimationDelay      = 0.1f;
     m_selectionIcon.ForceDraw           = true;
     m_equipmentDescriptionText          = new TextObj(Game.JunicodeFont);
     m_equipmentDescriptionText.Align    = Types.TextAlign.Centre;
     m_equipmentDescriptionText.FontSize = 12f;
     m_equipmentDescriptionText.Position = new Vector2(230f, -20f);
     m_equipmentDescriptionText.Text     = "Select a category";
     m_equipmentDescriptionText.WordWrap(190);
     m_equipmentDescriptionText.Scale = Vector2.Zero;
     m_blacksmithUI.AddChild(m_equipmentDescriptionText);
     foreach (var current in m_masterIconArray)
     {
         var absPosition = m_blacksmithUI.GetChildAt(6).AbsPosition;
         absPosition.X += 85f;
         var x    = absPosition.X;
         var num  = 70f;
         var num2 = 80f;
         for (var j = 0; j < current.Length; j++)
         {
             current[j]           = new ObjContainer("BlacksmithUI_QuestionMarkIcon_Character");
             current[j].Position  = absPosition;
             current[j].Scale     = Vector2.Zero;
             current[j].ForceDraw = true;
             absPosition.X       += num;
             if (absPosition.X > x + num * 4f)
             {
                 absPosition.X  = x;
                 absPosition.Y += num2;
             }
         }
     }
     InitializeTextObjs();
     m_equippedIcon             = new SpriteObj("BlacksmithUI_EquippedIcon_Sprite");
     m_confirmText              = new KeyIconTextObj(Game.JunicodeFont);
     m_confirmText.Text         = "to close map";
     m_confirmText.FontSize     = 12f;
     m_confirmText.Position     = new Vector2(50f, 550f);
     m_confirmText.ForceDraw    = true;
     m_cancelText               = new KeyIconTextObj(Game.JunicodeFont);
     m_cancelText.Text          = "to re-center on player";
     m_cancelText.FontSize      = 12f;
     m_cancelText.Position      = new Vector2(m_confirmText.X, m_confirmText.Y + 40f);
     m_cancelText.ForceDraw     = true;
     m_navigationText           = new KeyIconTextObj(Game.JunicodeFont);
     m_navigationText.Text      = "to move map";
     m_navigationText.FontSize  = 12f;
     m_navigationText.Position  = new Vector2(m_confirmText.X, m_confirmText.Y + 80f);
     m_navigationText.ForceDraw = true;
     m_newIconList              = new List <SpriteObj>();
     for (var k = 0; k < 25; k++)
     {
         var spriteObj = new SpriteObj("BlacksmithUI_NewIcon_Sprite");
         spriteObj.Visible = false;
         spriteObj.Scale   = new Vector2(1.1f, 1.1f);
         m_newIconList.Add(spriteObj);
     }
     base.LoadContent();
 }
예제 #45
0
 public override void LoadContent()
 {
     this.m_bgSprite = new ObjContainer("SkillUnlockPlate_Character");
     this.m_bgSprite.ForceDraw = true;
     this.m_optionsTitle = new SpriteObj("OptionsScreenTitle_Sprite");
     this.m_bgSprite.AddChild(this.m_optionsTitle);
     this.m_optionsTitle.Position = new Vector2(0f, (float)(-(float)this.m_bgSprite.Width) / 2f + 60f);
     this.m_changeControlsTitle = new SpriteObj("OptionsScreenChangeControls_Sprite");
     this.m_bgSprite.AddChild(this.m_changeControlsTitle);
     this.m_changeControlsTitle.Position = new Vector2(1320f, this.m_optionsTitle.Y);
     this.m_optionsArray.Add(new ResolutionOptionsObj(this));
     this.m_optionsArray.Add(new FullScreenOptionsObj(this));
     this.m_reduceQualityObj = new ReduceQualityOptionsObj(this);
     this.m_optionsArray.Add(this.m_reduceQualityObj);
     this.m_optionsArray.Add(new MusicVolOptionsObj(this));
     this.m_optionsArray.Add(new SFXVolOptionsObj(this));
     this.m_quickDropObj = new QuickDropOptionsObj(this);
     this.m_optionsArray.Add(this.m_quickDropObj);
     this.m_optionsArray.Add(new DeadZoneOptionsObj(this));
     this.m_optionsArray.Add(new ToggleDirectInputOptionsObj(this));
     this.m_optionsArray.Add(new ChangeControlsOptionsObj(this));
     this.m_optionsArray.Add(new ExitProgramOptionsObj(this));
     this.m_backToMenuObj = new BackToMenuOptionsObj(this);
     this.m_backToMenuObj.X = 420f;
     for (int i = 0; i < this.m_optionsArray.Count; i++)
     {
         this.m_optionsArray[i].X = 420f;
         this.m_optionsArray[i].Y = (float)(160 + i * 30);
     }
     this.m_optionsBar = new SpriteObj("OptionsBar_Sprite");
     this.m_optionsBar.ForceDraw = true;
     this.m_optionsBar.Position = new Vector2(this.m_optionsArray[0].X - 20f, this.m_optionsArray[0].Y);
     this.m_confirmText = new KeyIconTextObj(Game.JunicodeFont);
     this.m_confirmText.Text = "to select option";
     this.m_confirmText.DropShadow = new Vector2(2f, 2f);
     this.m_confirmText.FontSize = 12f;
     this.m_confirmText.Align = Types.TextAlign.Right;
     this.m_confirmText.Position = new Vector2(1290f, 570f);
     this.m_confirmText.ForceDraw = true;
     this.m_cancelText = new KeyIconTextObj(Game.JunicodeFont);
     this.m_cancelText.Text = "to exit options";
     this.m_cancelText.Align = Types.TextAlign.Right;
     this.m_cancelText.DropShadow = new Vector2(2f, 2f);
     this.m_cancelText.FontSize = 12f;
     this.m_cancelText.Position = new Vector2(this.m_confirmText.X, this.m_confirmText.Y + 40f);
     this.m_cancelText.ForceDraw = true;
     this.m_navigationText = new KeyIconTextObj(Game.JunicodeFont);
     this.m_navigationText.Text = "to navigate options";
     this.m_navigationText.Align = Types.TextAlign.Right;
     this.m_navigationText.DropShadow = new Vector2(2f, 2f);
     this.m_navigationText.FontSize = 12f;
     this.m_navigationText.Position = new Vector2(this.m_confirmText.X, this.m_confirmText.Y + 80f);
     this.m_navigationText.ForceDraw = true;
     this.m_quickDropText = new TextObj(Game.JunicodeFont);
     this.m_quickDropText.FontSize = 8f;
     this.m_quickDropText.Text = "*Quick drop allows you to drop down ledges and down-attack in \nthe air by pressing DOWN";
     this.m_quickDropText.Position = new Vector2(420f, 530f);
     this.m_quickDropText.ForceDraw = true;
     this.m_quickDropText.DropShadow = new Vector2(2f, 2f);
     base.LoadContent();
 }
예제 #46
0
        public override void LoadContent()
        {
            m_title           = new SpriteObj("ProfileSelectTitle_Sprite");
            m_title.ForceDraw = true;
            var textObj = new TextObj(Game.JunicodeFont);

            textObj.Align        = Types.TextAlign.Centre;
            textObj.Text         = "- START NEW LEGACY - ";
            textObj.TextureColor = Color.White;
            textObj.OutlineWidth = 2;
            textObj.FontSize     = 10f;
            textObj.Position     = new Vector2(0f, -(textObj.Height / 2f));
            m_slot1Container     = new ObjContainer("ProfileSlotBG_Container");
            var obj = textObj.Clone() as TextObj;

            m_slot1Container.AddChild(obj);
            var spriteObj = new SpriteObj("ProfileSlot1Text_Sprite");

            spriteObj.Position = new Vector2(-130f, -35f);
            m_slot1Container.AddChild(spriteObj);
            var textObj2 = textObj.Clone() as TextObj;

            m_slot1Container.AddChild(textObj2);
            textObj2.Position = new Vector2(120f, 15f);
            var textObj3 = textObj.Clone() as TextObj;

            textObj3.Position = new Vector2(-120f, 15f);
            m_slot1Container.AddChild(textObj3);
            m_slot1Container.ForceDraw = true;
            m_slot2Container           = new ObjContainer("ProfileSlotBG_Container");
            var obj2 = textObj.Clone() as TextObj;

            m_slot2Container.AddChild(obj2);
            var spriteObj2 = new SpriteObj("ProfileSlot2Text_Sprite");

            spriteObj2.Position = new Vector2(-130f, -35f);
            m_slot2Container.AddChild(spriteObj2);
            var textObj4 = textObj.Clone() as TextObj;

            m_slot2Container.AddChild(textObj4);
            textObj4.Position = new Vector2(120f, 15f);
            var textObj5 = textObj.Clone() as TextObj;

            textObj5.Position = new Vector2(-120f, 15f);
            m_slot2Container.AddChild(textObj5);
            m_slot2Container.ForceDraw = true;
            m_slot3Container           = new ObjContainer("ProfileSlotBG_Container");
            var obj3 = textObj.Clone() as TextObj;

            m_slot3Container.AddChild(obj3);
            var spriteObj3 = new SpriteObj("ProfileSlot3Text_Sprite");

            spriteObj3.Position = new Vector2(-130f, -35f);
            m_slot3Container.AddChild(spriteObj3);
            var textObj6 = textObj.Clone() as TextObj;

            m_slot3Container.AddChild(textObj6);
            textObj6.Position = new Vector2(120f, 15f);
            var textObj7 = textObj.Clone() as TextObj;

            textObj7.Position = new Vector2(-120f, 15f);
            m_slot3Container.AddChild(textObj7);
            m_slot3Container.ForceDraw = true;
            m_slotArray.Add(m_slot1Container);
            m_slotArray.Add(m_slot2Container);
            m_slotArray.Add(m_slot3Container);
            m_confirmText                  = new KeyIconTextObj(Game.JunicodeFont);
            m_confirmText.Text             = "to select profile";
            m_confirmText.DropShadow       = new Vector2(2f, 2f);
            m_confirmText.FontSize         = 12f;
            m_confirmText.Align            = Types.TextAlign.Right;
            m_confirmText.Position         = new Vector2(1290f, 570f);
            m_confirmText.ForceDraw        = true;
            m_cancelText                   = new KeyIconTextObj(Game.JunicodeFont);
            m_cancelText.Text              = "to exit screen";
            m_cancelText.Align             = Types.TextAlign.Right;
            m_cancelText.DropShadow        = new Vector2(2f, 2f);
            m_cancelText.FontSize          = 12f;
            m_cancelText.Position          = new Vector2(m_confirmText.X, m_confirmText.Y + 40f);
            m_cancelText.ForceDraw         = true;
            m_navigationText               = new KeyIconTextObj(Game.JunicodeFont);
            m_navigationText.Text          = "to navigate profiles";
            m_navigationText.Align         = Types.TextAlign.Right;
            m_navigationText.DropShadow    = new Vector2(2f, 2f);
            m_navigationText.FontSize      = 12f;
            m_navigationText.Position      = new Vector2(m_confirmText.X, m_confirmText.Y + 80f);
            m_navigationText.ForceDraw     = true;
            m_deleteProfileText            = new KeyIconTextObj(Game.JunicodeFont);
            m_deleteProfileText.Text       = "to delete profile";
            m_deleteProfileText.Align      = Types.TextAlign.Left;
            m_deleteProfileText.DropShadow = new Vector2(2f, 2f);
            m_deleteProfileText.FontSize   = 12f;
            m_deleteProfileText.Position   = new Vector2(20f, m_confirmText.Y + 80f);
            m_deleteProfileText.ForceDraw  = true;
            base.LoadContent();
        }
예제 #47
0
 public override void LoadContent()
 {
     this.m_title = new SpriteObj("ProfileSelectTitle_Sprite");
     this.m_title.ForceDraw = true;
     TextObj textObj = new TextObj(Game.JunicodeFont);
     textObj.Align = Types.TextAlign.Centre;
     textObj.Text = "- START NEW LEGACY - ";
     textObj.TextureColor = Color.White;
     textObj.OutlineWidth = 2;
     textObj.FontSize = 10f;
     textObj.Position = new Vector2(0f, -((float)textObj.Height / 2f));
     this.m_slot1Container = new ObjContainer("ProfileSlotBG_Container");
     TextObj obj = textObj.Clone() as TextObj;
     this.m_slot1Container.AddChild(obj);
     SpriteObj spriteObj = new SpriteObj("ProfileSlot1Text_Sprite");
     spriteObj.Position = new Vector2(-130f, -35f);
     this.m_slot1Container.AddChild(spriteObj);
     TextObj textObj2 = textObj.Clone() as TextObj;
     this.m_slot1Container.AddChild(textObj2);
     textObj2.Position = new Vector2(120f, 15f);
     TextObj textObj3 = textObj.Clone() as TextObj;
     textObj3.Position = new Vector2(-120f, 15f);
     this.m_slot1Container.AddChild(textObj3);
     this.m_slot1Container.ForceDraw = true;
     this.m_slot2Container = new ObjContainer("ProfileSlotBG_Container");
     TextObj obj2 = textObj.Clone() as TextObj;
     this.m_slot2Container.AddChild(obj2);
     SpriteObj spriteObj2 = new SpriteObj("ProfileSlot2Text_Sprite");
     spriteObj2.Position = new Vector2(-130f, -35f);
     this.m_slot2Container.AddChild(spriteObj2);
     TextObj textObj4 = textObj.Clone() as TextObj;
     this.m_slot2Container.AddChild(textObj4);
     textObj4.Position = new Vector2(120f, 15f);
     TextObj textObj5 = textObj.Clone() as TextObj;
     textObj5.Position = new Vector2(-120f, 15f);
     this.m_slot2Container.AddChild(textObj5);
     this.m_slot2Container.ForceDraw = true;
     this.m_slot3Container = new ObjContainer("ProfileSlotBG_Container");
     TextObj obj3 = textObj.Clone() as TextObj;
     this.m_slot3Container.AddChild(obj3);
     SpriteObj spriteObj3 = new SpriteObj("ProfileSlot3Text_Sprite");
     spriteObj3.Position = new Vector2(-130f, -35f);
     this.m_slot3Container.AddChild(spriteObj3);
     TextObj textObj6 = textObj.Clone() as TextObj;
     this.m_slot3Container.AddChild(textObj6);
     textObj6.Position = new Vector2(120f, 15f);
     TextObj textObj7 = textObj.Clone() as TextObj;
     textObj7.Position = new Vector2(-120f, 15f);
     this.m_slot3Container.AddChild(textObj7);
     this.m_slot3Container.ForceDraw = true;
     this.m_slotArray.Add(this.m_slot1Container);
     this.m_slotArray.Add(this.m_slot2Container);
     this.m_slotArray.Add(this.m_slot3Container);
     this.m_confirmText = new KeyIconTextObj(Game.JunicodeFont);
     this.m_confirmText.Text = "to select profile";
     this.m_confirmText.DropShadow = new Vector2(2f, 2f);
     this.m_confirmText.FontSize = 12f;
     this.m_confirmText.Align = Types.TextAlign.Right;
     this.m_confirmText.Position = new Vector2(1290f, 570f);
     this.m_confirmText.ForceDraw = true;
     this.m_cancelText = new KeyIconTextObj(Game.JunicodeFont);
     this.m_cancelText.Text = "to exit screen";
     this.m_cancelText.Align = Types.TextAlign.Right;
     this.m_cancelText.DropShadow = new Vector2(2f, 2f);
     this.m_cancelText.FontSize = 12f;
     this.m_cancelText.Position = new Vector2(this.m_confirmText.X, this.m_confirmText.Y + 40f);
     this.m_cancelText.ForceDraw = true;
     this.m_navigationText = new KeyIconTextObj(Game.JunicodeFont);
     this.m_navigationText.Text = "to navigate profiles";
     this.m_navigationText.Align = Types.TextAlign.Right;
     this.m_navigationText.DropShadow = new Vector2(2f, 2f);
     this.m_navigationText.FontSize = 12f;
     this.m_navigationText.Position = new Vector2(this.m_confirmText.X, this.m_confirmText.Y + 80f);
     this.m_navigationText.ForceDraw = true;
     this.m_deleteProfileText = new KeyIconTextObj(Game.JunicodeFont);
     this.m_deleteProfileText.Text = "to delete profile";
     this.m_deleteProfileText.Align = Types.TextAlign.Left;
     this.m_deleteProfileText.DropShadow = new Vector2(2f, 2f);
     this.m_deleteProfileText.FontSize = 12f;
     this.m_deleteProfileText.Position = new Vector2(20f, this.m_confirmText.Y + 80f);
     this.m_deleteProfileText.ForceDraw = true;
     base.LoadContent();
 }
예제 #48
0
 public override void LoadContent()
 {
     this.m_frontCard = new ObjContainer("CardFront_Character");
     this.m_frontCard.ForceDraw = true;
     this.m_frontCard.Position = new Vector2(145f, 30f);
     this.m_frontCard.GetChildAt(0).TextureColor = Color.Red;
     this.m_frontCard.GetChildAt(2).TextureColor = Color.Red;
     this.LoadFrontCard();
     this.m_backCard = new ObjContainer("CardBack_Character");
     this.m_backCard.ForceDraw = true;
     this.m_backCard.Position = new Vector2(this.m_frontCard.X + (float)this.m_backCard.Width + 100f, this.m_frontCard.Y);
     this.m_backCard.AddChild(this.m_playerName.Clone() as GameObj);
     this.m_backCard.GetChildAt(0).TextureColor = Color.Red;
     this.m_backCard.GetChildAt(2).TextureColor = Color.Red;
     this.LoadBackCard();
     this.m_playerSprite = new ObjContainer("PlayerIdle_Character");
     this.m_playerSprite.ForceDraw = true;
     this.m_playerSprite.Scale = new Vector2(2f, 2f);
     this.m_playerSprite.OutlineWidth = 2;
     this.m_tombStoneSprite = new SpriteObj("Tombstone_Sprite");
     this.m_tombStoneSprite.ForceDraw = true;
     this.m_tombStoneSprite.Scale = new Vector2(3f, 3f);
     this.m_tombStoneSprite.OutlineWidth = 2;
     this.m_spellIcon = new SpriteObj(SpellType.Icon(12));
     this.m_spellIcon.Position = new Vector2(350f, 295f);
     this.m_spellIcon.OutlineWidth = 2;
     this.m_spellIcon.ForceDraw = true;
     this.m_cancelText = new KeyIconTextObj(Game.JunicodeFont);
     this.m_cancelText.Text = "to exit options";
     this.m_cancelText.Align = Types.TextAlign.Right;
     this.m_cancelText.DropShadow = new Vector2(2f, 2f);
     this.m_cancelText.FontSize = 12f;
     this.m_cancelText.Position = new Vector2(1290f, 650f);
     this.m_cancelText.ForceDraw = true;
     base.LoadContent();
 }
예제 #49
0
        public override void LoadContent(GraphicsDevice graphics)
        {
            m_continueText           = new KeyIconTextObj(Game.JunicodeFont);
            m_continueText.FontSize  = 14f;
            m_continueText.Align     = Types.TextAlign.Right;
            m_continueText.Position  = new Vector2(1270f, 650f);
            m_continueText.ForceDraw = true;
            m_continueText.Opacity   = 0f;
            m_background             = new BackgroundObj("LineageScreenBG_Sprite");
            m_background.SetRepeated(true, true, Game.ScreenManager.Camera);
            m_background.X           -= 6600f;
            m_background.Opacity      = 0.7f;
            m_endingMask              = new SpriteObj("Blank_Sprite");
            m_endingMask.ForceDraw    = true;
            m_endingMask.TextureColor = Color.Black;
            m_endingMask.Scale        = new Vector2(1330f / m_endingMask.Width, 730f / m_endingMask.Height);
            m_cameraPosList           = new List <Vector2>();
            m_frameList      = new List <SpriteObj>();
            m_nameList       = new List <TextObj>();
            m_slainCountText = new List <TextObj>();
            foreach (var current in GameObjList)
            {
                if (current is WaypointObj)
                {
                    m_cameraPosList.Add(default(Vector2));
                }
            }
            var cultureInfo = (CultureInfo)CultureInfo.CurrentCulture.Clone();

            cultureInfo.NumberFormat.CurrencyDecimalSeparator = ".";
            foreach (var current2 in GameObjList)
            {
                if (current2 is WaypointObj)
                {
                    var index = int.Parse(current2.Name, NumberStyles.Any, cultureInfo);
                    m_cameraPosList[index] = current2.Position;
                }
            }
            var num = 150f;

            foreach (var current3 in EnemyList)
            {
                current3.Initialize();
                current3.PauseEnemy(true);
                current3.IsWeighted = false;
                current3.PlayAnimation();
                current3.UpdateCollisionBoxes();
                var spriteObj = new SpriteObj("LineageScreenFrame_Sprite");
                spriteObj.DropShadow = new Vector2(4f, 6f);
                if (current3.Difficulty == GameTypes.EnemyDifficulty.MINIBOSS)
                {
                    spriteObj.ChangeSprite("GiantPortrait_Sprite");
                    FixMiniboss(current3);
                }
                spriteObj.Scale = new Vector2((current3.Width + num) / spriteObj.Width,
                                              (current3.Height + num) / spriteObj.Height);
                if (spriteObj.ScaleX < 1f)
                {
                    spriteObj.ScaleX = 1f;
                }
                if (spriteObj.ScaleY < 1f)
                {
                    spriteObj.ScaleY = 1f;
                }
                spriteObj.Position = new Vector2(current3.X, current3.Bounds.Top + current3.Height / 2f);
                m_frameList.Add(spriteObj);
                var textObj = new TextObj(Game.JunicodeFont);
                textObj.FontSize      = 12f;
                textObj.Align         = Types.TextAlign.Centre;
                textObj.Text          = current3.Name;
                textObj.OutlineColour = new Color(181, 142, 39);
                textObj.OutlineWidth  = 2;
                textObj.Position      = new Vector2(spriteObj.X, spriteObj.Bounds.Bottom + 40);
                m_nameList.Add(textObj);
                var textObj2 = new TextObj(Game.JunicodeFont);
                textObj2.FontSize      = 10f;
                textObj2.Align         = Types.TextAlign.Centre;
                textObj2.OutlineColour = new Color(181, 142, 39);
                textObj2.Text          = "Slain: 0";
                textObj2.OutlineWidth  = 2;
                textObj2.HeadingX      = current3.Type;
                textObj2.HeadingY      = (float)current3.Difficulty;
                textObj2.Position      = new Vector2(spriteObj.X, spriteObj.Bounds.Bottom + 80);
                m_slainCountText.Add(textObj2);
                var type = current3.Type;
                if (type <= 15)
                {
                    if (type != 1)
                    {
                        if (type != 7)
                        {
                            if (type == 15)
                            {
                                if (current3.Difficulty == GameTypes.EnemyDifficulty.MINIBOSS)
                                {
                                    if (current3.Flip == SpriteEffects.None)
                                    {
                                        current3.X -= 25f;
                                    }
                                    else
                                    {
                                        current3.X += 25f;
                                    }
                                }
                            }
                        }
                        else if (current3.Difficulty == GameTypes.EnemyDifficulty.MINIBOSS)
                        {
                            current3.X += 30f;
                            current3.Y -= 20f;
                        }
                    }
                    else
                    {
                        (current3 as EnemyObj_BallAndChain).BallAndChain.Visible  = false;
                        (current3 as EnemyObj_BallAndChain).BallAndChain2.Visible = false;
                    }
                }
                else if (type != 20)
                {
                    if (type != 29)
                    {
                        if (type == 32)
                        {
                            if (current3.Difficulty == GameTypes.EnemyDifficulty.MINIBOSS)
                            {
                                spriteObj.Visible = false;
                            }
                        }
                    }
                    else
                    {
                        if (current3.Difficulty == GameTypes.EnemyDifficulty.ADVANCED)
                        {
                            (current3 as EnemyObj_LastBoss).ForceSecondForm(true);
                            current3.ChangeSprite("EnemyLastBossIdle_Character");
                            current3.PlayAnimation();
                        }
                        spriteObj.ChangeSprite("GiantPortrait_Sprite");
                        spriteObj.Scale = Vector2.One;
                        spriteObj.Scale = new Vector2((current3.Width + num) / spriteObj.Width,
                                                      (current3.Height + num) / spriteObj.Height);
                        textObj.Position  = new Vector2(spriteObj.X, spriteObj.Bounds.Bottom + 40);
                        textObj2.Position = new Vector2(spriteObj.X, spriteObj.Bounds.Bottom + 80);
                    }
                }
                else
                {
                    current3.ChangeSprite("EnemyZombieWalk_Character");
                    current3.PlayAnimation();
                }
                var spriteObj2 = new SpriteObj("LineageScreenPlaque1Long_Sprite");
                spriteObj2.Scale    = new Vector2(1.8f, 1.8f);
                spriteObj2.Position = new Vector2(spriteObj.X, spriteObj.Bounds.Bottom + 80);
                m_plaqueList.Add(spriteObj2);
            }
            base.LoadContent(graphics);
        }
예제 #50
0
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         Console.WriteLine("Disposing Profile Card Screen");
         this.m_frontCard.Dispose();
         this.m_frontCard = null;
         this.m_backCard.Dispose();
         this.m_backCard = null;
         this.m_playerName = null;
         this.m_money = null;
         this.m_levelClass = null;
         this.m_playerHUD = null;
         this.m_frontTrait1 = null;
         this.m_frontTrait2 = null;
         this.m_playerBG = null;
         this.m_classDescription = null;
         this.m_author = null;
         this.m_playerStats = null;
         this.m_equipmentTitle = null;
         this.m_runesTitle = null;
         this.m_equipmentList.Clear();
         this.m_equipmentList = null;
         this.m_runeBackTitleList.Clear();
         this.m_runeBackTitleList = null;
         this.m_runeBackDescriptionList.Clear();
         this.m_runeBackDescriptionList = null;
         this.m_playerSprite.Dispose();
         this.m_playerSprite = null;
         this.m_spellIcon.Dispose();
         this.m_spellIcon = null;
         this.m_tombStoneSprite.Dispose();
         this.m_tombStoneSprite = null;
         this.m_cancelText.Dispose();
         this.m_cancelText = null;
         this.m_dataList1.Clear();
         this.m_dataList1 = null;
         this.m_dataList2.Clear();
         this.m_dataList2 = null;
         base.Dispose();
     }
 }
예제 #51
0
 public override void LoadContent()
 {
     this.m_ppm = new PostProcessingManager(base.ScreenManager.Game, base.ScreenManager.Camera);
     this.m_godRay = new CrepuscularRays(base.ScreenManager.Game, Vector2.One * 0.5f, "GameSpritesheets/flare3", 2f, 0.97f, 0.97f, 0.5f, 1.25f);
     this.m_ppm.AddEffect(this.m_godRay);
     this.m_godRayTexture = new RenderTarget2D(base.Camera.GraphicsDevice, 1320, 720, false, SurfaceFormat.Color, DepthFormat.None);
     this.m_godRay.lightSource = new Vector2(0.495f, 0.3f);
     this.m_bg = new SpriteObj("TitleBG_Sprite");
     this.m_bg.Scale = new Vector2(1320f / (float)this.m_bg.Width, 720f / (float)this.m_bg.Height);
     this.m_bg.TextureColor = Color.Red;
     this.m_hardCoreModeOpacity = 0f;
     this.m_logo = new SpriteObj("TitleLogo_Sprite");
     this.m_logo.Position = new Vector2(660f, 360f);
     this.m_logo.DropShadow = new Vector2(0f, 5f);
     this.m_castle = new SpriteObj("TitleCastle_Sprite");
     this.m_castle.Scale = new Vector2(2f, 2f);
     this.m_castle.Position = new Vector2(630f, (float)(720 - this.m_castle.Height / 2));
     this.m_smallCloud1 = new SpriteObj("TitleSmallCloud1_Sprite");
     this.m_smallCloud1.Position = new Vector2(660f, 0f);
     this.m_smallCloud2 = new SpriteObj("TitleSmallCloud2_Sprite");
     this.m_smallCloud2.Position = this.m_smallCloud1.Position;
     this.m_smallCloud3 = new SpriteObj("TitleSmallCloud3_Sprite");
     this.m_smallCloud3.Position = this.m_smallCloud1.Position;
     this.m_smallCloud4 = new SpriteObj("TitleSmallCloud4_Sprite");
     this.m_smallCloud4.Position = this.m_smallCloud1.Position;
     this.m_smallCloud5 = new SpriteObj("TitleSmallCloud5_Sprite");
     this.m_smallCloud5.Position = this.m_smallCloud1.Position;
     this.m_largeCloud1 = new SpriteObj("TitleLargeCloud1_Sprite");
     this.m_largeCloud1.Position = new Vector2(0f, (float)(720 - this.m_largeCloud1.Height));
     this.m_largeCloud2 = new SpriteObj("TitleLargeCloud2_Sprite");
     this.m_largeCloud2.Position = new Vector2(440f, (float)(720 - this.m_largeCloud2.Height + 130));
     this.m_largeCloud3 = new SpriteObj("TitleLargeCloud1_Sprite");
     this.m_largeCloud3.Position = new Vector2(880f, (float)(720 - this.m_largeCloud3.Height + 50));
     this.m_largeCloud3.Flip = SpriteEffects.FlipHorizontally;
     this.m_largeCloud4 = new SpriteObj("TitleLargeCloud2_Sprite");
     this.m_largeCloud4.Position = new Vector2(1320f, (float)(720 - this.m_largeCloud4.Height));
     this.m_largeCloud4.Flip = SpriteEffects.FlipHorizontally;
     this.m_titleText = new TextObj(null);
     this.m_titleText.Font = Game.JunicodeFont;
     this.m_titleText.FontSize = 45f;
     this.m_titleText.Text = "ROGUE CASTLE";
     this.m_titleText.Position = new Vector2(660f, 60f);
     this.m_titleText.Align = Types.TextAlign.Centre;
     this.m_copyrightText = new TextObj(Game.JunicodeFont);
     this.m_copyrightText.FontSize = 8f;
     this.m_copyrightText.Text = " Copyright(C) 2011-2013, Cellar Door Games Inc. Rogue Legacy(TM) is a trademark or registered trademark of Cellar Door Games Inc. All Rights Reserved.";
     this.m_copyrightText.Align = Types.TextAlign.Centre;
     this.m_copyrightText.Position = new Vector2(660f, (float)(720 - this.m_copyrightText.Height - 10));
     this.m_copyrightText.DropShadow = new Vector2(1f, 2f);
     this.m_versionNumber = (this.m_copyrightText.Clone() as TextObj);
     this.m_versionNumber.Align = Types.TextAlign.Right;
     this.m_versionNumber.FontSize = 8f;
     this.m_versionNumber.Position = new Vector2(1305f, 5f);
     this.m_versionNumber.Text = "v1.2.0b";
     this.m_pressStartText = new KeyIconTextObj(Game.JunicodeFont);
     this.m_pressStartText.FontSize = 20f;
     this.m_pressStartText.Text = "Press Enter to begin";
     this.m_pressStartText.Align = Types.TextAlign.Centre;
     this.m_pressStartText.Position = new Vector2(660f, 560f);
     this.m_pressStartText.DropShadow = new Vector2(2f, 2f);
     this.m_pressStartText2 = new TextObj(Game.JunicodeFont);
     this.m_pressStartText2.FontSize = 20f;
     this.m_pressStartText2.Text = "Press Enter to begin";
     this.m_pressStartText2.Align = Types.TextAlign.Centre;
     this.m_pressStartText2.Position = this.m_pressStartText.Position;
     this.m_pressStartText2.Y -= (float)(this.m_pressStartText.Height - 5);
     this.m_pressStartText2.DropShadow = new Vector2(2f, 2f);
     this.m_profileCard = new SpriteObj("TitleProfileCard_Sprite");
     this.m_profileCard.OutlineWidth = 2;
     this.m_profileCard.Scale = new Vector2(2f, 2f);
     this.m_profileCard.Position = new Vector2((float)this.m_profileCard.Width, (float)(720 - this.m_profileCard.Height));
     this.m_profileCard.ForceDraw = true;
     this.m_optionsIcon = new SpriteObj("TitleOptionsIcon_Sprite");
     this.m_optionsIcon.Scale = new Vector2(2f, 2f);
     this.m_optionsIcon.OutlineWidth = this.m_profileCard.OutlineWidth;
     this.m_optionsIcon.Position = new Vector2((float)(1320 - this.m_optionsIcon.Width * 2), this.m_profileCard.Y);
     this.m_optionsIcon.ForceDraw = true;
     this.m_creditsIcon = new SpriteObj("TitleCreditsIcon_Sprite");
     this.m_creditsIcon.Scale = new Vector2(2f, 2f);
     this.m_creditsIcon.OutlineWidth = this.m_profileCard.OutlineWidth;
     this.m_creditsIcon.Position = new Vector2(this.m_optionsIcon.X + 120f, this.m_profileCard.Y);
     this.m_creditsIcon.ForceDraw = true;
     this.m_profileCardKey = new KeyIconTextObj(Game.JunicodeFont);
     this.m_profileCardKey.Align = Types.TextAlign.Centre;
     this.m_profileCardKey.FontSize = 12f;
     this.m_profileCardKey.Text = "[Input:" + 7 + "]";
     this.m_profileCardKey.Position = new Vector2(this.m_profileCard.X, (float)(this.m_profileCard.Bounds.Top - this.m_profileCardKey.Height - 10));
     this.m_profileCardKey.ForceDraw = true;
     this.m_optionsKey = new KeyIconTextObj(Game.JunicodeFont);
     this.m_optionsKey.Align = Types.TextAlign.Centre;
     this.m_optionsKey.FontSize = 12f;
     this.m_optionsKey.Text = "[Input:" + 4 + "]";
     this.m_optionsKey.Position = new Vector2(this.m_optionsIcon.X, (float)(this.m_optionsIcon.Bounds.Top - this.m_optionsKey.Height - 10));
     this.m_optionsKey.ForceDraw = true;
     this.m_creditsKey = new KeyIconTextObj(Game.JunicodeFont);
     this.m_creditsKey.Align = Types.TextAlign.Centre;
     this.m_creditsKey.FontSize = 12f;
     this.m_creditsKey.Text = "[Input:" + 6 + "]";
     this.m_creditsKey.Position = new Vector2(this.m_creditsIcon.X, (float)(this.m_creditsIcon.Bounds.Top - this.m_creditsKey.Height - 10));
     this.m_creditsKey.ForceDraw = true;
     this.m_profileSelectKey = new KeyIconTextObj(Game.JunicodeFont);
     this.m_profileSelectKey.Align = Types.TextAlign.Left;
     this.m_profileSelectKey.FontSize = 10f;
     this.m_profileSelectKey.Text = string.Concat(new object[]
     {
         "[Input:",
         25,
         "] to Change Profile (",
         Game.GameConfig.ProfileSlot,
         ")"
     });
     this.m_profileSelectKey.Position = new Vector2(30f, 15f);
     this.m_profileSelectKey.ForceDraw = true;
     this.m_profileSelectKey.DropShadow = new Vector2(2f, 2f);
     this.m_crown = new SpriteObj("Crown_Sprite");
     this.m_crown.ForceDraw = true;
     this.m_crown.Scale = new Vector2(0.7f, 0.7f);
     this.m_crown.Rotation = -30f;
     this.m_crown.OutlineWidth = 2;
     this.m_dlcIcon = new SpriteObj("MedallionPiece5_Sprite");
     this.m_dlcIcon.Position = new Vector2(950f, 310f);
     this.m_dlcIcon.ForceDraw = true;
     this.m_dlcIcon.TextureColor = Color.Yellow;
     base.LoadContent();
 }
예제 #52
0
 public override void LoadContent()
 {
     this.m_levelUpBGImage = new SpriteObj("BlueprintFoundBG_Sprite");
     this.m_levelUpBGImage.ForceDraw = true;
     this.m_levelUpBGImage.Visible = false;
     this.m_levelUpParticles = new SpriteObj[10];
     for (int i = 0; i < this.m_levelUpParticles.Length; i++)
     {
         this.m_levelUpParticles[i] = new SpriteObj("LevelUpParticleFX_Sprite");
         this.m_levelUpParticles[i].AnimationDelay = 0.0416666679f;
         this.m_levelUpParticles[i].ForceDraw = true;
         this.m_levelUpParticles[i].Visible = false;
     }
     this.m_itemSprite = new SpriteObj("BlueprintIcon_Sprite");
     this.m_itemSprite.ForceDraw = true;
     this.m_itemSprite.OutlineWidth = 2;
     this.m_tripStat1 = (this.m_itemSprite.Clone() as SpriteObj);
     this.m_tripStat2 = (this.m_itemSprite.Clone() as SpriteObj);
     this.m_itemFoundText = new TextObj(Game.JunicodeFont);
     this.m_itemFoundText.FontSize = 18f;
     this.m_itemFoundText.Align = Types.TextAlign.Centre;
     this.m_itemFoundText.Text = "";
     this.m_itemFoundText.Position = this.m_itemEndPos;
     this.m_itemFoundText.Y += 70f;
     this.m_itemFoundText.ForceDraw = true;
     this.m_itemFoundText.OutlineWidth = 2;
     this.m_tripStat1FoundText = (this.m_itemFoundText.Clone() as TextObj);
     this.m_tripStat2FoundText = (this.m_itemFoundText.Clone() as TextObj);
     this.m_itemFoundSprite = new SpriteObj("BlueprintFoundText_Sprite");
     this.m_itemFoundSprite.ForceDraw = true;
     this.m_itemFoundSprite.Visible = false;
     this.m_continueText = new KeyIconTextObj(Game.JunicodeFont);
     this.m_continueText.FontSize = 14f;
     this.m_continueText.Text = "to continue";
     this.m_continueText.Align = Types.TextAlign.Centre;
     this.m_continueText.Position = new Vector2((float)(1320 - this.m_continueText.Width), (float)(720 - this.m_continueText.Height - 10));
     this.m_continueText.ForceDraw = true;
     base.LoadContent();
 }
예제 #53
0
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         this.m_tutorialText.Dispose();
         this.m_tutorialText = null;
         this.m_waypointList.Clear();
         this.m_waypointList = null;
         this.m_creditsText.Dispose();
         this.m_creditsText = null;
         this.m_creditsTitleText.Dispose();
         this.m_creditsTitleText = null;
         Array.Clear(this.m_tutorialTextList, 0, this.m_tutorialTextList.Length);
         Array.Clear(this.m_tutorialControllerTextList, 0, this.m_tutorialControllerTextList.Length);
         Array.Clear(this.m_creditsTextTitleList, 0, this.m_creditsTextTitleList.Length);
         Array.Clear(this.m_creditsTextList, 0, this.m_creditsTextList.Length);
         this.m_tutorialTextList = null;
         this.m_creditsTextTitleList = null;
         this.m_creditsTextList = null;
         this.m_tutorialControllerTextList = null;
         this.m_door = null;
         this.m_doorSprite = null;
         this.m_diary = null;
         this.m_speechBubble = null;
         base.Dispose();
     }
 }
예제 #54
0
 public override void LoadContent()
 {
     m_bgSprite           = new ObjContainer("SkillUnlockPlate_Character");
     m_bgSprite.ForceDraw = true;
     m_optionsTitle       = new SpriteObj("OptionsScreenTitle_Sprite");
     m_bgSprite.AddChild(m_optionsTitle);
     m_optionsTitle.Position = new Vector2(0f, -(float)m_bgSprite.Width / 2f + 60f);
     m_changeControlsTitle   = new SpriteObj("OptionsScreenChangeControls_Sprite");
     m_bgSprite.AddChild(m_changeControlsTitle);
     m_changeControlsTitle.Position = new Vector2(1320f, m_optionsTitle.Y);
     m_optionsArray.Add(new ResolutionOptionsObj(this));
     m_optionsArray.Add(new FullScreenOptionsObj(this));
     m_reduceQualityObj = new ReduceQualityOptionsObj(this);
     m_optionsArray.Add(m_reduceQualityObj);
     m_optionsArray.Add(new MusicVolOptionsObj(this));
     m_optionsArray.Add(new SFXVolOptionsObj(this));
     m_quickDropObj = new QuickDropOptionsObj(this);
     m_optionsArray.Add(m_quickDropObj);
     m_optionsArray.Add(new DeadZoneOptionsObj(this));
     m_optionsArray.Add(new ToggleDirectInputOptionsObj(this));
     m_optionsArray.Add(new ChangeControlsOptionsObj(this));
     m_optionsArray.Add(new ExitProgramOptionsObj(this));
     m_backToMenuObj   = new BackToMenuOptionsObj(this);
     m_backToMenuObj.X = 420f;
     for (var i = 0; i < m_optionsArray.Count; i++)
     {
         m_optionsArray[i].X = 420f;
         m_optionsArray[i].Y = 160 + i * 30;
     }
     m_optionsBar                = new SpriteObj("OptionsBar_Sprite");
     m_optionsBar.ForceDraw      = true;
     m_optionsBar.Position       = new Vector2(m_optionsArray[0].X - 20f, m_optionsArray[0].Y);
     m_confirmText               = new KeyIconTextObj(Game.JunicodeFont);
     m_confirmText.Text          = "to select option";
     m_confirmText.DropShadow    = new Vector2(2f, 2f);
     m_confirmText.FontSize      = 12f;
     m_confirmText.Align         = Types.TextAlign.Right;
     m_confirmText.Position      = new Vector2(1290f, 570f);
     m_confirmText.ForceDraw     = true;
     m_cancelText                = new KeyIconTextObj(Game.JunicodeFont);
     m_cancelText.Text           = "to exit options";
     m_cancelText.Align          = Types.TextAlign.Right;
     m_cancelText.DropShadow     = new Vector2(2f, 2f);
     m_cancelText.FontSize       = 12f;
     m_cancelText.Position       = new Vector2(m_confirmText.X, m_confirmText.Y + 40f);
     m_cancelText.ForceDraw      = true;
     m_navigationText            = new KeyIconTextObj(Game.JunicodeFont);
     m_navigationText.Text       = "to navigate options";
     m_navigationText.Align      = Types.TextAlign.Right;
     m_navigationText.DropShadow = new Vector2(2f, 2f);
     m_navigationText.FontSize   = 12f;
     m_navigationText.Position   = new Vector2(m_confirmText.X, m_confirmText.Y + 80f);
     m_navigationText.ForceDraw  = true;
     m_quickDropText             = new TextObj(Game.JunicodeFont);
     m_quickDropText.FontSize    = 8f;
     m_quickDropText.Text        =
         "*Quick drop allows you to drop down ledges and down-attack in \nthe air by pressing DOWN";
     m_quickDropText.Position   = new Vector2(420f, 530f);
     m_quickDropText.ForceDraw  = true;
     m_quickDropText.DropShadow = new Vector2(2f, 2f);
     base.LoadContent();
 }
예제 #55
0
 public override void LoadContent()
 {
     this.m_impactEffectPool.Initialize();
     this.m_manor = new ObjContainer("TraitsCastle_Character");
     this.m_manor.Scale = new Vector2(2f, 2f);
     this.m_manor.ForceDraw = true;
     for (int i = 0; i < this.m_manor.NumChildren; i++)
     {
         this.m_manor.GetChildAt(i).Visible = false;
         this.m_manor.GetChildAt(i).Opacity = 0f;
     }
     this.m_dialoguePlate = new ObjContainer("TraitsScreenPlate_Container");
     this.m_dialoguePlate.ForceDraw = true;
     this.m_dialoguePlate.Position = new Vector2((float)(1320 - this.m_dialoguePlate.Width / 2), 360f);
     this.m_skillIcon = new SpriteObj("Icon_Health_Up_Sprite");
     this.m_skillIcon.Position = new Vector2(-110f, -200f);
     this.m_dialoguePlate.AddChild(this.m_skillIcon);
     this.m_skillTitle = new TextObj(Game.JunicodeFont);
     this.m_skillTitle.Text = "Skill name";
     this.m_skillTitle.DropShadow = new Vector2(2f, 2f);
     this.m_skillTitle.TextureColor = new Color(236, 197, 132);
     this.m_skillTitle.Position = new Vector2((float)(this.m_skillIcon.Bounds.Right + 15), this.m_skillIcon.Y);
     this.m_skillTitle.FontSize = 12f;
     this.m_dialoguePlate.AddChild(this.m_skillTitle);
     this.m_skillDescription = new TextObj(Game.JunicodeFont);
     this.m_skillDescription.Text = "Description text goes here.  Let's see how well the word wrap function works.";
     this.m_skillDescription.Position = new Vector2(this.m_dialoguePlate.GetChildAt(1).X - 30f, (float)(this.m_dialoguePlate.GetChildAt(1).Bounds.Bottom + 20));
     this.m_skillDescription.FontSize = 10f;
     this.m_skillDescription.DropShadow = new Vector2(2f, 2f);
     this.m_skillDescription.TextureColor = new Color(228, 218, 208);
     this.m_skillDescription.WordWrap(this.m_dialoguePlate.Width - 50);
     this.m_dialoguePlate.AddChild(this.m_skillDescription);
     this.m_inputDescription = new KeyIconTextObj(Game.JunicodeFont);
     this.m_inputDescription.Text = "Input descriptions go here..";
     this.m_inputDescription.Position = new Vector2(this.m_skillIcon.X - 30f, (float)(this.m_skillDescription.Bounds.Bottom + 20));
     this.m_inputDescription.FontSize = 10f;
     this.m_inputDescription.DropShadow = new Vector2(2f, 2f);
     this.m_inputDescription.TextureColor = new Color(228, 218, 208);
     this.m_inputDescription.WordWrap(this.m_dialoguePlate.Width - 50);
     this.m_dialoguePlate.AddChild(this.m_inputDescription);
     this.m_descriptionDivider = new SpriteObj("Blank_Sprite");
     this.m_descriptionDivider.ScaleX = 250f / (float)this.m_descriptionDivider.Width;
     this.m_descriptionDivider.ScaleY = 0.25f;
     this.m_descriptionDivider.ForceDraw = true;
     this.m_descriptionDivider.DropShadow = new Vector2(2f, 2f);
     this.m_skillCurrent = new TextObj(Game.JunicodeFont);
     this.m_skillCurrent.Position = new Vector2(this.m_inputDescription.X, (float)(this.m_inputDescription.Bounds.Bottom + 10));
     this.m_skillCurrent.FontSize = 10f;
     this.m_skillCurrent.DropShadow = new Vector2(2f, 2f);
     this.m_skillCurrent.TextureColor = new Color(228, 218, 208);
     this.m_skillCurrent.WordWrap(this.m_dialoguePlate.Width - 50);
     this.m_dialoguePlate.AddChild(this.m_skillCurrent);
     this.m_skillUpgrade = (this.m_skillCurrent.Clone() as TextObj);
     this.m_skillUpgrade.Y += 15f;
     this.m_dialoguePlate.AddChild(this.m_skillUpgrade);
     this.m_skillLevel = (this.m_skillUpgrade.Clone() as TextObj);
     this.m_skillLevel.Y += 15f;
     this.m_dialoguePlate.AddChild(this.m_skillLevel);
     this.m_skillCost = new TextObj(Game.JunicodeFont);
     this.m_skillCost.X = this.m_skillIcon.X;
     this.m_skillCost.Y = 182f;
     this.m_skillCost.FontSize = 10f;
     this.m_skillCost.DropShadow = new Vector2(2f, 2f);
     this.m_skillCost.TextureColor = Color.Yellow;
     this.m_dialoguePlate.AddChild(this.m_skillCost);
     this.m_skillCostBG = new SpriteObj("SkillTreeGoldIcon_Sprite");
     this.m_skillCostBG.Position = new Vector2(-180f, 180f);
     this.m_dialoguePlate.AddChild(this.m_skillCostBG);
     this.m_dialoguePlate.ForceDraw = true;
     this.m_bg = new SpriteObj("TraitsBG_Sprite");
     this.m_bg.Scale = new Vector2(1320f / (float)this.m_bg.Width, 1320f / (float)this.m_bg.Width);
     this.m_bg.ForceDraw = true;
     this.m_cloud1 = new SpriteObj("TraitsCloud1_Sprite")
     {
         ForceDraw = true
     };
     this.m_cloud2 = new SpriteObj("TraitsCloud2_Sprite")
     {
         ForceDraw = true
     };
     this.m_cloud3 = new SpriteObj("TraitsCloud3_Sprite")
     {
         ForceDraw = true
     };
     this.m_cloud4 = new SpriteObj("TraitsCloud4_Sprite")
     {
         ForceDraw = true
     };
     this.m_cloud5 = new SpriteObj("TraitsCloud5_Sprite")
     {
         ForceDraw = true
     };
     float opacity = 1f;
     this.m_cloud1.Opacity = opacity;
     this.m_cloud2.Opacity = opacity;
     this.m_cloud3.Opacity = opacity;
     this.m_cloud4.Opacity = opacity;
     this.m_cloud5.Opacity = opacity;
     this.m_cloud1.Position = new Vector2((float)CDGMath.RandomInt(0, 1520), (float)CDGMath.RandomInt(0, 360));
     this.m_cloud2.Position = new Vector2((float)CDGMath.RandomInt(0, 1520), (float)CDGMath.RandomInt(0, 360));
     this.m_cloud3.Position = new Vector2((float)CDGMath.RandomInt(0, 1520), (float)CDGMath.RandomInt(0, 360));
     this.m_cloud4.Position = new Vector2((float)CDGMath.RandomInt(0, 1520), (float)CDGMath.RandomInt(0, 360));
     this.m_cloud5.Position = new Vector2((float)CDGMath.RandomInt(0, 1520), (float)CDGMath.RandomInt(0, 360));
     this.m_selectionIcon = new SpriteObj("IconHalo_Sprite");
     this.m_selectionIcon.ForceDraw = true;
     this.m_selectionIcon.AnimationDelay = 0.1f;
     this.m_selectionIcon.PlayAnimation(true);
     this.m_selectionIcon.Scale = new Vector2(1.1f, 1.1f);
     this.m_titleText = new SpriteObj("ManorTitleText_Sprite");
     this.m_titleText.X = (float)this.m_titleText.Width / 2f + 20f;
     this.m_titleText.Y = 64.8f;
     this.m_titleText.ForceDraw = true;
     this.m_continueText = new KeyIconTextObj(Game.JunicodeFont);
     this.m_continueText.ForceDraw = true;
     this.m_continueText.FontSize = 12f;
     this.m_continueText.DropShadow = new Vector2(2f, 2f);
     this.m_continueText.Position = new Vector2(1300f, 630f);
     this.m_continueText.Align = Types.TextAlign.Right;
     this.m_toggleIconsText = new KeyIconTextObj(Game.JunicodeFont);
     this.m_toggleIconsText.ForceDraw = true;
     this.m_toggleIconsText.FontSize = 12f;
     this.m_toggleIconsText.DropShadow = new Vector2(2f, 2f);
     this.m_toggleIconsText.Position = new Vector2(this.m_continueText.X, this.m_continueText.Y + 40f);
     this.m_toggleIconsText.Align = Types.TextAlign.Right;
     this.m_confirmText = new KeyIconTextObj(Game.JunicodeFont);
     this.m_confirmText.Align = Types.TextAlign.Right;
     this.m_confirmText.FontSize = 12f;
     this.m_confirmText.DropShadow = new Vector2(2f, 2f);
     this.m_confirmText.Position = new Vector2(1300f, 10f);
     this.m_confirmText.ForceDraw = true;
     this.m_navigationText = new KeyIconTextObj(Game.JunicodeFont);
     this.m_navigationText.Align = Types.TextAlign.Right;
     this.m_navigationText.FontSize = 12f;
     this.m_navigationText.DropShadow = new Vector2(2f, 2f);
     this.m_navigationText.Position = new Vector2(this.m_confirmText.X, this.m_confirmText.Y + 40f);
     this.m_navigationText.ForceDraw = true;
     this.m_coinIcon = new SpriteObj("CoinIcon_Sprite");
     this.m_coinIcon.Position = new Vector2(1100f, 585f);
     this.m_coinIcon.Scale = new Vector2(0.9f, 0.9f);
     this.m_coinIcon.ForceDraw = true;
     this.m_playerMoney = new TextObj(Game.GoldFont);
     this.m_playerMoney.Align = Types.TextAlign.Left;
     this.m_playerMoney.Text = "1000";
     this.m_playerMoney.FontSize = 30f;
     this.m_playerMoney.Position = new Vector2(this.m_coinIcon.X + 35f, this.m_coinIcon.Y);
     this.m_playerMoney.ForceDraw = true;
     base.LoadContent();
 }
예제 #56
0
 public override void LoadContent()
 {
     Game.HSVEffect.Parameters["Saturation"].SetValue(0);
     this.m_background = new BackgroundObj("LineageScreenBG_Sprite");
     this.m_background.SetRepeated(true, true, base.Camera, null);
     this.m_background.X -= 6600f;
     this.m_bgShadow = new SpriteObj("LineageScreenShadow_Sprite");
     this.m_bgShadow.Scale = new Vector2(11f, 11f);
     this.m_bgShadow.Y -= 10f;
     this.m_bgShadow.ForceDraw = true;
     this.m_bgShadow.Opacity = 0.9f;
     this.m_bgShadow.Position = new Vector2(660f, 360f);
     this.m_titleText = new SpriteObj("LineageTitleText_Sprite");
     this.m_titleText.X = 660f;
     this.m_titleText.Y = 72f;
     this.m_titleText.ForceDraw = true;
     int num = 20;
     this.m_descriptionPlate = new ObjContainer("LineageScreenPlate_Character");
     this.m_descriptionPlate.ForceDraw = true;
     this.m_descriptionPlate.Position = new Vector2((float)(1320 - this.m_descriptionPlate.Width - 30), (float)(720 - this.m_descriptionPlate.Height) / 2f);
     TextObj textObj = new TextObj(Game.JunicodeFont);
     textObj.FontSize = 12f;
     textObj.Align = Types.TextAlign.Centre;
     textObj.OutlineColour = new Color(181, 142, 39);
     textObj.OutlineWidth = 2;
     textObj.Text = "Sir Skunky the IV";
     textObj.OverrideParentScale = true;
     textObj.Position = new Vector2((float)this.m_descriptionPlate.Width / 2f, 15f);
     textObj.LimitCorners = true;
     this.m_descriptionPlate.AddChild(textObj);
     TextObj textObj2 = textObj.Clone() as TextObj;
     textObj2.FontSize = 10f;
     textObj2.Text = "Knight";
     textObj2.Align = Types.TextAlign.Left;
     textObj2.X = (float)num;
     textObj2.Y += 40f;
     this.m_descriptionPlate.AddChild(textObj2);
     KeyIconTextObj keyIconTextObj = new KeyIconTextObj(Game.JunicodeFont);
     keyIconTextObj.FontSize = 8f;
     keyIconTextObj.OutlineColour = textObj2.OutlineColour;
     keyIconTextObj.OutlineWidth = 2;
     keyIconTextObj.OverrideParentScale = true;
     keyIconTextObj.Position = textObj2.Position;
     keyIconTextObj.Text = "Class description goes here";
     keyIconTextObj.Align = Types.TextAlign.Left;
     keyIconTextObj.Y += 30f;
     keyIconTextObj.X = (float)(num + 20);
     keyIconTextObj.LimitCorners = true;
     this.m_descriptionPlate.AddChild(keyIconTextObj);
     for (int i = 0; i < 2; i++)
     {
         TextObj textObj3 = textObj2.Clone() as TextObj;
         textObj3.Text = "TraitName";
         textObj3.X = (float)num;
         textObj3.Align = Types.TextAlign.Left;
         if (i > 0)
         {
             textObj3.Y = this.m_descriptionPlate.GetChildAt(this.m_descriptionPlate.NumChildren - 1).Y + 50f;
         }
         this.m_descriptionPlate.AddChild(textObj3);
         TextObj textObj4 = textObj2.Clone() as TextObj;
         textObj4.Text = "TraitDescription";
         textObj4.X = (float)(num + 20);
         textObj4.FontSize = 8f;
         textObj4.Align = Types.TextAlign.Left;
         this.m_descriptionPlate.AddChild(textObj4);
     }
     TextObj textObj5 = textObj2.Clone() as TextObj;
     textObj5.Text = "SpellName";
     textObj5.FontSize = 10f;
     textObj5.X = (float)num;
     textObj5.Align = Types.TextAlign.Left;
     this.m_descriptionPlate.AddChild(textObj5);
     KeyIconTextObj keyIconTextObj2 = new KeyIconTextObj(Game.JunicodeFont);
     keyIconTextObj2.OutlineColour = new Color(181, 142, 39);
     keyIconTextObj2.OutlineWidth = 2;
     keyIconTextObj2.OverrideParentScale = true;
     keyIconTextObj2.Position = new Vector2((float)this.m_descriptionPlate.Width / 2f, 15f);
     keyIconTextObj2.Y += 40f;
     keyIconTextObj2.Text = "SpellDescription";
     keyIconTextObj2.X = (float)(num + 20);
     keyIconTextObj2.FontSize = 8f;
     keyIconTextObj2.Align = Types.TextAlign.Left;
     keyIconTextObj2.LimitCorners = true;
     this.m_descriptionPlate.AddChild(keyIconTextObj2);
     this.m_masterArray = new List<LineageObj>();
     this.m_currentBranchArray = new List<LineageObj>();
     Vector2 arg_47E_0 = Vector2.Zero;
     this.m_confirmText = new KeyIconTextObj(Game.JunicodeFont);
     this.m_confirmText.ForceDraw = true;
     this.m_confirmText.FontSize = 12f;
     this.m_confirmText.DropShadow = new Vector2(2f, 2f);
     this.m_confirmText.Position = new Vector2(1280f, 630f);
     this.m_confirmText.Align = Types.TextAlign.Right;
     this.m_navigationText = new KeyIconTextObj(Game.JunicodeFont);
     this.m_navigationText.Align = Types.TextAlign.Right;
     this.m_navigationText.FontSize = 12f;
     this.m_navigationText.DropShadow = new Vector2(2f, 2f);
     this.m_navigationText.Position = new Vector2(this.m_confirmText.X, this.m_confirmText.Y + 40f);
     this.m_navigationText.ForceDraw = true;
     this.m_rerollText = new KeyIconTextObj(Game.JunicodeFont);
     this.m_rerollText.Align = Types.TextAlign.Right;
     this.m_rerollText.FontSize = 12f;
     this.m_rerollText.DropShadow = new Vector2(2f, 2f);
     this.m_rerollText.ForceDraw = true;
     this.m_rerollText.Position = new Vector2(1280f, 40f);
     base.LoadContent();
 }
예제 #57
0
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         Console.WriteLine("Disposing Lineage Screen");
         this.m_titleText.Dispose();
         this.m_titleText = null;
         this.m_selectedLineageObj = null;
         foreach (LineageObj current in this.m_currentBranchArray)
         {
             current.Dispose();
         }
         this.m_currentBranchArray.Clear();
         this.m_currentBranchArray = null;
         foreach (LineageObj current2 in this.m_masterArray)
         {
             if (!current2.IsDisposed)
             {
                 current2.Dispose();
             }
         }
         this.m_masterArray.Clear();
         this.m_masterArray = null;
         if (this.m_startingLineageObj != null)
         {
             this.m_startingLineageObj.Dispose();
         }
         this.m_startingLineageObj = null;
         this.m_background.Dispose();
         this.m_background = null;
         this.m_bgShadow.Dispose();
         this.m_bgShadow = null;
         this.m_selectTween = null;
         this.m_descriptionPlate.Dispose();
         this.m_descriptionPlate = null;
         this.m_confirmText.Dispose();
         this.m_confirmText = null;
         this.m_navigationText.Dispose();
         this.m_navigationText = null;
         this.m_rerollText.Dispose();
         this.m_rerollText = null;
         base.Dispose();
     }
 }
예제 #58
0
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         Console.WriteLine("Disposing Credits Screen");
         Array.Clear(this.m_backgroundStrings, 0, this.m_backgroundStrings.Length);
         this.m_backgroundStrings = null;
         this.m_playerSprite.Dispose();
         this.m_playerSprite = null;
         this.m_wifeSprite.Dispose();
         this.m_wifeSprite = null;
         this.m_childSprite1.Dispose();
         this.m_childSprite1 = null;
         this.m_childSprite2.Dispose();
         this.m_childSprite2 = null;
         this.m_manor.Dispose();
         this.m_manor = null;
         this.m_thanksForPlayingText.Dispose();
         this.m_thanksForPlayingText = null;
         this.m_sideBorderRight.Dispose();
         this.m_sideBorderRight = null;
         this.m_sideBorderLeft.Dispose();
         this.m_sideBorderLeft = null;
         this.m_sideBorderTop.Dispose();
         this.m_sideBorderTop = null;
         this.m_sideBorderBottom.Dispose();
         this.m_sideBorderBottom = null;
         this.m_bgOutside.Dispose();
         this.m_bgOutside = null;
         this.m_sky.Dispose();
         this.m_sky = null;
         this.m_skyRenderTarget.Dispose();
         this.m_skyRenderTarget = null;
         this.m_backgroundRenderTarget.Dispose();
         this.m_backgroundRenderTarget = null;
         foreach (TextObj current in this.m_creditsTitleList)
         {
             current.Dispose();
         }
         this.m_creditsTitleList.Clear();
         this.m_creditsTitleList = null;
         foreach (TextObj current2 in this.m_creditsNameList)
         {
             current2.Dispose();
         }
         this.m_creditsNameList.Clear();
         this.m_creditsNameList = null;
         this.m_bg1.Dispose();
         this.m_bg2.Dispose();
         this.m_bg3.Dispose();
         this.m_ground1.Dispose();
         this.m_ground2.Dispose();
         this.m_ground3.Dispose();
         this.m_border1.Dispose();
         this.m_border2.Dispose();
         this.m_border3.Dispose();
         this.m_prop1.Dispose();
         this.m_prop2.Dispose();
         this.m_prop3.Dispose();
         this.m_prop1 = null;
         this.m_prop2 = null;
         this.m_prop3 = null;
         this.m_bg1 = null;
         this.m_bg2 = null;
         this.m_bg3 = null;
         this.m_ground1 = null;
         this.m_ground2 = null;
         this.m_ground3 = null;
         this.m_border1 = null;
         this.m_border2 = null;
         this.m_border3 = null;
         this.m_teddy.Dispose();
         this.m_kenny.Dispose();
         this.m_glauber.Dispose();
         this.m_gordon.Dispose();
         this.m_judson.Dispose();
         this.m_teddy = null;
         this.m_kenny = null;
         this.m_glauber = null;
         this.m_gordon = null;
         this.m_judson = null;
         this.m_continueText.Dispose();
         this.m_continueText = null;
         this.m_totalDeaths.Dispose();
         this.m_totalDeaths = null;
         this.m_totalPlayTime.Dispose();
         this.m_totalPlayTime = null;
         base.Dispose();
     }
 }
예제 #59
0
 public override void LoadContent(GraphicsDevice graphics)
 {
     this.m_continueText = new KeyIconTextObj(Game.JunicodeFont);
     this.m_continueText.FontSize = 14f;
     this.m_continueText.Align = Types.TextAlign.Right;
     this.m_continueText.Position = new Vector2(1270f, 650f);
     this.m_continueText.ForceDraw = true;
     this.m_continueText.Opacity = 0f;
     this.m_background = new BackgroundObj("LineageScreenBG_Sprite");
     this.m_background.SetRepeated(true, true, Game.ScreenManager.Camera, null);
     this.m_background.X -= 6600f;
     this.m_background.Opacity = 0.7f;
     this.m_endingMask = new SpriteObj("Blank_Sprite");
     this.m_endingMask.ForceDraw = true;
     this.m_endingMask.TextureColor = Color.Black;
     this.m_endingMask.Scale = new Vector2(1330f / (float)this.m_endingMask.Width, 730f / (float)this.m_endingMask.Height);
     this.m_cameraPosList = new List<Vector2>();
     this.m_frameList = new List<SpriteObj>();
     this.m_nameList = new List<TextObj>();
     this.m_slainCountText = new List<TextObj>();
     foreach (GameObj current in base.GameObjList)
     {
         if (current is WaypointObj)
         {
             this.m_cameraPosList.Add(default(Vector2));
         }
     }
     CultureInfo cultureInfo = (CultureInfo)CultureInfo.CurrentCulture.Clone();
     cultureInfo.NumberFormat.CurrencyDecimalSeparator = ".";
     foreach (GameObj current2 in base.GameObjList)
     {
         if (current2 is WaypointObj)
         {
             int index = int.Parse(current2.Name, NumberStyles.Any, cultureInfo);
             this.m_cameraPosList[index] = current2.Position;
         }
     }
     float num = 150f;
     foreach (EnemyObj current3 in base.EnemyList)
     {
         current3.Initialize();
         current3.PauseEnemy(true);
         current3.IsWeighted = false;
         current3.PlayAnimation(true);
         current3.UpdateCollisionBoxes();
         SpriteObj spriteObj = new SpriteObj("LineageScreenFrame_Sprite");
         spriteObj.DropShadow = new Vector2(4f, 6f);
         if (current3.Difficulty == GameTypes.EnemyDifficulty.MINIBOSS)
         {
             spriteObj.ChangeSprite("GiantPortrait_Sprite");
             this.FixMiniboss(current3);
         }
         spriteObj.Scale = new Vector2(((float)current3.Width + num) / (float)spriteObj.Width, ((float)current3.Height + num) / (float)spriteObj.Height);
         if (spriteObj.ScaleX < 1f)
         {
             spriteObj.ScaleX = 1f;
         }
         if (spriteObj.ScaleY < 1f)
         {
             spriteObj.ScaleY = 1f;
         }
         spriteObj.Position = new Vector2(current3.X, (float)current3.Bounds.Top + (float)current3.Height / 2f);
         this.m_frameList.Add(spriteObj);
         TextObj textObj = new TextObj(Game.JunicodeFont);
         textObj.FontSize = 12f;
         textObj.Align = Types.TextAlign.Centre;
         textObj.Text = current3.Name;
         textObj.OutlineColour = new Color(181, 142, 39);
         textObj.OutlineWidth = 2;
         textObj.Position = new Vector2(spriteObj.X, (float)(spriteObj.Bounds.Bottom + 40));
         this.m_nameList.Add(textObj);
         TextObj textObj2 = new TextObj(Game.JunicodeFont);
         textObj2.FontSize = 10f;
         textObj2.Align = Types.TextAlign.Centre;
         textObj2.OutlineColour = new Color(181, 142, 39);
         textObj2.Text = "Slain: 0";
         textObj2.OutlineWidth = 2;
         textObj2.HeadingX = (float)current3.Type;
         textObj2.HeadingY = (float)current3.Difficulty;
         textObj2.Position = new Vector2(spriteObj.X, (float)(spriteObj.Bounds.Bottom + 80));
         this.m_slainCountText.Add(textObj2);
         byte type = current3.Type;
         if (type <= 15)
         {
             if (type != 1)
             {
                 if (type != 7)
                 {
                     if (type == 15)
                     {
                         if (current3.Difficulty == GameTypes.EnemyDifficulty.MINIBOSS)
                         {
                             if (current3.Flip == SpriteEffects.None)
                             {
                                 current3.X -= 25f;
                             }
                             else
                             {
                                 current3.X += 25f;
                             }
                         }
                     }
                 }
                 else if (current3.Difficulty == GameTypes.EnemyDifficulty.MINIBOSS)
                 {
                     current3.X += 30f;
                     current3.Y -= 20f;
                 }
             }
             else
             {
                 (current3 as EnemyObj_BallAndChain).BallAndChain.Visible = false;
                 (current3 as EnemyObj_BallAndChain).BallAndChain2.Visible = false;
             }
         }
         else if (type != 20)
         {
             if (type != 29)
             {
                 if (type == 32)
                 {
                     if (current3.Difficulty == GameTypes.EnemyDifficulty.MINIBOSS)
                     {
                         spriteObj.Visible = false;
                     }
                 }
             }
             else
             {
                 if (current3.Difficulty == GameTypes.EnemyDifficulty.ADVANCED)
                 {
                     (current3 as EnemyObj_LastBoss).ForceSecondForm(true);
                     current3.ChangeSprite("EnemyLastBossIdle_Character");
                     current3.PlayAnimation(true);
                 }
                 spriteObj.ChangeSprite("GiantPortrait_Sprite");
                 spriteObj.Scale = Vector2.One;
                 spriteObj.Scale = new Vector2(((float)current3.Width + num) / (float)spriteObj.Width, ((float)current3.Height + num) / (float)spriteObj.Height);
                 textObj.Position = new Vector2(spriteObj.X, (float)(spriteObj.Bounds.Bottom + 40));
                 textObj2.Position = new Vector2(spriteObj.X, (float)(spriteObj.Bounds.Bottom + 80));
             }
         }
         else
         {
             current3.ChangeSprite("EnemyZombieWalk_Character");
             current3.PlayAnimation(true);
         }
         SpriteObj spriteObj2 = new SpriteObj("LineageScreenPlaque1Long_Sprite");
         spriteObj2.Scale = new Vector2(1.8f, 1.8f);
         spriteObj2.Position = new Vector2(spriteObj.X, (float)(spriteObj.Bounds.Bottom + 80));
         this.m_plaqueList.Add(spriteObj2);
     }
     base.LoadContent(graphics);
 }
예제 #60
0
 public override void LoadContent()
 {
     this.m_bgOutside = new SpriteObj("TraitsBG_Sprite");
     this.m_bgOutside.ForceDraw = true;
     this.m_bgOutside.Visible = false;
     this.m_bgOutside.Scale = new Vector2(1320f / (float)this.m_bgOutside.Width, 1320f / (float)this.m_bgOutside.Width);
     this.m_bg1 = new SpriteObj("CastleBG1_Sprite");
     this.m_bg1.Position = new Vector2(660f, 200f);
     this.m_bg1.Scale = new Vector2(2f, 2f);
     this.m_bg2 = (this.m_bg1.Clone() as SpriteObj);
     this.m_bg2.X -= (float)this.m_bg1.Width;
     this.m_bg3 = (this.m_bg2.Clone() as SpriteObj);
     this.m_bg3.X -= (float)this.m_bg2.Width;
     this.m_ground1 = new SpriteObj("CastleFG1_Sprite");
     this.m_ground1.Position = new Vector2(660f, 440f);
     this.m_ground1.Scale = new Vector2(2f, 2f);
     this.m_ground2 = (this.m_ground1.Clone() as SpriteObj);
     this.m_ground2.X -= (float)this.m_ground1.Width;
     this.m_ground3 = (this.m_ground2.Clone() as SpriteObj);
     this.m_ground3.X -= (float)this.m_ground2.Width;
     this.m_border1 = new SpriteObj("CastleBorder_Sprite");
     this.m_border1.Position = new Vector2(660f, 440f);
     this.m_border1.Scale = new Vector2(2f, 2f);
     this.m_border2 = (this.m_border1.Clone() as SpriteObj);
     this.m_border2.X -= (float)this.m_border1.Width;
     this.m_border3 = (this.m_border2.Clone() as SpriteObj);
     this.m_border3.X -= (float)this.m_border2.Width;
     this.m_prop1 = new SpriteObj("CastleAssetWindow1_Sprite");
     this.m_prop1.Position = new Vector2(0f, 220f);
     this.m_prop1.Scale = new Vector2(2f, 2f);
     this.m_prop2 = new ObjContainer("CastleAssetBackTorch_Character");
     this.m_prop2.Position = new Vector2(500f, 330f);
     this.m_prop2.Scale = new Vector2(2f, 2f);
     this.m_prop2.AnimationDelay = 0.1f;
     this.m_prop2.PlayAnimation(true);
     this.m_prop3 = new ObjContainer("CastleAssetCandle1_Character");
     this.m_prop3.Position = new Vector2(1000f, 440f);
     this.m_prop3.Scale = new Vector2(2f, 2f);
     this.m_playerSprite = new ObjContainer("PlayerWalking_Character");
     this.m_playerSprite.Position = new Vector2(640f, 400f);
     this.m_playerSprite.PlayAnimation(true);
     this.m_playerSprite.AnimationDelay = 0.1f;
     this.m_playerSprite.Flip = SpriteEffects.FlipHorizontally;
     this.m_playerSprite.OutlineWidth = 2;
     Color textureColor = new Color(251, 156, 172);
     this.m_wifeSprite = new ObjContainer("PlayerWalking_Character");
     this.m_wifeSprite.Position = new Vector2(-200f, 400f);
     this.m_wifeSprite.PlayAnimation(true);
     this.m_wifeSprite.AnimationDelay = 0.1f;
     this.m_wifeSprite.OutlineWidth = 2;
     this.m_wifeSprite.Scale = new Vector2(2f, 2f);
     this.m_wifeSprite.GetChildAt(13).TextureColor = textureColor;
     this.m_wifeSprite.GetChildAt(7).TextureColor = Color.Red;
     this.m_wifeSprite.GetChildAt(1).TextureColor = Color.Red;
     this.m_wifeSprite.GetChildAt(8).TextureColor = Color.Red;
     this.m_wifeSprite.GetChildAt(11).TextureColor = new Color(11, 172, 239);
     this.m_childSprite1 = new ObjContainer("PlayerWalking_Character");
     this.m_childSprite1.Position = new Vector2(-270f, 415f);
     this.m_childSprite1.PlayAnimation(true);
     this.m_childSprite1.AnimationDelay = 0.1f;
     this.m_childSprite1.OutlineWidth = 2;
     this.m_childSprite1.Scale = new Vector2(1.2f, 1.2f);
     this.m_childSprite1.GetChildAt(13).TextureColor = textureColor;
     this.m_childSprite1.GetChildAt(7).TextureColor = Color.Red;
     this.m_childSprite1.GetChildAt(1).TextureColor = Color.Red;
     this.m_childSprite1.GetChildAt(8).TextureColor = Color.Red;
     this.m_childSprite1.GetChildAt(11).TextureColor = new Color(11, 172, 239);
     this.m_childSprite2 = new ObjContainer("PlayerWalking_Character");
     this.m_childSprite2.Position = new Vector2(-330f, 420f);
     this.m_childSprite2.PlayAnimation(true);
     this.m_childSprite2.AnimationDelay = 0.1f;
     this.m_childSprite2.OutlineWidth = 2;
     this.m_childSprite2.Scale = new Vector2(1f, 1f);
     this.m_childSprite2.GetChildAt(13).TextureColor = textureColor;
     this.m_childSprite2.GetChildAt(7).TextureColor = Color.Red;
     this.m_childSprite2.GetChildAt(1).TextureColor = Color.Red;
     this.m_childSprite2.GetChildAt(8).TextureColor = Color.Red;
     this.m_childSprite2.GetChildAt(11).TextureColor = new Color(11, 172, 239);
     this.m_sideBorderLeft = new SpriteObj("Blank_Sprite");
     this.m_sideBorderLeft.Scale = new Vector2(900f / (float)this.m_sideBorderLeft.Width, 500f / (float)this.m_sideBorderLeft.Height);
     this.m_sideBorderLeft.Position = new Vector2(-450f, 0f);
     this.m_sideBorderLeft.TextureColor = Color.Black;
     this.m_sideBorderLeft.ForceDraw = true;
     this.m_sideBorderRight = (this.m_sideBorderLeft.Clone() as SpriteObj);
     this.m_sideBorderRight.Position = new Vector2(850f, 0f);
     this.m_sideBorderTop = (this.m_sideBorderLeft.Clone() as SpriteObj);
     this.m_sideBorderTop.Scale = new Vector2(1f, 1f);
     this.m_sideBorderTop.Scale = new Vector2(1320f / (float)this.m_sideBorderTop.Width, (float)(240 / this.m_sideBorderTop.Height));
     this.m_sideBorderTop.Position = Vector2.Zero;
     this.m_sideBorderBottom = (this.m_sideBorderLeft.Clone() as SpriteObj);
     this.m_sideBorderBottom.Scale = new Vector2(1f, 1f);
     this.m_sideBorderBottom.Scale = new Vector2(1340f / (float)this.m_sideBorderBottom.Width, 720f / (float)this.m_sideBorderBottom.Height);
     this.m_sideBorderBottom.Position = new Vector2(0f, 460f);
     this.m_manor = new ObjContainer("TraitsCastle_Character");
     this.m_manor.Scale = new Vector2(2f, 2f);
     this.m_manor.Visible = false;
     for (int i = 0; i < this.m_manor.NumChildren; i++)
     {
         this.m_manor.GetChildAt(i).Visible = false;
     }
     foreach (SkillObj current in SkillSystem.SkillArray)
     {
         if (current.CurrentLevel > 0)
         {
             this.m_manor.GetChildAt(SkillSystem.GetManorPiece(current)).Visible = true;
         }
     }
     this.m_thanksForPlayingText = new TextObj(Game.JunicodeLargeFont);
     this.m_thanksForPlayingText.FontSize = 32f;
     this.m_thanksForPlayingText.Align = Types.TextAlign.Centre;
     this.m_thanksForPlayingText.Text = "Thanks for playing!";
     this.m_thanksForPlayingText.DropShadow = new Vector2(2f, 2f);
     this.m_thanksForPlayingText.Position = new Vector2(660f, 480f);
     this.m_thanksForPlayingText.Opacity = 0f;
     this.m_totalDeaths = (this.m_thanksForPlayingText.Clone() as TextObj);
     this.m_totalDeaths.FontSize = 20f;
     this.m_totalDeaths.Position = this.m_thanksForPlayingText.Position;
     this.m_totalDeaths.Y += 90f;
     this.m_totalDeaths.Opacity = 0f;
     this.m_totalPlayTime = (this.m_thanksForPlayingText.Clone() as TextObj);
     this.m_totalPlayTime.FontSize = 20f;
     this.m_totalPlayTime.Position = this.m_totalDeaths.Position;
     this.m_totalPlayTime.Y += 50f;
     this.m_totalPlayTime.Opacity = 0f;
     this.m_continueText = new KeyIconTextObj(Game.JunicodeFont);
     this.m_continueText.FontSize = 14f;
     this.m_continueText.Align = Types.TextAlign.Right;
     this.m_continueText.Position = new Vector2(1270f, 650f);
     this.m_continueText.ForceDraw = true;
     this.m_continueText.Opacity = 0f;
     int num = 200;
     this.m_glauber = new SpriteObj("Glauber_Sprite");
     this.m_glauber.Scale = new Vector2(2f, 2f);
     this.m_glauber.ForceDraw = true;
     this.m_glauber.OutlineWidth = 2;
     this.m_glauber.X = (float)num;
     this.m_teddy = new SpriteObj("Teddy_Sprite");
     this.m_teddy.Scale = new Vector2(2f, 2f);
     this.m_teddy.ForceDraw = true;
     this.m_teddy.OutlineWidth = 2;
     this.m_teddy.X = (float)num;
     this.m_kenny = new SpriteObj("Kenny_Sprite");
     this.m_kenny.Scale = new Vector2(2f, 2f);
     this.m_kenny.ForceDraw = true;
     this.m_kenny.OutlineWidth = 2;
     this.m_kenny.X = (float)num;
     this.m_gordon = new SpriteObj("Gordon_Sprite");
     this.m_gordon.Scale = new Vector2(2f, 2f);
     this.m_gordon.ForceDraw = true;
     this.m_gordon.OutlineWidth = 2;
     this.m_gordon.X = (float)num;
     this.m_judson = new SpriteObj("Judson_Sprite");
     this.m_judson.Scale = new Vector2(2f, 2f);
     this.m_judson.ForceDraw = true;
     this.m_judson.OutlineWidth = 2;
     this.m_judson.X = (float)num;
     this.InitializeCredits();
     base.LoadContent();
 }