Exemplo n.º 1
0
 public override void LoadContent()
 {
     m_plate           = new ObjContainer("SkillUnlockPlate_Character");
     m_plate.Position  = new Vector2(660f, 360f);
     m_plate.ForceDraw = true;
     m_text            = new TextObj(Game.JunicodeFont);
     m_text.ForceDraw  = true;
     m_text.Text       =
         "This is temporary text to see how many sentences can be fit into this area.  Hopefully it is quite a bit, as this is the area where we will be comprehensively describing the unlock.  It will also be used to determine word wrap length.";
     m_text.FontSize = 10f;
     m_text.WordWrap(340);
     m_text.DropShadow = new Vector2(2f, 2f);
     m_plate.AddChild(m_text);
     m_text.Position          = new Vector2(-110f, -100f);
     m_picturePlate           = new ObjContainer("SkillUnlockPicturePlate_Character");
     m_picturePlate.Position  = new Vector2(360f, 410f);
     m_picturePlate.Rotation  = -15f;
     m_picturePlate.ForceDraw = true;
     m_picture              = new SpriteObj("BlacksmithUnlockPicture_Sprite");
     m_picture.ForceDraw    = true;
     m_picture.OutlineWidth = 1;
     m_picture.Position     = m_picturePlate.Position;
     m_titlePlate           = new SpriteObj("SkillUnlockTitlePlate_Sprite");
     m_titlePlate.Position  = new Vector2(660f, 160f);
     m_titlePlate.ForceDraw = true;
     m_title           = new SpriteObj("ClassUnlockedText_Sprite");
     m_title.Position  = m_titlePlate.Position;
     m_title.Y        -= 40f;
     m_title.ForceDraw = true;
     base.LoadContent();
 }
Exemplo n.º 2
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();
     }
 }
Exemplo n.º 3
0
 public override void Initialize()
 {
     m_boss = (EnemyList[0] as EnemyObj_LastBoss);
     foreach (var current in GameObjList)
     {
         if (current.Name == "fountain")
         {
             m_fountain = (current as ObjContainer);
         }
         if (current.Name == "stainglass")
         {
             current.Opacity = 0.5f;
         }
         if (current.Name == "door")
         {
             m_bossDoorSprite = (current as SpriteObj);
         }
     }
     foreach (var current2 in DoorList)
     {
         if (current2.Name == "FinalBossDoor")
         {
             m_bossDoor        = current2;
             m_bossDoor.Locked = true;
             break;
         }
     }
     base.Initialize();
 }
Exemplo n.º 4
0
        //public static void UpdatePlayerEffects(ObjContainer player, GameTime gameTime)
        //{
        //    if (PlayerEffectsUpdating != null)
        //        PlayerEffectsUpdating(player, gameTime);
        //}

        public static void UpdatePlayerStyle(ObjContainer player, string animationType)
        {
            if (PlayerStyleUpdating != null)
            {
                PlayerStyleUpdating(player, animationType);
            }
        }
Exemplo n.º 5
0
 public override void LoadContent()
 {
     this.m_plate = new ObjContainer("SkillUnlockPlate_Character");
     this.m_plate.Position = new Vector2(660f, 360f);
     this.m_plate.ForceDraw = true;
     this.m_text = new TextObj(Game.JunicodeFont);
     this.m_text.ForceDraw = true;
     this.m_text.Text = "This is temporary text to see how many sentences can be fit into this area.  Hopefully it is quite a bit, as this is the area where we will be comprehensively describing the unlock.  It will also be used to determine word wrap length.";
     this.m_text.FontSize = 10f;
     this.m_text.WordWrap(340);
     this.m_text.DropShadow = new Vector2(2f, 2f);
     this.m_plate.AddChild(this.m_text);
     this.m_text.Position = new Vector2(-110f, -100f);
     this.m_picturePlate = new ObjContainer("SkillUnlockPicturePlate_Character");
     this.m_picturePlate.Position = new Vector2(360f, 410f);
     this.m_picturePlate.Rotation = -15f;
     this.m_picturePlate.ForceDraw = true;
     this.m_picture = new SpriteObj("BlacksmithUnlockPicture_Sprite");
     this.m_picture.ForceDraw = true;
     this.m_picture.OutlineWidth = 1;
     this.m_picture.Position = this.m_picturePlate.Position;
     this.m_titlePlate = new SpriteObj("SkillUnlockTitlePlate_Sprite");
     this.m_titlePlate.Position = new Vector2(660f, 160f);
     this.m_titlePlate.ForceDraw = true;
     this.m_title = new SpriteObj("ClassUnlockedText_Sprite");
     this.m_title.Position = this.m_titlePlate.Position;
     this.m_title.Y -= 40f;
     this.m_title.ForceDraw = true;
     base.LoadContent();
 }
Exemplo n.º 6
0
 public override void LoadContent()
 {
     m_loadingText              = new TextObj();
     m_loadingText.Font         = Game.JunicodeLargeFont;
     m_loadingText.Text         = "Building";
     m_loadingText.Align        = Types.TextAlign.Centre;
     m_loadingText.FontSize     = 40f;
     m_loadingText.OutlineWidth = 4;
     m_loadingText.ForceDraw    = true;
     m_gateSprite           = new ObjContainer("LoadingScreenGate_Character");
     m_gateSprite.ForceDraw = true;
     m_gateSprite.Scale     = new Vector2(2f, 2f);
     m_gateSprite.Y        -= m_gateSprite.Height;
     m_effectPool.Initialize();
     m_blackTransitionIn              = new SpriteObj("Blank_Sprite");
     m_blackTransitionIn.Rotation     = 15f;
     m_blackTransitionIn.Scale        = new Vector2(1320 / m_blackTransitionIn.Width, 2000 / m_blackTransitionIn.Height);
     m_blackTransitionIn.TextureColor = Color.Black;
     m_blackTransitionIn.ForceDraw    = true;
     m_blackScreen                     = new SpriteObj("Blank_Sprite");
     m_blackScreen.Scale               = new Vector2(1320 / m_blackScreen.Width, 720 / m_blackScreen.Height);
     m_blackScreen.TextureColor        = Color.Black;
     m_blackScreen.ForceDraw           = true;
     m_blackTransitionOut              = new SpriteObj("Blank_Sprite");
     m_blackTransitionOut.Rotation     = 15f;
     m_blackTransitionOut.Scale        = new Vector2(1320 / m_blackTransitionOut.Width, 2000 / m_blackTransitionOut.Height);
     m_blackTransitionOut.TextureColor = Color.Black;
     m_blackTransitionOut.ForceDraw    = true;
     base.LoadContent();
 }
