示例#1
0
        private void LoadFrontCard()
        {
            var textObj = new TextObj(Game.JunicodeFont);

            textObj.Text          = "";
            textObj.FontSize      = 10f;
            textObj.ForceDraw     = true;
            textObj.TextureColor  = Color.Black;
            m_playerName          = (textObj.Clone() as TextObj);
            m_playerName.Text     = "Sir Archibald the IV";
            m_playerName.Position = new Vector2(50f, 43f);
            m_frontCard.AddChild(m_playerName);
            m_money          = (textObj.Clone() as TextObj);
            m_money.Position = new Vector2(m_frontCard.GetChildAt(3).X + 30f, m_playerName.Y);
            m_money.Text     = "0";
            m_frontCard.AddChild(m_money);
            m_levelClass          = (textObj.Clone() as TextObj);
            m_levelClass.Text     = "Lvl 43 Knight";
            m_levelClass.Position = new Vector2(m_playerName.X, 370f);
            m_frontCard.AddChild(m_levelClass);
            m_playerBG          = new SpriteObj("CardDungeonBG_Sprite");
            m_playerBG.Position = new Vector2(45f, 80f);
            m_frontCard.AddChildAt(1, m_playerBG);
            m_playerHUD              = new PlayerHUDObj();
            m_playerHUD.ForceDraw    = true;
            m_playerHUD.ShowBarsOnly = true;
            m_playerHUD.SetPosition(new Vector2(m_frontCard.X + 46f, m_frontCard.Y + 64f));
            m_frontCard.AddChild(m_playerHUD);
            m_frontTrait1              = new TextObj(Game.JunicodeFont);
            m_frontTrait1.FontSize     = 7f;
            m_frontTrait1.TextureColor = Color.Black;
            m_frontTrait1.Position     = new Vector2(50f, 550f);
            m_frontTrait1.Text         = "Color Blind";
            m_frontCard.AddChild(m_frontTrait1);
            m_frontTrait2      = (m_frontTrait1.Clone() as TextObj);
            m_frontTrait2.Y   -= 20f;
            m_frontTrait2.Text = "Myopic";
            m_frontCard.AddChild(m_frontTrait2);
            m_classDescription              = new TextObj(Game.JunicodeFont);
            m_classDescription.FontSize     = 8f;
            m_classDescription.TextureColor = Color.Black;
            m_classDescription.Text         = "0";
            m_classDescription.Position     = new Vector2(50f, 410f);
            m_frontCard.AddChild(m_classDescription);
            m_author              = new TextObj(Game.JunicodeFont);
            m_author.FontSize     = 8f;
            m_author.TextureColor = Color.White;
            m_author.Text         = "Glauber Kotaki";
            m_author.X            = m_playerName.X;
            m_author.Y            = 590f;
            m_frontCard.AddChild(m_author);
            m_playerStats          = (textObj.Clone() as TextObj);
            m_playerStats.Text     = "10/10";
            m_playerStats.Align    = Types.TextAlign.Centre;
            m_playerStats.Position = new Vector2(387f, 579f);
            m_frontCard.AddChild(m_playerStats);
        }
示例#2
0
        public override void LoadContent(GraphicsDevice graphics)
        {
            m_tutorialText              = new KeyIconTextObj(Game.JunicodeLargeFont);
            m_tutorialText.FontSize     = 28f;
            m_tutorialText.Text         = "[Input:" + 10 + "] to Jump";
            m_tutorialText.Align        = Types.TextAlign.Centre;
            m_tutorialText.OutlineWidth = 2;
            m_tutorialText.ForcedScale  = new Vector2(0.8f, 0.8f);
            m_creditsText               = new TextObj(Game.JunicodeFont);
            m_creditsText.FontSize      = 20f;
            m_creditsText.Text          = "Cellar Door Games";
            m_creditsText.DropShadow    = new Vector2(2f, 2f);
            m_creditsTitleText          = (m_creditsText.Clone() as TextObj);
            m_creditsTitleText.FontSize = 14f;
            var textObj = new TextObj(Game.JunicodeFont);

            textObj.FontSize     = 12f;
            textObj.Text         = "Down Attack this";
            textObj.OutlineWidth = 2;
            textObj.Align        = Types.TextAlign.Centre;
            textObj.Position     = m_waypointList[m_waypointList.Count - 1].Position;
            textObj.X           -= 25f;
            textObj.Y           -= 70f;
            GameObjList.Add(textObj);
            base.LoadContent(graphics);
        }
示例#3
0
        public override void LoadContent(GraphicsDevice graphics)
        {
            var textObj = new TextObj(Game.JunicodeFont);

            textObj.FontSize   = 25f;
            textObj.Text       = "test text";
            textObj.DropShadow = new Vector2(2f, 2f);
            if (!IsReversed)
            {
                textObj.Position = new Vector2(Bounds.Right - 1000, Bounds.Top + 200);
            }
            else
            {
                textObj.Position = new Vector2(Bounds.Left + 300, Bounds.Top + 200);
            }
            for (var i = 0; i < 3; i++)
            {
                var textObj2 = textObj.Clone() as TextObj;
                textObj2.Y += i * 100;
                m_targetText.Add(textObj2);
                var textObj3 = textObj.Clone() as TextObj;
                textObj3.Y += i * 100;
                textObj3.X  = textObj2.X + 500f;
                m_targetDataText.Add(textObj3);
            }
            m_axeIcons = new ObjContainer();
            var num  = 0;
            var num2 = 10;

            for (var j = 0; j < m_numTries; j++)
            {
                var spriteObj = new SpriteObj("SpellAxe_Sprite");
                spriteObj.Scale = new Vector2(2f, 2f);
                spriteObj.X     = num + 10;
                spriteObj.Y     = num2;
                num            += spriteObj.Width + 5;
                m_axeIcons.AddChild(spriteObj);
            }
            m_axeIcons.OutlineWidth = 2;
            GameObjList.Add(m_axeIcons);
            base.LoadContent(graphics);
        }
示例#4
0
 public override void LoadContent()
 {
     m_levelUpBGImage           = new SpriteObj("BlueprintFoundBG_Sprite");
     m_levelUpBGImage.ForceDraw = true;
     m_levelUpBGImage.Visible   = false;
     m_levelUpParticles         = new SpriteObj[10];
     for (var i = 0; i < m_levelUpParticles.Length; i++)
     {
         m_levelUpParticles[i] = new SpriteObj("LevelUpParticleFX_Sprite");
         m_levelUpParticles[i].AnimationDelay = 0.0416666679f;
         m_levelUpParticles[i].ForceDraw      = true;
         m_levelUpParticles[i].Visible        = false;
     }
     m_itemSprite              = new SpriteObj("BlueprintIcon_Sprite");
     m_itemSprite.ForceDraw    = true;
     m_itemSprite.OutlineWidth = 2;
     m_tripStat1                  = (m_itemSprite.Clone() as SpriteObj);
     m_tripStat2                  = (m_itemSprite.Clone() as SpriteObj);
     m_itemFoundText              = new TextObj(Game.JunicodeFont);
     m_itemFoundText.FontSize     = 18f;
     m_itemFoundText.Align        = Types.TextAlign.Centre;
     m_itemFoundText.Text         = "";
     m_itemFoundText.Position     = m_itemEndPos;
     m_itemFoundText.Y           += 70f;
     m_itemFoundText.ForceDraw    = true;
     m_itemFoundText.OutlineWidth = 2;
     m_tripStat1FoundText         = (m_itemFoundText.Clone() as TextObj);
     m_tripStat2FoundText         = (m_itemFoundText.Clone() as TextObj);
     m_itemFoundSprite            = new SpriteObj("BlueprintFoundText_Sprite");
     m_itemFoundSprite.ForceDraw  = true;
     m_itemFoundSprite.Visible    = false;
     m_continueText               = new KeyIconTextObj(Game.JunicodeFont);
     m_continueText.FontSize      = 14f;
     m_continueText.Text          = "to continue";
     m_continueText.Align         = Types.TextAlign.Centre;
     m_continueText.Position      = new Vector2(1320 - m_continueText.Width, 720 - m_continueText.Height - 10);
     m_continueText.ForceDraw     = true;
     base.LoadContent();
 }
示例#5
0
 public override void LoadContent(GraphicsDevice graphics)
 {
     m_songTitle               = new TextObj();
     m_songTitle.Font          = Game.JunicodeLargeFont;
     m_songTitle.Align         = Types.TextAlign.Right;
     m_songTitle.Text          = "Song name here";
     m_songTitle.Opacity       = 0f;
     m_songTitle.FontSize      = 40f;
     m_songTitle.Position      = new Vector2(1270f, 570f);
     m_songTitle.OutlineWidth  = 2;
     m_nowPlayingText          = (m_songTitle.Clone() as TextObj);
     m_nowPlayingText.Text     = "Now Playing";
     m_nowPlayingText.FontSize = 24f;
     m_nowPlayingText.Y       -= 50f;
     base.LoadContent(graphics);
 }
