Ejemplo n.º 1
0
 public override void ReinitializeRTs()
 {
     m_sepiaRT = new RenderTarget2D(Camera.GraphicsDevice, 1320, 720);
     if (m_background != null)
     {
         m_background.Dispose();
     }
     m_background = new BackgroundObj("LineageScreenBG_Sprite");
     m_background.SetRepeated(true, true, Camera);
     m_background.X -= 6600f;
     base.ReinitializeRTs();
 }
Ejemplo n.º 2
0
 public override void InitializeRenderTarget(RenderTarget2D bgRenderTarget)
 {
     if (m_background != null)
     {
         m_background.Dispose();
     }
     m_background = new BackgroundObj("LineageScreenBG_Sprite");
     m_background.SetRepeated(true, true, Game.ScreenManager.Camera);
     m_background.X      -= 6600f;
     m_background.Opacity = 0.7f;
     base.InitializeRenderTarget(bgRenderTarget);
 }
Ejemplo n.º 3
0
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         this.m_differenceCloud.Dispose();
         this.m_differenceCloud = null;
         this.m_differenceCloud2.Dispose();
         this.m_differenceCloud2 = null;
         this.m_differenceCloud3.Dispose();
         this.m_differenceCloud3 = null;
         this.m_moon.Dispose();
         this.m_moon = null;
         this.m_silhouette.Dispose();
         this.m_silhouette = null;
         this.m_levelScreen = null;
         base.Dispose();
     }
 }
Ejemplo n.º 4
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         m_differenceCloud.Dispose();
         m_differenceCloud = null;
         m_differenceCloud2.Dispose();
         m_differenceCloud2 = null;
         m_differenceCloud3.Dispose();
         m_differenceCloud3 = null;
         m_moon.Dispose();
         m_moon = null;
         m_silhouette.Dispose();
         m_silhouette  = null;
         m_levelScreen = null;
         base.Dispose();
     }
 }
Ejemplo n.º 5
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();
     }
 }
Ejemplo n.º 6
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         Console.WriteLine("Disposing Diary Flashback Screen");
         m_background.Dispose();
         m_background = null;
         foreach (var current in m_lineageArray)
         {
             current.Dispose();
         }
         m_lineageArray.Clear();
         m_lineageArray = null;
         m_filmGrain.Dispose();
         m_filmGrain = null;
         m_sepiaRT.Dispose();
         m_sepiaRT = null;
         base.Dispose();
     }
 }
Ejemplo n.º 7
0
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         Console.WriteLine("Disposing Diary Flashback Screen");
         this.m_background.Dispose();
         this.m_background = null;
         foreach (LineageObj current in this.m_lineageArray)
         {
             current.Dispose();
         }
         this.m_lineageArray.Clear();
         this.m_lineageArray = null;
         this.m_filmGrain.Dispose();
         this.m_filmGrain = null;
         this.m_sepiaRT.Dispose();
         this.m_sepiaRT = null;
         base.Dispose();
     }
 }
Ejemplo n.º 8
0
        public void ReinitializeRT(Camera2D camera)
        {
            var one = new Vector2(2f, 2f);

            if (LevelEV.SAVE_FRAMES)
            {
                m_moon.Position /= 2f;
                one              = Vector2.One;
            }
            if (m_differenceCloud != null)
            {
                m_differenceCloud.Dispose();
            }
            m_differenceCloud = new BackgroundObj("ParallaxDifferenceClouds_Sprite");
            m_differenceCloud.SetRepeated(true, true, camera, SamplerState.LinearWrap);
            m_differenceCloud.Scale         = one;
            m_differenceCloud.TextureColor  = new Color(10, 10, 80);
            m_differenceCloud.ParallaxSpeed = new Vector2(0.2f, 0f);
            if (m_differenceCloud2 != null)
            {
                m_differenceCloud2.Dispose();
            }
            m_differenceCloud2 = new BackgroundObj("ParallaxDifferenceClouds_Sprite");
            m_differenceCloud2.SetRepeated(true, true, camera, SamplerState.LinearWrap);
            m_differenceCloud2.Scale         = one;
            m_differenceCloud2.Flip          = SpriteEffects.FlipHorizontally;
            m_differenceCloud2.TextureColor  = new Color(80, 80, 160);
            m_differenceCloud2.X            -= 500f;
            m_differenceCloud2.ParallaxSpeed = new Vector2(0.4f, 0f);
            if (m_differenceCloud3 != null)
            {
                m_differenceCloud3.Dispose();
            }
            m_differenceCloud3 = new BackgroundObj("ParallaxDifferenceClouds_Sprite");
            m_differenceCloud3.SetRepeated(true, true, camera, SamplerState.LinearWrap);
            m_differenceCloud3.Scale         = one;
            m_differenceCloud3.Flip          = SpriteEffects.FlipHorizontally;
            m_differenceCloud3.TextureColor  = new Color(80, 80, 160);
            m_differenceCloud3.X            -= 500f;
            m_differenceCloud3.ParallaxSpeed = new Vector2(0.4f, 0f);
        }