Exemplo n.º 7
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         m_blacksmith.Dispose();
         m_blacksmith = null;
         m_blacksmithIcon.Dispose();
         m_blacksmithIcon = null;
         m_blacksmithNewIcon.Dispose();
         m_blacksmithNewIcon = null;
         m_blacksmithBoard.Dispose();
         m_blacksmithBoard = null;
         m_enchantress.Dispose();
         m_enchantress = null;
         m_enchantressIcon.Dispose();
         m_enchantressIcon = null;
         m_enchantressNewIcon.Dispose();
         m_enchantressNewIcon = null;
         m_tent.Dispose();
         m_tent = null;
         m_architect.Dispose();
         m_architect = null;
         m_architectIcon.Dispose();
         m_architectIcon = null;
         m_screw.Dispose();
         m_screw = null;
         if (m_blacksmithAnvilSound != null)
         {
             m_blacksmithAnvilSound.Dispose();
         }
         m_blacksmithAnvilSound = null;
         m_tree1 = null;
         m_tree2 = null;
         m_tree3 = null;
         m_fern1 = null;
         m_fern2 = null;
         m_fern3 = null;
         foreach (var current in m_rainFG)
         {
             current.Dispose();
         }
         m_rainFG.Clear();
         m_rainFG    = null;
         m_mountain1 = null;
         m_mountain2 = null;
         m_tollCollector.Dispose();
         m_tollCollector = null;
         m_tollCollectorIcon.Dispose();
         m_tollCollectorIcon = null;
         m_blacksmithBlock   = null;
         m_enchantressBlock  = null;
         m_architectBlock    = null;
         if (m_rainSFX != null)
         {
             m_rainSFX.Dispose();
         }
         m_rainSFX = null;
         base.Dispose();
     }
 }
Exemplo n.º 8
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();
     }
 }
Exemplo n.º 9
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();
     }
 }
Exemplo n.º 10
0
        public override void LoadContent(GraphicsDevice graphics)
        {
            m_daggerIcons = new ObjContainer();
            var num  = 0;
            var num2 = 10;

            for (var i = 0; i < m_numTries; i++)
            {
                var spriteObj = new SpriteObj("SpellDagger_Sprite");
                spriteObj.Scale = new Vector2(2f, 2f);
                spriteObj.X     = num + 10;
                spriteObj.Y     = num2;
                num            += spriteObj.Width;
                if (i == m_numTries / 2 - 1)
                {
                    num   = 0;
                    num2 += 20;
                }
                m_daggerIcons.AddChild(spriteObj);
            }
            m_daggerIcons.OutlineWidth = 2;
            m_targetIcons = new ObjContainer();
            for (var j = 0; j < m_numTargets; j++)
            {
                var spriteObj2 = new SpriteObj("Target2Piece1_Sprite");
                spriteObj2.Scale = new Vector2(2f, 2f);
                spriteObj2.X    += j * (spriteObj2.Width + 10);
                m_targetIcons.AddChild(spriteObj2);
            }
            m_targetIcons.OutlineWidth = 2;
            GameObjList.Add(m_targetIcons);
            GameObjList.Add(m_daggerIcons);
            base.LoadContent(graphics);
        }
Exemplo n.º 11
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();
     }
 }
Exemplo n.º 12
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();
     }
 }
Exemplo n.º 13
0
        public override void LoadContent()
        {
            var textObj = new TextObj(Game.JunicodeFont);

            textObj.FontSize = 12f;
            textObj.Align    = Types.TextAlign.Left;
            var textObj2 = new TextObj(Game.JunicodeFont);

            textObj2.FontSize          = 14f;
            textObj2.Text              = "Blacksmith";
            textObj2.DropShadow        = new Vector2(2f, 2f);
            textObj2.TextureColor      = new Color(236, 197, 132);
            m_dialogContainer          = new ObjContainer("DialogBox_Character");
            m_dialogContainer.Position = new Vector2(660f, 100f);
            m_dialogContainer.AddChild(textObj2);
            m_dialogContainer.ForceDraw = true;
            textObj2.Position           = new Vector2(-(float)m_dialogContainer.Width / 2.2f,
                                                      -(float)m_dialogContainer.Height / 1.6f);
            m_dialogContainer.AddChild(textObj);
            textObj.Position = new Vector2(-(float)m_dialogContainer.Width / 2.15f,
                                           -(float)m_dialogContainer.Height / 3.5f);
            textObj.Text =
                "This is a test to see how much text I can fit onto this dialog box without it running out of space. The text needs to be defined after the dialog text position is set, because the dialogtext width affects the entire width of the dialog container, which in END.";
            textObj.WordWrap(850);
            textObj.DropShadow = new Vector2(2f, 3f);
            var spriteObj = new SpriteObj("ContinueTextIcon_Sprite");

            spriteObj.Position = new Vector2(m_dialogContainer.GetChildAt(2).Bounds.Right,
                                             m_dialogContainer.GetChildAt(2).Bounds.Bottom);
            m_dialogContainer.AddChild(spriteObj);
            m_dialogContinueIconY = spriteObj.Y;
            var textObj3 = new TextObj(Game.JunicodeFont);

            textObj3.FontSize = 12f;
            textObj3.Text     = "Yes";
            textObj3.Align    = Types.TextAlign.Centre;
            var textObj4 = new TextObj(Game.JunicodeFont);

            textObj4.FontSize       = 12f;
            textObj4.Text           = "No";
            textObj4.Align          = Types.TextAlign.Centre;
            m_dialogChoiceContainer = new ObjContainer();
            var obj = new SpriteObj("GameOverStatPlate_Sprite");

            m_dialogChoiceContainer.AddChild(obj);
            var spriteObj2 = new SpriteObj("DialogueChoiceHighlight_Sprite");

            m_dialogChoiceContainer.AddChild(spriteObj2);
            m_dialogChoiceContainer.ForceDraw = true;
            m_dialogChoiceContainer.Position  = new Vector2(660f, 360f);
            m_dialogChoiceContainer.AddChild(textObj3);
            textObj3.Y -= 40f;
            m_dialogChoiceContainer.AddChild(textObj4);
            textObj4.Y                     += 7f;
            spriteObj2.Position             = new Vector2(textObj3.X, textObj3.Y + spriteObj2.Height / 2 + 3f);
            m_dialogChoiceContainer.Scale   = Vector2.Zero;
            m_dialogChoiceContainer.Visible = false;
            base.LoadContent();
        }