示例#6
0
 public override void LoadContent()
 {
     m_frontCard           = new ObjContainer("CardFront_Character");
     m_frontCard.ForceDraw = true;
     m_frontCard.Position  = new Vector2(145f, 30f);
     m_frontCard.GetChildAt(0).TextureColor = Color.Red;
     m_frontCard.GetChildAt(2).TextureColor = Color.Red;
     LoadFrontCard();
     m_backCard           = new ObjContainer("CardBack_Character");
     m_backCard.ForceDraw = true;
     m_backCard.Position  = new Vector2(m_frontCard.X + m_backCard.Width + 100f, m_frontCard.Y);
     m_backCard.AddChild(m_playerName.Clone() as GameObj);
     m_backCard.GetChildAt(0).TextureColor = Color.Red;
     m_backCard.GetChildAt(2).TextureColor = Color.Red;
     LoadBackCard();
     m_playerSprite                 = new ObjContainer("PlayerIdle_Character");
     m_playerSprite.ForceDraw       = true;
     m_playerSprite.Scale           = new Vector2(2f, 2f);
     m_playerSprite.OutlineWidth    = 2;
     m_tombStoneSprite              = new SpriteObj("Tombstone_Sprite");
     m_tombStoneSprite.ForceDraw    = true;
     m_tombStoneSprite.Scale        = new Vector2(3f, 3f);
     m_tombStoneSprite.OutlineWidth = 2;
     m_spellIcon              = new SpriteObj(SpellType.Icon(12));
     m_spellIcon.Position     = new Vector2(350f, 295f);
     m_spellIcon.OutlineWidth = 2;
     m_spellIcon.ForceDraw    = true;
     m_cancelText             = new KeyIconTextObj(Game.JunicodeFont);
     m_cancelText.Text        = "to exit options";
     m_cancelText.Align       = Types.TextAlign.Right;
     m_cancelText.DropShadow  = new Vector2(2f, 2f);
     m_cancelText.FontSize    = 12f;
     m_cancelText.Position    = new Vector2(1290f, 650f);
     m_cancelText.ForceDraw   = true;
     base.LoadContent();
 }
示例#7
0
        public override void LoadContent()
        {
            m_impactEffectPool.Initialize();
            m_manor           = new ObjContainer("TraitsCastle_Character");
            m_manor.Scale     = new Vector2(2f, 2f);
            m_manor.ForceDraw = true;
            for (var i = 0; i < m_manor.NumChildren; i++)
            {
                m_manor.GetChildAt(i).Visible = false;
                m_manor.GetChildAt(i).Opacity = 0f;
            }
            m_dialoguePlate           = new ObjContainer("TraitsScreenPlate_Container");
            m_dialoguePlate.ForceDraw = true;
            m_dialoguePlate.Position  = new Vector2(1320 - m_dialoguePlate.Width / 2, 360f);
            m_skillIcon          = new SpriteObj("Icon_Health_Up_Sprite");
            m_skillIcon.Position = new Vector2(-110f, -200f);
            m_dialoguePlate.AddChild(m_skillIcon);
            m_skillTitle              = new TextObj(Game.JunicodeFont);
            m_skillTitle.Text         = "Skill name";
            m_skillTitle.DropShadow   = new Vector2(2f, 2f);
            m_skillTitle.TextureColor = new Color(236, 197, 132);
            m_skillTitle.Position     = new Vector2(m_skillIcon.Bounds.Right + 15, m_skillIcon.Y);
            m_skillTitle.FontSize     = 12f;
            m_dialoguePlate.AddChild(m_skillTitle);
            m_skillDescription          = new TextObj(Game.JunicodeFont);
            m_skillDescription.Text     = "Description text goes here.  Let's see how well the word wrap function works.";
            m_skillDescription.Position = new Vector2(m_dialoguePlate.GetChildAt(1).X - 30f,
                                                      m_dialoguePlate.GetChildAt(1).Bounds.Bottom + 20);
            m_skillDescription.FontSize     = 10f;
            m_skillDescription.DropShadow   = new Vector2(2f, 2f);
            m_skillDescription.TextureColor = new Color(228, 218, 208);
            m_skillDescription.WordWrap(m_dialoguePlate.Width - 50);
            m_dialoguePlate.AddChild(m_skillDescription);
            m_inputDescription              = new KeyIconTextObj(Game.JunicodeFont);
            m_inputDescription.Text         = "Input descriptions go here..";
            m_inputDescription.Position     = new Vector2(m_skillIcon.X - 30f, m_skillDescription.Bounds.Bottom + 20);
            m_inputDescription.FontSize     = 10f;
            m_inputDescription.DropShadow   = new Vector2(2f, 2f);
            m_inputDescription.TextureColor = new Color(228, 218, 208);
            m_inputDescription.WordWrap(m_dialoguePlate.Width - 50);
            m_dialoguePlate.AddChild(m_inputDescription);
            m_descriptionDivider            = new SpriteObj("Blank_Sprite");
            m_descriptionDivider.ScaleX     = 250f / m_descriptionDivider.Width;
            m_descriptionDivider.ScaleY     = 0.25f;
            m_descriptionDivider.ForceDraw  = true;
            m_descriptionDivider.DropShadow = new Vector2(2f, 2f);
            m_skillCurrent              = new TextObj(Game.JunicodeFont);
            m_skillCurrent.Position     = new Vector2(m_inputDescription.X, m_inputDescription.Bounds.Bottom + 10);
            m_skillCurrent.FontSize     = 10f;
            m_skillCurrent.DropShadow   = new Vector2(2f, 2f);
            m_skillCurrent.TextureColor = new Color(228, 218, 208);
            m_skillCurrent.WordWrap(m_dialoguePlate.Width - 50);
            m_dialoguePlate.AddChild(m_skillCurrent);
            m_skillUpgrade    = (m_skillCurrent.Clone() as TextObj);
            m_skillUpgrade.Y += 15f;
            m_dialoguePlate.AddChild(m_skillUpgrade);
            m_skillLevel    = (m_skillUpgrade.Clone() as TextObj);
            m_skillLevel.Y += 15f;
            m_dialoguePlate.AddChild(m_skillLevel);
            m_skillCost              = new TextObj(Game.JunicodeFont);
            m_skillCost.X            = m_skillIcon.X;
            m_skillCost.Y            = 182f;
            m_skillCost.FontSize     = 10f;
            m_skillCost.DropShadow   = new Vector2(2f, 2f);
            m_skillCost.TextureColor = Color.Yellow;
            m_dialoguePlate.AddChild(m_skillCost);
            m_skillCostBG          = new SpriteObj("SkillTreeGoldIcon_Sprite");
            m_skillCostBG.Position = new Vector2(-180f, 180f);
            m_dialoguePlate.AddChild(m_skillCostBG);
            m_dialoguePlate.ForceDraw = true;
            m_bg           = new SpriteObj("TraitsBG_Sprite");
            m_bg.Scale     = new Vector2(1320f / m_bg.Width, 1320f / m_bg.Width);
            m_bg.ForceDraw = true;
            m_cloud1       = new SpriteObj("TraitsCloud1_Sprite")
            {
                ForceDraw = true
            };
            m_cloud2 = new SpriteObj("TraitsCloud2_Sprite")
            {
                ForceDraw = true
            };
            m_cloud3 = new SpriteObj("TraitsCloud3_Sprite")
            {
                ForceDraw = true
            };
            m_cloud4 = new SpriteObj("TraitsCloud4_Sprite")
            {
                ForceDraw = true
            };
            m_cloud5 = new SpriteObj("TraitsCloud5_Sprite")
            {
                ForceDraw = true
            };
            var opacity = 1f;

            m_cloud1.Opacity               = opacity;
            m_cloud2.Opacity               = opacity;
            m_cloud3.Opacity               = opacity;
            m_cloud4.Opacity               = opacity;
            m_cloud5.Opacity               = opacity;
            m_cloud1.Position              = new Vector2(CDGMath.RandomInt(0, 1520), CDGMath.RandomInt(0, 360));
            m_cloud2.Position              = new Vector2(CDGMath.RandomInt(0, 1520), CDGMath.RandomInt(0, 360));
            m_cloud3.Position              = new Vector2(CDGMath.RandomInt(0, 1520), CDGMath.RandomInt(0, 360));
            m_cloud4.Position              = new Vector2(CDGMath.RandomInt(0, 1520), CDGMath.RandomInt(0, 360));
            m_cloud5.Position              = new Vector2(CDGMath.RandomInt(0, 1520), CDGMath.RandomInt(0, 360));
            m_selectionIcon                = new SpriteObj("IconHalo_Sprite");
            m_selectionIcon.ForceDraw      = true;
            m_selectionIcon.AnimationDelay = 0.1f;
            m_selectionIcon.PlayAnimation();
            m_selectionIcon.Scale        = new Vector2(1.1f, 1.1f);
            m_titleText                  = new SpriteObj("ManorTitleText_Sprite");
            m_titleText.X                = m_titleText.Width / 2f + 20f;
            m_titleText.Y                = 64.8f;
            m_titleText.ForceDraw        = true;
            m_continueText               = new KeyIconTextObj(Game.JunicodeFont);
            m_continueText.ForceDraw     = true;
            m_continueText.FontSize      = 12f;
            m_continueText.DropShadow    = new Vector2(2f, 2f);
            m_continueText.Position      = new Vector2(1300f, 630f);
            m_continueText.Align         = Types.TextAlign.Right;
            m_toggleIconsText            = new KeyIconTextObj(Game.JunicodeFont);
            m_toggleIconsText.ForceDraw  = true;
            m_toggleIconsText.FontSize   = 12f;
            m_toggleIconsText.DropShadow = new Vector2(2f, 2f);
            m_toggleIconsText.Position   = new Vector2(m_continueText.X, m_continueText.Y + 40f);
            m_toggleIconsText.Align      = Types.TextAlign.Right;
            m_confirmText                = new KeyIconTextObj(Game.JunicodeFont);
            m_confirmText.Align          = Types.TextAlign.Right;
            m_confirmText.FontSize       = 12f;
            m_confirmText.DropShadow     = new Vector2(2f, 2f);
            m_confirmText.Position       = new Vector2(1300f, 10f);
            m_confirmText.ForceDraw      = true;
            m_navigationText             = new KeyIconTextObj(Game.JunicodeFont);
            m_navigationText.Align       = Types.TextAlign.Right;
            m_navigationText.FontSize    = 12f;
            m_navigationText.DropShadow  = new Vector2(2f, 2f);
            m_navigationText.Position    = new Vector2(m_confirmText.X, m_confirmText.Y + 40f);
            m_navigationText.ForceDraw   = true;
            m_coinIcon              = new SpriteObj("CoinIcon_Sprite");
            m_coinIcon.Position     = new Vector2(1100f, 585f);
            m_coinIcon.Scale        = new Vector2(0.9f, 0.9f);
            m_coinIcon.ForceDraw    = true;
            m_playerMoney           = new TextObj(Game.GoldFont);
            m_playerMoney.Align     = Types.TextAlign.Left;
            m_playerMoney.Text      = "1000";
            m_playerMoney.FontSize  = 30f;
            m_playerMoney.Position  = new Vector2(m_coinIcon.X + 35f, m_coinIcon.Y);
            m_playerMoney.ForceDraw = true;
            base.LoadContent();
        }
