public override void LoadContent() { var textObj = new TextObj(Game.JunicodeFont); textObj.FontSize = 12f; textObj.Align = Types.TextAlign.Left; var textObj2 = new TextObj(Game.JunicodeFont); textObj2.FontSize = 14f; textObj2.Text = "Blacksmith"; textObj2.DropShadow = new Vector2(2f, 2f); textObj2.TextureColor = new Color(236, 197, 132); m_dialogContainer = new ObjContainer("DialogBox_Character"); m_dialogContainer.Position = new Vector2(660f, 100f); m_dialogContainer.AddChild(textObj2); m_dialogContainer.ForceDraw = true; textObj2.Position = new Vector2(-(float)m_dialogContainer.Width / 2.2f, -(float)m_dialogContainer.Height / 1.6f); m_dialogContainer.AddChild(textObj); textObj.Position = new Vector2(-(float)m_dialogContainer.Width / 2.15f, -(float)m_dialogContainer.Height / 3.5f); textObj.Text = "This is a test to see how much text I can fit onto this dialog box without it running out of space. The text needs to be defined after the dialog text position is set, because the dialogtext width affects the entire width of the dialog container, which in END."; textObj.WordWrap(850); textObj.DropShadow = new Vector2(2f, 3f); var spriteObj = new SpriteObj("ContinueTextIcon_Sprite"); spriteObj.Position = new Vector2(m_dialogContainer.GetChildAt(2).Bounds.Right, m_dialogContainer.GetChildAt(2).Bounds.Bottom); m_dialogContainer.AddChild(spriteObj); m_dialogContinueIconY = spriteObj.Y; var textObj3 = new TextObj(Game.JunicodeFont); textObj3.FontSize = 12f; textObj3.Text = "Yes"; textObj3.Align = Types.TextAlign.Centre; var textObj4 = new TextObj(Game.JunicodeFont); textObj4.FontSize = 12f; textObj4.Text = "No"; textObj4.Align = Types.TextAlign.Centre; m_dialogChoiceContainer = new ObjContainer(); var obj = new SpriteObj("GameOverStatPlate_Sprite"); m_dialogChoiceContainer.AddChild(obj); var spriteObj2 = new SpriteObj("DialogueChoiceHighlight_Sprite"); m_dialogChoiceContainer.AddChild(spriteObj2); m_dialogChoiceContainer.ForceDraw = true; m_dialogChoiceContainer.Position = new Vector2(660f, 360f); m_dialogChoiceContainer.AddChild(textObj3); textObj3.Y -= 40f; m_dialogChoiceContainer.AddChild(textObj4); textObj4.Y += 7f; spriteObj2.Position = new Vector2(textObj3.X, textObj3.Y + spriteObj2.Height / 2 + 3f); m_dialogChoiceContainer.Scale = Vector2.Zero; m_dialogChoiceContainer.Visible = false; base.LoadContent(); }
public override void LoadContent() { m_continueText = new KeyIconTextObj(Game.JunicodeFont); m_continueText.FontSize = 14f; m_continueText.Align = Types.TextAlign.Right; m_continueText.Opacity = 0f; m_continueText.Position = new Vector2(1270f, 30f); m_continueText.ForceDraw = true; var dropShadow = new Vector2(2f, 2f); var textureColor = new Color(255, 254, 128); m_dialoguePlate = new ObjContainer("DialogBox_Character"); m_dialoguePlate.Position = new Vector2(660f, 610f); m_dialoguePlate.ForceDraw = true; var textObj = new TextObj(Game.JunicodeFont); textObj.Align = Types.TextAlign.Centre; textObj.Text = "Your valor shown in battle shall never be forgotten."; textObj.FontSize = 18f; textObj.DropShadow = dropShadow; textObj.Position = new Vector2(0f, -(float)m_dialoguePlate.Height / 2 + 25); m_dialoguePlate.AddChild(textObj); var keyIconTextObj = new KeyIconTextObj(Game.JunicodeFont); keyIconTextObj.FontSize = 12f; keyIconTextObj.Align = Types.TextAlign.Centre; keyIconTextObj.Text = "\"Arrrrggghhhh\""; keyIconTextObj.DropShadow = dropShadow; keyIconTextObj.Y = 10f; keyIconTextObj.TextureColor = textureColor; m_dialoguePlate.AddChild(keyIconTextObj); var textObj2 = new TextObj(Game.JunicodeFont); textObj2.FontSize = 8f; textObj2.Text = "-Player X's parting words"; textObj2.Y = keyIconTextObj.Y; textObj2.Y += 40f; textObj2.X += 20f; textObj2.DropShadow = dropShadow; m_dialoguePlate.AddChild(textObj2); m_playerGhost = new SpriteObj("PlayerGhost_Sprite"); m_playerGhost.AnimationDelay = 0.1f; m_spotlight = new SpriteObj("GameOverSpotlight_Sprite"); m_spotlight.Rotation = 90f; m_spotlight.ForceDraw = true; m_spotlight.Position = new Vector2(660f, 40 + m_spotlight.Height); m_playerFrame = new LineageObj(null, true); m_playerFrame.DisablePlaque = true; m_king = new SpriteObj("King_Sprite"); m_king.OutlineWidth = 2; m_king.AnimationDelay = 0.1f; m_king.PlayAnimation(); m_king.Scale = new Vector2(2f, 2f); base.LoadContent(); }
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); }
public override void LoadContent() { m_plate = new ObjContainer("SkillUnlockPlate_Character"); m_plate.Position = new Vector2(660f, 360f); m_plate.ForceDraw = true; m_text = new TextObj(Game.JunicodeFont); m_text.ForceDraw = true; m_text.Text = "This is temporary text to see how many sentences can be fit into this area. Hopefully it is quite a bit, as this is the area where we will be comprehensively describing the unlock. It will also be used to determine word wrap length."; m_text.FontSize = 10f; m_text.WordWrap(340); m_text.DropShadow = new Vector2(2f, 2f); m_plate.AddChild(m_text); m_text.Position = new Vector2(-110f, -100f); m_picturePlate = new ObjContainer("SkillUnlockPicturePlate_Character"); m_picturePlate.Position = new Vector2(360f, 410f); m_picturePlate.Rotation = -15f; m_picturePlate.ForceDraw = true; m_picture = new SpriteObj("BlacksmithUnlockPicture_Sprite"); m_picture.ForceDraw = true; m_picture.OutlineWidth = 1; m_picture.Position = m_picturePlate.Position; m_titlePlate = new SpriteObj("SkillUnlockTitlePlate_Sprite"); m_titlePlate.Position = new Vector2(660f, 160f); m_titlePlate.ForceDraw = true; m_title = new SpriteObj("ClassUnlockedText_Sprite"); m_title.Position = m_titlePlate.Position; m_title.Y -= 40f; m_title.ForceDraw = true; base.LoadContent(); }
public override void LoadContent(GraphicsDevice graphics) { m_daggerIcons = new ObjContainer(); var num = 0; var num2 = 10; for (var i = 0; i < m_numTries; i++) { var spriteObj = new SpriteObj("SpellDagger_Sprite"); spriteObj.Scale = new Vector2(2f, 2f); spriteObj.X = num + 10; spriteObj.Y = num2; num += spriteObj.Width; if (i == m_numTries / 2 - 1) { num = 0; num2 += 20; } m_daggerIcons.AddChild(spriteObj); } m_daggerIcons.OutlineWidth = 2; m_targetIcons = new ObjContainer(); for (var j = 0; j < m_numTargets; j++) { var spriteObj2 = new SpriteObj("Target2Piece1_Sprite"); spriteObj2.Scale = new Vector2(2f, 2f); spriteObj2.X += j * (spriteObj2.Width + 10); m_targetIcons.AddChild(spriteObj2); } m_targetIcons.OutlineWidth = 2; GameObjList.Add(m_targetIcons); GameObjList.Add(m_daggerIcons); base.LoadContent(graphics); }
private void InitializeTextObjs() { m_descriptionText = new TextObj(Game.JunicodeFont); m_descriptionText.FontSize = 9f; m_instructionsTitleText = new TextObj(); m_instructionsTitleText.Font = Game.JunicodeFont; m_instructionsTitleText.FontSize = 10f; m_instructionsTitleText.TextureColor = new Color(237, 202, 138); m_instructionsTitleText.Text = "Instructions:"; m_instructionsText = new KeyIconTextObj(); m_instructionsText.Font = Game.JunicodeFont; m_instructionsText.FontSize = 10f; m_unlockCostContainer = new ObjContainer(); var textObj = new TextObj(); textObj.Font = Game.JunicodeFont; textObj.FontSize = 10f; textObj.TextureColor = Color.Yellow; textObj.Position = new Vector2(50f, 9f); m_unlockCostContainer.AddChild(new SpriteObj("BlacksmithUI_CoinBG_Sprite")); m_unlockCostContainer.AddChild(textObj); m_descriptionText.Position = new Vector2(m_enchantressUI.X + 140f, m_enchantressUI.Y - m_enchantressUI.Height / 2 + 20f + 40f); m_instructionsTitleText.Position = new Vector2(m_enchantressUI.X + 140f, m_descriptionText.Bounds.Bottom + 20); m_instructionsText.Position = new Vector2(m_instructionsTitleText.X, m_instructionsTitleText.Bounds.Bottom); m_unlockCostContainer.Position = new Vector2(m_enchantressUI.X + 114f, 485f); m_equipmentTitleText = new TextObj(Game.JunicodeFont); m_equipmentTitleText.ForceDraw = true; m_equipmentTitleText.FontSize = 10f; m_equipmentTitleText.DropShadow = new Vector2(2f, 2f); m_equipmentTitleText.TextureColor = new Color(237, 202, 138); m_equipmentTitleText.Position = new Vector2(m_enchantressUI.X + 140f, m_descriptionText.Y - 50f); m_descriptionText.Visible = false; m_instructionsTitleText.Visible = false; m_instructionsText.Visible = false; m_unlockCostContainer.Visible = false; }
public PauseInfoObj() : base("GameOverStatPlate_Character") { ForceDraw = true; m_textList = new List <TextObj>(); m_textDataList = new List <TextObj>(); m_namePlate = new ObjContainer("DialogBox_Character"); m_namePlate.ForceDraw = true; m_name = new TextObj(Game.JunicodeFont); m_name.Align = Types.TextAlign.Centre; m_name.Text = "<noname>"; m_name.FontSize = 8f; m_name.Y -= 45f; m_name.OverrideParentScale = true; m_name.DropShadow = new Vector2(2f, 2f); m_namePlate.AddChild(m_name); }
public override void LoadContent() { m_titleText = new SpriteObj("DiaryEntryTitleText_Sprite"); m_titleText.ForceDraw = true; m_titleText.X = 660f; m_titleText.Y = 72f; var num = 260; var num2 = 150; var num3 = num; var num4 = num2; var num5 = 100; var num6 = 200; var num7 = 5; var num8 = 0; for (var i = 0; i < 25; i++) { var objContainer = new ObjContainer("DialogBox_Character"); objContainer.ForceDraw = true; objContainer.Scale = new Vector2(180f / objContainer.Width, 50f / objContainer.Height); objContainer.Position = new Vector2(num3, num4); var textObj = new TextObj(Game.JunicodeFont); textObj.Text = "Entry #" + (i + 1); textObj.OverrideParentScale = true; textObj.OutlineWidth = 2; textObj.FontSize = 12f; textObj.Y -= 64f; textObj.Align = Types.TextAlign.Centre; objContainer.AddChild(textObj); m_diaryList.Add(objContainer); num8++; num3 += num6; if (num8 >= num7) { num8 = 0; num3 = num; num4 += num5; } if (i > 13) { objContainer.Visible = false; } } base.LoadContent(); }
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); }
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(); }
public override void LoadContent() { this.m_titleText = new SpriteObj("DiaryEntryTitleText_Sprite"); this.m_titleText.ForceDraw = true; this.m_titleText.X = 660f; this.m_titleText.Y = 72f; int num = 260; int num2 = 150; int num3 = num; int num4 = num2; int num5 = 100; int num6 = 200; int num7 = 5; int num8 = 0; for (int i = 0; i < 25; i++) { ObjContainer objContainer = new ObjContainer("DialogBox_Character"); objContainer.ForceDraw = true; objContainer.Scale = new Vector2(180f / (float)objContainer.Width, 50f / (float)objContainer.Height); objContainer.Position = new Vector2((float)num3, (float)num4); TextObj textObj = new TextObj(Game.JunicodeFont); textObj.Text = "Entry #" + (i + 1); textObj.OverrideParentScale = true; textObj.OutlineWidth = 2; textObj.FontSize = 12f; textObj.Y -= 64f; textObj.Align = Types.TextAlign.Centre; objContainer.AddChild(textObj); this.m_diaryList.Add(objContainer); num8++; num3 += num6; if (num8 >= num7) { num8 = 0; num3 = num; num4 += num5; } if (i > 13) { objContainer.Visible = false; } } base.LoadContent(); }
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(); }
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(); }
public override void LoadContent() { m_mapDisplay.InitializeAlphaMap(new Rectangle(50, 50, 1220, 620), Camera); m_mapDisplay.CameraOffset = new Vector2(660f, 360f); m_legend = new ObjContainer(); m_legend.ForceDraw = true; var spriteObj = new SpriteObj("TraitsScreenPlate_Sprite"); m_legend.AddChild(spriteObj); spriteObj.Scale = new Vector2(0.75f, 0.58f); var textObj = new TextObj(Game.JunicodeFont); textObj.Align = Types.TextAlign.Centre; textObj.Position = new Vector2(m_legend.Width / 2 * spriteObj.ScaleX, m_legend.Bounds.Top + 10); textObj.Text = "Legend"; textObj.FontSize = 12f; textObj.DropShadow = new Vector2(2f, 2f); textObj.TextureColor = new Color(213, 213, 173); m_legend.AddChild(textObj); m_legend.AnimationDelay = 0.0333333351f; m_legend.Position = new Vector2(1320 - m_legend.Width - 20, 720 - m_legend.Height - 20); var spriteObj2 = new SpriteObj("MapPlayerIcon_Sprite"); spriteObj2.Position = new Vector2(30f, 60f); spriteObj2.PlayAnimation(); m_legend.AddChild(spriteObj2); var num = 30; var spriteObj3 = new SpriteObj("MapBossIcon_Sprite"); spriteObj3.Position = new Vector2(spriteObj2.X, spriteObj2.Y + num); spriteObj3.PlayAnimation(); m_legend.AddChild(spriteObj3); var spriteObj4 = new SpriteObj("MapLockedChestIcon_Sprite"); spriteObj4.Position = new Vector2(spriteObj2.X, spriteObj3.Y + num); spriteObj4.PlayAnimation(); m_legend.AddChild(spriteObj4); var spriteObj5 = new SpriteObj("MapFairyChestIcon_Sprite"); spriteObj5.Position = new Vector2(spriteObj2.X, spriteObj4.Y + num); spriteObj5.PlayAnimation(); m_legend.AddChild(spriteObj5); var spriteObj6 = new SpriteObj("MapChestUnlocked_Sprite"); spriteObj6.Position = new Vector2(spriteObj2.X, spriteObj5.Y + num); m_legend.AddChild(spriteObj6); var spriteObj7 = new SpriteObj("MapTeleporterIcon_Sprite"); spriteObj7.Position = new Vector2(spriteObj2.X, spriteObj6.Y + num); spriteObj7.PlayAnimation(); m_legend.AddChild(spriteObj7); var spriteObj8 = new SpriteObj("MapBonusIcon_Sprite"); spriteObj8.Position = new Vector2(spriteObj2.X, spriteObj7.Y + num); spriteObj8.PlayAnimation(); m_legend.AddChild(spriteObj8); var textObj2 = new TextObj(Game.JunicodeFont); textObj2.Position = new Vector2(spriteObj2.X + 50f, 55f); textObj2.Text = "You are here \nBoss location \nUnopened chest \nFairy chest \nOpened chest \nTeleporter \nBonus Room"; textObj2.FontSize = 10f; textObj2.DropShadow = new Vector2(2f, 2f); m_legend.AddChild(textObj2); spriteObj2.X += 4f; spriteObj2.Y += 4f; m_titleText = new SpriteObj("TeleporterTitleText_Sprite"); m_titleText.ForceDraw = true; m_titleText.X = 660f; m_titleText.Y = 72f; m_playerIcon = new ObjContainer("PlayerWalking_Character"); m_playerIcon.Scale = new Vector2(0.6f, 0.6f); m_playerIcon.AnimationDelay = 0.1f; m_playerIcon.PlayAnimation(); m_playerIcon.ForceDraw = true; m_playerIcon.OutlineWidth = 2; m_playerIcon.GetChildAt(1).TextureColor = Color.Red; m_playerIcon.GetChildAt(7).TextureColor = Color.Red; m_playerIcon.GetChildAt(8).TextureColor = Color.Red; m_playerIcon.GetChildAt(16).Visible = false; m_playerIcon.GetChildAt(5).Visible = false; m_playerIcon.GetChildAt(13).Visible = false; m_playerIcon.GetChildAt(0).Visible = false; m_playerIcon.GetChildAt(15).Visible = false; m_playerIcon.GetChildAt(14).Visible = false; m_continueText = new KeyIconTextObj(Game.JunicodeFont); m_continueText.Text = "to close map"; m_continueText.FontSize = 12f; m_continueText.ForceDraw = true; m_continueText.Position = new Vector2(50f, 200 - m_continueText.Height - 40); m_recentreText = new KeyIconTextObj(Game.JunicodeFont); m_recentreText.Text = "to re-center on player"; m_recentreText.FontSize = 12f; m_recentreText.Position = new Vector2(m_continueText.X, 200 - m_continueText.Height - 80); m_recentreText.ForceDraw = true; m_navigationText = new KeyIconTextObj(Game.JunicodeFont); m_navigationText.Text = "to move map"; m_navigationText.FontSize = 12f; m_navigationText.Position = new Vector2(m_continueText.X, 200 - m_continueText.Height - 120); m_navigationText.ForceDraw = true; base.LoadContent(); }
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); }
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"); }
public override void LoadContent() { m_bgSprite = new ObjContainer("SkillUnlockPlate_Character"); m_bgSprite.ForceDraw = true; m_optionsTitle = new SpriteObj("OptionsScreenTitle_Sprite"); m_bgSprite.AddChild(m_optionsTitle); m_optionsTitle.Position = new Vector2(0f, -(float)m_bgSprite.Width / 2f + 60f); m_changeControlsTitle = new SpriteObj("OptionsScreenChangeControls_Sprite"); m_bgSprite.AddChild(m_changeControlsTitle); m_changeControlsTitle.Position = new Vector2(1320f, m_optionsTitle.Y); m_optionsArray.Add(new ResolutionOptionsObj(this)); m_optionsArray.Add(new FullScreenOptionsObj(this)); m_reduceQualityObj = new ReduceQualityOptionsObj(this); m_optionsArray.Add(m_reduceQualityObj); m_optionsArray.Add(new MusicVolOptionsObj(this)); m_optionsArray.Add(new SFXVolOptionsObj(this)); m_quickDropObj = new QuickDropOptionsObj(this); m_optionsArray.Add(m_quickDropObj); m_optionsArray.Add(new DeadZoneOptionsObj(this)); m_optionsArray.Add(new ToggleDirectInputOptionsObj(this)); m_optionsArray.Add(new ChangeControlsOptionsObj(this)); m_optionsArray.Add(new ExitProgramOptionsObj(this)); m_backToMenuObj = new BackToMenuOptionsObj(this); m_backToMenuObj.X = 420f; for (var i = 0; i < m_optionsArray.Count; i++) { m_optionsArray[i].X = 420f; m_optionsArray[i].Y = 160 + i * 30; } m_optionsBar = new SpriteObj("OptionsBar_Sprite"); m_optionsBar.ForceDraw = true; m_optionsBar.Position = new Vector2(m_optionsArray[0].X - 20f, m_optionsArray[0].Y); m_confirmText = new KeyIconTextObj(Game.JunicodeFont); m_confirmText.Text = "to select option"; m_confirmText.DropShadow = new Vector2(2f, 2f); m_confirmText.FontSize = 12f; m_confirmText.Align = Types.TextAlign.Right; m_confirmText.Position = new Vector2(1290f, 570f); m_confirmText.ForceDraw = true; m_cancelText = new KeyIconTextObj(Game.JunicodeFont); m_cancelText.Text = "to exit options"; m_cancelText.Align = Types.TextAlign.Right; m_cancelText.DropShadow = new Vector2(2f, 2f); m_cancelText.FontSize = 12f; m_cancelText.Position = new Vector2(m_confirmText.X, m_confirmText.Y + 40f); m_cancelText.ForceDraw = true; m_navigationText = new KeyIconTextObj(Game.JunicodeFont); m_navigationText.Text = "to navigate options"; m_navigationText.Align = Types.TextAlign.Right; m_navigationText.DropShadow = new Vector2(2f, 2f); m_navigationText.FontSize = 12f; m_navigationText.Position = new Vector2(m_confirmText.X, m_confirmText.Y + 80f); m_navigationText.ForceDraw = true; m_quickDropText = new TextObj(Game.JunicodeFont); m_quickDropText.FontSize = 8f; m_quickDropText.Text = "*Quick drop allows you to drop down ledges and down-attack in \nthe air by pressing DOWN"; m_quickDropText.Position = new Vector2(420f, 530f); m_quickDropText.ForceDraw = true; m_quickDropText.DropShadow = new Vector2(2f, 2f); base.LoadContent(); }
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; }
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(); }
public override void LoadContent() { m_blacksmithUI = new ObjContainer("BlacksmithUI_Character"); m_blacksmithUI.Position = new Vector2(660f, 360f); m_playerMoney = new TextObj(Game.GoldFont); m_playerMoney.Align = Types.TextAlign.Left; m_playerMoney.Text = "1000"; m_playerMoney.FontSize = 30f; m_playerMoney.OverrideParentScale = true; m_playerMoney.Position = new Vector2(210f, -225f); m_playerMoney.AnchorY = 10f; m_blacksmithUI.AddChild(m_playerMoney); for (var i = 0; i < m_blacksmithUI.NumChildren; i++) { m_blacksmithUI.GetChildAt(i).Scale = Vector2.Zero; } m_selectionIcon = new SpriteObj("BlacksmithUI_SelectionIcon_Sprite"); m_selectionIcon.PlayAnimation(); m_selectionIcon.Scale = Vector2.Zero; m_selectionIcon.AnimationDelay = 0.1f; m_selectionIcon.ForceDraw = true; m_equipmentDescriptionText = new TextObj(Game.JunicodeFont); m_equipmentDescriptionText.Align = Types.TextAlign.Centre; m_equipmentDescriptionText.FontSize = 12f; m_equipmentDescriptionText.Position = new Vector2(230f, -20f); m_equipmentDescriptionText.Text = "Select a category"; m_equipmentDescriptionText.WordWrap(190); m_equipmentDescriptionText.Scale = Vector2.Zero; m_blacksmithUI.AddChild(m_equipmentDescriptionText); foreach (var current in m_masterIconArray) { var absPosition = m_blacksmithUI.GetChildAt(6).AbsPosition; absPosition.X += 85f; var x = absPosition.X; var num = 70f; var num2 = 80f; for (var j = 0; j < current.Length; j++) { current[j] = new ObjContainer("BlacksmithUI_QuestionMarkIcon_Character"); current[j].Position = absPosition; current[j].Scale = Vector2.Zero; current[j].ForceDraw = true; absPosition.X += num; if (absPosition.X > x + num * 4f) { absPosition.X = x; absPosition.Y += num2; } } } InitializeTextObjs(); m_equippedIcon = new SpriteObj("BlacksmithUI_EquippedIcon_Sprite"); m_confirmText = new KeyIconTextObj(Game.JunicodeFont); m_confirmText.Text = "to close map"; m_confirmText.FontSize = 12f; m_confirmText.Position = new Vector2(50f, 550f); m_confirmText.ForceDraw = true; m_cancelText = new KeyIconTextObj(Game.JunicodeFont); m_cancelText.Text = "to re-center on player"; m_cancelText.FontSize = 12f; m_cancelText.Position = new Vector2(m_confirmText.X, m_confirmText.Y + 40f); m_cancelText.ForceDraw = true; m_navigationText = new KeyIconTextObj(Game.JunicodeFont); m_navigationText.Text = "to move map"; m_navigationText.FontSize = 12f; m_navigationText.Position = new Vector2(m_confirmText.X, m_confirmText.Y + 80f); m_navigationText.ForceDraw = true; m_newIconList = new List <SpriteObj>(); for (var k = 0; k < 25; k++) { var spriteObj = new SpriteObj("BlacksmithUI_NewIcon_Sprite"); spriteObj.Visible = false; spriteObj.Scale = new Vector2(1.1f, 1.1f); m_newIconList.Add(spriteObj); } base.LoadContent(); }