Exemplo n.º 14
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();
     }
 }
Exemplo n.º 15
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         m_fountain = null;
         m_boss     = null;
         base.Dispose();
     }
 }
Exemplo n.º 16
0
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         this.m_boss = null;
         this.m_bossShadow = null;
         base.Dispose();
     }
 }
Exemplo n.º 17
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         m_boss       = null;
         m_bossShadow = null;
         base.Dispose();
     }
 }
Exemplo n.º 18
0
 private void UpdateSelection()
 {
     if (m_selectedEntry != null)
     {
         m_selectedEntry.TextureColor = Color.White;
     }
     m_selectedEntry = m_diaryList[m_entryIndex];
     m_selectedEntry.TextureColor = Color.Yellow;
 }
Exemplo n.º 19
0
 private void PlayerEffectsUpdating(ObjContainer player, GameTime gameTime)
 {
     _sparkleTimer -= (float)gameTime.ElapsedGameTime.TotalSeconds;
     if (_sparkleTimer <= 0)
     {
         _sparkleTimer = 0.2f;
         Effects.ChestSparkleEffect.Display(player.Position);
         Effects.ChestSparkleEffect.Display(player.Position);
     }
 }
Exemplo n.º 20
0
        void Player_PlayerEffectsUpdating(ObjContainer obj, GameTime gameTime)
        {
            smokeTimer -= (float)gameTime.ElapsedGameTime.TotalSeconds;

            if (smokeTimer <= 0f)
            {
                smokeTimer = obj.CurrentSpeed > 0f ? 0.05f : 0.15f;
                Effects.BlackSmokeEffect.Display(obj);
            }
        }
Exemplo n.º 21
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();
        }
Exemplo n.º 22
0
        public override void Detach(Player player)
        {
            Event <PlayerDrawEventArgs> .Handler -= PlayerDrawHandler;
            base.Detach(player);

            if (_shadowSprite != null)
            {
                _shadowSprite.Dispose();
                _shadowSprite = null;
            }
        }
Exemplo n.º 23
0
        public override void Detach(Player player)
        {
            Event<PlayerDrawEventArgs>.Handler -= PlayerDrawHandler;
            base.Detach(player);

            if (_shadowSprite != null)
            {
                _shadowSprite.Dispose();
                _shadowSprite = null;
            }
        }
Exemplo n.º 24
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();
     }
 }
Exemplo n.º 25
0
 public override void Initialize()
 {
     m_boss = (EnemyList[0] as EnemyObj_Fairy);
     m_boss.PauseEnemy(true);
     m_bossShadow = new ObjContainer("EnemyFairyGhostBossMove_Character");
     m_boss.ChangeSprite("EnemyFairyGhostBossIdle_Character");
     m_bossShadow.TextureColor = Color.Black;
     m_bossShadow.Scale        = m_boss.Scale;
     m_bossShadow.PlayAnimation();
     GameObjList.Add(m_bossShadow);
     base.Initialize();
 }
Exemplo n.º 26
0
 public override void Initialize()
 {
     this.m_boss = (base.EnemyList[0] as EnemyObj_Fairy);
     this.m_boss.PauseEnemy(true);
     this.m_bossShadow = new ObjContainer("EnemyFairyGhostBossMove_Character");
     this.m_boss.ChangeSprite("EnemyFairyGhostBossIdle_Character");
     this.m_bossShadow.TextureColor = Color.Black;
     this.m_bossShadow.Scale = this.m_boss.Scale;
     this.m_bossShadow.PlayAnimation(true);
     base.GameObjList.Add(this.m_bossShadow);
     base.Initialize();
 }
Exemplo n.º 27
0
        void Player_PlayerEffectsUpdating(ObjContainer player, GameTime gameTime)
        {
            if (player.CurrentSpeed == 0f)
            {
                questionTimer -= (float)gameTime.ElapsedGameTime.TotalSeconds;

                if (questionTimer <= 0f)
                {
                    questionTimer = 0.4f;
                    Effects.QuestionMarkEffect.Display(player);
                }
            }
        }
Exemplo n.º 28
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         m_textList.Clear();
         m_textList = null;
         m_textDataList.Clear();
         m_textDataList = null;
         m_namePlate.Dispose();
         m_namePlate = null;
         m_name      = null;
         base.Dispose();
     }
 }
Exemplo n.º 29
0
        protected override bool OnCast(Entity source)
        {
            var obj = source.GameObject;

            if (_shadowSprite == null)
            {
                _shadowSprite = new ObjContainer(obj.SpriteName)
                {
                    OutlineColour = Color.Blue,
                    OutlineWidth  = 2,
                    TextureColor  = Color.Black
                }
            }
            ;
            else
            {
                _shadowSprite.ChangeSprite(obj.SpriteName);
            }

            _shadowSprite.Position = obj.Position;
            _shadowSprite.Flip     = obj.Flip;
            _shadowSprite.Scale    = Vector2.Zero;
            _shadowSprite.Visible  = true;

            _shadowSprite.GoToFrame(obj.CurrentFrame);

            for (var i = 0; i < obj.NumChildren; i++)
            {
                var src  = obj.GetChildAt(i) as SpriteObj;
                var dst  = _shadowSprite.GetChildAt(i) as SpriteObj;
                var show = src.Visible;

                if (source is Player && (
                        i == 16 || (
                            Player.Class is Classes.Spellthief && (i == 10 || i == 11)
                            )))
                {
                    show = false;
                }

                dst.ChangeSprite(src.SpriteName);
                dst.Visible = show;
            }

            Tween.To(_shadowSprite, 0.4f, Linear.EaseNone, "ScaleX", obj.ScaleX.ToString(), "ScaleY", obj.ScaleY.ToString());

            Effects.InverseEmitEffect.Display(_shadowSprite.Position);

            return(true);
        }