示例#8
0
 private void LoadFrontCard()
 {
     TextObj textObj = new TextObj(Game.JunicodeFont);
     textObj.Text = "";
     textObj.FontSize = 10f;
     textObj.ForceDraw = true;
     textObj.TextureColor = Color.Black;
     this.m_playerName = (textObj.Clone() as TextObj);
     this.m_playerName.Text = "Sir Archibald the IV";
     this.m_playerName.Position = new Vector2(50f, 43f);
     this.m_frontCard.AddChild(this.m_playerName);
     this.m_money = (textObj.Clone() as TextObj);
     this.m_money.Position = new Vector2(this.m_frontCard.GetChildAt(3).X + 30f, this.m_playerName.Y);
     this.m_money.Text = "0";
     this.m_frontCard.AddChild(this.m_money);
     this.m_levelClass = (textObj.Clone() as TextObj);
     this.m_levelClass.Text = "Lvl 43 Knight";
     this.m_levelClass.Position = new Vector2(this.m_playerName.X, 370f);
     this.m_frontCard.AddChild(this.m_levelClass);
     this.m_playerBG = new SpriteObj("CardDungeonBG_Sprite");
     this.m_playerBG.Position = new Vector2(45f, 80f);
     this.m_frontCard.AddChildAt(1, this.m_playerBG);
     this.m_playerHUD = new PlayerHUDObj();
     this.m_playerHUD.ForceDraw = true;
     this.m_playerHUD.ShowBarsOnly = true;
     this.m_playerHUD.SetPosition(new Vector2(this.m_frontCard.X + 46f, this.m_frontCard.Y + 64f));
     this.m_frontCard.AddChild(this.m_playerHUD);
     this.m_frontTrait1 = new TextObj(Game.JunicodeFont);
     this.m_frontTrait1.FontSize = 7f;
     this.m_frontTrait1.TextureColor = Color.Black;
     this.m_frontTrait1.Position = new Vector2(50f, 550f);
     this.m_frontTrait1.Text = "Color Blind";
     this.m_frontCard.AddChild(this.m_frontTrait1);
     this.m_frontTrait2 = (this.m_frontTrait1.Clone() as TextObj);
     this.m_frontTrait2.Y -= 20f;
     this.m_frontTrait2.Text = "Myopic";
     this.m_frontCard.AddChild(this.m_frontTrait2);
     this.m_classDescription = new TextObj(Game.JunicodeFont);
     this.m_classDescription.FontSize = 8f;
     this.m_classDescription.TextureColor = Color.Black;
     this.m_classDescription.Text = "0";
     this.m_classDescription.Position = new Vector2(50f, 410f);
     this.m_frontCard.AddChild(this.m_classDescription);
     this.m_author = new TextObj(Game.JunicodeFont);
     this.m_author.FontSize = 8f;
     this.m_author.TextureColor = Color.White;
     this.m_author.Text = "Glauber Kotaki";
     this.m_author.X = this.m_playerName.X;
     this.m_author.Y = 590f;
     this.m_frontCard.AddChild(this.m_author);
     this.m_playerStats = (textObj.Clone() as TextObj);
     this.m_playerStats.Text = "10/10";
     this.m_playerStats.Align = Types.TextAlign.Centre;
     this.m_playerStats.Position = new Vector2(387f, 579f);
     this.m_frontCard.AddChild(this.m_playerStats);
 }
示例#9
0
 private void LoadBackCard()
 {
     TextObj textObj = new TextObj(Game.JunicodeFont);
     textObj.Text = "";
     textObj.FontSize = 9f;
     textObj.ForceDraw = true;
     textObj.TextureColor = Color.Black;
     this.m_dataList1 = new List<TextObj>();
     this.m_dataList2 = new List<TextObj>();
     string[] array = new string[]
     {
         "Health",
         "Mana",
         "Armor",
         "Weight"
     };
     string[] array2 = new string[]
     {
         "Strength",
         "Intelligence",
         "Crit. Chance",
         "Crit. Damage"
     };
     int num = 90;
     for (int i = 0; i < array.Length; i++)
     {
         TextObj textObj2 = textObj.Clone() as TextObj;
         textObj2.Align = Types.TextAlign.Right;
         textObj2.Text = array[i];
         textObj2.Position = new Vector2(120f, (float)num);
         this.m_backCard.AddChild(textObj2);
         TextObj textObj3 = textObj.Clone() as TextObj;
         textObj3.Text = "0";
         textObj3.Position = new Vector2(textObj2.X + 20f, (float)num);
         this.m_dataList1.Add(textObj3);
         this.m_backCard.AddChild(textObj3);
         TextObj textObj4 = textObj.Clone() as TextObj;
         textObj4.Align = Types.TextAlign.Right;
         textObj4.Text = array2[i];
         textObj4.Position = new Vector2(330f, (float)num);
         this.m_backCard.AddChild(textObj4);
         TextObj textObj5 = textObj.Clone() as TextObj;
         textObj5.Text = "0";
         textObj5.Position = new Vector2(textObj4.X + 20f, (float)num);
         this.m_dataList2.Add(textObj5);
         this.m_backCard.AddChild(textObj5);
         num += 20;
     }
     this.m_equipmentTitle = (textObj.Clone() as TextObj);
     this.m_equipmentTitle.FontSize = 12f;
     this.m_equipmentTitle.Text = "Equipment:";
     this.m_equipmentTitle.Position = new Vector2(50f, 180f);
     this.m_backCard.AddChild(this.m_equipmentTitle);
     this.m_runesTitle = (textObj.Clone() as TextObj);
     this.m_runesTitle.FontSize = 12f;
     this.m_runesTitle.Text = "Enchantments:";
     this.m_runesTitle.Position = new Vector2(this.m_equipmentTitle.X, 330f);
     this.m_backCard.AddChild(this.m_runesTitle);
     for (int j = 0; j < Game.PlayerStats.GetEquippedArray.Length; j++)
     {
         TextObj textObj6 = textObj.Clone() as TextObj;
         textObj6.Text = "test";
         textObj6.Position = new Vector2(80f, this.m_equipmentTitle.Y + 50f);
         this.m_equipmentList.Add(textObj6);
         this.m_backCard.AddChild(textObj6);
     }
     for (int k = 0; k < 10; k++)
     {
         TextObj textObj7 = textObj.Clone() as TextObj;
         textObj7.X = 60f;
         textObj7.Text = EquipmentAbilityType.ToString(k);
         textObj7.FontSize = 7f;
         this.m_runeBackTitleList.Add(textObj7);
         this.m_backCard.AddChild(textObj7);
         TextObj textObj8 = textObj.Clone() as TextObj;
         textObj8.X = (float)(textObj7.Bounds.Right + 10);
         textObj8.FontSize = 7f;
         this.m_runeBackDescriptionList.Add(textObj8);
         this.m_backCard.AddChild(textObj8);
     }
     TextObj textObj9 = textObj.Clone() as TextObj;
     textObj9.X = 60f;
     textObj9.Text = EquipmentAbilityType.ToString(20);
     textObj9.FontSize = 7f;
     this.m_runeBackTitleList.Add(textObj9);
     this.m_backCard.AddChild(textObj9);
     TextObj textObj10 = textObj.Clone() as TextObj;
     textObj10.X = (float)(textObj9.Bounds.Right + 10);
     textObj10.FontSize = 7f;
     this.m_runeBackDescriptionList.Add(textObj10);
     this.m_backCard.AddChild(textObj10);
     TextObj textObj11 = textObj.Clone() as TextObj;
     textObj11.X = 60f;
     textObj11.Text = EquipmentAbilityType.ToString(21);
     textObj11.FontSize = 7f;
     this.m_runeBackTitleList.Add(textObj11);
     this.m_backCard.AddChild(textObj11);
     TextObj textObj12 = textObj.Clone() as TextObj;
     textObj12.X = (float)(textObj11.Bounds.Right + 10);
     textObj12.FontSize = 7f;
     this.m_runeBackDescriptionList.Add(textObj12);
     this.m_backCard.AddChild(textObj12);
 }