Ejemplo n.º 9
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();
     }
 }
Ejemplo n.º 10
0
        public void LoadContent(Camera2D camera)
        {
            var one = new Vector2(2f, 2f);

            m_moon          = new SpriteObj("ParallaxMoon_Sprite");
            m_moon.Position = new Vector2(900f, 200f);
            if (LevelEV.SAVE_FRAMES)
            {
                m_moon.Position /= 2f;
                one              = Vector2.One;
            }
            m_moon.Scale      = one;
            m_moon.ForceDraw  = true;
            m_moonPos         = m_moon.Position;
            m_differenceCloud = new BackgroundObj("ParallaxDifferenceClouds_Sprite");
            m_differenceCloud.SetRepeated(true, true, camera, SamplerState.LinearWrap);
            m_differenceCloud.Scale         = one;
            m_differenceCloud.TextureColor  = new Color(10, 10, 80);
            m_differenceCloud.ParallaxSpeed = new Vector2(0.2f, 0f);
            m_differenceCloud2 = new BackgroundObj("ParallaxDifferenceClouds_Sprite");
            m_differenceCloud2.SetRepeated(true, true, camera, SamplerState.LinearWrap);
            m_differenceCloud2.Scale         = one;
            m_differenceCloud2.Flip          = SpriteEffects.FlipHorizontally;
            m_differenceCloud2.TextureColor  = new Color(80, 80, 160);
            m_differenceCloud2.X            -= 500f;
            m_differenceCloud2.ParallaxSpeed = new Vector2(0.4f, 0f);
            m_differenceCloud3 = new BackgroundObj("ParallaxDifferenceClouds_Sprite");
            m_differenceCloud3.SetRepeated(true, true, camera, SamplerState.LinearWrap);
            m_differenceCloud3.Scale         = one;
            m_differenceCloud3.Flip          = SpriteEffects.FlipHorizontally;
            m_differenceCloud3.TextureColor  = Color.White;
            m_differenceCloud3.X            -= 500f;
            m_differenceCloud3.ParallaxSpeed = new Vector2(0.4f, 0f);
            m_silhouette                = new SpriteObj("GardenBat_Sprite");
            m_silhouette.ForceDraw      = true;
            m_silhouette.AnimationDelay = 0.05f;
            m_silhouette.Scale          = one;
        }
Ejemplo n.º 11
0
 public override void OnEnter()
 {
     GameUtil.UnlockAchievement("LOVE_OF_BOOKS");
     BackBufferOpacity = 0f;
     Tween.To(this, 0.05f, Tween.EaseNone, "BackBufferOpacity", "1");
     BackBufferOpacity = 1f;
     Tween.To(this, 1f, Tween.EaseNone, "delay", "0.1", "BackBufferOpacity", "0");
     BackBufferOpacity = 0f;
     m_storedCameraPos = Camera.Position;
     Camera.Position   = Vector2.Zero;
     if (m_background == null)
     {
         m_sepiaRT    = new RenderTarget2D(Camera.GraphicsDevice, 1320, 720);
         m_background = new BackgroundObj("LineageScreenBG_Sprite");
         m_background.SetRepeated(true, true, Camera);
         m_background.X -= 6600f;
     }
     CreateLineageObjDebug();
     Camera.X = m_lineageArray[m_lineageArray.Count - 1].X;
     SoundManager.PlaySound("Cutsc_Thunder");
     Tween.RunFunction(1f, this, "Cutscene1");
     base.OnEnter();
 }
Ejemplo n.º 12
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();
        }