Exemplo n.º 30
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();
     }
 }
Exemplo n.º 31
0
 public override void OnEnter()
 {
     SoundManager.PlaySound("DialogOpen");
     m_lockControls              = true;
     m_selectedIndex             = Game.GameConfig.ProfileSlot - 1;
     m_selectedSlot              = m_slotArray[m_selectedIndex];
     m_selectedSlot.TextureColor = Color.Yellow;
     CheckSaveHeaders(m_slot1Container, 1);
     CheckSaveHeaders(m_slot2Container, 2);
     CheckSaveHeaders(m_slot3Container, 3);
     m_deleteProfileText.Visible = true;
     if (m_slotArray[m_selectedIndex].ID == 0)
     {
         m_deleteProfileText.Visible = false;
     }
     Tween.To(this, 0.2f, Tween.EaseNone, "BackBufferOpacity", "0.9");
     m_title.Position          = new Vector2(660f, 100f);
     m_slot1Container.Position = new Vector2(660f, 300f);
     m_slot2Container.Position = new Vector2(660f, 420f);
     m_slot3Container.Position = new Vector2(660f, 540f);
     TweenInText(m_title, 0f);
     TweenInText(m_slot1Container, 0.05f);
     TweenInText(m_slot2Container, 0.1f);
     TweenInText(m_slot3Container, 0.15f);
     Tween.RunFunction(0.5f, this, "UnlockControls");
     if (InputManager.GamePadIsConnected(PlayerIndex.One))
     {
         m_confirmText.ForcedScale = new Vector2(0.7f, 0.7f);
         m_cancelText.ForcedScale  = new Vector2(0.7f, 0.7f);
         m_navigationText.Text     = "[Button:LeftStick] to navigate profiles";
     }
     else
     {
         m_confirmText.ForcedScale = new Vector2(1f, 1f);
         m_cancelText.ForcedScale  = new Vector2(1f, 1f);
         m_navigationText.Text     = "Arrow keys to navigate profiles";
     }
     m_confirmText.Text          = "[Input:" + 0 + "] to select profiles";
     m_cancelText.Text           = "[Input:" + 2 + "] to exit profiles";
     m_deleteProfileText.Text    = "[Input:" + 26 + "] to delete profile";
     m_confirmText.Opacity       = 0f;
     m_cancelText.Opacity        = 0f;
     m_navigationText.Opacity    = 0f;
     m_deleteProfileText.Opacity = 0f;
     Tween.To(m_confirmText, 0.2f, Tween.EaseNone, "Opacity", "1");
     Tween.To(m_cancelText, 0.2f, Tween.EaseNone, "Opacity", "1");
     Tween.To(m_navigationText, 0.2f, Tween.EaseNone, "Opacity", "1");
     Tween.To(m_deleteProfileText, 0.2f, Tween.EaseNone, "Opacity", "1");
     base.OnEnter();
 }
Exemplo n.º 32
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         m_castleGate     = null;
         m_teleporter     = null;
         m_bossDoor       = null;
         m_bossDoorSprite = null;
         m_diary          = null;
         m_speechBubble   = null;
         m_mapText        = null;
         m_mapIcon        = null;
         base.Dispose();
     }
 }
Exemplo n.º 33
0
        private void CheckSaveHeaders(ObjContainer container, byte profile)
        {
            var textObj  = container.GetChildAt(1) as TextObj;
            var textObj2 = container.GetChildAt(3) as TextObj;
            var textObj3 = container.GetChildAt(4) as TextObj;

            textObj2.Text = "";
            textObj3.Text = "";
            string text      = null;
            byte   classType = 0;
            var    num       = 0;
            var    flag      = false;
            var    num2      = 0;

            try
            {
                (ScreenManager.Game as Game).SaveManager.GetSaveHeader(profile, out classType, out text, out num,
                                                                       out flag, out num2);
                if (text == null)
                {
                    textObj.Text = "- START NEW LEGACY -";
                    container.ID = 0;
                }
                else
                {
                    var isFemale = text.Contains("Lady");
                    if (!flag)
                    {
                        textObj.Text = text + " the " + ClassType.ToString(classType, isFemale);
                    }
                    else
                    {
                        textObj.Text = text + " the Deceased";
                    }
                    textObj2.Text = "Lvl. " + num;
                    if (num2 > 0)
                    {
                        textObj3.Text = "NG+ " + num2;
                    }
                    container.ID = 1;
                }
            }
            catch
            {
                textObj.Text = "- START NEW LEGACY -";
                container.ID = 0;
            }
        }
Exemplo n.º 34
0
 public PauseInfoObj() : base("GameOverStatPlate_Character")
 {
     ForceDraw             = true;
     m_textList            = new List <TextObj>();
     m_textDataList        = new List <TextObj>();
     m_namePlate           = new ObjContainer("DialogBox_Character");
     m_namePlate.ForceDraw = true;
     m_name                     = new TextObj(Game.JunicodeFont);
     m_name.Align               = Types.TextAlign.Centre;
     m_name.Text                = "<noname>";
     m_name.FontSize            = 8f;
     m_name.Y                  -= 45f;
     m_name.OverrideParentScale = true;
     m_name.DropShadow          = new Vector2(2f, 2f);
     m_namePlate.AddChild(m_name);
 }
Exemplo n.º 35
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         Console.WriteLine("Disposing Diary Entry Screen");
         foreach (var current in m_diaryList)
         {
             current.Dispose();
         }
         m_diaryList.Clear();
         m_diaryList     = null;
         m_selectedEntry = null;
         m_titleText.Dispose();
         m_titleText = null;
         base.Dispose();
     }
 }