示例#10
0
        public LineageObj(LineageScreen screen, bool createEmpty = false)
        {
            Name                                      = "";
            m_frameSprite                             = new SpriteObj("LineageScreenFrame_Sprite");
            m_frameSprite.Scale                       = new Vector2(2.8f, 2.8f);
            m_frameSprite.DropShadow                  = new Vector2(4f, 6f);
            m_plaqueSprite                            = new SpriteObj("LineageScreenPlaque1Long_Sprite");
            m_plaqueSprite.Scale                      = new Vector2(1.8f, 2f);
            m_playerSprite                            = new ObjContainer("PlayerIdle_Character");
            m_playerSprite.AnimationDelay             = 0.1f;
            m_playerSprite.Scale                      = new Vector2(2f, 2f);
            m_playerSprite.OutlineWidth               = 2;
            m_playerSprite.GetChildAt(10).Visible     = false;
            m_playerSprite.GetChildAt(11).Visible     = false;
            m_playerSprite.GetChildAt(1).TextureColor = Color.Red;
            m_playerSprite.GetChildAt(7).TextureColor = Color.Red;
            m_playerSprite.GetChildAt(14).Visible     = false;
            m_playerSprite.GetChildAt(16).Visible     = false;
            var textureColor = new Color(251, 156, 172);

            m_playerSprite.GetChildAt(13).TextureColor = textureColor;
            m_playerName               = new TextObj(Game.JunicodeFont);
            m_playerName.FontSize      = 10f;
            m_playerName.Text          = "Sir Skunky IV";
            m_playerName.Align         = Types.TextAlign.Centre;
            m_playerName.OutlineColour = new Color(181, 142, 39);
            m_playerName.OutlineWidth  = 2;
            m_playerName.Y             = m_textYPos;
            m_playerName.LimitCorners  = true;
            AddChild(m_playerName);
            m_classTextObj               = new TextObj(Game.JunicodeFont);
            m_classTextObj.FontSize      = 8f;
            m_classTextObj.Align         = Types.TextAlign.Centre;
            m_classTextObj.OutlineColour = new Color(181, 142, 39);
            m_classTextObj.OutlineWidth  = 2;
            m_classTextObj.Text          = "the Knight";
            m_classTextObj.Y             = m_playerName.Y + m_playerName.Height - 8f;
            m_classTextObj.LimitCorners  = true;
            AddChild(m_classTextObj);
            m_trait1Title               = new TextObj(Game.JunicodeFont);
            m_trait1Title.FontSize      = 8f;
            m_trait1Title.Align         = Types.TextAlign.Centre;
            m_trait1Title.OutlineColour = new Color(181, 142, 39);
            m_trait1Title.OutlineWidth  = 2;
            m_trait1Title.Y             = m_classTextObj.Y + m_classTextObj.Height + 5f;
            m_trait1Title.Text          = "";
            m_trait1Title.LimitCorners  = true;
            AddChild(m_trait1Title);
            m_trait2Title              = (m_trait1Title.Clone() as TextObj);
            m_trait2Title.Y           += 20f;
            m_trait2Title.Text         = "";
            m_trait2Title.LimitCorners = true;
            AddChild(m_trait2Title);
            m_ageText              = (m_trait1Title.Clone() as TextObj);
            m_ageText.Text         = "xxx - xxx";
            m_ageText.Visible      = false;
            m_ageText.LimitCorners = true;
            AddChild(m_ageText);
            m_spellIcon = new SpriteObj("Blank_Sprite");
            m_spellIcon.OutlineWidth = 1;
            m_spellIconHolder        = new SpriteObj("BlacksmithUI_IconBG_Sprite");
            if (!createEmpty)
            {
                IsFemale = false;
                if (CDGMath.RandomInt(0, 1) > 0)
                {
                    IsFemale = true;
                }
                if (IsFemale)
                {
                    CreateFemaleName(screen);
                }
                else
                {
                    CreateMaleName(screen);
                }
                Traits = TraitType.CreateRandomTraits();
                Class  = ClassType.GetRandomClass();
                m_classTextObj.Text = "the " + ClassType.ToString(Class, IsFemale);
                while (Class == 7 || Class == 15)
                {
                    if (Traits.X != 12f && Traits.Y != 12f)
                    {
                        break;
                    }
                    Traits = TraitType.CreateRandomTraits();
                }
                while ((Class == 1 || Class == 9 || Class == 16) && (Traits.X == 31f || Traits.Y == 31f))
                {
                    Traits = TraitType.CreateRandomTraits();
                }
                var spellList = ClassType.GetSpellList(Class);
                do
                {
                    Spell = spellList[CDGMath.RandomInt(0, spellList.Length - 1)];
                } while ((Spell == 11 || Spell == 4 || Spell == 6) && (Traits.X == 31f || Traits.Y == 31f));
                Array.Clear(spellList, 0, spellList.Length);
                Age      = (byte)CDGMath.RandomInt(18, 30);
                ChildAge = (byte)CDGMath.RandomInt(2, 5);
                UpdateData();
            }
        }
示例#11
0
 private void InitializeCredits()
 {
     this.m_creditsNameList = new List<TextObj>();
     this.m_creditsTitleList = new List<TextObj>();
     this.m_backgroundStrings = new string[]
     {
         "Garden",
         "Tower",
         "Dungeon",
         "Outside",
         "Manor"
     };
     string[] array = new string[]
     {
         "Cellar Door Games",
         "Teddy Lee",
         "Kenny Lee",
         "Glauber Kotaki",
         "Gordon McGladdery (A Shell in the Pit)",
         "Judson Cowan (Tettix)",
         "Benny Lee",
         "Ryan & Michelle Lee",
         "Alessio Mellina",
         "John Won",
         "Charles Humphrey",
         "Jenny Lee",
         "Ethan \"flibitijibibo\" Lee",
         "David Gow",
         "Forrest Loomis",
         "Jorgen Tjerno",
         "Marcus Moller",
         "Matthias Niess",
         "Stanislaw Gackowski",
         "Stefano Angeleri",
         "",
         "",
         "Special Thanks",
         "Amber Campbell (Phedran)",
         "Blair Hurm Cowan",
         "Caitlin Groves",
         "Doug Culp",
         "Eric Lee Lewis",
         "Priscila Garcia",
         "Scott Barcik",
         "Tyler Mayes",
         "Our Moms & Dads",
         "",
         "",
         "Additional Thanks",
         "Jake Hirshey",
         "Joshua Hornsby",
         "Mark Wallace",
         "Peter Lee",
         "Sean Fleming",
         "",
         "",
         "Thanks to all our fans for their support!"
     };
     string[] array2 = new string[]
     {
         "Developed by",
         "Design & Story",
         "Programming & Production",
         "Art",
         "Music & Audio Design",
         "Music",
         "Marketing & Story",
         "Business Advisors",
         "Additional Audio Design",
         "Additional Background Art",
         "Crespuscular Ray Code From",
         "Super Special Thanks: Turbo Edition",
         "Mac/Linux Developer",
         "Mac/Linux QA Team"
     };
     int num = 0;
     for (int i = 0; i < array.Length; i++)
     {
         TextObj textObj = new TextObj(Game.JunicodeFont);
         textObj.FontSize = 12f;
         textObj.DropShadow = new Vector2(2f, 2f);
         textObj.Align = Types.TextAlign.Centre;
         textObj.Position = new Vector2(660f, (float)(720 + num));
         if (i < array2.Length)
         {
             textObj.Text = array2[i];
             this.m_creditsTitleList.Add(textObj);
             if (i < array2.Length - 1)
             {
                 num += 200;
             }
             else
             {
                 num += 40;
             }
         }
         else
         {
             num += 40;
         }
         TextObj textObj2 = textObj.Clone() as TextObj;
         textObj2.Text = array[i];
         textObj2.FontSize = 16f;
         textObj2.Y += 40f;
         this.m_creditsNameList.Add(textObj2);
         this.PositionTeam(array[i], new Vector2((float)(textObj2.Bounds.Left - 50), textObj2.Y));
     }
 }