Ejemplo n.º 13
0
 public void LoadContent(Camera2D camera)
 {
     Vector2 one = new Vector2(2f, 2f);
     this.m_moon = new SpriteObj("ParallaxMoon_Sprite");
     this.m_moon.Position = new Vector2(900f, 200f);
     if (LevelEV.SAVE_FRAMES)
     {
         this.m_moon.Position /= 2f;
         one = Vector2.One;
     }
     this.m_moon.Scale = one;
     this.m_moon.ForceDraw = true;
     this.m_moonPos = this.m_moon.Position;
     this.m_differenceCloud = new BackgroundObj("ParallaxDifferenceClouds_Sprite");
     this.m_differenceCloud.SetRepeated(true, true, camera, SamplerState.LinearWrap);
     this.m_differenceCloud.Scale = one;
     this.m_differenceCloud.TextureColor = new Color(10, 10, 80);
     this.m_differenceCloud.ParallaxSpeed = new Vector2(0.2f, 0f);
     this.m_differenceCloud2 = new BackgroundObj("ParallaxDifferenceClouds_Sprite");
     this.m_differenceCloud2.SetRepeated(true, true, camera, SamplerState.LinearWrap);
     this.m_differenceCloud2.Scale = one;
     this.m_differenceCloud2.Flip = SpriteEffects.FlipHorizontally;
     this.m_differenceCloud2.TextureColor = new Color(80, 80, 160);
     this.m_differenceCloud2.X -= 500f;
     this.m_differenceCloud2.ParallaxSpeed = new Vector2(0.4f, 0f);
     this.m_differenceCloud3 = new BackgroundObj("ParallaxDifferenceClouds_Sprite");
     this.m_differenceCloud3.SetRepeated(true, true, camera, SamplerState.LinearWrap);
     this.m_differenceCloud3.Scale = one;
     this.m_differenceCloud3.Flip = SpriteEffects.FlipHorizontally;
     this.m_differenceCloud3.TextureColor = Color.White;
     this.m_differenceCloud3.X -= 500f;
     this.m_differenceCloud3.ParallaxSpeed = new Vector2(0.4f, 0f);
     this.m_silhouette = new SpriteObj("GardenBat_Sprite");
     this.m_silhouette.ForceDraw = true;
     this.m_silhouette.AnimationDelay = 0.05f;
     this.m_silhouette.Scale = one;
 }
Ejemplo n.º 14
0
 public override void ReinitializeRTs()
 {
     this.m_sepiaRT = new RenderTarget2D(base.Camera.GraphicsDevice, 1320, 720);
     if (this.m_background != null)
     {
         this.m_background.Dispose();
     }
     this.m_background = new BackgroundObj("LineageScreenBG_Sprite");
     this.m_background.SetRepeated(true, true, base.Camera, null);
     this.m_background.X -= 6600f;
     base.ReinitializeRTs();
 }
Ejemplo n.º 15
0
 public override void OnEnter()
 {
     GameUtil.UnlockAchievement("LOVE_OF_BOOKS");
     this.BackBufferOpacity = 0f;
     Tween.To(this, 0.05f, new Easing(Tween.EaseNone), new string[]
     {
         "BackBufferOpacity",
         "1"
     });
     this.BackBufferOpacity = 1f;
     Tween.To(this, 1f, new Easing(Tween.EaseNone), new string[]
     {
         "delay",
         "0.1",
         "BackBufferOpacity",
         "0"
     });
     this.BackBufferOpacity = 0f;
     this.m_storedCameraPos = base.Camera.Position;
     base.Camera.Position = Vector2.Zero;
     if (this.m_background == null)
     {
         this.m_sepiaRT = new RenderTarget2D(base.Camera.GraphicsDevice, 1320, 720);
         this.m_background = new BackgroundObj("LineageScreenBG_Sprite");
         this.m_background.SetRepeated(true, true, base.Camera, null);
         this.m_background.X -= 6600f;
     }
     this.CreateLineageObjDebug();
     base.Camera.X = this.m_lineageArray[this.m_lineageArray.Count - 1].X;
     SoundManager.PlaySound("Cutsc_Thunder");
     Tween.RunFunction(1f, this, "Cutscene1", new object[0]);
     base.OnEnter();
 }
Ejemplo n.º 16
0
 public override void DisposeRTs()
 {
     this.m_fgRenderTarget.Dispose();
     this.m_fgRenderTarget = null;
     this.m_bgRenderTarget.Dispose();
     this.m_bgRenderTarget = null;
     this.m_skyRenderTarget.Dispose();
     this.m_skyRenderTarget = null;
     this.m_finalRenderTarget.Dispose();
     this.m_finalRenderTarget = null;
     this.m_shadowRenderTarget.Dispose();
     this.m_shadowRenderTarget = null;
     this.m_lightSourceRenderTarget.Dispose();
     this.m_lightSourceRenderTarget = null;
     this.m_traitAuraRenderTarget.Dispose();
     this.m_traitAuraRenderTarget = null;
     this.m_foregroundSprite.Dispose();
     this.m_foregroundSprite = null;
     this.m_backgroundSprite.Dispose();
     this.m_backgroundSprite = null;
     this.m_backgroundParallaxSprite.Dispose();
     this.m_backgroundParallaxSprite = null;
     this.m_gardenParallaxFG.Dispose();
     this.m_gardenParallaxFG = null;
     this.m_roomBWRenderTarget.Dispose();
     this.m_roomBWRenderTarget = null;
     this.m_miniMapDisplay.DisposeRTs();
     base.DisposeRTs();
 }