Exemplo n.º 36
0
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         Console.WriteLine("Disposing Diary Entry Screen");
         foreach (ObjContainer current in this.m_diaryList)
         {
             current.Dispose();
         }
         this.m_diaryList.Clear();
         this.m_diaryList = null;
         this.m_selectedEntry = null;
         this.m_titleText.Dispose();
         this.m_titleText = null;
         base.Dispose();
     }
 }
Exemplo n.º 37
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         m_targetList.Clear();
         m_targetList    = null;
         m_line          = null;
         m_currentTarget = null;
         m_elf           = null;
         m_daggerIcons   = null;
         m_targetIcons   = null;
         m_balloonList.Clear();
         m_balloonList = null;
         m_rewardChest = null;
         base.Dispose();
     }
 }
Exemplo n.º 38
0
        public override void LoadContent()
        {
            m_titleText           = new SpriteObj("DiaryEntryTitleText_Sprite");
            m_titleText.ForceDraw = true;
            m_titleText.X         = 660f;
            m_titleText.Y         = 72f;
            var num  = 260;
            var num2 = 150;
            var num3 = num;
            var num4 = num2;
            var num5 = 100;
            var num6 = 200;
            var num7 = 5;
            var num8 = 0;

            for (var i = 0; i < 25; i++)
            {
                var objContainer = new ObjContainer("DialogBox_Character");
                objContainer.ForceDraw = true;
                objContainer.Scale     = new Vector2(180f / objContainer.Width, 50f / objContainer.Height);
                objContainer.Position  = new Vector2(num3, num4);
                var textObj = new TextObj(Game.JunicodeFont);
                textObj.Text = "Entry #" + (i + 1);
                textObj.OverrideParentScale = true;
                textObj.OutlineWidth        = 2;
                textObj.FontSize            = 12f;
                textObj.Y    -= 64f;
                textObj.Align = Types.TextAlign.Centre;
                objContainer.AddChild(textObj);
                m_diaryList.Add(objContainer);
                num8++;
                num3 += num6;
                if (num8 >= num7)
                {
                    num8  = 0;
                    num3  = num;
                    num4 += num5;
                }
                if (i > 13)
                {
                    objContainer.Visible = false;
                }
            }
            base.LoadContent();
        }
Exemplo n.º 39
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();
     }
 }
Exemplo n.º 40
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         var abilitiesSpriteArray = m_abilitiesSpriteArray;
         for (var i = 0; i < abilitiesSpriteArray.Length; i++)
         {
             var spriteObj = abilitiesSpriteArray[i];
             spriteObj.Dispose();
         }
         Array.Clear(m_abilitiesSpriteArray, 0, m_abilitiesSpriteArray.Length);
         m_abilitiesSpriteArray = null;
         m_coin.Dispose();
         m_coin = null;
         m_mpBar.Dispose();
         m_mpBar = null;
         m_hpBar.Dispose();
         m_hpBar = null;
         m_playerLevelText.Dispose();
         m_playerLevelText = null;
         m_goldText.Dispose();
         m_goldText = null;
         m_hpText.Dispose();
         m_hpText = null;
         m_mpText.Dispose();
         m_mpText = null;
         m_hpBarContainer.Dispose();
         m_hpBarContainer = null;
         m_mpBarContainer.Dispose();
         m_mpBarContainer = null;
         m_specialItemIcon.Dispose();
         m_specialItemIcon = null;
         m_spellIcon.Dispose();
         m_spellIcon = null;
         m_spellCost.Dispose();
         m_spellCost = null;
         m_iconHolder1.Dispose();
         m_iconHolder1 = null;
         m_iconHolder2.Dispose();
         m_iconHolder2 = null;
         base.Dispose();
     }
 }
Exemplo n.º 41
0
        protected override bool OnCast(Entity source)
        {
            var obj = source.GameObject;

            if (_shadowSprite == null)
                _shadowSprite = new ObjContainer(obj.SpriteName)
                {
                    OutlineColour = Color.Blue,
                    OutlineWidth = 2,
                    TextureColor = Color.Black
                };
            else
                _shadowSprite.ChangeSprite(obj.SpriteName);

            _shadowSprite.Position = obj.Position;
            _shadowSprite.Flip = obj.Flip;
            _shadowSprite.Scale = Vector2.Zero;
            _shadowSprite.Visible = true;

            _shadowSprite.GoToFrame(obj.CurrentFrame);

            for (var i = 0; i < obj.NumChildren; i++)
            {
                var src = obj.GetChildAt(i) as SpriteObj;
                var dst = _shadowSprite.GetChildAt(i) as SpriteObj;
                var show = src.Visible;

                if (source is Player && (
                        i == 16 || (
                        Player.Class is Classes.Spellthief && (i == 10 || i == 11)
                    )))
                    show = false;

                dst.ChangeSprite(src.SpriteName);
                dst.Visible = show;
            }

            Tween.To(_shadowSprite, 0.4f, Linear.EaseNone, "ScaleX", obj.ScaleX.ToString(), "ScaleY", obj.ScaleY.ToString());

            Effects.InverseEmitEffect.Display(_shadowSprite.Position);

            return true;
        }
Exemplo n.º 42
0
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         Console.WriteLine("Disposing SkillUnlock Screen");
         this.m_picturePlate.Dispose();
         this.m_picturePlate = null;
         this.m_picture.Dispose();
         this.m_picture = null;
         this.m_text = null;
         this.m_title.Dispose();
         this.m_title = null;
         this.m_titlePlate.Dispose();
         this.m_titlePlate = null;
         this.m_plate.Dispose();
         this.m_plate = null;
         base.Dispose();
     }
 }
Exemplo n.º 43
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();
     }
 }