示例#12
0
        public override void LoadContent()
        {
            m_title           = new SpriteObj("ProfileSelectTitle_Sprite");
            m_title.ForceDraw = true;
            var textObj = new TextObj(Game.JunicodeFont);

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

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

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

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

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

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

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

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

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

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

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

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

            textObj7.Position = new Vector2(-120f, 15f);
            m_slot3Container.AddChild(textObj7);
            m_slot3Container.ForceDraw = true;
            m_slotArray.Add(m_slot1Container);
            m_slotArray.Add(m_slot2Container);
            m_slotArray.Add(m_slot3Container);
            m_confirmText                  = new KeyIconTextObj(Game.JunicodeFont);
            m_confirmText.Text             = "to select profile";
            m_confirmText.DropShadow       = new Vector2(2f, 2f);
            m_confirmText.FontSize         = 12f;
            m_confirmText.Align            = Types.TextAlign.Right;
            m_confirmText.Position         = new Vector2(1290f, 570f);
            m_confirmText.ForceDraw        = true;
            m_cancelText                   = new KeyIconTextObj(Game.JunicodeFont);
            m_cancelText.Text              = "to exit screen";
            m_cancelText.Align             = Types.TextAlign.Right;
            m_cancelText.DropShadow        = new Vector2(2f, 2f);
            m_cancelText.FontSize          = 12f;
            m_cancelText.Position          = new Vector2(m_confirmText.X, m_confirmText.Y + 40f);
            m_cancelText.ForceDraw         = true;
            m_navigationText               = new KeyIconTextObj(Game.JunicodeFont);
            m_navigationText.Text          = "to navigate profiles";
            m_navigationText.Align         = Types.TextAlign.Right;
            m_navigationText.DropShadow    = new Vector2(2f, 2f);
            m_navigationText.FontSize      = 12f;
            m_navigationText.Position      = new Vector2(m_confirmText.X, m_confirmText.Y + 80f);
            m_navigationText.ForceDraw     = true;
            m_deleteProfileText            = new KeyIconTextObj(Game.JunicodeFont);
            m_deleteProfileText.Text       = "to delete profile";
            m_deleteProfileText.Align      = Types.TextAlign.Left;
            m_deleteProfileText.DropShadow = new Vector2(2f, 2f);
            m_deleteProfileText.FontSize   = 12f;
            m_deleteProfileText.Position   = new Vector2(20f, m_confirmText.Y + 80f);
            m_deleteProfileText.ForceDraw  = true;
            base.LoadContent();
        }
示例#13
0
 public override void LoadContent()
 {
     m_ppm    = new PostProcessingManager(ScreenManager.Game, ScreenManager.Camera);
     m_godRay = new CrepuscularRays(ScreenManager.Game, Vector2.One * 0.5f, "GameSpritesheets/flare3", 2f, 0.97f,
                                    0.97f, 0.5f, 1.25f);
     m_ppm.AddEffect(m_godRay);
     m_godRayTexture = new RenderTarget2D(Camera.GraphicsDevice, 1320, 720, false, SurfaceFormat.Color,
                                          DepthFormat.None);
     m_godRay.lightSource = new Vector2(0.495f, 0.3f);
     m_bg                     = new SpriteObj("TitleBG_Sprite");
     m_bg.Scale               = new Vector2(1320f / m_bg.Width, 720f / m_bg.Height);
     m_bg.TextureColor        = Color.Red;
     m_hardCoreModeOpacity    = 0f;
     m_logo                   = new SpriteObj("TitleLogo_Sprite");
     m_logo.Position          = new Vector2(660f, 360f);
     m_logo.DropShadow        = new Vector2(0f, 5f);
     m_castle                 = new SpriteObj("TitleCastle_Sprite");
     m_castle.Scale           = new Vector2(2f, 2f);
     m_castle.Position        = new Vector2(630f, 720 - m_castle.Height / 2);
     m_smallCloud1            = new SpriteObj("TitleSmallCloud1_Sprite");
     m_smallCloud1.Position   = new Vector2(660f, 0f);
     m_smallCloud2            = new SpriteObj("TitleSmallCloud2_Sprite");
     m_smallCloud2.Position   = m_smallCloud1.Position;
     m_smallCloud3            = new SpriteObj("TitleSmallCloud3_Sprite");
     m_smallCloud3.Position   = m_smallCloud1.Position;
     m_smallCloud4            = new SpriteObj("TitleSmallCloud4_Sprite");
     m_smallCloud4.Position   = m_smallCloud1.Position;
     m_smallCloud5            = new SpriteObj("TitleSmallCloud5_Sprite");
     m_smallCloud5.Position   = m_smallCloud1.Position;
     m_largeCloud1            = new SpriteObj("TitleLargeCloud1_Sprite");
     m_largeCloud1.Position   = new Vector2(0f, 720 - m_largeCloud1.Height);
     m_largeCloud2            = new SpriteObj("TitleLargeCloud2_Sprite");
     m_largeCloud2.Position   = new Vector2(440f, 720 - m_largeCloud2.Height + 130);
     m_largeCloud3            = new SpriteObj("TitleLargeCloud1_Sprite");
     m_largeCloud3.Position   = new Vector2(880f, 720 - m_largeCloud3.Height + 50);
     m_largeCloud3.Flip       = SpriteEffects.FlipHorizontally;
     m_largeCloud4            = new SpriteObj("TitleLargeCloud2_Sprite");
     m_largeCloud4.Position   = new Vector2(1320f, 720 - m_largeCloud4.Height);
     m_largeCloud4.Flip       = SpriteEffects.FlipHorizontally;
     m_titleText              = new TextObj();
     m_titleText.Font         = Game.JunicodeFont;
     m_titleText.FontSize     = 45f;
     m_titleText.Text         = "ROGUE CASTLE";
     m_titleText.Position     = new Vector2(660f, 60f);
     m_titleText.Align        = Types.TextAlign.Centre;
     m_copyrightText          = new TextObj(Game.JunicodeFont);
     m_copyrightText.FontSize = 8f;
     m_copyrightText.Text     =
         "Copyright(C) 2011-2015, Cellar Door Games Inc. Rogue Legacy(TM) is a trademark or registered trademark of Cellar Door Games Inc. All Rights Reserved.";
     m_copyrightText.Align        = Types.TextAlign.Centre;
     m_copyrightText.Position     = new Vector2(660f, 720 - m_copyrightText.Height - 10);
     m_copyrightText.DropShadow   = new Vector2(1f, 2f);
     m_versionNumber              = (m_copyrightText.Clone() as TextObj);
     m_versionNumber.Align        = Types.TextAlign.Right;
     m_versionNumber.FontSize     = 8f;
     m_versionNumber.Position     = new Vector2(1305f, 5f);
     m_versionNumber.Text         = "v1.2.0c";
     m_pressStartText             = new KeyIconTextObj(Game.JunicodeFont);
     m_pressStartText.FontSize    = 20f;
     m_pressStartText.Text        = "Press Enter to begin";
     m_pressStartText.Align       = Types.TextAlign.Centre;
     m_pressStartText.Position    = new Vector2(660f, 560f);
     m_pressStartText.DropShadow  = new Vector2(2f, 2f);
     m_pressStartText2            = new TextObj(Game.JunicodeFont);
     m_pressStartText2.FontSize   = 20f;
     m_pressStartText2.Text       = "Press Enter to begin";
     m_pressStartText2.Align      = Types.TextAlign.Centre;
     m_pressStartText2.Position   = m_pressStartText.Position;
     m_pressStartText2.Y         -= m_pressStartText.Height - 5;
     m_pressStartText2.DropShadow = new Vector2(2f, 2f);
     m_profileCard = new SpriteObj("TitleProfileCard_Sprite");
     m_profileCard.OutlineWidth = 2;
     m_profileCard.Scale        = new Vector2(2f, 2f);
     m_profileCard.Position     = new Vector2(m_profileCard.Width, 720 - m_profileCard.Height);
     m_profileCard.ForceDraw    = true;
     m_optionsIcon              = new SpriteObj("TitleOptionsIcon_Sprite");
     m_optionsIcon.Scale        = new Vector2(2f, 2f);
     m_optionsIcon.OutlineWidth = m_profileCard.OutlineWidth;
     m_optionsIcon.Position     = new Vector2(1320 - m_optionsIcon.Width * 2, m_profileCard.Y);
     m_optionsIcon.ForceDraw    = true;
     m_creditsIcon              = new SpriteObj("TitleCreditsIcon_Sprite");
     m_creditsIcon.Scale        = new Vector2(2f, 2f);
     m_creditsIcon.OutlineWidth = m_profileCard.OutlineWidth;
     m_creditsIcon.Position     = new Vector2(m_optionsIcon.X + 120f, m_profileCard.Y);
     m_creditsIcon.ForceDraw    = true;
     m_profileCardKey           = new KeyIconTextObj(Game.JunicodeFont);
     m_profileCardKey.Align     = Types.TextAlign.Centre;
     m_profileCardKey.FontSize  = 12f;
     m_profileCardKey.Text      = "[Input:" + 7 + "]";
     m_profileCardKey.Position  = new Vector2(m_profileCard.X,
                                              m_profileCard.Bounds.Top - m_profileCardKey.Height - 10);
     m_profileCardKey.ForceDraw = true;
     m_optionsKey                = new KeyIconTextObj(Game.JunicodeFont);
     m_optionsKey.Align          = Types.TextAlign.Centre;
     m_optionsKey.FontSize       = 12f;
     m_optionsKey.Text           = "[Input:" + 4 + "]";
     m_optionsKey.Position       = new Vector2(m_optionsIcon.X, m_optionsIcon.Bounds.Top - m_optionsKey.Height - 10);
     m_optionsKey.ForceDraw      = true;
     m_creditsKey                = new KeyIconTextObj(Game.JunicodeFont);
     m_creditsKey.Align          = Types.TextAlign.Centre;
     m_creditsKey.FontSize       = 12f;
     m_creditsKey.Text           = "[Input:" + 6 + "]";
     m_creditsKey.Position       = new Vector2(m_creditsIcon.X, m_creditsIcon.Bounds.Top - m_creditsKey.Height - 10);
     m_creditsKey.ForceDraw      = true;
     m_profileSelectKey          = new KeyIconTextObj(Game.JunicodeFont);
     m_profileSelectKey.Align    = Types.TextAlign.Left;
     m_profileSelectKey.FontSize = 10f;
     m_profileSelectKey.Text     = string.Concat("[Input:", 25, "] to Change Profile (", Game.GameConfig.ProfileSlot,
                                                 ")");
     m_profileSelectKey.Position   = new Vector2(30f, 15f);
     m_profileSelectKey.ForceDraw  = true;
     m_profileSelectKey.DropShadow = new Vector2(2f, 2f);
     m_crown                = new SpriteObj("Crown_Sprite");
     m_crown.ForceDraw      = true;
     m_crown.Scale          = new Vector2(0.7f, 0.7f);
     m_crown.Rotation       = -30f;
     m_crown.OutlineWidth   = 2;
     m_dlcIcon              = new SpriteObj("MedallionPiece5_Sprite");
     m_dlcIcon.Position     = new Vector2(950f, 310f);
     m_dlcIcon.ForceDraw    = true;
     m_dlcIcon.TextureColor = Color.Yellow;
     base.LoadContent();
 }