Ejemplo n.º 17
0
 public override void InitializeRenderTarget(RenderTarget2D bgRenderTarget)
 {
     if (this.m_background != null)
     {
         this.m_background.Dispose();
     }
     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;
     base.InitializeRenderTarget(bgRenderTarget);
 }
Ejemplo n.º 18
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();
     }
 }
Ejemplo n.º 19
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();
 }
Ejemplo n.º 20
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);
        }
Ejemplo n.º 21
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();
     }
 }
Ejemplo n.º 22
0
 public void InitializeBackgroundObjs()
 {
     if (this.m_foregroundSprite != null)
     {
         this.m_foregroundSprite.Dispose();
     }
     this.m_foregroundSprite = new BackgroundObj("CastleFG1_Sprite");
     this.m_foregroundSprite.SetRepeated(true, true, base.Camera, SamplerState.PointWrap);
     this.m_foregroundSprite.Scale = new Vector2(2f, 2f);
     if (this.m_backgroundSprite != null)
     {
         this.m_backgroundSprite.Dispose();
     }
     this.m_backgroundSprite = new BackgroundObj("CastleBG1_Sprite");
     this.m_backgroundSprite.SetRepeated(true, true, base.Camera, SamplerState.PointWrap);
     this.m_backgroundSprite.Scale = new Vector2(2f, 2f);
     if (this.m_backgroundParallaxSprite != null)
     {
         this.m_backgroundParallaxSprite.Dispose();
     }
     this.m_backgroundParallaxSprite = new BackgroundObj("TowerBGFrame_Sprite");
     this.m_backgroundParallaxSprite.SetRepeated(true, true, base.Camera, SamplerState.PointWrap);
     this.m_backgroundParallaxSprite.Scale = new Vector2(2f, 2f);
     if (this.m_gardenParallaxFG != null)
     {
         this.m_gardenParallaxFG.Dispose();
     }
     this.m_gardenParallaxFG = new BackgroundObj("ParallaxDifferenceClouds_Sprite");
     this.m_gardenParallaxFG.SetRepeated(true, true, base.Camera, SamplerState.LinearWrap);
     this.m_gardenParallaxFG.TextureColor = Color.White;
     this.m_gardenParallaxFG.Scale = new Vector2(3f, 3f);
     this.m_gardenParallaxFG.Opacity = 0.7f;
     this.m_gardenParallaxFG.ParallaxSpeed = new Vector2(0.3f, 0f);
 }
Ejemplo n.º 23
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);
 }
Ejemplo n.º 24
0
 public void ReinitializeRT(Camera2D camera)
 {
     Vector2 one = new Vector2(2f, 2f);
     if (LevelEV.SAVE_FRAMES)
     {
         this.m_moon.Position /= 2f;
         one = Vector2.One;
     }
     if (this.m_differenceCloud != null)
     {
         this.m_differenceCloud.Dispose();
     }
     this.m_differenceCloud = new BackgroundObj("ParallaxDifferenceClouds_Sprite");
     this.m_differenceCloud.SetRepeated(true, true, camera, SamplerState.LinearWrap);
     this.m_differenceCloud.Scale = one;
     this.m_differenceCloud.TextureColor = new Color(10, 10, 80);
     this.m_differenceCloud.ParallaxSpeed = new Vector2(0.2f, 0f);
     if (this.m_differenceCloud2 != null)
     {
         this.m_differenceCloud2.Dispose();
     }
     this.m_differenceCloud2 = new BackgroundObj("ParallaxDifferenceClouds_Sprite");
     this.m_differenceCloud2.SetRepeated(true, true, camera, SamplerState.LinearWrap);
     this.m_differenceCloud2.Scale = one;
     this.m_differenceCloud2.Flip = SpriteEffects.FlipHorizontally;
     this.m_differenceCloud2.TextureColor = new Color(80, 80, 160);
     this.m_differenceCloud2.X -= 500f;
     this.m_differenceCloud2.ParallaxSpeed = new Vector2(0.4f, 0f);
     if (this.m_differenceCloud3 != null)
     {
         this.m_differenceCloud3.Dispose();
     }
     this.m_differenceCloud3 = new BackgroundObj("ParallaxDifferenceClouds_Sprite");
     this.m_differenceCloud3.SetRepeated(true, true, camera, SamplerState.LinearWrap);
     this.m_differenceCloud3.Scale = one;
     this.m_differenceCloud3.Flip = SpriteEffects.FlipHorizontally;
     this.m_differenceCloud3.TextureColor = new Color(80, 80, 160);
     this.m_differenceCloud3.X -= 500f;
     this.m_differenceCloud3.ParallaxSpeed = new Vector2(0.4f, 0f);
 }