Exemplo n.º 44
0
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         Console.WriteLine("Disposing Dialogue Screen");
         this.m_confirmMethodObj = null;
         this.m_confirmMethodInfo = null;
         if (this.m_confirmArgs != null)
         {
             Array.Clear(this.m_confirmArgs, 0, this.m_confirmArgs.Length);
         }
         this.m_confirmArgs = null;
         this.m_cancelMethodObj = null;
         this.m_cancelMethodInfo = null;
         if (this.m_cancelArgs != null)
         {
             Array.Clear(this.m_cancelArgs, 0, this.m_cancelArgs.Length);
         }
         this.m_cancelArgs = null;
         this.m_dialogContainer.Dispose();
         this.m_dialogContainer = null;
         this.m_dialogChoiceContainer.Dispose();
         this.m_dialogChoiceContainer = null;
         if (this.m_dialogText != null)
         {
             Array.Clear(this.m_dialogText, 0, this.m_dialogText.Length);
         }
         this.m_dialogText = null;
         if (this.m_dialogTitles != null)
         {
             Array.Clear(this.m_dialogTitles, 0, this.m_dialogTitles.Length);
         }
         this.m_dialogTitles = null;
         base.Dispose();
     }
 }
Exemplo n.º 45
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();
     }
 }
Exemplo n.º 46
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;
 }
Exemplo n.º 47
0
 public override void Initialize()
 {
     this.m_speechBubble = new SpriteObj("ExclamationSquare_Sprite");
     this.m_speechBubble.Flip = SpriteEffects.FlipHorizontally;
     this.m_speechBubble.Scale = new Vector2(1.2f, 1.2f);
     base.GameObjList.Add(this.m_speechBubble);
     this.m_mapText = new KeyIconTextObj(Game.JunicodeFont);
     this.m_mapText.Text = "view map any time";
     this.m_mapText.Align = Types.TextAlign.Centre;
     this.m_mapText.FontSize = 12f;
     this.m_mapText.OutlineWidth = 2;
     base.GameObjList.Add(this.m_mapText);
     this.m_mapIcon = new KeyIconObj();
     this.m_mapIcon.Scale = new Vector2(0.5f, 0.5f);
     base.GameObjList.Add(this.m_mapIcon);
     foreach (GameObj current in base.GameObjList)
     {
         if (current.Name == "diary")
         {
             this.m_diary = (current as SpriteObj);
         }
         if (current.Name == "map")
         {
             (current as SpriteObj).OutlineWidth = 2;
             this.m_mapText.Position = new Vector2(current.X, (float)(current.Bounds.Top - 50));
             this.m_mapIcon.Position = new Vector2(this.m_mapText.X, this.m_mapText.Y - 20f);
         }
     }
     this.m_diary.OutlineWidth = 2;
     this.m_speechBubble.Position = new Vector2(this.m_diary.X, this.m_diary.Y - (float)this.m_speechBubble.Height - 20f);
     DoorObj doorObj = null;
     foreach (GameObj current2 in base.GameObjList)
     {
         if (current2.Name == "LastDoor")
         {
             this.m_bossDoorSprite = (current2 as ObjContainer);
             break;
         }
     }
     foreach (DoorObj current3 in base.DoorList)
     {
         if (current3.DoorPosition == "Left")
         {
             doorObj = current3;
         }
         if (current3.IsBossDoor)
         {
             this.m_bossDoor = current3;
             this.m_bossDoor.Locked = true;
         }
     }
     for (int i = 1; i < this.m_bossDoorSprite.NumChildren; i++)
     {
         this.m_bossDoorSprite.GetChildAt(i).Opacity = 0f;
     }
     this.m_bossDoorSprite.AnimationDelay = 0.1f;
     this.m_castleGate.Position = new Vector2((float)(doorObj.Bounds.Right - this.m_castleGate.Width), doorObj.Y - (float)this.m_castleGate.Height);
     this.m_teleporter.Position = new Vector2(base.X + (float)this.Width / 2f - 600f, base.Y + 720f - 120f);
     base.Initialize();
 }
Exemplo n.º 48
0
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         Console.WriteLine("Disposing Procedural Level Screen");
         Tween.StopAll(false);
         this.m_currentRoom = null;
         this.DisposeRTs();
         foreach (RoomObj current in this.m_roomList)
         {
             current.Dispose();
         }
         this.m_roomList.Clear();
         this.m_roomList = null;
         this.m_enemyStartPositions.Clear();
         this.m_enemyStartPositions = null;
         this.m_tempEnemyStartPositions.Clear();
         this.m_tempEnemyStartPositions = null;
         this.m_textManager.Dispose();
         this.m_textManager = null;
         this.m_physicsManager = null;
         this.m_projectileManager.Dispose();
         this.m_projectileManager = null;
         this.m_itemDropManager.Dispose();
         this.m_itemDropManager = null;
         this.m_currentRoom = null;
         this.m_miniMapDisplay.Dispose();
         this.m_miniMapDisplay = null;
         this.m_mapBG.Dispose();
         this.m_mapBG = null;
         this.m_inputMap.Dispose();
         this.m_inputMap = null;
         this.m_lastEnemyHit = null;
         this.m_playerHUD.Dispose();
         this.m_playerHUD = null;
         this.m_player = null;
         this.m_enemyHUD.Dispose();
         this.m_enemyHUD = null;
         this.m_impactEffectPool.Dispose();
         this.m_impactEffectPool = null;
         this.m_blackBorder1.Dispose();
         this.m_blackBorder1 = null;
         this.m_blackBorder2.Dispose();
         this.m_blackBorder2 = null;
         this.m_chestList.Clear();
         this.m_chestList = null;
         this.m_projectileIconPool.Dispose();
         this.m_projectileIconPool = null;
         this.m_objKilledPlayer = null;
         this.m_dungeonLight.Dispose();
         this.m_dungeonLight = null;
         this.m_traitAura.Dispose();
         this.m_traitAura = null;
         this.m_killedEnemyObjList.Clear();
         this.m_killedEnemyObjList = null;
         this.m_roomEnteringTitle.Dispose();
         this.m_roomEnteringTitle = null;
         this.m_roomTitle.Dispose();
         this.m_roomTitle = null;
         this.m_creditsText.Dispose();
         this.m_creditsText = null;
         this.m_creditsTitleText.Dispose();
         this.m_creditsTitleText = null;
         Array.Clear(this.m_creditsTextTitleList, 0, this.m_creditsTextTitleList.Length);
         Array.Clear(this.m_creditsTextList, 0, this.m_creditsTextList.Length);
         this.m_creditsTextTitleList = null;
         this.m_creditsTextList = null;
         this.m_filmGrain.Dispose();
         this.m_filmGrain = null;
         this.m_objectivePlate.Dispose();
         this.m_objectivePlate = null;
         this.m_objectivePlateTween = null;
         this.m_sky.Dispose();
         this.m_sky = null;
         this.m_whiteBG.Dispose();
         this.m_whiteBG = null;
         this.m_compassBG.Dispose();
         this.m_compassBG = null;
         this.m_compass.Dispose();
         this.m_compass = null;
         if (this.m_compassDoor != null)
         {
             this.m_compassDoor.Dispose();
         }
         this.m_compassDoor = null;
         this.m_castleBorderTexture.Dispose();
         this.m_gardenBorderTexture.Dispose();
         this.m_towerBorderTexture.Dispose();
         this.m_dungeonBorderTexture.Dispose();
         this.m_neoBorderTexture.Dispose();
         this.m_castleBorderTexture = null;
         this.m_gardenBorderTexture = null;
         this.m_towerBorderTexture = null;
         this.m_dungeonBorderTexture = null;
         this.DebugTextObj.Dispose();
         this.DebugTextObj = null;
         base.Dispose();
     }
 }