示例#14
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();
        }
示例#15
0
 private void InitializeTextObjs()
 {
     this.m_textInfoTitleContainer = new ObjContainer();
     this.m_textInfoStatContainer = new ObjContainer();
     this.m_textInfoStatModContainer = new ObjContainer();
     string[] array = new string[]
     {
         "Health",
         "Mana",
         "Damage",
         "Magic",
         "Armor",
         "Weight"
     };
     Vector2 zero = Vector2.Zero;
     TextObj textObj = new TextObj(null);
     textObj.Font = Game.JunicodeFont;
     textObj.FontSize = 10f;
     textObj.Text = "0";
     textObj.ForceDraw = true;
     for (int i = 0; i < array.Length; i++)
     {
         textObj.Position = zero;
         this.m_textInfoTitleContainer.AddChild(textObj.Clone() as TextObj);
         this.m_textInfoStatContainer.AddChild(textObj.Clone() as TextObj);
         this.m_textInfoStatModContainer.AddChild(textObj.Clone() as TextObj);
         (this.m_textInfoTitleContainer.GetChildAt(i) as TextObj).Align = Types.TextAlign.Right;
         (this.m_textInfoTitleContainer.GetChildAt(i) as TextObj).Text = array[i];
         zero.Y += (float)(this.m_textInfoTitleContainer.GetChildAt(i).Height - 5);
     }
     this.m_addPropertiesTitleText = new TextObj(null);
     this.m_addPropertiesTitleText.Font = Game.JunicodeFont;
     this.m_addPropertiesTitleText.FontSize = 8f;
     this.m_addPropertiesTitleText.TextureColor = new Color(237, 202, 138);
     this.m_addPropertiesTitleText.Text = "Additional Properties:";
     this.m_addPropertiesText = new TextObj(null);
     this.m_addPropertiesText.Font = Game.JunicodeFont;
     this.m_addPropertiesText.FontSize = 8f;
     this.m_unlockCostContainer = new ObjContainer();
     TextObj textObj2 = new TextObj(null);
     textObj2.Font = Game.JunicodeFont;
     textObj2.FontSize = 10f;
     textObj2.TextureColor = Color.Yellow;
     textObj2.Position = new Vector2(50f, 9f);
     this.m_unlockCostContainer.AddChild(new SpriteObj("BlacksmithUI_CoinBG_Sprite"));
     this.m_unlockCostContainer.AddChild(textObj2);
     this.m_equipmentTitleText = new TextObj(Game.JunicodeFont);
     this.m_equipmentTitleText.ForceDraw = true;
     this.m_equipmentTitleText.FontSize = 12f;
     this.m_equipmentTitleText.DropShadow = new Vector2(2f, 2f);
     this.m_equipmentTitleText.TextureColor = new Color(237, 202, 138);
     this.m_textInfoTitleContainer.Position = new Vector2(this.m_blacksmithUI.X + 205f, this.m_blacksmithUI.Y - (float)(this.m_blacksmithUI.Height / 2) + 45f);
     this.m_textInfoStatContainer.Position = new Vector2(this.m_textInfoTitleContainer.X + 15f, this.m_textInfoTitleContainer.Y);
     this.m_textInfoStatModContainer.Position = new Vector2(this.m_textInfoStatContainer.X + 75f, this.m_textInfoStatContainer.Y);
     this.m_addPropertiesTitleText.Position = new Vector2(this.m_blacksmithUI.X + 140f, (float)(this.m_textInfoStatModContainer.Bounds.Bottom + 5));
     this.m_addPropertiesText.Position = new Vector2(this.m_addPropertiesTitleText.X, (float)this.m_addPropertiesTitleText.Bounds.Bottom);
     this.m_unlockCostContainer.Position = new Vector2(this.m_blacksmithUI.X + 114f, 485f);
     this.m_equipmentTitleText.Position = new Vector2(this.m_blacksmithUI.X + 140f, this.m_textInfoTitleContainer.Y - 45f);
     this.m_textInfoTitleContainer.Visible = false;
     this.m_textInfoStatContainer.Visible = false;
     this.m_textInfoStatModContainer.Visible = false;
     this.m_addPropertiesTitleText.Visible = false;
     this.m_addPropertiesText.Visible = false;
     this.m_unlockCostContainer.Visible = false;
     this.m_equipmentTitleText.Visible = false;
 }
示例#16
0
 public override void LoadContent()
 {
     this.m_title = new SpriteObj("ProfileSelectTitle_Sprite");
     this.m_title.ForceDraw = true;
     TextObj textObj = new TextObj(Game.JunicodeFont);
     textObj.Align = Types.TextAlign.Centre;
     textObj.Text = "- START NEW LEGACY - ";
     textObj.TextureColor = Color.White;
     textObj.OutlineWidth = 2;
     textObj.FontSize = 10f;
     textObj.Position = new Vector2(0f, -((float)textObj.Height / 2f));
     this.m_slot1Container = new ObjContainer("ProfileSlotBG_Container");
     TextObj obj = textObj.Clone() as TextObj;
     this.m_slot1Container.AddChild(obj);
     SpriteObj spriteObj = new SpriteObj("ProfileSlot1Text_Sprite");
     spriteObj.Position = new Vector2(-130f, -35f);
     this.m_slot1Container.AddChild(spriteObj);
     TextObj textObj2 = textObj.Clone() as TextObj;
     this.m_slot1Container.AddChild(textObj2);
     textObj2.Position = new Vector2(120f, 15f);
     TextObj textObj3 = textObj.Clone() as TextObj;
     textObj3.Position = new Vector2(-120f, 15f);
     this.m_slot1Container.AddChild(textObj3);
     this.m_slot1Container.ForceDraw = true;
     this.m_slot2Container = new ObjContainer("ProfileSlotBG_Container");
     TextObj obj2 = textObj.Clone() as TextObj;
     this.m_slot2Container.AddChild(obj2);
     SpriteObj spriteObj2 = new SpriteObj("ProfileSlot2Text_Sprite");
     spriteObj2.Position = new Vector2(-130f, -35f);
     this.m_slot2Container.AddChild(spriteObj2);
     TextObj textObj4 = textObj.Clone() as TextObj;
     this.m_slot2Container.AddChild(textObj4);
     textObj4.Position = new Vector2(120f, 15f);
     TextObj textObj5 = textObj.Clone() as TextObj;
     textObj5.Position = new Vector2(-120f, 15f);
     this.m_slot2Container.AddChild(textObj5);
     this.m_slot2Container.ForceDraw = true;
     this.m_slot3Container = new ObjContainer("ProfileSlotBG_Container");
     TextObj obj3 = textObj.Clone() as TextObj;
     this.m_slot3Container.AddChild(obj3);
     SpriteObj spriteObj3 = new SpriteObj("ProfileSlot3Text_Sprite");
     spriteObj3.Position = new Vector2(-130f, -35f);
     this.m_slot3Container.AddChild(spriteObj3);
     TextObj textObj6 = textObj.Clone() as TextObj;
     this.m_slot3Container.AddChild(textObj6);
     textObj6.Position = new Vector2(120f, 15f);
     TextObj textObj7 = textObj.Clone() as TextObj;
     textObj7.Position = new Vector2(-120f, 15f);
     this.m_slot3Container.AddChild(textObj7);
     this.m_slot3Container.ForceDraw = true;
     this.m_slotArray.Add(this.m_slot1Container);
     this.m_slotArray.Add(this.m_slot2Container);
     this.m_slotArray.Add(this.m_slot3Container);
     this.m_confirmText = new KeyIconTextObj(Game.JunicodeFont);
     this.m_confirmText.Text = "to select profile";
     this.m_confirmText.DropShadow = new Vector2(2f, 2f);
     this.m_confirmText.FontSize = 12f;
     this.m_confirmText.Align = Types.TextAlign.Right;
     this.m_confirmText.Position = new Vector2(1290f, 570f);
     this.m_confirmText.ForceDraw = true;
     this.m_cancelText = new KeyIconTextObj(Game.JunicodeFont);
     this.m_cancelText.Text = "to exit screen";
     this.m_cancelText.Align = Types.TextAlign.Right;
     this.m_cancelText.DropShadow = new Vector2(2f, 2f);
     this.m_cancelText.FontSize = 12f;
     this.m_cancelText.Position = new Vector2(this.m_confirmText.X, this.m_confirmText.Y + 40f);
     this.m_cancelText.ForceDraw = true;
     this.m_navigationText = new KeyIconTextObj(Game.JunicodeFont);
     this.m_navigationText.Text = "to navigate profiles";
     this.m_navigationText.Align = Types.TextAlign.Right;
     this.m_navigationText.DropShadow = new Vector2(2f, 2f);
     this.m_navigationText.FontSize = 12f;
     this.m_navigationText.Position = new Vector2(this.m_confirmText.X, this.m_confirmText.Y + 80f);
     this.m_navigationText.ForceDraw = true;
     this.m_deleteProfileText = new KeyIconTextObj(Game.JunicodeFont);
     this.m_deleteProfileText.Text = "to delete profile";
     this.m_deleteProfileText.Align = Types.TextAlign.Left;
     this.m_deleteProfileText.DropShadow = new Vector2(2f, 2f);
     this.m_deleteProfileText.FontSize = 12f;
     this.m_deleteProfileText.Position = new Vector2(20f, this.m_confirmText.Y + 80f);
     this.m_deleteProfileText.ForceDraw = true;
     base.LoadContent();
 }
示例#17
0
        private void LoadBackCard()
        {
            var textObj = new TextObj(Game.JunicodeFont);

            textObj.Text         = "";
            textObj.FontSize     = 9f;
            textObj.ForceDraw    = true;
            textObj.TextureColor = Color.Black;
            m_dataList1          = new List <TextObj>();
            m_dataList2          = new List <TextObj>();
            string[] array =
            {
                "Health",
                "Mana",
                "Armor",
                "Weight"
            };
            string[] array2 =
            {
                "Strength",
                "Intelligence",
                "Crit. Chance",
                "Crit. Damage"
            };
            var num = 90;

            for (var i = 0; i < array.Length; i++)
            {
                var textObj2 = textObj.Clone() as TextObj;
                textObj2.Align    = Types.TextAlign.Right;
                textObj2.Text     = array[i];
                textObj2.Position = new Vector2(120f, num);
                m_backCard.AddChild(textObj2);
                var textObj3 = textObj.Clone() as TextObj;
                textObj3.Text     = "0";
                textObj3.Position = new Vector2(textObj2.X + 20f, num);
                m_dataList1.Add(textObj3);
                m_backCard.AddChild(textObj3);
                var textObj4 = textObj.Clone() as TextObj;
                textObj4.Align    = Types.TextAlign.Right;
                textObj4.Text     = array2[i];
                textObj4.Position = new Vector2(330f, num);
                m_backCard.AddChild(textObj4);
                var textObj5 = textObj.Clone() as TextObj;
                textObj5.Text     = "0";
                textObj5.Position = new Vector2(textObj4.X + 20f, num);
                m_dataList2.Add(textObj5);
                m_backCard.AddChild(textObj5);
                num += 20;
            }
            m_equipmentTitle          = (textObj.Clone() as TextObj);
            m_equipmentTitle.FontSize = 12f;
            m_equipmentTitle.Text     = "Equipment:";
            m_equipmentTitle.Position = new Vector2(50f, 180f);
            m_backCard.AddChild(m_equipmentTitle);
            m_runesTitle          = (textObj.Clone() as TextObj);
            m_runesTitle.FontSize = 12f;
            m_runesTitle.Text     = "Enchantments:";
            m_runesTitle.Position = new Vector2(m_equipmentTitle.X, 330f);
            m_backCard.AddChild(m_runesTitle);
            for (var j = 0; j < Game.PlayerStats.GetEquippedArray.Length; j++)
            {
                var textObj6 = textObj.Clone() as TextObj;
                textObj6.Text     = "test";
                textObj6.Position = new Vector2(80f, m_equipmentTitle.Y + 50f);
                m_equipmentList.Add(textObj6);
                m_backCard.AddChild(textObj6);
            }
            for (var k = 0; k < 10; k++)
            {
                var textObj7 = textObj.Clone() as TextObj;
                textObj7.X        = 60f;
                textObj7.Text     = EquipmentAbilityType.ToString(k);
                textObj7.FontSize = 7f;
                m_runeBackTitleList.Add(textObj7);
                m_backCard.AddChild(textObj7);
                var textObj8 = textObj.Clone() as TextObj;
                textObj8.X        = textObj7.Bounds.Right + 10;
                textObj8.FontSize = 7f;
                m_runeBackDescriptionList.Add(textObj8);
                m_backCard.AddChild(textObj8);
            }
            var textObj9 = textObj.Clone() as TextObj;

            textObj9.X        = 60f;
            textObj9.Text     = EquipmentAbilityType.ToString(20);
            textObj9.FontSize = 7f;
            m_runeBackTitleList.Add(textObj9);
            m_backCard.AddChild(textObj9);
            var textObj10 = textObj.Clone() as TextObj;

            textObj10.X        = textObj9.Bounds.Right + 10;
            textObj10.FontSize = 7f;
            m_runeBackDescriptionList.Add(textObj10);
            m_backCard.AddChild(textObj10);
            var textObj11 = textObj.Clone() as TextObj;

            textObj11.X        = 60f;
            textObj11.Text     = EquipmentAbilityType.ToString(21);
            textObj11.FontSize = 7f;
            m_runeBackTitleList.Add(textObj11);
            m_backCard.AddChild(textObj11);
            var textObj12 = textObj.Clone() as TextObj;

            textObj12.X        = textObj11.Bounds.Right + 10;
            textObj12.FontSize = 7f;
            m_runeBackDescriptionList.Add(textObj12);
            m_backCard.AddChild(textObj12);
        }
示例#18
0
 public override void LoadContent(GraphicsDevice graphics)
 {
     TextObj textObj = new TextObj(Game.JunicodeFont);
     textObj.FontSize = 25f;
     textObj.Text = "test text";
     textObj.DropShadow = new Vector2(2f, 2f);
     if (!base.IsReversed)
     {
         textObj.Position = new Vector2((float)(this.Bounds.Right - 1000), (float)(this.Bounds.Top + 200));
     }
     else
     {
         textObj.Position = new Vector2((float)(this.Bounds.Left + 300), (float)(this.Bounds.Top + 200));
     }
     for (int i = 0; i < 3; i++)
     {
         TextObj textObj2 = textObj.Clone() as TextObj;
         textObj2.Y += (float)(i * 100);
         this.m_targetText.Add(textObj2);
         TextObj textObj3 = textObj.Clone() as TextObj;
         textObj3.Y += (float)(i * 100);
         textObj3.X = textObj2.X + 500f;
         this.m_targetDataText.Add(textObj3);
     }
     this.m_axeIcons = new ObjContainer();
     int num = 0;
     int num2 = 10;
     for (int j = 0; j < this.m_numTries; j++)
     {
         SpriteObj spriteObj = new SpriteObj("SpellAxe_Sprite");
         spriteObj.Scale = new Vector2(2f, 2f);
         spriteObj.X = (float)(num + 10);
         spriteObj.Y = (float)num2;
         num += spriteObj.Width + 5;
         this.m_axeIcons.AddChild(spriteObj);
     }
     this.m_axeIcons.OutlineWidth = 2;
     base.GameObjList.Add(this.m_axeIcons);
     base.LoadContent(graphics);
 }