Exemplo n.º 49
0
 public override void LoadContent()
 {
     this.DebugTextObj = new TextObj(Game.JunicodeFont);
     this.DebugTextObj.FontSize = 26f;
     this.DebugTextObj.Align = Types.TextAlign.Centre;
     this.DebugTextObj.Text = "";
     this.DebugTextObj.ForceDraw = true;
     this.m_projectileIconPool = new ProjectileIconPool(200, this.m_projectileManager, base.ScreenManager as RCScreenManager);
     this.m_projectileIconPool.Initialize();
     this.m_textManager.Initialize();
     this.m_impactEffectPool.Initialize();
     this.m_physicsManager = (base.ScreenManager.Game as Game).PhysicsManager;
     this.m_physicsManager.SetGravity(0f, 1830f);
     this.m_projectileManager.Initialize();
     this.m_physicsManager.Initialize(base.ScreenManager.Camera);
     this.m_itemDropManager = new ItemDropManager(600, this.m_physicsManager);
     this.m_itemDropManager.Initialize();
     this.m_playerHUD = new PlayerHUDObj();
     this.m_playerHUD.SetPosition(new Vector2(20f, 40f));
     this.m_enemyHUD = new EnemyHUDObj();
     this.m_enemyHUD.Position = new Vector2((float)(660 - this.m_enemyHUD.Width / 2), 20f);
     this.m_miniMapDisplay.SetPlayer(this.m_player);
     this.m_miniMapDisplay.InitializeAlphaMap(new Rectangle(1070, 50, 200, 100), base.Camera);
     this.InitializeAllRooms(true);
     this.InitializeEnemies();
     this.InitializeChests(true);
     this.InitializeRenderTargets();
     this.m_mapBG = new SpriteObj("MinimapBG_Sprite");
     this.m_mapBG.Position = new Vector2(1070f, 50f);
     this.m_mapBG.ForceDraw = true;
     this.UpdateCamera();
     this.m_borderSize = 100;
     this.m_blackBorder1 = new SpriteObj("Blank_Sprite");
     this.m_blackBorder1.TextureColor = Color.Black;
     this.m_blackBorder1.Scale = new Vector2(1340f / (float)this.m_blackBorder1.Width, (float)(this.m_borderSize / this.m_blackBorder1.Height));
     this.m_blackBorder2 = new SpriteObj("Blank_Sprite");
     this.m_blackBorder2.TextureColor = Color.Black;
     this.m_blackBorder2.Scale = new Vector2(1340f / (float)this.m_blackBorder2.Width, (float)(this.m_borderSize / this.m_blackBorder2.Height));
     this.m_blackBorder1.ForceDraw = true;
     this.m_blackBorder2.ForceDraw = true;
     this.m_blackBorder1.Y = (float)(-(float)this.m_borderSize);
     this.m_blackBorder2.Y = 720f;
     this.m_dungeonLight = new SpriteObj("LightSource_Sprite");
     this.m_dungeonLight.ForceDraw = true;
     this.m_dungeonLight.Scale = new Vector2(12f, 12f);
     this.m_traitAura = new SpriteObj("LightSource_Sprite");
     this.m_traitAura.ForceDraw = true;
     this.m_objectivePlate = new ObjContainer("DialogBox_Character");
     this.m_objectivePlate.ForceDraw = true;
     TextObj textObj = new TextObj(Game.JunicodeFont);
     textObj.Position = new Vector2(-400f, -60f);
     textObj.OverrideParentScale = true;
     textObj.FontSize = 10f;
     textObj.Text = "Fairy Chest Objective:";
     textObj.TextureColor = Color.Red;
     textObj.OutlineWidth = 2;
     this.m_objectivePlate.AddChild(textObj);
     TextObj textObj2 = new TextObj(Game.JunicodeFont);
     textObj2.OverrideParentScale = true;
     textObj2.Position = new Vector2(textObj.X, textObj.Y + 40f);
     textObj2.ForceDraw = true;
     textObj2.FontSize = 9f;
     textObj2.Text = "Reach the chest in 15 seconds:";
     textObj2.WordWrap(250);
     textObj2.OutlineWidth = 2;
     this.m_objectivePlate.AddChild(textObj2);
     TextObj textObj3 = new TextObj(Game.JunicodeFont);
     textObj3.OverrideParentScale = true;
     textObj3.Position = new Vector2(textObj2.X, textObj2.Y + 35f);
     textObj3.ForceDraw = true;
     textObj3.FontSize = 9f;
     textObj3.Text = "Time Remaining:";
     textObj3.WordWrap(250);
     textObj3.OutlineWidth = 2;
     this.m_objectivePlate.AddChild(textObj3);
     this.m_objectivePlate.Scale = new Vector2(250f / (float)this.m_objectivePlate.GetChildAt(0).Width, 130f / (float)this.m_objectivePlate.GetChildAt(0).Height);
     this.m_objectivePlate.Position = new Vector2(1470f, 250f);
     SpriteObj spriteObj = new SpriteObj("Blank_Sprite");
     spriteObj.TextureColor = Color.Red;
     spriteObj.Position = new Vector2(textObj2.X, textObj2.Y + 20f);
     spriteObj.ForceDraw = true;
     spriteObj.OverrideParentScale = true;
     spriteObj.ScaleY = 0.5f;
     this.m_objectivePlate.AddChild(spriteObj);
     SpriteObj spriteObj2 = new SpriteObj("Blank_Sprite");
     spriteObj2.TextureColor = Color.Red;
     spriteObj2.Position = new Vector2(textObj2.X, spriteObj.Y + 35f);
     spriteObj2.ForceDraw = true;
     spriteObj2.OverrideParentScale = true;
     spriteObj2.ScaleY = 0.5f;
     this.m_objectivePlate.AddChild(spriteObj2);
     base.LoadContent();
     this.m_sky = new SkyObj(this);
     this.m_sky.LoadContent(base.Camera);
     this.m_whiteBG = new SpriteObj("Blank_Sprite");
     this.m_whiteBG.Opacity = 0f;
     this.m_whiteBG.Scale = new Vector2(1320f / (float)this.m_whiteBG.Width, 720f / (float)this.m_whiteBG.Height);
     this.m_filmGrain = new SpriteObj("FilmGrain_Sprite");
     this.m_filmGrain.ForceDraw = true;
     this.m_filmGrain.Scale = new Vector2(2.015f, 2.05f);
     this.m_filmGrain.X -= 5f;
     this.m_filmGrain.Y -= 5f;
     this.m_filmGrain.PlayAnimation(true);
     this.m_filmGrain.AnimationDelay = 0.0333333351f;
     this.m_compassBG = new SpriteObj("CompassBG_Sprite");
     this.m_compassBG.ForceDraw = true;
     this.m_compassBG.Position = new Vector2(660f, 90f);
     this.m_compassBG.Scale = Vector2.Zero;
     this.m_compass = new SpriteObj("Compass_Sprite");
     this.m_compass.Position = this.m_compassBG.Position;
     this.m_compass.ForceDraw = true;
     this.m_compass.Scale = Vector2.Zero;
     this.InitializeCreditsText();
 }