示例#19
0
        private void InitializeTextObjs()
        {
            m_textInfoTitleContainer   = new ObjContainer();
            m_textInfoStatContainer    = new ObjContainer();
            m_textInfoStatModContainer = new ObjContainer();
            string[] array =
            {
                "Health",
                "Mana",
                "Damage",
                "Magic",
                "Armor",
                "Weight"
            };
            var zero    = Vector2.Zero;
            var textObj = new TextObj();

            textObj.Font      = Game.JunicodeFont;
            textObj.FontSize  = 10f;
            textObj.Text      = "0";
            textObj.ForceDraw = true;
            for (var i = 0; i < array.Length; i++)
            {
                textObj.Position = zero;
                m_textInfoTitleContainer.AddChild(textObj.Clone() as TextObj);
                m_textInfoStatContainer.AddChild(textObj.Clone() as TextObj);
                m_textInfoStatModContainer.AddChild(textObj.Clone() as TextObj);
                (m_textInfoTitleContainer.GetChildAt(i) as TextObj).Align = Types.TextAlign.Right;
                (m_textInfoTitleContainer.GetChildAt(i) as TextObj).Text  = array[i];
                zero.Y += m_textInfoTitleContainer.GetChildAt(i).Height - 5;
            }
            m_addPropertiesTitleText              = new TextObj();
            m_addPropertiesTitleText.Font         = Game.JunicodeFont;
            m_addPropertiesTitleText.FontSize     = 8f;
            m_addPropertiesTitleText.TextureColor = new Color(237, 202, 138);
            m_addPropertiesTitleText.Text         = "Additional Properties:";
            m_addPropertiesText          = new TextObj();
            m_addPropertiesText.Font     = Game.JunicodeFont;
            m_addPropertiesText.FontSize = 8f;
            m_unlockCostContainer        = new ObjContainer();
            var textObj2 = new TextObj();

            textObj2.Font         = Game.JunicodeFont;
            textObj2.FontSize     = 10f;
            textObj2.TextureColor = Color.Yellow;
            textObj2.Position     = new Vector2(50f, 9f);
            m_unlockCostContainer.AddChild(new SpriteObj("BlacksmithUI_CoinBG_Sprite"));
            m_unlockCostContainer.AddChild(textObj2);
            m_equipmentTitleText              = new TextObj(Game.JunicodeFont);
            m_equipmentTitleText.ForceDraw    = true;
            m_equipmentTitleText.FontSize     = 12f;
            m_equipmentTitleText.DropShadow   = new Vector2(2f, 2f);
            m_equipmentTitleText.TextureColor = new Color(237, 202, 138);
            m_textInfoTitleContainer.Position = new Vector2(m_blacksmithUI.X + 205f,
                                                            m_blacksmithUI.Y - m_blacksmithUI.Height / 2 + 45f);
            m_textInfoStatContainer.Position    = new Vector2(m_textInfoTitleContainer.X + 15f, m_textInfoTitleContainer.Y);
            m_textInfoStatModContainer.Position = new Vector2(m_textInfoStatContainer.X + 75f, m_textInfoStatContainer.Y);
            m_addPropertiesTitleText.Position   = new Vector2(m_blacksmithUI.X + 140f,
                                                              m_textInfoStatModContainer.Bounds.Bottom + 5);
            m_addPropertiesText.Position = new Vector2(m_addPropertiesTitleText.X,
                                                       m_addPropertiesTitleText.Bounds.Bottom);
            m_unlockCostContainer.Position     = new Vector2(m_blacksmithUI.X + 114f, 485f);
            m_equipmentTitleText.Position      = new Vector2(m_blacksmithUI.X + 140f, m_textInfoTitleContainer.Y - 45f);
            m_textInfoTitleContainer.Visible   = false;
            m_textInfoStatContainer.Visible    = false;
            m_textInfoStatModContainer.Visible = false;
            m_addPropertiesTitleText.Visible   = false;
            m_addPropertiesText.Visible        = false;
            m_unlockCostContainer.Visible      = false;
            m_equipmentTitleText.Visible       = false;
        }
示例#20
0
        public ChangeControlsOptionsObj(OptionsScreen parentScreen) : base(parentScreen, "Change Controls")
        {
            m_buttonTitle      = new List <TextObj>();
            m_keyboardControls = new List <KeyIconTextObj>();
            m_gamepadControls  = new List <KeyIconTextObj>();
            var textObj = new TextObj(Game.JunicodeFont);

            textObj.FontSize   = 12f;
            textObj.DropShadow = new Vector2(2f, 2f);
            string[] array =
            {
                "Up",
                "Down",
                "Left",
                "Right",
                "Attack",
                "Jump",
                "Special",
                "Dash Left",
                "Dash Right",
                "Cast Spell",
                "Reset Controls"
            };
            m_controlKeys = new[]
            {
                16,
                18,
                20,
                22,
                12,
                10,
                13,
                14,
                15,
                24,
                -1
            };
            for (var i = 0; i < array.Length; i++)
            {
                var textObj2 = textObj.Clone() as TextObj;
                textObj2.Text = array[i];
                textObj2.X    = 1320f;
                textObj2.Y    = m_startingY + i * 30;
                AddChild(textObj2);
                m_buttonTitle.Add(textObj2);
                var keyIconTextObj = new KeyIconTextObj(Game.JunicodeFont);
                keyIconTextObj.FontSize = 9f;
                keyIconTextObj.X        = textObj2.X + 200f;
                keyIconTextObj.Y        = textObj2.Y + 5f;
                AddChild(keyIconTextObj);
                m_keyboardControls.Add(keyIconTextObj);
                var keyIconTextObj2 = new KeyIconTextObj(Game.JunicodeFont);
                keyIconTextObj2.FontSize = 9f;
                keyIconTextObj2.X        = keyIconTextObj.X + 200f;
                keyIconTextObj2.Y        = keyIconTextObj.Y;
                AddChild(keyIconTextObj2);
                m_gamepadControls.Add(keyIconTextObj2);
            }
            UpdateKeyBindings();
            m_setKeyPlate           = new ObjContainer("GameOverStatPlate_Character");
            m_setKeyPlate.ForceDraw = true;
            m_setKeyPlate.Scale     = Vector2.Zero;
            var textObj3 = new TextObj(Game.JunicodeFont);

            textObj3.FontSize   = 12f;
            textObj3.Align      = Types.TextAlign.Centre;
            textObj3.DropShadow = new Vector2(2f, 2f);
            textObj3.ForceDraw  = true;
            textObj3.Text       = "Press Any Key";
            textObj3.Y         -= textObj3.Height / 2f;
            m_setKeyPlate.AddChild(textObj3);
            m_selectionBar = new SpriteObj("OptionsBar_Sprite");
        }
示例#21
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();
 }
示例#22
0
 public ChangeControlsOptionsObj(OptionsScreen parentScreen)
     : base(parentScreen, "Change Controls")
 {
     this.m_buttonTitle = new List<TextObj>();
     this.m_keyboardControls = new List<KeyIconTextObj>();
     this.m_gamepadControls = new List<KeyIconTextObj>();
     TextObj textObj = new TextObj(Game.JunicodeFont);
     textObj.FontSize = 12f;
     textObj.DropShadow = new Vector2(2f, 2f);
     string[] array = new string[]
     {
         "Up",
         "Down",
         "Left",
         "Right",
         "Attack",
         "Jump",
         "Special",
         "Dash Left",
         "Dash Right",
         "Cast Spell",
         "Reset Controls"
     };
     this.m_controlKeys = new int[]
     {
         16,
         18,
         20,
         22,
         12,
         10,
         13,
         14,
         15,
         24,
         -1
     };
     for (int i = 0; i < array.Length; i++)
     {
         TextObj textObj2 = textObj.Clone() as TextObj;
         textObj2.Text = array[i];
         textObj2.X = 1320f;
         textObj2.Y = (float)(this.m_startingY + i * 30);
         this.AddChild(textObj2);
         this.m_buttonTitle.Add(textObj2);
         KeyIconTextObj keyIconTextObj = new KeyIconTextObj(Game.JunicodeFont);
         keyIconTextObj.FontSize = 9f;
         keyIconTextObj.X = textObj2.X + 200f;
         keyIconTextObj.Y = textObj2.Y + 5f;
         this.AddChild(keyIconTextObj);
         this.m_keyboardControls.Add(keyIconTextObj);
         KeyIconTextObj keyIconTextObj2 = new KeyIconTextObj(Game.JunicodeFont);
         keyIconTextObj2.FontSize = 9f;
         keyIconTextObj2.X = keyIconTextObj.X + 200f;
         keyIconTextObj2.Y = keyIconTextObj.Y;
         this.AddChild(keyIconTextObj2);
         this.m_gamepadControls.Add(keyIconTextObj2);
     }
     this.UpdateKeyBindings();
     this.m_setKeyPlate = new ObjContainer("GameOverStatPlate_Character");
     this.m_setKeyPlate.ForceDraw = true;
     this.m_setKeyPlate.Scale = Vector2.Zero;
     TextObj textObj3 = new TextObj(Game.JunicodeFont);
     textObj3.FontSize = 12f;
     textObj3.Align = Types.TextAlign.Centre;
     textObj3.DropShadow = new Vector2(2f, 2f);
     textObj3.ForceDraw = true;
     textObj3.Text = "Press Any Key";
     textObj3.Y -= (float)textObj3.Height / 2f;
     this.m_setKeyPlate.AddChild(textObj3);
     this.m_selectionBar = new SpriteObj("OptionsBar_Sprite");
 }