Exemplo n.º 50
0
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         this.m_castleGate = null;
         this.m_teleporter = null;
         this.m_bossDoor = null;
         this.m_bossDoorSprite = null;
         this.m_diary = null;
         this.m_speechBubble = null;
         this.m_mapText = null;
         this.m_mapIcon = null;
         base.Dispose();
     }
 }
Exemplo n.º 51
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();
 }
Exemplo n.º 52
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();
 }
Exemplo n.º 53
0
 public override void LoadContent()
 {
     this.m_loadingText = new TextObj(null);
     this.m_loadingText.Font = Game.JunicodeLargeFont;
     this.m_loadingText.Text = "Building";
     this.m_loadingText.Align = Types.TextAlign.Centre;
     this.m_loadingText.FontSize = 40f;
     this.m_loadingText.OutlineWidth = 4;
     this.m_loadingText.ForceDraw = true;
     this.m_gateSprite = new ObjContainer("LoadingScreenGate_Character");
     this.m_gateSprite.ForceDraw = true;
     this.m_gateSprite.Scale = new Vector2(2f, 2f);
     this.m_gateSprite.Y -= (float)this.m_gateSprite.Height;
     this.m_effectPool.Initialize();
     this.m_blackTransitionIn = new SpriteObj("Blank_Sprite");
     this.m_blackTransitionIn.Rotation = 15f;
     this.m_blackTransitionIn.Scale = new Vector2((float)(1320 / this.m_blackTransitionIn.Width), (float)(2000 / this.m_blackTransitionIn.Height));
     this.m_blackTransitionIn.TextureColor = Color.Black;
     this.m_blackTransitionIn.ForceDraw = true;
     this.m_blackScreen = new SpriteObj("Blank_Sprite");
     this.m_blackScreen.Scale = new Vector2((float)(1320 / this.m_blackScreen.Width), (float)(720 / this.m_blackScreen.Height));
     this.m_blackScreen.TextureColor = Color.Black;
     this.m_blackScreen.ForceDraw = true;
     this.m_blackTransitionOut = new SpriteObj("Blank_Sprite");
     this.m_blackTransitionOut.Rotation = 15f;
     this.m_blackTransitionOut.Scale = new Vector2((float)(1320 / this.m_blackTransitionOut.Width), (float)(2000 / this.m_blackTransitionOut.Height));
     this.m_blackTransitionOut.TextureColor = Color.Black;
     this.m_blackTransitionOut.ForceDraw = true;
     base.LoadContent();
 }
Exemplo n.º 54
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();
     }
 }
Exemplo n.º 55
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();
 }
Exemplo n.º 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();
 }
Exemplo n.º 57
0
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         Console.WriteLine("Disposing Loading Screen");
         this.m_loadingText.Dispose();
         this.m_loadingText = null;
         this.m_levelToLoad = null;
         this.m_gateSprite.Dispose();
         this.m_gateSprite = null;
         this.m_effectPool.Dispose();
         this.m_effectPool = null;
         this.m_blackTransitionIn.Dispose();
         this.m_blackTransitionIn = null;
         this.m_blackScreen.Dispose();
         this.m_blackScreen = null;
         this.m_blackTransitionOut.Dispose();
         this.m_blackTransitionOut = null;
         base.Dispose();
     }
 }
Exemplo n.º 58
0
 private void UpdateSelection()
 {
     if (this.m_selectedEntry != null)
     {
         this.m_selectedEntry.TextureColor = Color.White;
     }
     this.m_selectedEntry = this.m_diaryList[this.m_entryIndex];
     this.m_selectedEntry.TextureColor = Color.Yellow;
 }
Exemplo n.º 59
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();
     }
 }
Exemplo n.º 60
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();
 }