public GotSkillRenderComponent(string sSkillGotten)
 {
     this.sSkillGotten = sSkillGotten;
     this.fAlpha = 1f;
     if (sSkillGotten == "PhaseShift")
     {
         this.txSkillWindow = Program.game.xLevelMaster.contRegionContent.Load<Texture2D>("GUI/HUD/Keyskills/Phaseshift");
     }
     else if (sSkillGotten == "SeasonChange")
     {
         this.txSkillWindow = Program.game.xLevelMaster.contRegionContent.Load<Texture2D>("GUI/HUD/Keyskills/seasonchange");
     }
     else
     {
         this.txSkillWindow = Program.game.xLevelMaster.contRegionContent.Load<Texture2D>("Input");
     }
     this.txSkillPreviewFrame = Program.game.xLevelMaster.contRegionContent.Load<Texture2D>("GUI/HUD/Keyskills/Frame");
     this.font = FontManager.Bold7Spacing1;
     this.fontName = FontManager.Bold8Spacing1;
     this.iTitleLength = (int)this.fontName.MeasureString(Program.game.Dialogue_CleanString(Program.game.MiscTextLibrary_GetText("Spells", "PhaseShift_GetName"))).X;
     if (this.iTitleLength < 190)
     {
         this.iTitleLength = 190;
     }
     string sParsed = Program.game.MiscTextLibrary_GetText("Spells", sSkillGotten + "_GetDescription");
     sParsed = Program.game.String_ParseButtons(sParsed);
     this.iDescriptionHeight = (int)this.fontName.MeasureString(Utility.String_CutToSize(sParsed, this.iTitleLength + 10, this.font)).Y;
     this.xTextBatchTitle = new TextBatch(this.fontName, Utility.String_CutToSize(Program.game.MiscTextLibrary_GetText("Spells", sSkillGotten + "_GetName"), this.iTitleLength, this.font), Color.White, this.iTitleLength, new float[0]);
     this.xTextBatchText = new TextBatch(this.font, Utility.String_CutToSize(sParsed, this.iTitleLength + 10, this.font), Color.White, this.iTitleLength + 10, new float[0]);
 }
Example #2
0
 public void Init()
 {
     this.xNiceOverlay = new StaticRenderComponent(RenderMaster.txNullTex, new TransformComponent(Vector2.Zero));
     this.xNiceOverlay.v2Offset = Vector2.Zero;
     Program.game.xRenderMaster.RegisterBackground(this.xNiceOverlay);
     this.xNiceOverlay.fAlpha = 0.9f;
     this.xRenderFunction = new DelegateRenderComponent(new DelegateRenderComponent.RenderDelegate(this.Render));
     Program.game.xRenderMaster.RegisterAboveAllRenderComponent(this.xRenderFunction);
     if (this.xColorOverlayWhite == null)
     {
         this.xColorOverlayWhite = new OverlayRenderComponent(new Rectangle(0, 0, 640, 360), Color.White * 0f);
         this.xColorOverlayWhite.fAlpha = 0f;
         Program.game.xRenderMaster.RegisterAboveSorted(this.xColorOverlayWhite);
     }
     if (this.xColorOverlayBlack == null)
     {
         this.xColorOverlayBlack = new OverlayRenderComponent(new Rectangle(0, 0, 640, 360), Color.Black * 0f);
         this.xColorOverlayBlack.fAlpha = 0f;
         Program.game.xRenderMaster.RegisterAboveSorted(this.xColorOverlayBlack);
     }
     string sText = "During my thousand years of captivity \nnot once did I doubt \nmy saviour would be the greed of humans.\n  \n  \nAt last, the time is nigh \nfor artifacts to rule mankind.";
     this.xFunMessageTextBatch = new TextBatch(FontManager.GetFont(FontManager.FontType.Reg7), sText, Color.White, -1, new float[0]);
     this.xFunMessageTextBatch.MakeTextCentered(240);
     this.xFunMessageTextBatch.OverridePosition(0);
     Program.game.xSoundSystem.PlayInterfaceCue("Gund4m_Startup_Short");
     this.xHead.xOwner.bUpdateInCutscene = true;
     if (this.xHead.iCounter > 21)
     {
         this.xHead.iCounter = 20;
     }
     this.xLeftHand.xOwner.xTransform.v2Pos = this.xLeftHand.v2StartPos;
     this.xRightHand.xOwner.xTransform.v2Pos = this.xRightHand.v2StartPos;
     this.xHead.xBody.xRenderComponent.AsAnimated().SwitchAnimation(13, Animation.CancelOptions.IgnoreIfPlaying);
     this.iLerpColorCounter = 30;
     this.xHead.xOwner.xRenderComponent.cColor = Color.White;
     this.xLeftHand.xOwner.xRenderComponent.fVirtualHeight = 0f;
     this.xRightHand.xOwner.xRenderComponent.fVirtualHeight = 0f;
     this.xHead.xRightScreen.xRenderComponent.AsAnimated().SwitchAnimation(1, Animation.CancelOptions.IgnoreIfPlaying);
     this.xHead.xLeftScreen.xRenderComponent.AsAnimated().SwitchAnimation(1, Animation.CancelOptions.IgnoreIfPlaying);
     this.xHead.xMidScreen.xRenderComponent.AsAnimated().SwitchAnimation(1, Animation.CancelOptions.IgnoreIfPlaying);
     this.iBlackState = 0;
     if (this.xColorOverlayBlack != null)
     {
         this.xColorOverlayBlack.fAlpha = 0f;
     }
     if (this.xColorOverlayWhite != null)
     {
         this.xColorOverlayWhite.fAlpha = 0f;
     }
     if (this.xNiceOverlay != null)
     {
         this.xNiceOverlay.fAlpha = 0f;
         Program.game.xRenderMaster.UnregisterRenderComponenent(this.xNiceOverlay);
     }
     Program.game.xRenderMaster.UnregisterRenderComponenent(this.xRenderFunction);
     this.iState = 1000;
     this.OnInstruction(100, new float[0]);
     this.OnInstruction(104, new float[0]);
 }
 public QuestAcceptRenderComponent(Quest xQuest, ContentManager Content)
 {
     this.fAlpha = 0f;
     this.xQuest = xQuest;
     this.txNameLeft = Content.Load<Texture2D>("GUI/HUD/Quest/Get/questname_left");
     this.txNameMid = Content.Load<Texture2D>("GUI/HUD/Quest/Get/questname_mid");
     this.txNameRight = Content.Load<Texture2D>("GUI/HUD/Quest/Get/questname_right");
     this.txTop = Content.Load<Texture2D>("GUI/HUD/Quest/Get/top");
     this.txMid = Content.Load<Texture2D>("GUI/HUD/Quest/Get/mid");
     this.txBot = Content.Load<Texture2D>("GUI/HUD/Quest/Get/bottom");
     if (xQuest.xDescription.enType == QuestDescription.QuestType.Main)
     {
         this.txType = InGameMenu.txJournal_Quests_Icons_Main;
     }
     else if (xQuest.xDescription.enType == QuestDescription.QuestType.Collect)
     {
         this.txType = InGameMenu.txJournal_Quests_Icons_Collect;
     }
     else if (xQuest.xDescription.enType == QuestDescription.QuestType.Deliver)
     {
         this.txType = InGameMenu.txJournal_Quests_Icons_Delivery;
     }
     else if (xQuest.xDescription.enType == QuestDescription.QuestType.Kill)
     {
         this.txType = InGameMenu.txJournal_Quests_Icons_Bounty;
     }
     else if (xQuest.xDescription.enType == QuestDescription.QuestType.KillMany)
     {
         this.txType = InGameMenu.txJournal_Quests_Icons_Hunting;
     }
     else
     {
         this.txType = InGameMenu.txJournal_Quests_Icons_Main;
     }
     this.font = FontManager.Reg7;
     this.fontName = InGameMenu.fontItemSorting;
     this.xTextBatch = new TextBatch(this.font, Utility.String_CutToSize(xQuest.xDescription.sDescription, 278, this.font), Color.White, 278, new float[0]);
     Program.game.xSoundSystem.PlayInterfaceCue("QuestNew");
 }
Example #4
0
 public void SetDialogue(string sPortrait, string sText)
 {
     this.sPortraitMood = sPortrait;
     string s = Program.GetTheGame().Dialogue_ParseVariables(sText);
     s = Program.GetTheGame().String_ParseButtons(s);
     s = Utility.String_CutToSize(s, 225, DialogueSystem.fontText);
     this.xTextBatch = new TextBatch(FontManager.Bold10, s, Color.White, -1, new float[0]);
 }
Example #5
0
 private void Render(SpriteBatch spriteBatch, SpriteFont p_font, Vector2 p_v2Position, float p_fAlpha, TextBatch.TextAlignment p_enAlignment, float p_fScale, Color p_cOverrideColor, bool p_bUseOverride)
 {
     p_font = this.fontToUse;
     Vector2 v2Alignment = Vector2.Zero;
     string arg_2B_0 = this.lxProcessedTexts[this.lxProcessedTexts.Count - 1].sText;
     switch (p_enAlignment)
     {
     case TextBatch.TextAlignment.TopMid:
         v2Alignment = new Vector2((float)this.iTextWidth / 2f, 0f);
         break;
     case TextBatch.TextAlignment.TopRight:
         v2Alignment = new Vector2((float)this.iTextWidth, 0f);
         break;
     case TextBatch.TextAlignment.MidLeft:
         v2Alignment = new Vector2(0f, (float)this.iTextHeight / 2f);
         break;
     case TextBatch.TextAlignment.Center:
         v2Alignment = new Vector2((float)this.iTextWidth / 2f, (float)this.iTextHeight / 2f);
         break;
     case TextBatch.TextAlignment.MidRight:
         v2Alignment = new Vector2((float)this.iTextWidth, (float)this.iTextHeight / 2f);
         break;
     case TextBatch.TextAlignment.BotLeft:
         v2Alignment = new Vector2(0f, (float)this.iTextHeight);
         break;
     case TextBatch.TextAlignment.BotMid:
         v2Alignment = new Vector2((float)this.iTextWidth / 2f, (float)this.iTextHeight);
         break;
     case TextBatch.TextAlignment.BotRight:
         v2Alignment = new Vector2((float)this.iTextWidth, (float)this.iTextHeight);
         break;
     }
     v2Alignment = Utility.Vector2_ToInts(v2Alignment);
     int iCurTotalPos = 0;
     for (int i = 0; i < this.lxProcessedTexts.Count; i++)
     {
         TextBatch.TextItem txt = this.lxProcessedTexts[i];
         string sToRender = txt.sText;
         if (this.bUsePositionOverride && this.iTextPosition < iCurTotalPos + sToRender.Length)
         {
             sToRender = sToRender.Substring(0, this.iTextPosition - iCurTotalPos);
         }
         Vector2 v2ExtraScaleOffset = Vector2.Zero;
         float fBonus = p_fScale - 1f;
         v2ExtraScaleOffset = txt.v2Offset * fBonus;
         if (this.cShadow.A > 0)
         {
             spriteBatch.DrawString(p_font, sToRender, Utility.Vector2_ToInts(txt.v2Offset + p_v2Position + v2ExtraScaleOffset) + new Vector2(1f, 1f) * p_fScale, this.cShadow * p_fAlpha, 0f, v2Alignment, p_fScale, SpriteEffects.None, 0f);
         }
         if (!p_bUseOverride)
         {
             spriteBatch.DrawString(p_font, sToRender, Utility.Vector2_ToInts(txt.v2Offset + p_v2Position + v2ExtraScaleOffset), txt.cColor * p_fAlpha, 0f, v2Alignment, p_fScale, SpriteEffects.None, 0f);
         }
         else
         {
             spriteBatch.DrawString(p_font, sToRender, Utility.Vector2_ToInts(txt.v2Offset + p_v2Position + v2ExtraScaleOffset), p_cOverrideColor * p_fAlpha, 0f, v2Alignment, p_fScale, SpriteEffects.None, 0f);
         }
         iCurTotalPos += sToRender.Length;
         if (txt.bFromLineBreak)
         {
             iCurTotalPos++;
         }
         if (this.bUsePositionOverride && iCurTotalPos >= this.iTextPosition)
         {
             break;
         }
     }
     foreach (TextBatch.IconItem ic in this.lxProcessedIcons)
     {
         float fYSize = p_font.MeasureString("\n").Y / 2f;
         Vector2 v2RealPos = Utility.Vector2_ToInts(new Vector2((float)ic.v2Pos.X * p_font.MeasureString("a").X, (float)ic.v2Pos.Y * fYSize));
         spriteBatch.Draw(ic.txIcon, v2RealPos + p_v2Position, null, Color.White * p_fAlpha, 0f, v2Alignment + new Vector2(0f, (float)ic.txIcon.Height) + ic.v2Offset, p_fScale, SpriteEffects.None, 0f);
     }
 }
Example #6
0
 public void Render(SpriteBatch spriteBatch, SpriteFont p_font, Vector2 p_v2Position, float p_fAlpha, TextBatch.TextAlignment p_enAlignment, float p_fScale, Color p_cOverrideColor)
 {
     this.Render(spriteBatch, p_font, p_v2Position, p_fAlpha, p_enAlignment, p_fScale, p_cOverrideColor, true);
 }
Example #7
0
 public void Render(SpriteBatch spriteBatch, SpriteFont p_font, Vector2 p_v2Position, float p_fAlpha, TextBatch.TextAlignment p_enAlignment, float p_fScale)
 {
     this.Render(spriteBatch, p_font, p_v2Position, p_fAlpha, p_enAlignment, p_fScale, Color.White, false);
 }
Example #8
0
 public override void Render(SpriteBatch spriteBatch)
 {
     if (Program.GetTheGame().bDontRenderGUI)
     {
         return;
     }
     this.RenderBars(spriteBatch);
     if (this.xView.xGUIStuff.xPetResurrect != null && this.xView.xGUIStuff.xPetResurrect.xCurrentResurrector != null)
     {
         int iCastLength = (int)(34f * ((float)this.xView.xGUIStuff.xPetResurrect.iCounter / (float)this.xView.xGUIStuff.xPetResurrect.iResurrectTick));
         float fLocalAlpha = 1f;
         if (this.xView.xGUIStuff.xPetResurrect.iCounter < 10)
         {
             fLocalAlpha = (float)this.xView.xGUIStuff.xPetResurrect.iCounter / 10f;
         }
         if (iCastLength > 34)
         {
             iCastLength = 34;
         }
         Vector2 v2Pos = Utility.Vector2_ToInts(this.xView.xGUIStuff.xPetResurrect.xCurrentResurrector.xEntity.xTransform.v2Pos - this.xCamera.v2TopLeft) - new Vector2(18f, 40f);
         spriteBatch.Draw(HudRenderComponent.txSpellBar, v2Pos, null, Color.White * fLocalAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
         spriteBatch.Draw(RenderMaster.txNoTex, v2Pos + new Vector2(2f, 2f), new Rectangle?(new Rectangle(0, 0, iCastLength, 1)), new Color(93, 209, 208) * fLocalAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
         spriteBatch.Draw(RenderMaster.txNoTex, v2Pos + new Vector2(2f, 3f), new Rectangle?(new Rectangle(0, 0, iCastLength, 1)), new Color(70f, 141f, 159f * fLocalAlpha), 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
     }
     int iKeyboardQuickslots = 0;
     Vector2 v2ScoreTopLeft = new Vector2(12f, 65f);
     Game1 game = Program.game;
     if (game.xInput_Game.enControlMode == LocalInputHelper.ControlMode.Keyboard)
     {
         Vector2 v2HPPos = new Vector2(55f, 16f);
         Vector2 v2MPPos = new Vector2(68f, 35f);
         float fOnCur = this.xView.xViewStats.iEXP;
         int iExpPixels = (int)(fOnCur / 10000f * 86f);
         spriteBatch.Draw(InGameMenu.txCharacterInfo_Exp1px, new Vector2(55f, 61f), new Rectangle?(new Rectangle(0, 0, iExpPixels, 7)), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
         int iHPPixels = (int)((float)this.xView.xEntity.xBaseStats.iHP / (float)this.xView.xEntity.xBaseStats.iMaxHP * 126f);
         spriteBatch.Draw(HudRenderComponent.txHP1px, this.HESTPOS_KB + v2HPPos, new Rectangle?(new Rectangle(0, 0, iHPPixels, 7)), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
         string sHP = this.xView.xEntity.xBaseStats.iHP + "/" + this.xView.xEntity.xBaseStats.iMaxHP;
         Vector2 v2HPStringOffset = HudRenderComponent.fontHPMP.MeasureString(sHP) / 2f;
         spriteBatch.DrawString(HudRenderComponent.fontHPMP, sHP, this.HESTPOS_KB + v2HPPos + new Vector2(57f, 4f) * 1f, Color.White, 0f, Utility.Vector2_ToInts(v2HPStringOffset), 1f, SpriteEffects.None, 0f);
         int iFullSP = this.iCurrentSPDisplay;
         int arg_3E0_0 = this.iCurrentSPDisplay;
         int iBlockedOut = 0;
         int iTrueFull = this.xView.xEntity.xBaseStats.iTrueMaxEP;
         int iSuperBlockMock = iTrueFull - this.xView.xEntity.xBaseStats.iMaxEP;
         if (this.xView.xEntity.xCurrentSpellCharge != null && !this.xView.xEntity.xCurrentSpellCharge.bCasted)
         {
             iBlockedOut += this.iCurrentSPDisplayCharge;
         }
         if (this.iCurrentSPDisplay > this.xView.xEntity.xBaseStats.iEP)
         {
             iBlockedOut += this.iCurrentSPDisplay - this.xView.xEntity.xBaseStats.iEP;
         }
         iFullSP -= iBlockedOut;
         int iRestSP = iBlockedOut;
         int iSPPixels = (int)((float)iFullSP / (float)iTrueFull * 113f);
         spriteBatch.Draw(HudRenderComponent.txMP1px, this.HESTPOS_KB + v2MPPos, new Rectangle?(new Rectangle(0, 0, iSPPixels, 7)), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
         if (iRestSP > 0)
         {
             int iRestSPPixels = (int)((float)iRestSP / (float)iTrueFull * 113f);
             spriteBatch.Draw(HudRenderComponent.txMP1px, this.HESTPOS_KB + v2MPPos + new Vector2((float)iSPPixels, 0f), new Rectangle?(new Rectangle(0, 0, iRestSPPixels, 7)), Color.White * 0.35f, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
         }
         if (iSuperBlockMock > 0)
         {
             int iMosssoPixels = (int)((float)iSuperBlockMock / (float)iTrueFull * 113f);
             int iMossoStart = (int)((float)(iTrueFull - iSuperBlockMock) / (float)iTrueFull * 113f);
             spriteBatch.Draw(RenderMaster.txNoTex, this.HESTPOS_KB + v2MPPos + new Vector2((float)(iMossoStart - 1), 0f), new Rectangle?(new Rectangle(0, 0, iMosssoPixels + 2, 7)), Color.LightGray * 0.8f, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
         }
         string sMP = this.xView.xEntity.xBaseStats.iEP + "/" + this.xView.xEntity.xBaseStats.iMaxEP;
         Vector2 v2MPStringOffset = HudRenderComponent.fontHPMP.MeasureString(sMP) / 2f;
         spriteBatch.DrawString(HudRenderComponent.fontHPMP, sMP, this.HESTPOS_KB + v2MPPos + new Vector2(59f, 4f), Color.White, 0f, Utility.Vector2_ToInts(v2MPStringOffset), 1f, SpriteEffects.None, 0f);
         spriteBatch.Draw(HudRenderComponent.txHest_Keyboard, this.HESTPOS_KB, null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
         List<KeyValuePair<BaseStats.StatusEffectSource, int>> lkvpBuffs = this.xView.xEntity.xBaseStats.GetListOfActiveBuffs();
         List<BaseStats.StatusEffectSource> lenThisFrameBuff = new List<BaseStats.StatusEffectSource>();
         int iLosooo = 0;
         Color cmosos = Color.White;
         for (int i = 0; i < lkvpBuffs.Count; i++)
         {
             float fBuffAlpha = 1f;
             cmosos = Color.White;
             lenThisFrameBuff.Add(lkvpBuffs[i].Key);
             if (!this.lenLastFrameBuffs.Contains(lkvpBuffs[i].Key))
             {
                 this.SetBufftimerLastUpdate(lkvpBuffs[i].Key);
             }
             int iAppear = this.GetBufftimeAppear(lkvpBuffs[i].Key);
             float fScalePlus = 1f;
             if (iAppear > 0)
             {
                 fBuffAlpha = 1f - (float)iAppear / 14f;
                 fScalePlus = 1f + (float)iAppear / 14f * 0.6f;
             }
             if (lkvpBuffs[i].Value < 180)
             {
                 int iFade = lkvpBuffs[i].Value % 20;
                 if (iFade < 10)
                 {
                     fBuffAlpha = (float)iFade / 10f;
                 }
                 else
                 {
                     fBuffAlpha = 1f - (float)(iFade - 10) / 10f;
                 }
                 fBuffAlpha = 0.2f + 0.8f * fBuffAlpha;
                 cmosos = Color.Goldenrod;
             }
             else if (lkvpBuffs[i].Value < 360)
             {
                 int iFade2 = lkvpBuffs[i].Value % 40;
                 if (iFade2 < 20)
                 {
                     fBuffAlpha = (float)iFade2 / 20f;
                 }
                 else
                 {
                     fBuffAlpha = 1f - (float)(iFade2 - 20) / 20f;
                 }
                 fBuffAlpha = 0.5f + 0.5f * fBuffAlpha;
             }
             Texture2D txBuffTexture = this.GetBuffTexture(lkvpBuffs[i].Key);
             if (txBuffTexture != null)
             {
                 spriteBatch.Draw(txBuffTexture, new Vector2((float)(158 + 20 * iLosooo), 63f), null, cmosos * fBuffAlpha, 0f, new Vector2(9f, 9f), fScalePlus, SpriteEffects.None, 0f);
                 spriteBatch.Draw(HudRenderComponent.txBufftimerFrame, new Vector2((float)(158 + 20 * iLosooo), 63f), null, Color.White * fBuffAlpha, 0f, new Vector2(9f, 9f), fScalePlus, SpriteEffects.None, 0f);
                 iLosooo++;
             }
         }
         this.lenLastFrameBuffs = lenThisFrameBuff;
         Level.WorldRegion enCurrentRegion = Program.GetTheGame().xLevelMaster.xCurrentLevel.enRegion;
         if (enCurrentRegion == Level.WorldRegion.FlyingFortress)
         {
             string sMos = "x";
             int iKeys;
             if (this.xView.xJournalInfo.denbyKeys.ContainsKey(enCurrentRegion))
             {
                 iKeys = (int)this.xView.xJournalInfo.denbyKeys[enCurrentRegion];
             }
             else
             {
                 iKeys = 0;
             }
             if (iKeys < 10)
             {
                 sMos += "0";
             }
             sMos += iKeys.ToString();
             spriteBatch.Draw(HudRenderComponent.txKey, this.HESTPOS_KB + new Vector2(101f, -1f), null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
             Program.GetTheGame()._RenderMaster_RenderTextWithOutline(HudRenderComponent.fontHPMP, sMos, this.HESTPOS_KB + new Vector2(103f, -8f) + new Vector2(8f, 7f), Vector2.Zero, 1f, Color.White, Color.Black * 0.35f);
         }
         if (!this.xView.xViewStats.bIsDead)
         {
             if (this.xView.xEquipment.xBufferWeapon != null)
             {
                 Texture2D txX = ItemCodex.GetItemDescription(this.xView.xEquipment.xBufferWeapon.enItemType).txDisplayImage;
                 spriteBatch.Draw(txX, this.HESTPOS_KB + new Vector2(29f, 19f), null, Color.White, 0f, Utility.Vector2_ToInts(new Vector2((float)txX.Width, (float)txX.Height) / 2f), 1f, SpriteEffects.None, 0f);
                 Vector2 v2Pos2 = this.HESTPOS_KB + new Vector2(15f, 5f);
                 string sKey = Program.GetTheGame().xInput_Game.Attack.ToString();
                 Vector2 v2KeyMidPos = v2Pos2 + new Vector2(5f, 27f);
                 int iKeyWidth = (int)HudRenderComponent.fontHPMP.MeasureString(sKey).X + 8;
                 Vector2 v2KeyPos = Utility.Vector2_ToInts(v2KeyMidPos + new Vector2((float)(-(float)iKeyWidth / 2), -6f));
                 spriteBatch.Draw(HudRenderComponent.txKeybindLeft, v2KeyPos, null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 if (iKeyWidth > 8)
                 {
                     spriteBatch.Draw(HudRenderComponent.txKeybindMid, v2KeyPos + new Vector2(4f, 0f), new Rectangle?(new Rectangle(0, 0, iKeyWidth - 8, 11)), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 }
                 spriteBatch.Draw(HudRenderComponent.txKeybindRight, v2KeyPos + new Vector2((float)(iKeyWidth - 4), 0f), null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 Program.GetTheGame()._RenderMaster_RenderTextWithOutline(HudRenderComponent.fontHPMP, sKey, v2KeyMidPos, Utility.Vector2_ToInts(HudRenderComponent.fontHPMP.MeasureString(sKey) / 2f), 1f, Color.White, Color.Black * 0.35f);
             }
             if (this.xView.xEquipment.xShield != null)
             {
                 Texture2D txX = ItemCodex.GetItemDescription(this.xView.xEquipment.xShield.enItemType).txDisplayImage;
                 float fShieldAlpha = 1f;
                 if (!this.xView.xEntity.xBaseStats.CanUseShield)
                 {
                     fShieldAlpha = 0.25f;
                 }
                 spriteBatch.Draw(txX, this.HESTPOS_KB + new Vector2(52f, 40f), null, Color.White * fShieldAlpha, 0f, Utility.Vector2_ToInts(new Vector2((float)txX.Width, (float)txX.Height) / 2f), 1f, SpriteEffects.None, 0f);
                 Vector2 v2Pos3 = this.HESTPOS_KB + new Vector2(38f, 26f);
                 string sKey2 = Program.GetTheGame().xInput_Game.Shield.ToString();
                 Vector2 v2KeyMidPos2 = v2Pos3 + new Vector2(5f, 27f);
                 int iKeyWidth2 = (int)HudRenderComponent.fontHPMP.MeasureString(sKey2).X + 8;
                 Vector2 v2KeyPos2 = Utility.Vector2_ToInts(v2KeyMidPos2 + new Vector2((float)(-(float)iKeyWidth2 / 2), -6f));
                 spriteBatch.Draw(HudRenderComponent.txKeybindLeft, v2KeyPos2, null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 if (iKeyWidth2 > 8)
                 {
                     spriteBatch.Draw(HudRenderComponent.txKeybindMid, v2KeyPos2 + new Vector2(4f, 0f), new Rectangle?(new Rectangle(0, 0, iKeyWidth2 - 8, 11)), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 }
                 spriteBatch.Draw(HudRenderComponent.txKeybindRight, v2KeyPos2 + new Vector2((float)(iKeyWidth2 - 4), 0f), null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 Program.GetTheGame()._RenderMaster_RenderTextWithOutline(HudRenderComponent.fontHPMP, sKey2, v2KeyMidPos2, Utility.Vector2_ToInts(HudRenderComponent.fontHPMP.MeasureString(sKey2) / 2f), 1f, Color.White, Color.Black * 0.35f);
             }
         }
         else
         {
             spriteBatch.Draw(HudRenderComponent.txGhostCry, this.HESTPOS_KB + new Vector2(29f, 19f), null, Color.White, 0f, Utility.Vector2_ToInts(new Vector2((float)HudRenderComponent.txGhostCry.Width, (float)HudRenderComponent.txGhostCry.Height) / 2f), 1f, SpriteEffects.None, 0f);
             spriteBatch.Draw(HudRenderComponent.txGhostAngry, this.HESTPOS_KB + new Vector2(52f, 40f), null, Color.White, 0f, Utility.Vector2_ToInts(new Vector2((float)HudRenderComponent.txGhostAngry.Width, (float)HudRenderComponent.txGhostAngry.Height) / 2f), 1f, SpriteEffects.None, 0f);
             Vector2 v2Pos4 = this.HESTPOS_KB + new Vector2(15f, 5f);
             string sKey3 = Program.GetTheGame().xInput_Game.Attack.ToString();
             Vector2 v2KeyMidPos3 = v2Pos4 + new Vector2(5f, 27f);
             int iKeyWidth3 = (int)HudRenderComponent.fontHPMP.MeasureString(sKey3).X + 8;
             Vector2 v2KeyPos3 = Utility.Vector2_ToInts(v2KeyMidPos3 + new Vector2((float)(-(float)iKeyWidth3 / 2), -6f));
             spriteBatch.Draw(HudRenderComponent.txKeybindLeft, v2KeyPos3, null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
             if (iKeyWidth3 > 8)
             {
                 spriteBatch.Draw(HudRenderComponent.txKeybindMid, v2KeyPos3 + new Vector2(4f, 0f), new Rectangle?(new Rectangle(0, 0, iKeyWidth3 - 8, 11)), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
             }
             spriteBatch.Draw(HudRenderComponent.txKeybindRight, v2KeyPos3 + new Vector2((float)(iKeyWidth3 - 4), 0f), null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
             Program.GetTheGame()._RenderMaster_RenderTextWithOutline(HudRenderComponent.fontHPMP, sKey3, v2KeyMidPos3, Utility.Vector2_ToInts(HudRenderComponent.fontHPMP.MeasureString(sKey3) / 2f), 1f, Color.White, Color.Black * 0.35f);
             v2Pos4 = this.HESTPOS_KB + new Vector2(38f, 26f);
             sKey3 = Program.GetTheGame().xInput_Game.Shield.ToString();
             v2KeyMidPos3 = v2Pos4 + new Vector2(5f, 27f);
             iKeyWidth3 = (int)HudRenderComponent.fontHPMP.MeasureString(sKey3).X + 8;
             v2KeyPos3 = Utility.Vector2_ToInts(v2KeyMidPos3 + new Vector2((float)(-(float)iKeyWidth3 / 2), -6f));
             spriteBatch.Draw(HudRenderComponent.txKeybindLeft, v2KeyPos3, null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
             if (iKeyWidth3 > 8)
             {
                 spriteBatch.Draw(HudRenderComponent.txKeybindMid, v2KeyPos3 + new Vector2(4f, 0f), new Rectangle?(new Rectangle(0, 0, iKeyWidth3 - 8, 11)), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
             }
             spriteBatch.Draw(HudRenderComponent.txKeybindRight, v2KeyPos3 + new Vector2((float)(iKeyWidth3 - 4), 0f), null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
             Program.GetTheGame()._RenderMaster_RenderTextWithOutline(HudRenderComponent.fontHPMP, sKey3, v2KeyMidPos3, Utility.Vector2_ToInts(HudRenderComponent.fontHPMP.MeasureString(sKey3) / 2f), 1f, Color.White, Color.Black * 0.35f);
         }
         if (!Program.GetTheGame().xInGameMenu.bInGameMenu && this.bRenderQuickslots)
         {
             if (!this.xView.xViewStats.bIsDead)
             {
                 List<Equipment.QuickSlot> lxFilledSlots = new List<Equipment.QuickSlot>();
                 List<string> lsFilledSlotText = new List<string>();
                 if (this.xView.xEquipment.xQuickSlot1.enType != Equipment.QuickSlot.Type.Null)
                 {
                     lxFilledSlots.Add(this.xView.xEquipment.xQuickSlot1);
                     lsFilledSlotText.Add(Program.GetTheGame().xInput_Game.Spell01.ToString());
                 }
                 if (this.xView.xEquipment.xQuickSlot2.enType != Equipment.QuickSlot.Type.Null)
                 {
                     lxFilledSlots.Add(this.xView.xEquipment.xQuickSlot2);
                     lsFilledSlotText.Add(Program.GetTheGame().xInput_Game.Spell02.ToString());
                 }
                 if (this.xView.xEquipment.xQuickSlot3.enType != Equipment.QuickSlot.Type.Null)
                 {
                     lxFilledSlots.Add(this.xView.xEquipment.xQuickSlot3);
                     lsFilledSlotText.Add(Program.GetTheGame().xInput_Game.Spell03.ToString());
                 }
                 if (this.xView.xEquipment.xQuickSlot4.enType != Equipment.QuickSlot.Type.Null)
                 {
                     lxFilledSlots.Add(this.xView.xEquipment.xQuickSlot4);
                     lsFilledSlotText.Add(Program.GetTheGame().xInput_Game.Spell04.ToString());
                 }
                 if (this.xView.xEquipment.xQuickSlot5.enType != Equipment.QuickSlot.Type.Null)
                 {
                     lxFilledSlots.Add(this.xView.xEquipment.xQuickSlot5);
                     lsFilledSlotText.Add(Program.GetTheGame().xInput_Game.Spell05.ToString());
                 }
                 if (this.xView.xEquipment.xQuickSlot6.enType != Equipment.QuickSlot.Type.Null)
                 {
                     lxFilledSlots.Add(this.xView.xEquipment.xQuickSlot6);
                     lsFilledSlotText.Add(Program.GetTheGame().xInput_Game.Spell06.ToString());
                 }
                 if (this.xView.xEquipment.xQuickSlot7.enType != Equipment.QuickSlot.Type.Null)
                 {
                     lxFilledSlots.Add(this.xView.xEquipment.xQuickSlot7);
                     lsFilledSlotText.Add(Program.GetTheGame().xInput_Game.Spell07.ToString());
                 }
                 if (this.xView.xEquipment.xQuickSlot8.enType != Equipment.QuickSlot.Type.Null)
                 {
                     lxFilledSlots.Add(this.xView.xEquipment.xQuickSlot8);
                     lsFilledSlotText.Add(Program.GetTheGame().xInput_Game.Spell08.ToString());
                 }
                 if (this.xView.xEquipment.xQuickSlot9.enType != Equipment.QuickSlot.Type.Null)
                 {
                     lxFilledSlots.Add(this.xView.xEquipment.xQuickSlot9);
                     lsFilledSlotText.Add(Program.GetTheGame().xInput_Game.Spell09.ToString());
                 }
                 if (this.xView.xEquipment.xQuickSlot10.enType != Equipment.QuickSlot.Type.Null)
                 {
                     lxFilledSlots.Add(this.xView.xEquipment.xQuickSlot10);
                     lsFilledSlotText.Add(Program.GetTheGame().xInput_Game.Spell10.ToString());
                 }
                 for (int j = 0; j < lxFilledSlots.Count; j++)
                 {
                     Vector2 v2Pos5 = new Vector2((float)(198 + 35 * j), 15f);
                     spriteBatch.Draw(HudRenderComponent.txQuickSlotCircle, v2Pos5, null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                     HudRenderComponent.RenderQuickSlot(spriteBatch, v2Pos5 + new Vector2(16f, 16f), lxFilledSlots[j], this.xView);
                     string sKey4 = lsFilledSlotText[j];
                     Vector2 v2KeyMidPos4 = v2Pos5 + new Vector2(5f, 27f);
                     int iKeyWidth4 = (int)HudRenderComponent.fontHPMP.MeasureString(sKey4).X + 8;
                     Vector2 v2KeyPos4 = Utility.Vector2_ToInts(v2KeyMidPos4 + new Vector2((float)(-(float)iKeyWidth4 / 2), -6f));
                     spriteBatch.Draw(HudRenderComponent.txKeybindLeft, v2KeyPos4, null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                     if (iKeyWidth4 > 8)
                     {
                         spriteBatch.Draw(HudRenderComponent.txKeybindMid, v2KeyPos4 + new Vector2(4f, 0f), new Rectangle?(new Rectangle(0, 0, iKeyWidth4 - 8, 11)), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                     }
                     spriteBatch.Draw(HudRenderComponent.txKeybindRight, v2KeyPos4 + new Vector2((float)(iKeyWidth4 - 4), 0f), null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                     Program.GetTheGame()._RenderMaster_RenderTextWithOutline(HudRenderComponent.fontHPMP, sKey4, v2KeyMidPos4, Utility.Vector2_ToInts(HudRenderComponent.fontHPMP.MeasureString(sKey4) / 2f), 1f, Color.White, Color.Black * 0.35f);
                 }
                 iKeyboardQuickslots = lsFilledSlotText.Count;
             }
             else
             {
                 new List<string>();
                 Vector2 v2Pos6 = new Vector2(198f, 15f);
                 spriteBatch.Draw(HudRenderComponent.txQuickSlotCircle, v2Pos6, null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 spriteBatch.Draw(HudRenderComponent.txGhostFlag, v2Pos6 + new Vector2(4f, 4f), null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 string sKey5 = Program.GetTheGame().xInput_Game.Spell01.ToString();
                 Vector2 v2KeyMidPos5 = v2Pos6 + new Vector2(26f, 28f);
                 int iKeyWidth5 = (int)HudRenderComponent.fontHPMP.MeasureString(sKey5).X + 8;
                 Vector2 v2KeyPos5 = Utility.Vector2_ToInts(v2KeyMidPos5 + new Vector2((float)(-(float)iKeyWidth5 / 2), -6f));
                 spriteBatch.Draw(HudRenderComponent.txKeybindLeft, v2KeyPos5, null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 if (iKeyWidth5 > 8)
                 {
                     spriteBatch.Draw(HudRenderComponent.txKeybindMid, v2KeyPos5 + new Vector2(4f, 0f), new Rectangle?(new Rectangle(0, 0, iKeyWidth5 - 8, 11)), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 }
                 spriteBatch.Draw(HudRenderComponent.txKeybindRight, v2KeyPos5 + new Vector2((float)(iKeyWidth5 - 4), 0f), null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 Program.GetTheGame()._RenderMaster_RenderTextWithOutline(HudRenderComponent.fontHPMP, sKey5, v2KeyMidPos5, Utility.Vector2_ToInts(HudRenderComponent.fontHPMP.MeasureString(sKey5) / 2f), 1f, Color.White, Color.Black * 0.35f);
                 Vector2 v2Pos7 = new Vector2(233f, 15f);
                 spriteBatch.Draw(HudRenderComponent.txQuickSlotCircle, v2Pos7, null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 spriteBatch.Draw(HudRenderComponent.txGhostShout, v2Pos7 + new Vector2(4f, 4f), null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 string sKey6 = Program.GetTheGame().xInput_Game.Spell02.ToString();
                 Vector2 v2KeyMidPos6 = v2Pos7 + new Vector2(26f, 28f);
                 int iKeyWidth6 = (int)HudRenderComponent.fontHPMP.MeasureString(sKey6).X + 8;
                 Vector2 v2KeyPos6 = Utility.Vector2_ToInts(v2KeyMidPos6 + new Vector2((float)(-(float)iKeyWidth6 / 2), -6f));
                 spriteBatch.Draw(HudRenderComponent.txKeybindLeft, v2KeyPos6, null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 if (iKeyWidth6 > 8)
                 {
                     spriteBatch.Draw(HudRenderComponent.txKeybindMid, v2KeyPos6 + new Vector2(4f, 0f), new Rectangle?(new Rectangle(0, 0, iKeyWidth6 - 8, 11)), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 }
                 spriteBatch.Draw(HudRenderComponent.txKeybindRight, v2KeyPos6 + new Vector2((float)(iKeyWidth6 - 4), 0f), null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 Program.GetTheGame()._RenderMaster_RenderTextWithOutline(HudRenderComponent.fontHPMP, sKey6, v2KeyMidPos6, Utility.Vector2_ToInts(HudRenderComponent.fontHPMP.MeasureString(sKey6) / 2f), 1f, Color.White, Color.Black * 0.35f);
             }
         }
     }
     else
     {
         if (Program.game.xStateMaster.enGameMode == StateMaster.GameModes.RogueLike)
         {
             v2ScoreTopLeft = new Vector2(17f, 76f);
             spriteBatch.Draw(HudRenderComponent.txRogueLike_ScoreBox_Box_Gamepad, v2ScoreTopLeft + new Vector2(0f, 8f), null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
         }
         Vector2 v2HPPos2 = new Vector2(65f, 19f);
         Vector2 v2MPPos2 = new Vector2(78f, 40f);
         float fOnCur2 = this.xView.xViewStats.iEXP;
         int iExpPixels2 = (int)(fOnCur2 / 10000f * 81f);
         spriteBatch.Draw(InGameMenu.txCharacterInfo_Exp1px, new Vector2(74f, 70f), new Rectangle?(new Rectangle(0, 0, iExpPixels2, 7)), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
         int iHPPixels2 = (int)((float)this.xView.xEntity.xBaseStats.iHP / (float)this.xView.xEntity.xBaseStats.iMaxHP * 119f);
         if (iHPPixels2 <= 10)
         {
             spriteBatch.Draw(HudRenderComponent.txHP10First, this.HESTPOS + v2HPPos2, new Rectangle?(new Rectangle(0, 0, iHPPixels2, 7)), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
         }
         else
         {
             spriteBatch.Draw(HudRenderComponent.txHP10First, this.HESTPOS + v2HPPos2, null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
             spriteBatch.Draw(HudRenderComponent.txHP1px, this.HESTPOS + v2HPPos2 + new Vector2(10f, 0f), new Rectangle?(new Rectangle(0, 0, iHPPixels2 - 10, 7)), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
         }
         string sHP2 = this.xView.xEntity.xBaseStats.iHP + "/" + this.xView.xEntity.xBaseStats.iMaxHP;
         Vector2 v2HPStringOffset2 = HudRenderComponent.fontHPMP.MeasureString(sHP2) / 2f;
         spriteBatch.DrawString(HudRenderComponent.fontHPMP, sHP2, this.HESTPOS + v2HPPos2 + new Vector2(57f, 4f) * 1f, Color.White, 0f, Utility.Vector2_ToInts(v2HPStringOffset2), 1f, SpriteEffects.None, 0f);
         int iSPPixels2 = (int)((float)this.xView.xEntity.xBaseStats.iEP / (float)this.xView.xEntity.xBaseStats.iMaxEP * 106f);
         spriteBatch.Draw(HudRenderComponent.txMP1px, this.HESTPOS + v2MPPos2, new Rectangle?(new Rectangle(0, 0, iSPPixels2, 7)), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
         string sMP2 = this.xView.xEntity.xBaseStats.iEP + "/" + this.xView.xEntity.xBaseStats.iMaxEP;
         Vector2 v2MPStringOffset2 = HudRenderComponent.fontHPMP.MeasureString(sMP2) / 2f;
         spriteBatch.DrawString(HudRenderComponent.fontHPMP, sMP2, this.HESTPOS + v2MPPos2 + new Vector2(59f, 4f) * 1f, Color.White, 0f, Utility.Vector2_ToInts(v2MPStringOffset2), 1f, SpriteEffects.None, 0f);
         spriteBatch.Draw(HudRenderComponent.txHest, this.HESTPOS, null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
         List<KeyValuePair<BaseStats.StatusEffectSource, int>> lkvpBuffs2 = this.xView.xEntity.xBaseStats.GetListOfActiveBuffs();
         List<BaseStats.StatusEffectSource> lenThisFrameBuff2 = new List<BaseStats.StatusEffectSource>();
         int iLosooo2 = 0;
         Color cmosos2 = Color.White;
         for (int k = 0; k < lkvpBuffs2.Count; k++)
         {
             float fBuffAlpha2 = 1f;
             cmosos2 = Color.White;
             lenThisFrameBuff2.Add(lkvpBuffs2[k].Key);
             if (!this.lenLastFrameBuffs.Contains(lkvpBuffs2[k].Key))
             {
                 this.SetBufftimerLastUpdate(lkvpBuffs2[k].Key);
             }
             int iAppear2 = this.GetBufftimeAppear(lkvpBuffs2[k].Key);
             float fScalePlus2 = 1f;
             if (iAppear2 > 0)
             {
                 fBuffAlpha2 = 1f - (float)iAppear2 / 14f;
                 fScalePlus2 = 1f + (float)iAppear2 / 14f * 0.6f;
             }
             if (lkvpBuffs2[k].Value < 180)
             {
                 int iFade3 = lkvpBuffs2[k].Value % 20;
                 if (iFade3 < 10)
                 {
                     fBuffAlpha2 = (float)iFade3 / 10f;
                 }
                 else
                 {
                     fBuffAlpha2 = 1f - (float)(iFade3 - 10) / 10f;
                 }
                 fBuffAlpha2 = 0.2f + 0.8f * fBuffAlpha2;
                 cmosos2 = Color.Goldenrod;
             }
             else if (lkvpBuffs2[k].Value < 360)
             {
                 int iFade4 = lkvpBuffs2[k].Value % 40;
                 if (iFade4 < 20)
                 {
                     fBuffAlpha2 = (float)iFade4 / 20f;
                 }
                 else
                 {
                     fBuffAlpha2 = 1f - (float)(iFade4 - 20) / 20f;
                 }
                 fBuffAlpha2 = 0.5f + 0.5f * fBuffAlpha2;
             }
             Texture2D txToUse = this.GetBuffTexture(lkvpBuffs2[k].Key);
             if (txToUse != null)
             {
                 Vector2 v2BufSource = new Vector2(170f, 73f);
                 spriteBatch.Draw(txToUse, v2BufSource + new Vector2((float)(20 * iLosooo2), 0f), null, cmosos2 * fBuffAlpha2, 0f, new Vector2(9f, 9f), fScalePlus2, SpriteEffects.None, 0f);
                 spriteBatch.Draw(HudRenderComponent.txBufftimerFrame, v2BufSource + new Vector2((float)(20 * iLosooo2), 0f), null, Color.White * fBuffAlpha2, 0f, new Vector2(9f, 9f), fScalePlus2, SpriteEffects.None, 0f);
                 iLosooo2++;
             }
         }
         this.lenLastFrameBuffs = lenThisFrameBuff2;
         Level.WorldRegion enCurrentRegion2 = Program.GetTheGame().xLevelMaster.xCurrentLevel.enRegion;
         if (enCurrentRegion2 == Level.WorldRegion.FlyingFortress)
         {
             string sMos2 = "x";
             int iKeys2;
             if (this.xView.xJournalInfo.denbyKeys.ContainsKey(enCurrentRegion2))
             {
                 iKeys2 = (int)this.xView.xJournalInfo.denbyKeys[enCurrentRegion2];
             }
             else
             {
                 iKeys2 = 0;
             }
             if (iKeys2 < 10)
             {
                 sMos2 += "0";
             }
             sMos2 += iKeys2.ToString();
             spriteBatch.Draw(HudRenderComponent.txKey, this.HESTPOS_KB + new Vector2(101f, -1f), null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
             Program.GetTheGame()._RenderMaster_RenderTextWithOutline(HudRenderComponent.fontHPMP, sMos2, this.HESTPOS_KB + new Vector2(103f, -8f) + new Vector2(8f, 7f), Vector2.Zero, 1f, Color.White, Color.Black * 0.35f);
         }
         if (this.xView.xViewStats.bIsDead)
         {
             spriteBatch.Draw(HudRenderComponent.txGhostCry, this.HESTPOS_KB + new Vector2(17f, 39f) + new Vector2(9f, 5f), null, Color.White, 0f, Utility.Vector2_ToInts(new Vector2((float)HudRenderComponent.txGhostCry.Width, (float)HudRenderComponent.txGhostCry.Height) / 2f), 1f, SpriteEffects.None, 0f);
             spriteBatch.Draw(HudRenderComponent.txGhostAngry, this.HESTPOS_KB + new Vector2(40f, 60f) + new Vector2(9f, 5f), null, Color.White, 0f, Utility.Vector2_ToInts(new Vector2((float)HudRenderComponent.txGhostAngry.Width, (float)HudRenderComponent.txGhostAngry.Height) / 2f), 1f, SpriteEffects.None, 0f);
             spriteBatch.Draw(HudRenderComponent.txGhostFlag, this.HESTPOS_KB + new Vector2(40f, 19f) + new Vector2(9f, 5f), null, Color.White, 0f, Utility.Vector2_ToInts(new Vector2((float)HudRenderComponent.txGhostFlag.Width, (float)HudRenderComponent.txGhostFlag.Height) / 2f), 1f, SpriteEffects.None, 0f);
             spriteBatch.Draw(HudRenderComponent.txGhostShout, this.HESTPOS_KB + new Vector2(63f, 40f) + new Vector2(9f, 5f), null, Color.White, 0f, Utility.Vector2_ToInts(new Vector2((float)HudRenderComponent.txGhostShout.Width, (float)HudRenderComponent.txGhostShout.Height) / 2f), 1f, SpriteEffects.None, 0f);
         }
         else if (this.xView.xInputHelper.L2.bDown && !Program.GetTheGame().xCutsceneMaster.bInCutscene && !Program.GetTheGame().xTextInputMaster.lxActiveInputs["ChatWindow"].bIsActive)
         {
             spriteBatch.Draw(InGameMenu.txWindow_HelpBarBot_Xbox_LT, new Vector2(8f, 10f), null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
             spriteBatch.Draw(InGameMenu.txWindow_HelpBarBot_Xbox_RT, new Vector2(76f, 10f), null, Color.White * 0.5f, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
             HudRenderComponent.RenderQuickSlot(spriteBatch, this.HESTPOS + new Vector2(17f, 39f), this.xView.xEquipment.xQuickSlot3, this.xView);
             HudRenderComponent.RenderQuickSlot(spriteBatch, this.HESTPOS + new Vector2(40f, 19f), this.xView.xEquipment.xQuickSlot5, this.xView);
             HudRenderComponent.RenderQuickSlot(spriteBatch, this.HESTPOS + new Vector2(63f, 40f), this.xView.xEquipment.xQuickSlot6, this.xView);
             HudRenderComponent.RenderQuickSlot(spriteBatch, this.HESTPOS + new Vector2(40f, 60f), this.xView.xEquipment.xQuickSlot4, this.xView);
         }
         else if (this.xView.xInputHelper.R2.bDown && !Program.GetTheGame().xCutsceneMaster.bInCutscene && !Program.GetTheGame().xTextInputMaster.lxActiveInputs["ChatWindow"].bIsActive)
         {
             spriteBatch.Draw(InGameMenu.txWindow_HelpBarBot_Xbox_LT, new Vector2(8f, 10f), null, Color.White * 0.5f, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
             spriteBatch.Draw(InGameMenu.txWindow_HelpBarBot_Xbox_RT, new Vector2(76f, 10f), null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
             HudRenderComponent.RenderQuickSlot(spriteBatch, this.HESTPOS + new Vector2(17f, 39f), this.xView.xEquipment.xQuickSlot7, this.xView);
             HudRenderComponent.RenderQuickSlot(spriteBatch, this.HESTPOS + new Vector2(40f, 19f), this.xView.xEquipment.xQuickSlot9, this.xView);
             HudRenderComponent.RenderQuickSlot(spriteBatch, this.HESTPOS + new Vector2(63f, 40f), this.xView.xEquipment.xQuickSlot10, this.xView);
             HudRenderComponent.RenderQuickSlot(spriteBatch, this.HESTPOS + new Vector2(40f, 60f), this.xView.xEquipment.xQuickSlot8, this.xView);
         }
         else
         {
             spriteBatch.Draw(InGameMenu.txWindow_HelpBarBot_Xbox_LT, new Vector2(8f, 10f), null, Color.White * 0.5f, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
             spriteBatch.Draw(InGameMenu.txWindow_HelpBarBot_Xbox_RT, new Vector2(76f, 10f), null, Color.White * 0.5f, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
             if (this.xView.xEquipment.xBufferWeapon != null)
             {
                 Texture2D txX2 = ItemCodex.GetItemDescription(this.xView.xEquipment.xBufferWeapon.enItemType).txDisplayImage;
                 spriteBatch.Draw(txX2, this.HESTPOS + new Vector2(17f, 39f), null, Color.White, 0f, Utility.Vector2_ToInts(new Vector2((float)txX2.Width, (float)txX2.Height) / 2f), 1f, SpriteEffects.None, 0f);
             }
             if (this.xView.xEquipment.xShield != null)
             {
                 Texture2D txX2 = ItemCodex.GetItemDescription(this.xView.xEquipment.xShield.enItemType).txDisplayImage;
                 spriteBatch.Draw(txX2, this.HESTPOS + new Vector2(40f, 61f), null, Color.White, 0f, Utility.Vector2_ToInts(new Vector2((float)txX2.Width, (float)txX2.Height) / 2f), 1f, SpriteEffects.None, 0f);
             }
             HudRenderComponent.RenderQuickSlot(spriteBatch, this.HESTPOS + new Vector2(40f, 19f), this.xView.xEquipment.xQuickSlot1, this.xView);
             HudRenderComponent.RenderQuickSlot(spriteBatch, this.HESTPOS + new Vector2(63f, 40f), this.xView.xEquipment.xQuickSlot2, this.xView);
         }
     }
     if (game.xStateMaster.enGameMode == StateMaster.GameModes.RogueLike)
     {
         int iScore = game.xGameSessionData.xRogueLikeSession.iScore;
         if (this.xView.xGUIStuff.iDisplayScore < iScore)
         {
             this.xView.xGUIStuff.iDisplayScore++;
             if (this.xView.xGUIStuff.iDisplayScore < iScore - 7)
             {
                 this.xView.xGUIStuff.iDisplayScore += 2;
             }
             if (this.xView.xGUIStuff.iDisplayScore < iScore - 30)
             {
                 this.xView.xGUIStuff.iDisplayScore += 3;
             }
             if (this.xView.xGUIStuff.iDisplayScore < iScore - 100)
             {
                 this.xView.xGUIStuff.iDisplayScore += 8;
             }
             if (this.xView.xGUIStuff.iDisplayScore < iScore - 1000)
             {
                 this.xView.xGUIStuff.iDisplayScore += 80;
             }
             if (this.xView.xGUIStuff.iDisplayScore < iScore - 10000)
             {
                 this.xView.xGUIStuff.iDisplayScore += (iScore - this.xView.xGUIStuff.iDisplayScore) / 10;
             }
         }
         if (game.xInput_Game.enControlMode == LocalInputHelper.ControlMode.Keyboard)
         {
             spriteBatch.Draw(HudRenderComponent.txRogueLike_ScoreBox_Box_Keyboard, v2ScoreTopLeft + new Vector2(7f, 6f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
         }
         string sScoreAsString = this.xView.xGUIStuff.iDisplayScore.ToString();
         sScoreAsString = sScoreAsString.PadLeft(9, '0');
         for (int l = 0; l < sScoreAsString.Length; l++)
         {
             switch (sScoreAsString[l])
             {
             case '0':
                 spriteBatch.Draw(HudRenderComponent.txRogueLike_ScoreBox_Score[0], v2ScoreTopLeft + new Vector2((float)(15 + 14 * l), 13f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 break;
             case '1':
                 spriteBatch.Draw(HudRenderComponent.txRogueLike_ScoreBox_Score[1], v2ScoreTopLeft + new Vector2((float)(15 + 14 * l), 13f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 break;
             case '2':
                 spriteBatch.Draw(HudRenderComponent.txRogueLike_ScoreBox_Score[2], v2ScoreTopLeft + new Vector2((float)(15 + 14 * l), 13f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 break;
             case '3':
                 spriteBatch.Draw(HudRenderComponent.txRogueLike_ScoreBox_Score[3], v2ScoreTopLeft + new Vector2((float)(15 + 14 * l), 13f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 break;
             case '4':
                 spriteBatch.Draw(HudRenderComponent.txRogueLike_ScoreBox_Score[4], v2ScoreTopLeft + new Vector2((float)(15 + 14 * l), 13f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 break;
             case '5':
                 spriteBatch.Draw(HudRenderComponent.txRogueLike_ScoreBox_Score[5], v2ScoreTopLeft + new Vector2((float)(15 + 14 * l), 13f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 break;
             case '6':
                 spriteBatch.Draw(HudRenderComponent.txRogueLike_ScoreBox_Score[6], v2ScoreTopLeft + new Vector2((float)(15 + 14 * l), 13f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 break;
             case '7':
                 spriteBatch.Draw(HudRenderComponent.txRogueLike_ScoreBox_Score[7], v2ScoreTopLeft + new Vector2((float)(15 + 14 * l), 13f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 break;
             case '8':
                 spriteBatch.Draw(HudRenderComponent.txRogueLike_ScoreBox_Score[8], v2ScoreTopLeft + new Vector2((float)(15 + 14 * l), 13f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 break;
             default:
                 spriteBatch.Draw(HudRenderComponent.txRogueLike_ScoreBox_Score[9], v2ScoreTopLeft + new Vector2((float)(15 + 14 * l), 13f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 break;
             }
         }
         if (game.xGameSessionData.xRogueLikeSession != null && game.xGameSessionData.xRogueLikeSession.xCurrentRoom != null && Program.game.xGameSessionData.xRogueLikeSession.xCurrentRoom.ShowChallengeTimer())
         {
             Vector2 v2TimerPos = new Vector2(256f, 311f);
             OpenGatesAtRoomClear xBag;
             if (game.xEntityMaster.dbyxBagmen.ContainsKey(0) && (xBag = (game.xEntityMaster.dbyxBagmen[0] as OpenGatesAtRoomClear)) != null && this.xView.xGUIStuff.iRoomClearCounter < 20)
             {
                 float fTimerAlpha = 1f;
                 if (this.xView.xGUIStuff.iRoomClearCounter > 0)
                 {
                     fTimerAlpha = 1f - (float)this.xView.xGUIStuff.iRoomClearCounter / 20f;
                 }
                 int iTime = game.xGameSessionData.xRogueLikeSession.xCurrentRoom.iActiveTimeInRoom;
                 int iTimeLeft = xBag.iParTime * 2 - iTime;
                 string asString = Utility.GetMinutesSecondsHundredsFromFrames(iTimeLeft);
                 asString = asString.Replace(":", "");
                 if (iTimeLeft >= 0 && !xBag.bFailed)
                 {
                     spriteBatch.Draw(RogueLikeUniqueResources.txRogueLike_ChallengeTimer, v2TimerPos, null, Color.White * this.fAlpha * fTimerAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                     int iLoL = (int)char.GetNumericValue(asString[0]);
                     spriteBatch.Draw(HudRenderComponent.txRogueLike_ScoreBox_Score[iLoL], v2TimerPos + new Vector2(14f, 14f), null, Color.White * this.fAlpha * fTimerAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                     iLoL = (int)char.GetNumericValue(asString[1]);
                     spriteBatch.Draw(HudRenderComponent.txRogueLike_ScoreBox_Score[iLoL], v2TimerPos + new Vector2(29f, 14f), null, Color.White * this.fAlpha * fTimerAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                     iLoL = (int)char.GetNumericValue(asString[2]);
                     spriteBatch.Draw(HudRenderComponent.txRogueLike_ScoreBox_Score[iLoL], v2TimerPos + new Vector2(50f, 14f), null, Color.White * this.fAlpha * fTimerAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                     iLoL = (int)char.GetNumericValue(asString[3]);
                     spriteBatch.Draw(HudRenderComponent.txRogueLike_ScoreBox_Score[iLoL], v2TimerPos + new Vector2(65f, 14f), null, Color.White * this.fAlpha * fTimerAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                     iLoL = (int)char.GetNumericValue(asString[4]);
                     spriteBatch.Draw(HudRenderComponent.txRogueLike_ScoreBox_Score[iLoL], v2TimerPos + new Vector2(86f, 14f), null, Color.White * this.fAlpha * fTimerAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                     iLoL = (int)char.GetNumericValue(asString[5]);
                     spriteBatch.Draw(HudRenderComponent.txRogueLike_ScoreBox_Score[iLoL], v2TimerPos + new Vector2(101f, 14f), null, Color.White * this.fAlpha * fTimerAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 }
             }
         }
         if (this.xView.xGUIStuff.iRoomClearCounter > 0)
         {
             Vector2 v2BoxCenterTarget = new Vector2(320f, 323f);
             Vector2 v2TextCenterTarget = new Vector2(319f, 298f);
             Texture2D txRoomClearText = RogueLikeUniqueResources.txRogueLike_RoomClear_Text;
             if (Program.game.xGameSessionData.xRogueLikeSession.xCurrentRoom.enRoomType == RogueLikeMode.Room.RoomTypes.Challenge)
             {
                 txRoomClearText = RogueLikeUniqueResources.txRogueLike_RoomClear_Text_Challenge;
                 v2TextCenterTarget.X -= 0f;
             }
             int iStartPause = 20;
             int iClashAt = 20 + iStartPause;
             int iEndFlash = 60 + iStartPause;
             int iDisappearStartAt = 135 + iStartPause;
             int iGoneAt = 180 + iStartPause;
             int iCount = this.xView.xGUIStuff.iRoomClearCounter;
             float fRoomClearAlpha = 1f;
             if (iCount > iDisappearStartAt)
             {
                 fRoomClearAlpha = 1f - (float)(iCount - iDisappearStartAt) / (float)(iGoneAt - iDisappearStartAt);
             }
             if (iCount >= iStartPause)
             {
                 if (iCount < iClashAt)
                 {
                     float fAmount = (float)(iCount - iStartPause) / (float)(iClashAt - iStartPause);
                     spriteBatch.Draw(RogueLikeUniqueResources.txRogueLike_RoomClear_Box, Vector2.Lerp(v2BoxCenterTarget + new Vector2(0f, 400f), v2BoxCenterTarget, fAmount), null, Color.White * this.fAlpha * fRoomClearAlpha, 0f, Utility.PointToVector2(RogueLikeUniqueResources.txRogueLike_RoomClear_Box), 1f, SpriteEffects.None, 0f);
                     spriteBatch.Draw(txRoomClearText, Vector2.Lerp(v2TextCenterTarget - new Vector2(0f, 400f), v2TextCenterTarget, fAmount), null, Color.White * this.fAlpha * fRoomClearAlpha, 0f, Utility.PointToVector2(txRoomClearText), 1f, SpriteEffects.None, 0f);
                 }
                 else
                 {
                     spriteBatch.Draw(RogueLikeUniqueResources.txRogueLike_RoomClear_Box, v2BoxCenterTarget, null, Color.White * this.fAlpha * fRoomClearAlpha, 0f, Utility.PointToVector2(RogueLikeUniqueResources.txRogueLike_RoomClear_Box), 1f, SpriteEffects.None, 0f);
                     spriteBatch.Draw(txRoomClearText, v2TextCenterTarget, null, Color.White * this.fAlpha * fRoomClearAlpha, 0f, Utility.PointToVector2(txRoomClearText), 1f, SpriteEffects.None, 0f);
                     SpriteFont fontTime = InGameMenu.fontItemSorting;
                     string sTime = Utility.GetMinutesSecondsHundredsFromFrames(this.xView.xGUIStuff.xRoomCleared.iActiveTimeInRoom);
                     Program.GetTheGame()._RenderMaster_RenderTextWithOutline(fontTime, sTime, v2BoxCenterTarget + new Vector2(-18f, -7f), Vector2.Zero, 1f, Color.White * this.fAlpha * fRoomClearAlpha, Color.Black * this.fAlpha * 0.3f * fRoomClearAlpha);
                     Texture2D txGrade = ChallengeResultsRenderComponent.GradeToSmallTexture(this.xView.xGUIStuff.xRoomCleared.enRoomGrade);
                     spriteBatch.Draw(txGrade, v2BoxCenterTarget + new Vector2(81f, 1f), null, Color.White * this.fAlpha * fRoomClearAlpha, 0f, Utility.PointToVector2(txGrade), base.fScale, SpriteEffects.None, 0f);
                 }
             }
             if (iCount >= iClashAt && iCount < iEndFlash)
             {
                 float fWhiteAlpha = 1f - (float)(iCount - iClashAt) / (float)(iEndFlash - iClashAt);
                 float fWhiteScale = 1f + (float)(iCount - iClashAt) / (float)(iEndFlash - iClashAt) * 0.5f;
                 spriteBatch.End();
                 spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, DepthStencilState.Default, null, Program.GetTheGame().dsxEffects["ShieldFlash"].xEffect);
                 spriteBatch.Draw(RogueLikeUniqueResources.txRogueLike_RoomClear_Box, v2BoxCenterTarget, null, Color.White * fWhiteAlpha, 0f, Utility.PointToVector2(RogueLikeUniqueResources.txRogueLike_RoomClear_Box), fWhiteScale, SpriteEffects.None, 0f);
                 spriteBatch.Draw(txRoomClearText, v2TextCenterTarget, null, Color.White * fWhiteAlpha, 0f, Utility.PointToVector2(txRoomClearText), fWhiteScale, SpriteEffects.None, 0f);
                 spriteBatch.End();
                 spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, DepthStencilState.Default, null);
             }
         }
         Vector2 v2ScoreDisplayOffset = Vector2.Zero;
         if (Program.GetTheGame().xInput_Game.enControlMode != LocalInputHelper.ControlMode.Keyboard)
         {
             v2ScoreDisplayOffset = new Vector2(0f, 10f);
         }
         int m = 0;
         while (m < this.xView.xGUIStuff.lxScoreDisplayPairs.Count && m < 3)
         {
             float fAlphaMasa = 1f;
             this.xView.xGUIStuff.lxScoreDisplayPairs[m].iFramesExisted++;
             if (this.xView.xGUIStuff.lxScoreDisplayPairs[m].iFramesExisted == 1)
             {
                 this.xView.xGUIStuff.lxScoreDisplayPairs[m].fCurrentHeight = (float)(110 + 26 * m);
             }
             if (this.xView.xGUIStuff.lxScoreDisplayPairs.Count > 3 && m < this.xView.xGUIStuff.lxScoreDisplayPairs.Count - 3)
             {
                 this.xView.xGUIStuff.lxScoreDisplayPairs[m].iFramesExisted++;
             }
             this.xView.xGUIStuff.lxScoreDisplayPairs[m].fTargetHeight = (float)(110 + 26 * m);
             if (this.xView.xGUIStuff.lxScoreDisplayPairs[m].iFramesExisted > 95 && m == 0)
             {
                 this.xView.xGUIStuff.lxScoreDisplayPairs[m].fTargetHeight = 85f;
             }
             if (this.xView.xGUIStuff.lxScoreDisplayPairs[m].iFramesExisted < 30)
             {
                 fAlphaMasa = (float)this.xView.xGUIStuff.lxScoreDisplayPairs[m].iFramesExisted / 30f;
             }
             else if (this.xView.xGUIStuff.lxScoreDisplayPairs[m].iFramesExisted > 100)
             {
                 fAlphaMasa = (float)(110 - this.xView.xGUIStuff.lxScoreDisplayPairs[m].iFramesExisted) / 10f;
             }
             if (this.xView.xGUIStuff.lxScoreDisplayPairs[m].fTargetHeight > this.xView.xGUIStuff.lxScoreDisplayPairs[m].fCurrentHeight)
             {
                 this.xView.xGUIStuff.lxScoreDisplayPairs[m].fCurrentHeight += 2f;
             }
             else if (this.xView.xGUIStuff.lxScoreDisplayPairs[m].fTargetHeight < this.xView.xGUIStuff.lxScoreDisplayPairs[m].fCurrentHeight)
             {
                 this.xView.xGUIStuff.lxScoreDisplayPairs[m].fCurrentHeight -= 2f;
             }
             if (this.xView.xGUIStuff.lxScoreDisplayPairs[m].iFramesExisted > 110)
             {
                 this.xView.xGUIStuff.lxScoreDisplayPairs.RemoveAt(m--);
             }
             else
             {
                 int iStartPenalty = 70;
                 Vector2 v2TargetPosScore = new Vector2((float)(60 + iStartPenalty), this.xView.xGUIStuff.lxScoreDisplayPairs[m].fCurrentHeight);
                 Vector2 v2TargetPosText = Vector2.Zero;
                 int iTextReadyFrame = 10;
                 int iScoreStartFrame = 15;
                 int iScoreReadyFrame = 25;
                 Texture2D txText = RogueLikeUniqueResources.txRogueLike_ScoreMini_Kill;
                 Texture2D[] atxNumberStyle = RogueLikeUniqueResources.txRogueLike_ScoreMini_OrangeScore;
                 if (this.xView.xGUIStuff.lxScoreDisplayPairs[m].sType == "Kill")
                 {
                     v2TargetPosText = v2TargetPosScore - new Vector2(16f, 7f);
                     txText = RogueLikeUniqueResources.txRogueLike_ScoreMini_Kill;
                     atxNumberStyle = RogueLikeUniqueResources.txRogueLike_ScoreMini_OrangeScore;
                 }
                 else if (this.xView.xGUIStuff.lxScoreDisplayPairs[m].sType == "Room Clear")
                 {
                     v2TargetPosText = v2TargetPosScore - new Vector2(39f, 7f);
                     txText = RogueLikeUniqueResources.txRogueLike_ScoreMini_RoomClear;
                     atxNumberStyle = RogueLikeUniqueResources.txRogueLike_ScoreMini_BlueScore;
                 }
                 else if (this.xView.xGUIStuff.lxScoreDisplayPairs[m].sType == "Item")
                 {
                     v2TargetPosText = v2TargetPosScore - new Vector2(16f, 7f);
                     txText = RogueLikeUniqueResources.txRogueLike_ScoreMini_Item;
                     atxNumberStyle = RogueLikeUniqueResources.txRogueLike_ScoreMini_GreenScore;
                 }
                 else if (this.xView.xGUIStuff.lxScoreDisplayPairs[m].sType == "Card")
                 {
                     v2TargetPosText = v2TargetPosScore - new Vector2(19f, 7f);
                     txText = RogueLikeUniqueResources.txRogueLike_ScoreMini_Card;
                     atxNumberStyle = RogueLikeUniqueResources.txRogueLike_ScoreMini_PinkScore;
                 }
                 else if (this.xView.xGUIStuff.lxScoreDisplayPairs[m].sType == "Boss Defeated")
                 {
                     v2TargetPosText = v2TargetPosScore - new Vector2(47f, 7f);
                     txText = RogueLikeUniqueResources.txRogueLike_ScoreMini_BossDefeated;
                     atxNumberStyle = RogueLikeUniqueResources.txRogueLike_ScoreMini_OrangeScore;
                 }
                 else if (this.xView.xGUIStuff.lxScoreDisplayPairs[m].sType == "Challenge")
                 {
                     v2TargetPosText = v2TargetPosScore - new Vector2(36f, 7f);
                     txText = RogueLikeUniqueResources.txRogueLike_ScoreMini_Challenge;
                     atxNumberStyle = RogueLikeUniqueResources.txRogueLike_ScoreMini_BlueScore;
                 }
                 else if (this.xView.xGUIStuff.lxScoreDisplayPairs[m].sType == "All Clear")
                 {
                     v2TargetPosText = v2TargetPosScore - new Vector2(33f, 7f);
                     txText = RogueLikeUniqueResources.txRogueLike_ScoreMini_AllClear;
                     atxNumberStyle = RogueLikeUniqueResources.txRogueLike_ScoreMini_GreenScore;
                 }
                 else if (this.xView.xGUIStuff.lxScoreDisplayPairs[m].sType == "RankC")
                 {
                     v2TargetPosText = v2TargetPosScore - new Vector2(24f, 7f);
                     txText = RogueLikeUniqueResources.txRogueLike_ScoreMini_RankC;
                     atxNumberStyle = RogueLikeUniqueResources.txRogueLike_ScoreMini_BlueScore;
                 }
                 else if (this.xView.xGUIStuff.lxScoreDisplayPairs[m].sType == "RankB")
                 {
                     v2TargetPosText = v2TargetPosScore - new Vector2(24f, 7f);
                     txText = RogueLikeUniqueResources.txRogueLike_ScoreMini_RankB;
                     atxNumberStyle = RogueLikeUniqueResources.txRogueLike_ScoreMini_GreenScore;
                 }
                 else if (this.xView.xGUIStuff.lxScoreDisplayPairs[m].sType == "RankA")
                 {
                     v2TargetPosText = v2TargetPosScore - new Vector2(24f, 7f);
                     txText = RogueLikeUniqueResources.txRogueLike_ScoreMini_RankA;
                     atxNumberStyle = RogueLikeUniqueResources.txRogueLike_ScoreMini_PinkScore;
                 }
                 else if (this.xView.xGUIStuff.lxScoreDisplayPairs[m].sType == "RankS")
                 {
                     v2TargetPosText = v2TargetPosScore - new Vector2(24f, 7f);
                     txText = RogueLikeUniqueResources.txRogueLike_ScoreMini_RankS;
                     atxNumberStyle = RogueLikeUniqueResources.txRogueLike_ScoreMini_OrangeScore;
                 }
                 float fTextProgress = 1f;
                 float fScoreProgress = 1f;
                 if (this.xView.xGUIStuff.lxScoreDisplayPairs[m].iFramesExisted < iTextReadyFrame)
                 {
                     fTextProgress = (float)this.xView.xGUIStuff.lxScoreDisplayPairs[m].iFramesExisted / (float)iTextReadyFrame;
                 }
                 if (this.xView.xGUIStuff.lxScoreDisplayPairs[m].iFramesExisted >= iScoreStartFrame && this.xView.xGUIStuff.lxScoreDisplayPairs[m].iFramesExisted < iScoreReadyFrame)
                 {
                     fScoreProgress = (float)(this.xView.xGUIStuff.lxScoreDisplayPairs[m].iFramesExisted - iScoreStartFrame) / (float)(iScoreReadyFrame - iScoreStartFrame);
                 }
                 Vector2 v2PosScore = new Vector2((float)(-(float)iStartPenalty + (int)(v2TargetPosScore.X * fScoreProgress)), v2TargetPosScore.Y) * 1f;
                 Vector2 v2PosText = new Vector2((float)(-(float)iStartPenalty + (int)(v2TargetPosText.X * fTextProgress)), v2TargetPosText.Y) * 1f;
                 spriteBatch.Draw(txText, v2PosText + v2ScoreDisplayOffset, null, Color.White * fAlphaMasa, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 if (this.xView.xGUIStuff.lxScoreDisplayPairs[m].iFramesExisted > iScoreStartFrame)
                 {
                     this.RenderMiniScore(spriteBatch, atxNumberStyle, this.xView.xGUIStuff.lxScoreDisplayPairs[m].iScore, v2PosScore + v2ScoreDisplayOffset, fAlphaMasa);
                 }
             }
             m++;
         }
     }
     int iGoldAdd = 0;
     if (this.xView.xGUIStuff.iTimerOfGold > 0)
     {
         float fAlpha = 1f;
         if (this.xView.xGUIStuff.iTimerOfGold < 30)
         {
             fAlpha = (float)this.xView.xGUIStuff.iTimerOfGold / 30f;
         }
         else if (this.xView.xGUIStuff.iTimerOfGold > this.xView.xGUIStuff.iTimerOfGoldSetTo - 30)
         {
             fAlpha = (float)(this.xView.xGUIStuff.iTimerOfGoldSetTo - this.xView.xGUIStuff.iTimerOfGold) / 30f;
         }
         int iMoney = this.xView.xInventory.GetMoney();
         if (this.xView.xGUIStuff.iDisplayGold < iMoney)
         {
             this.xView.xGUIStuff.iDisplayGold++;
             if (this.xView.xGUIStuff.iDisplayGold < iMoney - 7)
             {
                 this.xView.xGUIStuff.iDisplayGold += 2;
             }
             if (this.xView.xGUIStuff.iDisplayGold < iMoney - 30)
             {
                 this.xView.xGUIStuff.iDisplayGold += 3;
             }
             if (this.xView.xGUIStuff.iDisplayGold < iMoney - 100)
             {
                 this.xView.xGUIStuff.iDisplayGold += 8;
             }
             if (this.xView.xGUIStuff.iDisplayGold < iMoney - 1000)
             {
                 this.xView.xGUIStuff.iDisplayGold += 50;
             }
         }
         else if (this.xView.xGUIStuff.iDisplayGold > iMoney)
         {
             this.xView.xGUIStuff.iDisplayGold--;
             if (this.xView.xGUIStuff.iDisplayGold > iMoney + 7)
             {
                 this.xView.xGUIStuff.iDisplayGold -= 2;
             }
             if (this.xView.xGUIStuff.iDisplayGold > iMoney + 30)
             {
                 this.xView.xGUIStuff.iDisplayGold -= 3;
             }
             if (this.xView.xGUIStuff.iDisplayGold > iMoney + 100)
             {
                 this.xView.xGUIStuff.iDisplayGold -= 8;
             }
             if (this.xView.xGUIStuff.iDisplayGold > iMoney + 1000)
             {
                 this.xView.xGUIStuff.iDisplayGold -= 50;
             }
         }
         this.xView.xGUIStuff.iTimerOfGold--;
         iGoldAdd = 22;
         Texture2D txLeft = HudRenderComponent.txGoldPickupLeft;
         Texture2D txMid = HudRenderComponent.txItemPickupGoodMid;
         Texture2D txRight = HudRenderComponent.txItemPickupGoodRight;
         Vector2 v2Pos8 = new Vector2(25f, 338f);
         string sGoldAmount = this.xView.xGUIStuff.iDisplayGold.ToString();
         int iTextLength = (int)HudRenderComponent.fontItemPickup.MeasureString(sGoldAmount).X + 10;
         v2Pos8.X -= 5f;
         txLeft = HudRenderComponent.txGoldPickupLeft;
         txMid = HudRenderComponent.txItemPickupGoodMid;
         txRight = HudRenderComponent.txItemPickupGoodRight;
         spriteBatch.Draw(txLeft, v2Pos8, null, Color.White * fAlpha, 0f, new Vector2(0f, 5f), 1f, SpriteEffects.None, 0f);
         spriteBatch.Draw(txMid, v2Pos8 + new Vector2((float)txLeft.Width, 0f), new Rectangle?(new Rectangle(0, 0, iTextLength, 17)), Color.White * fAlpha, 0f, new Vector2(0f, 4f), new Vector2(1f, 1f), SpriteEffects.None, 0f);
         spriteBatch.Draw(txRight, v2Pos8 + new Vector2((float)(txLeft.Width + iTextLength), 0f), null, Color.White * fAlpha, 0f, new Vector2(0f, 4f), 1f, SpriteEffects.None, 0f);
         spriteBatch.DrawString(HudRenderComponent.fontItemPickup, sGoldAmount, v2Pos8 + new Vector2((float)(txLeft.Width + 5), -2f), Color.White * fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
     }
     int n = 0;
     while (n < this.xView.xGUIStuff.lxPickedUpItems.Count && n < 3)
     {
         float fAlpha2 = 1f;
         this.xView.xGUIStuff.lxPickedUpItems[n].iFramesExisted++;
         if (this.xView.xGUIStuff.lxPickedUpItems[n].iFramesExisted == 1)
         {
             this.xView.xGUIStuff.lxPickedUpItems[n].fCurrentHeight = (float)(338 - 36 * n);
         }
         this.xView.xGUIStuff.lxPickedUpItems[n].fTargetHeight = (float)(338 - 36 * n - iGoldAdd);
         if (this.xView.xGUIStuff.lxPickedUpItems[n].fTargetHeight > this.xView.xGUIStuff.lxPickedUpItems[n].fCurrentHeight)
         {
             this.xView.xGUIStuff.lxPickedUpItems[n].fCurrentHeight += 2f;
         }
         else if (this.xView.xGUIStuff.lxPickedUpItems[n].fTargetHeight < this.xView.xGUIStuff.lxPickedUpItems[n].fCurrentHeight)
         {
             this.xView.xGUIStuff.lxPickedUpItems[n].fCurrentHeight -= 2f;
         }
         if (this.xView.xGUIStuff.lxPickedUpItems[n].iFramesExisted < 30)
         {
             fAlpha2 = (float)this.xView.xGUIStuff.lxPickedUpItems[n].iFramesExisted / 30f;
         }
         else if (this.xView.xGUIStuff.lxPickedUpItems[n].iFramesExisted > 180)
         {
             fAlpha2 = (float)(210 - this.xView.xGUIStuff.lxPickedUpItems[n].iFramesExisted) / 30f;
         }
         if (this.xView.xGUIStuff.lxPickedUpItems[n].iFramesExisted > 210)
         {
             this.xView.xGUIStuff.lxPickedUpItems.RemoveAt(n--);
         }
         else
         {
             Vector2 v2Pos9 = new Vector2(15f, this.xView.xGUIStuff.lxPickedUpItems[n].fCurrentHeight) * 1f;
             string sAmount = "";
             if (this.xView.xGUIStuff.lxPickedUpItems[n].iAmount > 1)
             {
                 sAmount = " (x" + this.xView.xGUIStuff.lxPickedUpItems[n].iAmount + ")";
             }
             int iTextLength2 = (int)HudRenderComponent.fontItemPickup.MeasureString(this.xView.xGUIStuff.lxPickedUpItems[n].sName + sAmount).X;
             iTextLength2 += 10;
             Texture2D txLeft2 = HudRenderComponent.txItemPickupBasicLeft;
             Texture2D txMid2 = HudRenderComponent.txItemPickupBasicMid;
             Texture2D txRight2 = HudRenderComponent.txItemPickupBasicRight;
             if (this.xView.xGUIStuff.lxPickedUpItems[n].iFancyness == 1)
             {
                 spriteBatch.Draw(txLeft2, v2Pos9, null, Color.White * fAlpha2, 0f, new Vector2(0f, 17f), 1f, SpriteEffects.None, 0f);
                 spriteBatch.Draw(txMid2, v2Pos9 + new Vector2((float)txLeft2.Width, 0f), new Rectangle?(new Rectangle(0, 0, iTextLength2, 15)), Color.White * fAlpha2, 0f, new Vector2(0f, 9f), new Vector2(1f, 1f), SpriteEffects.None, 0f);
                 spriteBatch.Draw(txRight2, v2Pos9 + new Vector2((float)(txLeft2.Width + iTextLength2), 0f), null, Color.White * fAlpha2, 0f, new Vector2(0f, 9f), 1f, SpriteEffects.None, 0f);
                 spriteBatch.DrawString(HudRenderComponent.fontItemPickup, this.xView.xGUIStuff.lxPickedUpItems[n].sName + sAmount, v2Pos9 + new Vector2((float)(txLeft2.Width + 5), -9f), Color.White * fAlpha2, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 spriteBatch.Draw(this.xView.xGUIStuff.lxPickedUpItems[n].txDropIcon, v2Pos9 + new Vector2(15f, -1f) * 1f, null, Color.White * fAlpha2, 0f, Utility.Vector2_ToInts(new Vector2((float)this.xView.xGUIStuff.lxPickedUpItems[n].txDropIcon.Width, (float)this.xView.xGUIStuff.lxPickedUpItems[n].txDropIcon.Height) / 2f), 1f, SpriteEffects.None, 0f);
             }
             else if (this.xView.xGUIStuff.lxPickedUpItems[n].iFancyness == 2)
             {
                 v2Pos9.X -= 5f;
                 txLeft2 = HudRenderComponent.txItemPickupGoodLeft;
                 txMid2 = HudRenderComponent.txItemPickupGoodMid;
                 txRight2 = HudRenderComponent.txItemPickupGoodRight;
                 spriteBatch.Draw(txLeft2, v2Pos9, null, Color.White * fAlpha2, 0f, new Vector2(0f, 19f), 1f, SpriteEffects.None, 0f);
                 spriteBatch.Draw(txMid2, v2Pos9 + new Vector2((float)txLeft2.Width, 0f), new Rectangle?(new Rectangle(0, 0, iTextLength2, 17)), Color.White * fAlpha2, 0f, new Vector2(0f, 9f), new Vector2(1f, 1f), SpriteEffects.None, 0f);
                 spriteBatch.Draw(txRight2, v2Pos9 + new Vector2((float)(txLeft2.Width + iTextLength2), 0f), null, Color.White * fAlpha2, 0f, new Vector2(0f, 9f), 1f, SpriteEffects.None, 0f);
                 spriteBatch.DrawString(HudRenderComponent.fontItemPickup, this.xView.xGUIStuff.lxPickedUpItems[n].sName + sAmount, v2Pos9 + new Vector2((float)(txLeft2.Width + 5), -7f), Color.White * fAlpha2, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 spriteBatch.Draw(this.xView.xGUIStuff.lxPickedUpItems[n].txDropIcon, v2Pos9 + new Vector2(18f, -1f), null, Color.White * fAlpha2, 0f, Utility.Vector2_ToInts(new Vector2((float)this.xView.xGUIStuff.lxPickedUpItems[n].txDropIcon.Width, (float)this.xView.xGUIStuff.lxPickedUpItems[n].txDropIcon.Height) / 2f), 1f, SpriteEffects.None, 0f);
             }
             else if (this.xView.xGUIStuff.lxPickedUpItems[n].iFancyness == 3)
             {
                 v2Pos9.X -= 5f;
                 txLeft2 = HudRenderComponent.txItemPickupLegendaryLeft;
                 txMid2 = HudRenderComponent.txItemPickupLegendaryMid;
                 txRight2 = HudRenderComponent.txItemPickupLegendaryRight;
                 spriteBatch.Draw(txLeft2, v2Pos9, null, Color.White * fAlpha2, 0f, new Vector2(0f, 22f), 1f, SpriteEffects.None, 0f);
                 spriteBatch.Draw(txMid2, v2Pos9 + new Vector2((float)txLeft2.Width, 0f), new Rectangle?(new Rectangle(0, 0, iTextLength2, 17)), Color.White * fAlpha2, 0f, new Vector2(0f, 9f), new Vector2(1f, 1f), SpriteEffects.None, 0f);
                 spriteBatch.Draw(txRight2, v2Pos9 + new Vector2((float)(txLeft2.Width + iTextLength2), 0f), null, Color.White * fAlpha2, 0f, new Vector2(0f, 9f), 1f, SpriteEffects.None, 0f);
                 spriteBatch.DrawString(HudRenderComponent.fontItemPickup, this.xView.xGUIStuff.lxPickedUpItems[n].sName + sAmount, v2Pos9 + new Vector2((float)(txLeft2.Width + 5), -7f), Color.White * fAlpha2, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                 spriteBatch.Draw(this.xView.xGUIStuff.lxPickedUpItems[n].txDropIcon, v2Pos9 + new Vector2(21f, 0f), null, Color.White * fAlpha2, 0f, Utility.Vector2_ToInts(new Vector2((float)this.xView.xGUIStuff.lxPickedUpItems[n].txDropIcon.Width, (float)this.xView.xGUIStuff.lxPickedUpItems[n].txDropIcon.Height) / 2f), 1f, SpriteEffects.None, 0f);
             }
         }
         n++;
     }
     if (this.xView.xGUIStuff.xLastMonsterHit.iDisplayCycle > 0)
     {
         float fAlpha3 = 1f;
         this.xView.xGUIStuff.xLastMonsterHit.iDisplayCycle++;
         if (this.xView.xGUIStuff.xLastMonsterHit.iDisplayCycle < 10)
         {
             fAlpha3 = (float)this.xView.xGUIStuff.xLastMonsterHit.iDisplayCycle / 10f;
         }
         else if (this.xView.xGUIStuff.xLastMonsterHit.iDisplayCycle > 130)
         {
             fAlpha3 = (float)(150 - this.xView.xGUIStuff.xLastMonsterHit.iDisplayCycle) / 20f;
         }
         if (this.xView.xGUIStuff.xLastMonsterHit.iDisplayCycle > 150)
         {
             this.xView.xGUIStuff.xLastMonsterHit.iDisplayCycle = 0;
         }
         Vector2 v2Pos10 = new Vector2(620f, 339f);
         int iTextLength3 = (int)HudRenderComponent.fontItemPickup.MeasureString(this.xView.xGUIStuff.xLastMonsterHit.sName).X;
         iTextLength3 += 10;
         float fTrueHP = (float)this.xView.xGUIStuff.xLastMonsterHit.xEnemy.xBaseStats.iHP / (float)this.xView.xGUIStuff.xLastMonsterHit.xEnemy.xBaseStats.iMaxHP;
         if (this.xView.xGUIStuff.xLastMonsterHit.fHPPercent > fTrueHP)
         {
             this.xView.xGUIStuff.xLastMonsterHit.fHPPercent -= 0.02f;
         }
         if (this.xView.xGUIStuff.xLastMonsterHit.fHPPercent < 0f)
         {
             this.xView.xGUIStuff.xLastMonsterHit.fHPPercent = 0f;
         }
         Vector2 v2HPStartPos = v2Pos10 + new Vector2((float)(-(float)HudRenderComponent.txMonsterNameRight.Width - iTextLength3 - 4), -3f);
         int iMaxHPRenderLength = iTextLength3 + 8;
         int iHPRenderLength = (int)(this.xView.xGUIStuff.xLastMonsterHit.fHPPercent * (float)iMaxHPRenderLength);
         spriteBatch.Draw(RenderMaster.txNoTex, new Rectangle((int)v2HPStartPos.X, (int)v2HPStartPos.Y, iMaxHPRenderLength, 9), new Color(47, 15, 12) * fAlpha3);
         spriteBatch.Draw(RenderMaster.txNoTex, new Rectangle((int)v2HPStartPos.X, (int)v2HPStartPos.Y, iHPRenderLength, 9), Color.DarkRed * fAlpha3);
         spriteBatch.Draw(HudRenderComponent.txMonsterNameRight, v2Pos10, null, Color.White * fAlpha3, 0f, new Vector2((float)HudRenderComponent.txMonsterNameRight.Width, 12f), 1f, SpriteEffects.None, 0f);
         spriteBatch.Draw(HudRenderComponent.txMonsterNameMid, v2Pos10 - new Vector2((float)HudRenderComponent.txMonsterNameRight.Width, 0f), new Rectangle?(new Rectangle(0, 0, iTextLength3, 17)), Color.White * fAlpha3, 0f, new Vector2((float)iTextLength3, 7f), new Vector2(1f, 1f), SpriteEffects.None, 0f);
         spriteBatch.Draw(HudRenderComponent.txMonsterNameLeft, v2Pos10 - new Vector2((float)(HudRenderComponent.txMonsterNameRight.Width + iTextLength3), 0f), null, Color.White * fAlpha3, 0f, new Vector2((float)HudRenderComponent.txMonsterNameLeft.Width, 12f), 1f, SpriteEffects.None, 0f);
         spriteBatch.DrawString(HudRenderComponent.fontItemPickup, this.xView.xGUIStuff.xLastMonsterHit.sName, v2Pos10 - new Vector2((float)(HudRenderComponent.txMonsterNameRight.Width + 5), 5f), Color.White * fAlpha3, 0f, new Vector2(HudRenderComponent.fontItemPickup.MeasureString(this.xView.xGUIStuff.xLastMonsterHit.sName).X, 0f), 1f, SpriteEffects.None, 0f);
     }
     float fYBonus = 0f;
     if (!this.xView.xGUIStuff.bInsideHouse)
     {
         if (this.xTrackedRecipe != null && this.bRecipeTracked && !Program.GetTheGame().xInGameMenu.bInGameMenu && this.bRenderRightSide)
         {
             float fTrackerAlpha = 1f;
             Vector2 v2QuestHelpTL = new Vector2(476f, 2f);
             if (iKeyboardQuickslots > 8)
             {
                 v2QuestHelpTL = new Vector2(476f, 60f);
             }
             int iMaxObjectiveLength = 140;
             SpriteFont font = InGameMenu.fontItemDescription;
             float fYBonusTemp = 0f;
             List<TextBatch> lxtb = new List<TextBatch>();
             List<bool> lbFinished = new List<bool>();
             foreach (KeyValuePair<ItemDescription, ushort> kvp in this.xTrackedRecipe.xRecipe.dxiIngredientList)
             {
                 string sTroll = "{c=item}" + kvp.Key.sFullName + "{/}";
                 sTroll += " [";
                 object obj = sTroll;
                 sTroll = string.Concat(new object[]
                 {
                     obj,
                     this.xView.xInventory.GetAmount(kvp.Key.enType),
                     "/",
                     kvp.Value
                 });
                 sTroll += "]";
                 sTroll = Utility.String_CutToSize(sTroll, iMaxObjectiveLength, font);
                 TextBatch xKnorr = new TextBatch(font, sTroll, Color.White, -1, new float[0]);
                 lxtb.Add(xKnorr);
                 lbFinished.Add(this.xView.xInventory.GetAmount(kvp.Key.enType) >= (int)kvp.Value);
                 fYBonusTemp += (float)(xKnorr.iTextHeight + 2);
             }
             spriteBatch.Draw(HudRenderComponent.txQuestTracker_Top, v2QuestHelpTL, null, Color.White * 1f);
             spriteBatch.Draw(HudRenderComponent.txQuestTracker_Mid, v2QuestHelpTL + new Vector2(0f, 23f), new Rectangle?(new Rectangle(0, 0, 162, (int)fYBonusTemp + 3)), Color.White * 1f);
             spriteBatch.Draw(HudRenderComponent.txQuestTracker_Bot, v2QuestHelpTL + new Vector2(0f, (float)(23 + (int)fYBonusTemp + 3)), null, Color.White * 1f);
             string sName = this.xTrackedRecipe.xRecipe.xItemDescription.sFullName;
             if (!this.xView.xInventory.denxInventory.ContainsKey(this.xTrackedRecipe.xRecipe.xItemDescription.enType))
             {
                 sName = CAS.GetLibraryText("Items", "UnknownName") + " " + ItemCodex.ItemCategoryToString(this.xTrackedRecipe.xRecipe.xItemDescription.lenCategory);
             }
             Program.GetTheGame()._RenderMaster_RenderTextWithOutline(InGameMenu.fontItemSorting, sName, v2QuestHelpTL + new Vector2(80f, 13f), Utility.Vector2_ToInts(InGameMenu.fontItemSorting.MeasureString(sName) / 2f), 1f, Color.White * fTrackerAlpha, Color.Black * 0.6f * fTrackerAlpha);
             for (int i2 = 0; i2 < lxtb.Count; i2++)
             {
                 lxtb[i2].Render(spriteBatch, font, v2QuestHelpTL + new Vector2(18f, 26f + fYBonus), this.fAlpha * fTrackerAlpha, TextBatch.TextAlignment.TopLeft, 1f);
                 Texture2D txIcon = HudRenderComponent.txQuestTracker_Unfinished;
                 if (lbFinished[i2])
                 {
                     txIcon = HudRenderComponent.txQuestTracker_Finished;
                 }
                 spriteBatch.Draw(txIcon, v2QuestHelpTL + new Vector2(10f, 32f + fYBonus), null, Color.White * fTrackerAlpha, 0f, Utility.PointToVector2(txIcon), base.fScale, SpriteEffects.None, 0f);
                 fYBonus += (float)(lxtb[i2].iTextHeight + 2);
             }
         }
         else if (this.xTrackedQuest != null && !Program.GetTheGame().xInGameMenu.bInGameMenu && this.bRenderRightSide)
         {
             float fTrackerAlpha2 = 1f;
             Vector2 v2QuestHelpTL2 = new Vector2(476f, 2f);
             if (iKeyboardQuickslots > 8)
             {
                 v2QuestHelpTL2 = new Vector2(476f, 60f);
             }
             int iMaxObjectiveLength2 = 140;
             SpriteFont font2 = InGameMenu.fontItemDescription;
             int iStartGroup = this.xTrackedQuest.GetStartOfCurrentGroup();
             float fYBonusTemp2 = 0f;
             List<TextBatch> lxtb2 = new List<TextBatch>();
             for (int i3 = 0; i3 < this.xTrackedQuest.liObjectiveGroups[(int)this.xTrackedQuest.byCurrentObjectiveGroup]; i3++)
             {
                 QuestObjective xThisObjective = this.xTrackedQuest.lxObjectives[iStartGroup + i3];
                 string sTroll2 = xThisObjective.GetShortDescription();
                 sTroll2 = Utility.String_CutToSize(sTroll2, iMaxObjectiveLength2, font2);
                 TextBatch xKnorr2 = new TextBatch(font2, sTroll2, Color.White, -1, new float[0]);
                 lxtb2.Add(xKnorr2);
                 fYBonusTemp2 += (float)(xKnorr2.iTextHeight + 2);
             }
             spriteBatch.Draw(HudRenderComponent.txQuestTracker_Top, v2QuestHelpTL2, null, Color.White * 1f);
             spriteBatch.Draw(HudRenderComponent.txQuestTracker_Mid, v2QuestHelpTL2 + new Vector2(0f, 23f), new Rectangle?(new Rectangle(0, 0, 162, (int)fYBonusTemp2 + 3)), Color.White * 1f);
             spriteBatch.Draw(HudRenderComponent.txQuestTracker_Bot, v2QuestHelpTL2 + new Vector2(0f, (float)(23 + (int)fYBonusTemp2 + 3)), null, Color.White * 1f);
             Program.GetTheGame()._RenderMaster_RenderTextWithOutline(InGameMenu.fontItemSorting, this.xTrackedQuest.xDescription.sQuestName, v2QuestHelpTL2 + new Vector2(80f, 13f), Utility.Vector2_ToInts(InGameMenu.fontItemSorting.MeasureString(this.xTrackedQuest.xDescription.sQuestName) / 2f), 1f, Color.White * fTrackerAlpha2, Color.Black * 0.6f * fTrackerAlpha2);
             if (this.xTrackedQuest.iQuestUpdateTimer < 30)
             {
                 float fSizeAlpha = (float)this.xTrackedQuest.iQuestUpdateTimer / 30f;
                 Program.GetTheGame()._RenderMaster_RenderTextWithOutline(InGameMenu.fontItemSorting, this.xTrackedQuest.xDescription.sQuestName, v2QuestHelpTL2 + new Vector2(80f, 13f), Utility.Vector2_ToInts(InGameMenu.fontItemSorting.MeasureString(this.xTrackedQuest.xDescription.sQuestName) / 2f), 1f + fSizeAlpha * 0.6f, Color.White * fTrackerAlpha2 * (1f - fSizeAlpha), Color.Black * 0.6f * fTrackerAlpha2 * (1f - fSizeAlpha) * 0f);
             }
             for (int i4 = 0; i4 < lxtb2.Count; i4++)
             {
                 lxtb2[i4].Render(spriteBatch, font2, v2QuestHelpTL2 + new Vector2(18f, 26f + fYBonus), this.fAlpha * fTrackerAlpha2, TextBatch.TextAlignment.TopLeft, 1f);
                 Texture2D txIcon2 = HudRenderComponent.txQuestTracker_Unfinished;
                 QuestObjective xThisObjective2 = this.xTrackedQuest.lxObjectives[iStartGroup + i4];
                 if (xThisObjective2.bFinished)
                 {
                     txIcon2 = HudRenderComponent.txQuestTracker_Finished;
                 }
                 spriteBatch.Draw(txIcon2, v2QuestHelpTL2 + new Vector2(10f, 32f + fYBonus), null, Color.White * fTrackerAlpha2, 0f, Utility.PointToVector2(txIcon2), base.fScale, SpriteEffects.None, 0f);
                 if (xThisObjective2.iJustUpdated < 120)
                 {
                     xThisObjective2.iJustUpdated++;
                 }
                 int j2 = 1;
                 while (j2 * 30 < 90)
                 {
                     if (xThisObjective2.iJustUpdated < j2 * 30)
                     {
                         float fSizeAlpha2 = (float)(xThisObjective2.iJustUpdated - (j2 - 1) * 30) / 30f;
                         spriteBatch.Draw(txIcon2, v2QuestHelpTL2 + new Vector2(10f, 32f + fYBonus), null, Color.White * fTrackerAlpha2 * (1f - fSizeAlpha2), 0f, Utility.PointToVector2(txIcon2), 1f + fSizeAlpha2 * 2f, SpriteEffects.None, 0f);
                         break;
                     }
                     j2++;
                 }
                 if (xThisObjective2.iJustUpdated > 15)
                 {
                     int j3 = 1;
                     while (j3 * 30 < 90)
                     {
                         if (xThisObjective2.iJustUpdated - 15 < j3 * 30)
                         {
                             float fSizeAlpha3 = (float)(xThisObjective2.iJustUpdated - 15 - (j3 - 1) * 30) / 30f;
                             spriteBatch.Draw(txIcon2, v2QuestHelpTL2 + new Vector2(10f, 32f + fYBonus), null, Color.White * fTrackerAlpha2 * (1f - fSizeAlpha3), 0f, Utility.PointToVector2(txIcon2), 1f + fSizeAlpha3 * 2f, SpriteEffects.None, 0f);
                             break;
                         }
                         j3++;
                     }
                 }
                 fYBonus += (float)(lxtb2[i4].iTextHeight + 2);
             }
             this.xTrackedQuest.iQuestUpdateTimer++;
         }
     }
     if (this.xView.xGUIStuff.xBag.iDisplayTimeLeft > 0 && !Program.GetTheGame().xInGameMenu.bInGameMenu)
     {
         float fBagTipsAlpha = 1f;
         if (this.xView.xGUIStuff.xBag.iDisplayTimeLeft < 30)
         {
             fBagTipsAlpha = (float)this.xView.xGUIStuff.xBag.iDisplayTimeLeft / 30f;
         }
         else if (this.xView.xGUIStuff.xBag.iFadeIn < 30)
         {
             fBagTipsAlpha = (float)this.xView.xGUIStuff.xBag.iFadeIn / 30f;
         }
         Vector2 v2TrueBananas = new Vector2(438f, 53f);
         if (Program.GetTheGame().xLevelMaster.xCurrentLevel.enZone == Level.ZoneEnum.EvergrindFields_East && this.xView.xEntity.xOnFishplate != null && this.xView.xEntity.xOnFishplate.bInFishing)
         {
             v2TrueBananas.Y += 80f;
         }
         int iTotalHeight = (int)InGameMenu.fontLeftInfo.MeasureString(this.xView.xGUIStuff.xBag.sDisplayString).Y;
         spriteBatch.Draw(HudRenderComponent.txBagTipsTop, v2TrueBananas, null, Color.White * fBagTipsAlpha, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
         spriteBatch.Draw(HudRenderComponent.txBagTipsMid, v2TrueBananas + new Vector2(0f, 18f), new Rectangle?(new Rectangle(0, 0, 183, iTotalHeight)), Color.White * fBagTipsAlpha, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
         spriteBatch.Draw(HudRenderComponent.txBagTipsBot, v2TrueBananas + new Vector2(0f, (float)(18 + iTotalHeight)), null, Color.White * fBagTipsAlpha, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
         Vector2 v2BubbleOff = v2TrueBananas + new Vector2(41f, 15f);
         spriteBatch.Draw(HudRenderComponent.txBagTipsBubbleTop, v2BubbleOff, null, Color.White * fBagTipsAlpha, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
         spriteBatch.Draw(HudRenderComponent.txBagTipsBubbleMid, v2BubbleOff + new Vector2(0f, 6f), new Rectangle?(new Rectangle(0, 0, 135, iTotalHeight - 2)), Color.White * fBagTipsAlpha, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
         spriteBatch.Draw(HudRenderComponent.txBagTipsBubbleBot, v2BubbleOff + new Vector2(-5f, (float)(6 + iTotalHeight - 2)), null, Color.White * fBagTipsAlpha, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
         spriteBatch.DrawString(InGameMenu.fontLeftInfo, this.xView.xGUIStuff.xBag.sDisplayString, v2TrueBananas + new Vector2(49f, 23f), this.cBagTipsColor * fBagTipsAlpha);
         Vector2 v2PoosiBanana = v2TrueBananas + new Vector2(20f, (float)(27 + iTotalHeight));
         int iFrameX = this.xView.xGUIStuff.xBag.iDisplayTimeLeft / 5 % 8;
         if (this.xView.xGUIStuff.xBag.iDisplayTimeLeft < 120)
         {
             spriteBatch.Draw(HudRenderComponent.txBagTalk, v2PoosiBanana, new Rectangle?(new Rectangle(0, 0, 26, 19)), Color.White * fBagTipsAlpha, 0f, new Vector2(13f, 16f), base.fScale, SpriteEffects.None, 0f);
         }
         else
         {
             spriteBatch.Draw(HudRenderComponent.txBagTalk, v2PoosiBanana, new Rectangle?(new Rectangle(26 * iFrameX, 0, 26, 19)), Color.White * fBagTipsAlpha, 0f, new Vector2(13f, 16f), base.fScale, SpriteEffects.None, 0f);
         }
     }
     if (this.xView.xGUIStuff.xNaniva.iDisplayTimeLeft > 0 && !Program.GetTheGame().xInGameMenu.bInGameMenu)
     {
         float fBagTipsAlpha2 = 1f;
         if (this.xView.xGUIStuff.xNaniva.iDisplayTimeLeft < 30)
         {
             fBagTipsAlpha2 = (float)this.xView.xGUIStuff.xNaniva.iDisplayTimeLeft / 30f;
         }
         else if (this.xView.xGUIStuff.xNaniva.iFadeIn < 30)
         {
             fBagTipsAlpha2 = (float)this.xView.xGUIStuff.xNaniva.iFadeIn / 30f;
         }
         Vector2 v2TrueBananas2 = new Vector2(438f, 53f);
         if (Program.GetTheGame().xLevelMaster.xCurrentLevel.enZone == Level.ZoneEnum.EvergrindFields_East && this.xView.xEntity.xOnFishplate != null && this.xView.xEntity.xOnFishplate.bInFishing)
         {
             v2TrueBananas2.Y += 80f;
         }
         int iTotalHeight2 = (int)InGameMenu.fontLeftInfo.MeasureString(this.xView.xGUIStuff.xNaniva.sDisplayString).Y;
         spriteBatch.Draw(HudRenderComponent.txBagTipsTop_Naniva, v2TrueBananas2, null, Color.White * fBagTipsAlpha2, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
         spriteBatch.Draw(HudRenderComponent.txBagTipsMid, v2TrueBananas2 + new Vector2(0f, 18f), new Rectangle?(new Rectangle(0, 0, 183, iTotalHeight2)), Color.White * fBagTipsAlpha2, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
         spriteBatch.Draw(HudRenderComponent.txBagTipsBot, v2TrueBananas2 + new Vector2(0f, (float)(18 + iTotalHeight2)), null, Color.White * fBagTipsAlpha2, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
         Vector2 v2BubbleOff2 = v2TrueBananas2 + new Vector2(41f, 15f);
         spriteBatch.Draw(HudRenderComponent.txBagTipsBubbleTop, v2BubbleOff2, null, Color.White * fBagTipsAlpha2, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
         spriteBatch.Draw(HudRenderComponent.txBagTipsBubbleMid, v2BubbleOff2 + new Vector2(0f, 6f), new Rectangle?(new Rectangle(0, 0, 135, iTotalHeight2 - 2)), Color.White * fBagTipsAlpha2, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
         spriteBatch.Draw(HudRenderComponent.txBagTipsBubbleBot, v2BubbleOff2 + new Vector2(-5f, (float)(6 + iTotalHeight2 - 2)), null, Color.White * fBagTipsAlpha2, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
         spriteBatch.DrawString(InGameMenu.fontLeftInfo, this.xView.xGUIStuff.xNaniva.sDisplayString, v2TrueBananas2 + new Vector2(49f, 23f), this.cBagTipsColor * fBagTipsAlpha2);
         Vector2 v2PoosiBanana2 = v2TrueBananas2 + new Vector2(20f, (float)(27 + iTotalHeight2));
         int iFrameX2 = this.xView.xGUIStuff.xNaniva.iDisplayTimeLeft / 4 % 8;
         if (this.xView.xGUIStuff.xNaniva.iDisplayTimeLeft < 120)
         {
             spriteBatch.Draw(HudRenderComponent.txNanivaTalk, v2PoosiBanana2, new Rectangle?(new Rectangle(0, 0, 26, 23)), Color.White * fBagTipsAlpha2, 0f, new Vector2(13f, 16f), base.fScale, SpriteEffects.None, 0f);
         }
         else
         {
             spriteBatch.Draw(HudRenderComponent.txNanivaTalk, v2PoosiBanana2, new Rectangle?(new Rectangle(26 * iFrameX2, 0, 26, 23)), Color.White * fBagTipsAlpha2, 0f, new Vector2(13f, 16f), base.fScale, SpriteEffects.None, 0f);
         }
     }
     if (this.xView.xGUIStuff.lenNewEquips.Count > 0 && !Program.game.xShopMenu.bInMenu && !Program.game.xCutsceneMaster.bInCutscene && this.xView.xGUIStuff.xBag.iDisplayTimeLeft <= 0)
     {
         int iYBonus = (int)fYBonus + 40;
         if (fYBonus == 0f)
         {
             iYBonus -= 20;
             if (Program.game.xStateMaster.enGameMode == StateMaster.GameModes.RogueLike)
             {
                 iYBonus += 102;
             }
         }
         if (iKeyboardQuickslots > 8)
         {
             iYBonus += 52;
         }
         float fLoloAlpha = 1f;
         if (this.xView.xGUIStuff.iNewEquipmentCounter < 10)
         {
             fLoloAlpha = (float)this.xView.xGUIStuff.iNewEquipmentCounter / 10f;
         }
         else if (this.xView.xGUIStuff.iNewEquipmentCounter >= 360)
         {
             fLoloAlpha = 1f - (float)(this.xView.xGUIStuff.iNewEquipmentCounter - 360) / 10f;
         }
         float fLoloScale = 0.8f + 0.2f * fLoloAlpha;
         ItemDescription x = ItemCodex.GetItemDescription(this.xView.xGUIStuff.lenNewEquips[0]);
         if (!this.xView.xGUIStuff.bNewEquipmentWasAutoEquipped || this.xView.xGUIStuff.iNewEquipmentEquippedNoticeWhichSlot != 1)
         {
             iYBonus += this.Render_Preview(spriteBatch, new Inventory.PreviewPair(this.xView, x, Equipment.EquipSlot.Auto, this.xView.xGUIStuff.bNewEquipmentWasAutoEquipped), fLoloScale, fLoloAlpha, new Vector2(580f, (float)iYBonus), true, CAS.GetLibraryText("NoticesAndTips", "QuickEquipPress"), this.xView.xGUIStuff.iNewEquipmentEquippedNotice > 0 && this.xView.xGUIStuff.iNewEquipmentEquippedNoticeWhichSlot == 0);
         }
         if (x.lenCategory.Contains(ItemCodex.ItemCategories.Accessory) && (!this.xView.xGUIStuff.bNewEquipmentWasAutoEquipped || this.xView.xGUIStuff.iNewEquipmentEquippedNoticeWhichSlot == 1))
         {
             iYBonus += 30;
             this.Render_Preview(spriteBatch, new Inventory.PreviewPair(this.xView, x, Equipment.EquipSlot.AccessoryB, this.xView.xGUIStuff.bNewEquipmentWasAutoEquipped), fLoloScale, fLoloAlpha, new Vector2(580f, (float)iYBonus), true, CAS.GetLibraryText("NoticesAndTips", "QuickEquipHold"), this.xView.xGUIStuff.iNewEquipmentEquippedNotice > 0 && this.xView.xGUIStuff.iNewEquipmentEquippedNoticeWhichSlot == 1);
         }
     }
     if (this.xView.xGUIStuff.iLevelUpReminder >= 0)
     {
         float fLetsGo = 1f;
         float fUpThere = 16f;
         if ((float)this.xView.xGUIStuff.iLevelUpReminder < fUpThere)
         {
             fLetsGo = (float)this.xView.xGUIStuff.iLevelUpReminder / fUpThere;
         }
         Vector2 v2TargetLevelUpPos = new Vector2(100f, 83f);
         if (Program.GetTheGame().xInput_Game.enControlMode != LocalInputHelper.ControlMode.Keyboard)
         {
             v2TargetLevelUpPos.Y += 10f;
             v2TargetLevelUpPos.X += 4f;
             if (Program.game.xStateMaster.enGameMode == StateMaster.GameModes.RogueLike)
             {
                 v2TargetLevelUpPos.Y -= 20f;
                 v2TargetLevelUpPos.X += 98f;
             }
         }
         else if (Program.game.xStateMaster.enGameMode == StateMaster.GameModes.RogueLike)
         {
             v2TargetLevelUpPos.Y -= 20f;
             v2TargetLevelUpPos.X += 88f;
         }
         if (fLetsGo < 1f)
         {
             Vector2 v2Pos11 = Vector2.Lerp(this.xView.xGUIStuff.v2CharacterScreenPosAtLevelUp, v2TargetLevelUpPos, fLetsGo);
             Vector2 v2Pos12 = Vector2.Lerp(this.xView.xGUIStuff.v2CharacterScreenPosAtLevelUp, v2TargetLevelUpPos, fLetsGo - 0.1f);
             Vector2 v2Pos13 = Vector2.Lerp(this.xView.xGUIStuff.v2CharacterScreenPosAtLevelUp, v2TargetLevelUpPos, fLetsGo - 0.2f);
             spriteBatch.Draw(HudRenderComponent.txLevelReminder, v2Pos13, null, Color.White * this.fAlpha * fLetsGo * 0.25f, 0f, Utility.PointToVector2(HudRenderComponent.txLevelReminder.Bounds.Center), 0.5f + 0.5f * fLetsGo, SpriteEffects.None, 0f);
             spriteBatch.Draw(HudRenderComponent.txLevelReminder, v2Pos12, null, Color.White * this.fAlpha * fLetsGo * 0.5f, 0f, Utility.PointToVector2(HudRenderComponent.txLevelReminder.Bounds.Center), 0.5f + 0.5f * fLetsGo, SpriteEffects.None, 0f);
             spriteBatch.Draw(HudRenderComponent.txLevelReminder, v2Pos11, null, Color.White * this.fAlpha * fLetsGo, 0f, Utility.PointToVector2(HudRenderComponent.txLevelReminder.Bounds.Center), 0.5f + 0.5f * fLetsGo, SpriteEffects.None, 0f);
         }
         if ((float)this.xView.xGUIStuff.iLevelUpReminder > fUpThere && (float)this.xView.xGUIStuff.iLevelUpReminder < fUpThere + 32f)
         {
             spriteBatch.End();
             SpriteEffectWrapper xEffectWrapper = Program.GetTheGame().dsxEffects["FlashWhite"];
             float fWhiteGrade = 1f;
             float iSpellReadyCounter = (float)this.xView.xGUIStuff.iLevelUpReminder - fUpThere;
             if (iSpellReadyCounter < 12f)
             {
                 fWhiteGrade = iSpellReadyCounter / 12f;
             }
             else if (iSpellReadyCounter > 16f)
             {
                 fWhiteGrade = 1f - (iSpellReadyCounter - 16f) / 16f;
             }
             xEffectWrapper.xEffect.Parameters["WhiteGrade"].SetValue(fWhiteGrade);
             spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, DepthStencilState.Default, null, xEffectWrapper.xEffect);
             spriteBatch.Draw(HudRenderComponent.txLevelReminder, v2TargetLevelUpPos, null, Color.White * this.fAlpha, 0f, Utility.PointToVector2(HudRenderComponent.txLevelReminder.Bounds.Center), base.fScale, SpriteEffects.None, 0f);
             spriteBatch.End();
             spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, DepthStencilState.Default, null);
         }
         else if (fLetsGo == 1f)
         {
             float fPulseAlpha = (float)(this.xView.xGUIStuff.iLevelUpReminder % 60) / 30f;
             if (fPulseAlpha > 1f)
             {
                 fPulseAlpha = 1f - (fPulseAlpha - 1f);
             }
             fPulseAlpha = 0.75f + 0.25f * fPulseAlpha;
             spriteBatch.Draw(HudRenderComponent.txLevelReminder, v2TargetLevelUpPos, null, Color.White * this.fAlpha * fPulseAlpha, 0f, Utility.PointToVector2(HudRenderComponent.txLevelReminder.Bounds.Center), base.fScale, SpriteEffects.None, 0f);
         }
     }
     int iZC = this.iZoneTitleCounter;
     float iAppearTime = 40f;
     float iLineAppearTime = 10f;
     float iLineCompleted = 80f;
     float iFadeOutTime = 130f;
     float iEndTime = 160f;
     if ((float)iZC < iEndTime)
     {
         float fAlpha4 = 1f;
         float fLineSize = 0f;
         Vector2 v2Pos14 = new Vector2(320f, 120f);
         this.iZoneTitleCounter++;
         if ((float)iZC < iAppearTime)
         {
             fAlpha4 = (float)iZC / iAppearTime;
         }
         else if ((float)iZC > iFadeOutTime)
         {
             fAlpha4 = 1f - ((float)iZC - iFadeOutTime) / (iEndTime - iFadeOutTime);
         }
         if ((float)iZC > iLineAppearTime)
         {
             if ((float)iZC > iLineCompleted)
             {
                 fLineSize = 1f;
             }
             else
             {
                 fLineSize = ((float)iZC - iLineAppearTime) / (iLineCompleted - iLineAppearTime);
             }
             fLineSize = MathHelper.Hermite(0f, 2.5f, 1f, 0f, fLineSize);
         }
         if (Program.game.xStateMaster.enGameMode == StateMaster.GameModes.Story)
         {
             if (this.txZoneTitle != null)
             {
                 spriteBatch.Draw(HudRenderComponent.txZoneLine, v2Pos14 + new Vector2(0f, 5f), null, Color.White * fAlpha4, 0f, Utility.PointToVector2(HudRenderComponent.txZoneLine.Bounds.Center), new Vector2(fLineSize * (float)(this.txZoneTitle.Width / 2 - 30), 1f), SpriteEffects.None, 0f);
                 spriteBatch.Draw(this.txZoneTitle, v2Pos14, null, Color.White * fAlpha4, 0f, Utility.PointToVector2(this.txZoneTitle.Bounds.Center), 1f, SpriteEffects.None, 0f);
             }
         }
         else if (Program.game.xStateMaster.enGameMode == StateMaster.GameModes.RogueLike)
         {
             if (game.xLevelMaster.xCurrentLevel.enZone == Level.ZoneEnum.RogueLike_Arcadia && this.txZoneTitle != null)
             {
                 spriteBatch.Draw(HudRenderComponent.txZoneLine, v2Pos14 + new Vector2(0f, 5f), null, Color.White * fAlpha4, 0f, Utility.PointToVector2(HudRenderComponent.txZoneLine.Bounds.Center), new Vector2(fLineSize * (float)(this.txZoneTitle.Width / 2 - 30), 1f), SpriteEffects.None, 0f);
                 spriteBatch.Draw(this.txZoneTitle, v2Pos14, null, Color.White * fAlpha4, 0f, Utility.PointToVector2(this.txZoneTitle.Bounds.Center), 1f, SpriteEffects.None, 0f);
             }
             else
             {
                 int iFloor = Program.game.xGameSessionData.xRogueLikeSession.iCurrentFloor;
                 Texture2D txFirstNumber;
                 if (iFloor < 10)
                 {
                     txFirstNumber = RogueLikeUniqueResources.txFloorTitle_0;
                 }
                 else
                 {
                     txFirstNumber = CAS.GlobalContent.Load<Texture2D>("Bkg/ZoneX_RogueLike/" + iFloor / 10);
                 }
                 Texture2D txSecondNumber = CAS.GlobalContent.Load<Texture2D>("Bkg/ZoneX_RogueLike/" + iFloor % 10);
                 spriteBatch.Draw(RogueLikeUniqueResources.txFloorTitle_Floor, v2Pos14 + new Vector2(-20f, 0f), null, Color.White * fAlpha4, 0f, Utility.PointToVector2(RogueLikeUniqueResources.txFloorTitle_Floor.Bounds.Center), 1f, SpriteEffects.None, 0f);
                 spriteBatch.Draw(txFirstNumber, v2Pos14 + new Vector2(25f, 3f), null, Color.White * fAlpha4, 0f, Utility.PointToVector2(txFirstNumber.Bounds.Center), 1f, SpriteEffects.None, 0f);
                 spriteBatch.Draw(txSecondNumber, v2Pos14 + new Vector2(42f, 3f), null, Color.White * fAlpha4, 0f, Utility.PointToVector2(txSecondNumber.Bounds.Center), 1f, SpriteEffects.None, 0f);
                 spriteBatch.Draw(RogueLikeUniqueResources.txFloorTitle_FlowerLeft, v2Pos14 + new Vector2(-63f, 14f), null, Color.White * fAlpha4, 0f, Utility.PointToVector2(RogueLikeUniqueResources.txFloorTitle_FlowerLeft.Bounds.Center), 1f, SpriteEffects.None, 0f);
                 spriteBatch.Draw(RogueLikeUniqueResources.txFloorTitle_FlowerRight, v2Pos14 + new Vector2(58f, 14f), null, Color.White * fAlpha4, 0f, Utility.PointToVector2(RogueLikeUniqueResources.txFloorTitle_FlowerRight.Bounds.Center), 1f, SpriteEffects.None, 0f);
                 spriteBatch.Draw(HudRenderComponent.txZoneLine, v2Pos14 + new Vector2(-3f, 16f), null, Color.White * fAlpha4, 0f, Utility.PointToVector2(HudRenderComponent.txZoneLine.Bounds.Center), new Vector2(fLineSize * 55f, 1f), SpriteEffects.None, 0f);
             }
         }
     }
     if (!Program.GetTheGame().xInGameMenu.bInGameMenu && !Program.GetTheGame().xDialogueSystem.bInDialogue)
     {
         if (this.xView.xGUIStuff.iQuestCompletedCounter > 0)
         {
             if (this.xView.xGUIStuff.xThisQuestDescription != null && !this.xView.xGUIStuff.bQuestAddedToCompleted)
             {
                 if (!this.xView.xGUIStuff.bAlreadyCompleted)
                 {
                     this.xView.xGUIStuff.xThisQuestDescription.xReward.GrantReward(this.xView);
                 }
                 this.xView.xJournalInfo.xQuestLog.lxCompletedQuests.Add(this.xView.xGUIStuff.xThisQuestInstance);
                 this.xView.xJournalInfo.xQuestLog.lxActiveQuests.Remove(this.xView.xGUIStuff.xThisQuestInstance);
                 this.xView.xJournalInfo.xQuestLog.henQuestsCompletedOnThisCharacter.Add(this.xView.xGUIStuff.xThisQuestInstance.enQuestID);
                 if (CAS.GameMode == StateMaster.GameModes.RogueLike)
                 {
                     Program.game.xGlobalData.WorldRelevantData.lenCompletedQuests.Add(this.xView.xGUIStuff.xThisQuestInstance.enQuestID);
                 }
                 Program.GetTheGame()._NPC_QuestIndicatorUpdateByQuest(this.xView.xGUIStuff.xThisQuestInstance);
                 this.xView.xGUIStuff.bQuestAddedToCompleted = true;
             }
             Vector2 v2Pos15 = new Vector2(320f, 285f);
             float iProgress = (float)this.xView.xGUIStuff.iQuestCompletedCounter;
             float fWhiteAlpha2 = 0f;
             float fRealAlpha = 1f;
             float iFlashInEnd = 15f;
             float iFlashOutStart = 20f;
             float iFlashOutEnd = 40f;
             float iFadeOutStart = 200f;
             float iFadeOutEnd = 240f;
             if (iProgress < iFlashInEnd)
             {
                 fRealAlpha = 0f;
                 fWhiteAlpha2 = iProgress / iFlashInEnd;
             }
             else if (iProgress < iFlashOutStart)
             {
                 fRealAlpha = 1f;
                 fWhiteAlpha2 = 1f;
             }
             else if (iProgress < iFlashOutEnd)
             {
                 fRealAlpha = 1f;
                 fWhiteAlpha2 = 1f - (iProgress - iFlashOutStart) / (iFlashOutEnd - iFlashOutStart);
             }
             else if (iProgress >= iFadeOutStart)
             {
                 if (iProgress < iFadeOutEnd)
                 {
                     fRealAlpha = 1f - (iProgress - iFadeOutStart) / (iFadeOutEnd - iFadeOutStart);
                 }
                 else if (iProgress >= iFadeOutEnd)
                 {
                     this.xView.xGUIStuff.iQuestCompletedCounter = 0;
                     fRealAlpha = 0f;
                 }
             }
             fRealAlpha *= 0.85f;
             spriteBatch.Draw(HudRenderComponent.txQuestCompleted, v2Pos15 + new Vector2(0f, -19f), null, Color.White * fRealAlpha, 0f, Utility.PointToVector2(HudRenderComponent.txQuestCompleted), base.fScale, SpriteEffects.None, 0f);
             Vector2 v2RewardMid = v2Pos15 + new Vector2(-76f, -23f);
             Program.GetTheGame()._RenderMaster_RenderTextWithOutline(InGameMenu.fontItemSorting, this.xView.xGUIStuff.xThisQuestDescription.sQuestName, v2Pos15 - new Vector2(0f, 48f), Utility.Vector2_ToInts(InGameMenu.fontItemSorting.MeasureString(this.xView.xGUIStuff.xThisQuestDescription.sQuestName) / 2f), base.fScale, Color.White * fRealAlpha, Color.Black * 0.7f * fRealAlpha);
             if (!this.xView.xGUIStuff.bAlreadyCompleted)
             {
                 this.xView.xGUIStuff.xThisQuestDescription.xReward.Render(spriteBatch, v2RewardMid, Vector2.Zero, this.fAlpha, base.fScale, 1f, Color.White * fRealAlpha);
             }
             else
             {
                 Program.GetTheGame()._RenderMaster_RenderTextWithOutline(InGameMenu.fontItemDescription, "Already Rewarded!", v2Pos15 + new Vector2(0f, 1f), Utility.Vector2_ToInts(InGameMenu.fontItemDescription.MeasureString("Already Rewarded!") / 2f), base.fScale, Color.White * fRealAlpha, Color.Black * 0.7f * fRealAlpha);
             }
             int iFrame = ((int)iProgress - (int)iFlashOutEnd + 19) / 4;
             if (iFrame > 13)
             {
                 iFrame = 13;
             }
             else if (iFrame < 0)
             {
                 iFrame = 0;
             }
             spriteBatch.Draw(HudRenderComponent.txQuestCompleted_Animation, v2Pos15 - Utility.PointToVector2(HudRenderComponent.txQuestCompleted) + new Vector2(71f, -65f), new Rectangle?(new Rectangle(iFrame * 65, 0, 65, 55)), Color.White * (fRealAlpha / 0.85f), 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
             if (fWhiteAlpha2 > 0f)
             {
                 spriteBatch.End();
                 spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, DepthStencilState.Default, null, Program.GetTheGame().dsxEffects["ShieldFlash"].xEffect);
                 spriteBatch.Draw(HudRenderComponent.txQuestCompleted, v2Pos15 + new Vector2(0f, -19f), null, Color.White * fWhiteAlpha2, 0f, Utility.PointToVector2(HudRenderComponent.txQuestCompleted), base.fScale, SpriteEffects.None, 0f);
                 spriteBatch.Draw(HudRenderComponent.txQuestCompleted_Animation, v2Pos15 - Utility.PointToVector2(HudRenderComponent.txQuestCompleted) + new Vector2(71f, -65f), new Rectangle?(new Rectangle(iFrame * 65, 0, 65, 55)), Color.White * fWhiteAlpha2, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
                 spriteBatch.End();
                 spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, DepthStencilState.Default, null);
             }
         }
         else if (this.xView.xGUIStuff.iGotCardCounter > 0)
         {
             Vector2 v2Pos16 = new Vector2(215f, 210f);
             float iProgress2 = (float)this.xView.xGUIStuff.iGotCardCounter;
             float fWhiteAlpha3 = 0f;
             float fRealAlpha2 = 1f;
             float iFlashInEnd2 = 15f;
             float iFlashOutStart2 = 20f;
             float iFlashOutEnd2 = 40f;
             float iFadeOutStart2 = 200f;
             float iFadeOutEnd2 = 240f;
             if (iProgress2 < iFlashInEnd2)
             {
                 fRealAlpha2 = 0f;
                 fWhiteAlpha3 = iProgress2 / iFlashInEnd2;
             }
             else if (iProgress2 < iFlashOutStart2)
             {
                 fRealAlpha2 = 1f;
                 fWhiteAlpha3 = 1f;
             }
             else if (iProgress2 < iFlashOutEnd2)
             {
                 fRealAlpha2 = 1f;
                 fWhiteAlpha3 = 1f - (iProgress2 - iFlashOutStart2) / (iFlashOutEnd2 - iFlashOutStart2);
             }
             else if (iProgress2 >= iFadeOutStart2)
             {
                 if (iProgress2 < iFadeOutEnd2)
                 {
                     fRealAlpha2 = 1f - (iProgress2 - iFadeOutStart2) / (iFadeOutEnd2 - iFadeOutStart2);
                 }
                 else if (iProgress2 >= iFadeOutEnd2)
                 {
                     this.xView.xGUIStuff.iGotCardCounter = 0;
                     fRealAlpha2 = 0f;
                 }
             }
             fRealAlpha2 *= 0.85f;
             EnemyDescription xDesc = this.xView.xGUIStuff.xGotCard;
             string sCardEffect = xDesc.sCardDescription;
             SpriteFont cardFont = InGameMenu.fontItemDescription;
             sCardEffect = Utility.String_CutToSize(sCardEffect, 200, cardFont);
             int iHeight = (int)cardFont.MeasureString(sCardEffect).Y;
             spriteBatch.Draw(HudRenderComponent.txCardUpdate_Top, v2Pos16, null, Color.White * fRealAlpha2, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
             spriteBatch.Draw(HudRenderComponent.txCardUpdate_Mid, v2Pos16 + new Vector2(0f, 71f), new Rectangle?(new Rectangle(0, 0, 213, iHeight)), Color.White * fRealAlpha2, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
             spriteBatch.Draw(HudRenderComponent.txCardUpdate_Bot, v2Pos16 + new Vector2(0f, (float)(71 + iHeight)), null, Color.White * fRealAlpha2, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
             v2Pos16 += new Vector2(-76f, -5f);
             Program.GetTheGame()._RenderMaster_RenderTextWithOutline(InGameMenu.fontItemSorting, xDesc.sFullName + " Card", v2Pos16 + new Vector2(107f, 60f), Utility.Vector2_ToInts(InGameMenu.fontItemSorting.MeasureString(xDesc.sFullName + " Card") / 2f), base.fScale, Color.White * fRealAlpha2, Color.Black * 0.7f * fRealAlpha2);
             spriteBatch.DrawString(cardFont, sCardEffect, v2Pos16 + new Vector2(8f, 75f), Color.Black * fRealAlpha2 * 0.6f);
             spriteBatch.DrawString(cardFont, sCardEffect, v2Pos16 + new Vector2(7f, 74f), Color.White * fRealAlpha2);
             int iFrame2 = ((int)iProgress2 - (int)iFlashOutEnd2 + 22) / 4;
             if (iFrame2 > 6)
             {
                 iFrame2 = 6;
             }
             else if (iFrame2 < 0)
             {
                 iFrame2 = 0;
             }
             spriteBatch.Draw(HudRenderComponent.txCardUpdate_AlbumAnimation, v2Pos16 + new Vector2(67f, -18f), new Rectangle?(new Rectangle(iFrame2 * 65, 0, 65, 58)), Color.White * fRealAlpha2, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
             if (fWhiteAlpha3 > 0f)
             {
                 spriteBatch.End();
                 spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, DepthStencilState.Default, null, Program.GetTheGame().dsxEffects["ShieldFlash"].xEffect);
                 spriteBatch.Draw(HudRenderComponent.txCardUpdate_AlbumAnimation, v2Pos16 + new Vector2(67f, -18f), new Rectangle?(new Rectangle(iFrame2 * 65, 0, 65, 58)), Color.White * fWhiteAlpha3, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
                 spriteBatch.Draw(HudRenderComponent.txCardUpdate_Top, v2Pos16, null, Color.White * fWhiteAlpha3, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
                 spriteBatch.Draw(HudRenderComponent.txCardUpdate_Mid, v2Pos16 + new Vector2(0f, 71f), new Rectangle?(new Rectangle(0, 0, 213, iHeight)), Color.White * fWhiteAlpha3, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
                 spriteBatch.Draw(HudRenderComponent.txCardUpdate_Bot, v2Pos16 + new Vector2(0f, (float)(71 + iHeight)), null, Color.White * fWhiteAlpha3, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
                 spriteBatch.End();
                 spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, DepthStencilState.Default, null);
             }
         }
         else if (this.xView.xGUIStuff.iTrophyGetCounter > 0)
         {
             Vector2 v2Pos17 = new Vector2(320f, 285f);
             float iProgress3 = (float)this.xView.xGUIStuff.iTrophyGetCounter;
             float fWhiteAlpha4 = 0f;
             float fRealAlpha3 = 1f;
             float iFlashInEnd3 = 15f;
             float iFlashOutStart3 = 20f;
             float iFlashOutEnd3 = 40f;
             float iFadeOutStart3 = 200f;
             float iFadeOutEnd3 = 240f;
             if (iProgress3 < iFlashInEnd3)
             {
                 fRealAlpha3 = 0f;
                 fWhiteAlpha4 = iProgress3 / iFlashInEnd3;
             }
             else if (iProgress3 < iFlashOutStart3)
             {
                 fRealAlpha3 = 1f;
                 fWhiteAlpha4 = 1f;
             }
             else if (iProgress3 < iFlashOutEnd3)
             {
                 fRealAlpha3 = 1f;
                 fWhiteAlpha4 = 1f - (iProgress3 - iFlashOutStart3) / (iFlashOutEnd3 - iFlashOutStart3);
             }
             else if (iProgress3 >= iFadeOutStart3)
             {
                 if (iProgress3 < iFadeOutEnd3)
                 {
                     fRealAlpha3 = 1f - (iProgress3 - iFadeOutStart3) / (iFadeOutEnd3 - iFadeOutStart3);
                 }
                 else if (iProgress3 >= iFadeOutEnd3)
                 {
                     fRealAlpha3 = 0f;
                 }
             }
             fRealAlpha3 *= 0.85f;
             spriteBatch.Draw(HudRenderComponent.txAchievementGet, v2Pos17 + new Vector2(0f, -38f), null, Color.White * fRealAlpha3, 0f, Utility.PointToVector2(HudRenderComponent.txQuestCompleted), base.fScale, SpriteEffects.None, 0f);
             Vector2 v2RewardMid2 = v2Pos17 + new Vector2(-245f, 3f);
             Program.GetTheGame()._RenderMaster_RenderTextWithOutline(InGameMenu.fontItemSorting, this.xView.xGUIStuff.xTrophyAwarded.sFullName, v2Pos17 - new Vector2(0f, 26f), Utility.Vector2_ToInts(InGameMenu.fontItemSorting.MeasureString(this.xView.xGUIStuff.xTrophyAwarded.sFullName) / 2f), base.fScale, Color.White * fRealAlpha3, Color.Black * 0.7f * fRealAlpha3);
             this.xView.xGUIStuff.xTrophyAwarded.xReward.Render(spriteBatch, v2RewardMid2, Color.White, fRealAlpha3, base.fScale, 0);
             int iFrame3 = ((int)iProgress3 - (int)iFlashOutEnd3) / 4;
             if (iFrame3 > 10)
             {
                 iFrame3 = 10;
             }
             else if (iFrame3 < 0)
             {
                 iFrame3 = 0;
             }
             spriteBatch.Draw(HudRenderComponent.txAchievementGet_Animation, v2Pos17 - Utility.PointToVector2(HudRenderComponent.txQuestCompleted) + new Vector2(80f, -39f), new Rectangle?(new Rectangle(iFrame3 * 52, 0, 52, 48)), Color.White * (fRealAlpha3 / 0.85f), 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
             if (fWhiteAlpha4 > 0f)
             {
                 spriteBatch.End();
                 spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, DepthStencilState.Default, null, Program.GetTheGame().dsxEffects["ShieldFlash"].xEffect);
                 spriteBatch.Draw(HudRenderComponent.txAchievementGet, v2Pos17 + new Vector2(0f, -38f), null, Color.White * fWhiteAlpha4, 0f, Utility.PointToVector2(HudRenderComponent.txQuestCompleted), base.fScale, SpriteEffects.None, 0f);
                 spriteBatch.Draw(HudRenderComponent.txAchievementGet_Animation, v2Pos17 - Utility.PointToVector2(HudRenderComponent.txQuestCompleted) + new Vector2(80f, -39f), new Rectangle?(new Rectangle(iFrame3 * 52, 0, 52, 48)), Color.White * fWhiteAlpha4, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
                 spriteBatch.End();
                 spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, DepthStencilState.Default, null);
             }
         }
         else if (this.xView.xGUIStuff.iTeleportUnlockCounter > 0)
         {
             Vector2 v2Pos18 = new Vector2(215f, 249f);
             float iProgress4 = (float)this.xView.xGUIStuff.iTeleportUnlockCounter;
             float fWhiteAlpha5 = 0f;
             float fRealAlpha4 = 1f;
             float iFlashInEnd4 = 15f;
             float iFlashOutStart4 = 20f;
             float iFlashOutEnd4 = 40f;
             float iFadeOutStart4 = 200f;
             float iFadeOutEnd4 = 240f;
             if (iProgress4 < iFlashInEnd4)
             {
                 fRealAlpha4 = 0f;
                 fWhiteAlpha5 = iProgress4 / iFlashInEnd4;
             }
             else if (iProgress4 < iFlashOutStart4)
             {
                 fRealAlpha4 = 1f;
                 fWhiteAlpha5 = 1f;
             }
             else if (iProgress4 < iFlashOutEnd4)
             {
                 fRealAlpha4 = 1f;
                 fWhiteAlpha5 = 1f - (iProgress4 - iFlashOutStart4) / (iFlashOutEnd4 - iFlashOutStart4);
             }
             else if (iProgress4 >= iFadeOutStart4)
             {
                 if (iProgress4 < iFadeOutEnd4)
                 {
                     fRealAlpha4 = 1f - (iProgress4 - iFadeOutStart4) / (iFadeOutEnd4 - iFadeOutStart4);
                 }
                 else if (iProgress4 >= iFadeOutEnd4)
                 {
                     fRealAlpha4 = 0f;
                 }
             }
             fRealAlpha4 *= 0.85f;
             spriteBatch.Draw(HudRenderComponent.txTeleportUnlock, v2Pos18, null, Color.White * fRealAlpha4, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
             v2Pos18 += new Vector2(-245f, 3f);
             Program.GetTheGame()._RenderMaster_RenderTextWithOutline(InGameMenu.fontItemSorting, this.xView.xGUIStuff.sTeleportUnlockAreaName, v2Pos18 + new Vector2(107f, 62f), Utility.Vector2_ToInts(InGameMenu.fontItemSorting.MeasureString(this.xView.xGUIStuff.sTeleportUnlockAreaName) / 2f), base.fScale, Color.White * fRealAlpha4, Color.Black * 0.7f * fRealAlpha4);
             int iFrame4 = ((int)iProgress4 - (int)iFlashOutEnd4 + 26) / 4;
             if (iFrame4 > 8)
             {
                 iFrame4 = 8;
             }
             else if (iFrame4 < 0)
             {
                 iFrame4 = 0;
             }
             spriteBatch.Draw(HudRenderComponent.txTeleportUnlock_Animation, v2Pos18 + new Vector2(77f, -4f), new Rectangle?(new Rectangle(iFrame4 * 60, 0, 60, 47)), Color.White * fRealAlpha4, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
             if (fWhiteAlpha5 > 0f)
             {
                 spriteBatch.End();
                 spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, DepthStencilState.Default, null, Program.GetTheGame().dsxEffects["ShieldFlash"].xEffect);
                 spriteBatch.Draw(HudRenderComponent.txTeleportUnlock, v2Pos18, null, Color.White * fWhiteAlpha5, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
                 spriteBatch.Draw(HudRenderComponent.txTeleportUnlock_Animation, v2Pos18 + new Vector2(77f, -4f), new Rectangle?(new Rectangle(iFrame4 * 60, 0, 60, 47)), Color.White * fWhiteAlpha5, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
                 spriteBatch.End();
                 spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, DepthStencilState.Default, null);
             }
         }
         else if (this.xView.xGUIStuff.iNewFromRogueCounter > 1)
         {
             Vector2 v2Pos19 = new Vector2(215f, 239f);
             float iProgress5 = (float)this.xView.xGUIStuff.iNewFromRogueCounter;
             float fWhiteAlpha6 = 0f;
             float fRealAlpha5 = 1f;
             float iFlashInEnd5 = 15f;
             float iFlashOutStart5 = 20f;
             float iFlashOutEnd5 = 40f;
             float iFadeOutStart5 = 200f;
             float iFadeOutEnd5 = 240f;
             if (iProgress5 < iFlashInEnd5)
             {
                 fRealAlpha5 = 0f;
                 fWhiteAlpha6 = iProgress5 / iFlashInEnd5;
             }
             else if (iProgress5 < iFlashOutStart5)
             {
                 fRealAlpha5 = 1f;
                 fWhiteAlpha6 = 1f;
             }
             else if (iProgress5 < iFlashOutEnd5)
             {
                 fRealAlpha5 = 1f;
                 fWhiteAlpha6 = 1f - (iProgress5 - iFlashOutStart5) / (iFlashOutEnd5 - iFlashOutStart5);
             }
             else if (iProgress5 >= iFadeOutStart5)
             {
                 if (iProgress5 < iFadeOutEnd5)
                 {
                     fRealAlpha5 = 1f - (iProgress5 - iFadeOutStart5) / (iFadeOutEnd5 - iFadeOutStart5);
                 }
                 else if (iProgress5 >= iFadeOutEnd5)
                 {
                     fRealAlpha5 = 0f;
                 }
             }
             fRealAlpha5 *= 1f;
             spriteBatch.Draw(HudRenderComponent.txRoguelikeUnlocks, v2Pos19, null, Color.White * fRealAlpha5, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
             v2Pos19 += new Vector2(-245f, 3f);
             spriteBatch.Draw(RenderMaster.xLocalizedTextures.txNotices_NewItemsFromArcadeMode, v2Pos19 + new Vector2(106f, 19f), null, Color.White * fRealAlpha5, 0f, Utility.PointToVector2(RenderMaster.xLocalizedTextures.txNotices_NewItemsFromArcadeMode), base.fScale, SpriteEffects.None, 0f);
             for (int i5 = 0; i5 < this.xView.xGUIStuff.lenNewFromRogue.Count; i5++)
             {
                 Vector2 v2RewardPos = v2Pos19 + new Vector2(106f, 74f);
                 int iMossan = i5 % 11;
                 int iYMultiPlo = -1;
                 if (i5 / 11 % 2 == 1)
                 {
                     iYMultiPlo = 1;
                 }
                 int iYMove = 6;
                 if (i5 >= 11)
                 {
                     iYMove += 6 * ((i5 - 11) / 22);
                     v2RewardPos.Y += (float)(iYMultiPlo * iYMove);
                 }
                 if (iMossan != 0)
                 {
                     if ((iMossan - 1) % 2 == 0)
                     {
                         v2RewardPos.X -= (float)(((iMossan - 1) / 2 + 1) * 13);
                     }
                     else
                     {
                         v2RewardPos.X += (float)(((iMossan - 1) / 2 + 1) * 13);
                     }
                 }
                 Texture2D txRewardImage = ItemCodex.GetItemDescription(this.xView.xGUIStuff.lenNewFromRogue[i5]).txDisplayImage;
                 spriteBatch.Draw(txRewardImage, v2RewardPos, null, Color.White * fRealAlpha5, 0f, Utility.PointToVector2(txRewardImage), 1f, SpriteEffects.None, 0f);
             }
             int iFrame5 = ((int)iProgress5 - (int)iFlashOutEnd5 + 26) / 3;
             if (iFrame5 > 18)
             {
                 iFrame5 = 18;
             }
             else if (iFrame5 < 0)
             {
                 iFrame5 = 0;
             }
             spriteBatch.Draw(HudRenderComponent.txRoguelikeUnlocks_Animation, v2Pos19 + new Vector2(70f, -35f), new Rectangle?(new Rectangle(iFrame5 * 72, 0, 72, 51)), Color.White * fRealAlpha5, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
             if (fWhiteAlpha6 > 0f)
             {
                 spriteBatch.End();
                 spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, DepthStencilState.Default, null, Program.GetTheGame().dsxEffects["ShieldFlash"].xEffect);
                 spriteBatch.Draw(HudRenderComponent.txRoguelikeUnlocks, v2Pos19, null, Color.White * fWhiteAlpha6, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
                 spriteBatch.Draw(HudRenderComponent.txRoguelikeUnlocks_Animation, v2Pos19 + new Vector2(70f, -35f), new Rectangle?(new Rectangle(iFrame5 * 72, 0, 72, 51)), Color.White * fWhiteAlpha6, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
                 spriteBatch.End();
                 spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, DepthStencilState.Default, null);
             }
         }
     }
     if (Program.game.xStateMaster.enGameMode == StateMaster.GameModes.RogueLike)
     {
         if (Program.game.xLevelMaster.xCurrentLevel.enZone == Level.ZoneEnum.RogueLike_TestMoset && this.bRenderRightSide && this.xTrackedQuest == null)
         {
             Vector2 v2TopLeft = new Vector2(507f, 4f);
             if (iKeyboardQuickslots > 8)
             {
                 v2TopLeft = new Vector2(507f, 60f);
             }
             spriteBatch.Draw(HudRenderComponent.txMiniMap_MainBG, v2TopLeft, null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
             Vector2 v2PermaAdd = new Vector2(13f, 11f);
             Vector2 v2RoomSize = new Vector2(9f, 8f);
             foreach (RogueLikeMode.Room xRoom in Program.game.xGameSessionData.xRogueLikeSession.xCurrentFloor.lxRooms)
             {
                 if (xRoom.bSeen || xRoom.bVisited)
                 {
                     if (xRoom.bVisited)
                     {
                         spriteBatch.Draw(HudRenderComponent.txMiniMap_ExploredBG, v2TopLeft + v2PermaAdd + Utility.PointToVector2(xRoom.v2Pos) * v2RoomSize, null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                     }
                     else
                     {
                         spriteBatch.Draw(HudRenderComponent.txMiniMap_UnknownBG, v2TopLeft + v2PermaAdd + Utility.PointToVector2(xRoom.v2Pos) * v2RoomSize, null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                     }
                     if (xRoom == Program.game.xGameSessionData.xRogueLikeSession.xCurrentRoom)
                     {
                         Vector2 v2Mos = v2TopLeft + v2PermaAdd + Utility.PointToVector2(xRoom.v2Pos) * v2RoomSize + new Vector2(1f, 1f);
                         spriteBatch.Draw(RenderMaster.txNoTex, new Rectangle((int)v2Mos.X, (int)v2Mos.Y, 8, 7), Color.White * (1f - (float)(Program.game.iTrueFrameUpdates % 60) / 60f));
                     }
                     if (xRoom.enRoomType == RogueLikeMode.Room.RoomTypes.Boss)
                     {
                         spriteBatch.Draw(HudRenderComponent.txMiniMap_IconBoss, v2TopLeft + v2PermaAdd + Utility.PointToVector2(xRoom.v2Pos) * v2RoomSize, null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                         spriteBatch.Draw(HudRenderComponent.txMiniMap_IconNextLevel, v2TopLeft + v2PermaAdd + Utility.PointToVector2(xRoom.v2Pos) * v2RoomSize + new Vector2(1f, -8f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                     }
                     else if (xRoom.enRoomType == RogueLikeMode.Room.RoomTypes.Challenge)
                     {
                         spriteBatch.Draw(HudRenderComponent.txMiniMap_IconChallenge, v2TopLeft + v2PermaAdd + Utility.PointToVector2(xRoom.v2Pos) * v2RoomSize, null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                     }
                     else if (xRoom.enRoomType == RogueLikeMode.Room.RoomTypes.TreasureRoom)
                     {
                         spriteBatch.Draw(HudRenderComponent.txMiniMap_IconTreasure, v2TopLeft + v2PermaAdd + Utility.PointToVector2(xRoom.v2Pos) * v2RoomSize + new Vector2(1f, 1f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                     }
                     else if (xRoom.enRoomType == RogueLikeMode.Room.RoomTypes.Shop)
                     {
                         spriteBatch.Draw(HudRenderComponent.txMiniMap_IconShop, v2TopLeft + v2PermaAdd + Utility.PointToVector2(xRoom.v2Pos) * v2RoomSize + new Vector2(1f, 0f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                     }
                     else if (xRoom.enRoomType == RogueLikeMode.Room.RoomTypes.Nurse)
                     {
                         spriteBatch.Draw(HudRenderComponent.txMiniMap_IconNurse, v2TopLeft + v2PermaAdd + Utility.PointToVector2(xRoom.v2Pos) * v2RoomSize + new Vector2(1f, 1f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                     }
                     else if (xRoom.enRoomType == RogueLikeMode.Room.RoomTypes.EventRoom)
                     {
                         spriteBatch.Draw(HudRenderComponent.txMiniMap_IconEvent, v2TopLeft + v2PermaAdd + Utility.PointToVector2(xRoom.v2Pos) * v2RoomSize + new Vector2(1f, 0f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                     }
                 }
             }
             string sFloor;
             if (Program.game.xGameSessionData.xRogueLikeSession.iCurrentFloor < 10)
             {
                 sFloor = "0" + Program.game.xGameSessionData.xRogueLikeSession.iCurrentFloor;
             }
             else
             {
                 sFloor = string.Concat(Program.game.xGameSessionData.xRogueLikeSession.iCurrentFloor);
             }
             Vector2 v2FloorPos = v2TopLeft + new Vector2(0f, 0f);
             Program.GetTheGame()._RenderMaster_RenderTextWithOutline(FontManager.Bold10, "F", v2FloorPos, Vector2.Zero, 1f, Color.White * this.fAlpha, Color.Black * this.fAlpha * 0.5f);
             Program.GetTheGame()._RenderMaster_RenderTextWithOutline(FontManager.Bold8Spacing1, sFloor, v2FloorPos + new Vector2(7f, 6f), Vector2.Zero, 1f, Color.White * this.fAlpha, Color.Black * this.fAlpha * 0.5f);
         }
         else if (Program.game.xLevelMaster.xCurrentLevel.enZone == Level.ZoneEnum.RogueLike_Arcadia)
         {
             Vector2 v2EssenceTopLeft = new Vector2(136f, 304f);
             spriteBatch.Draw(RogueLikeUniqueResources.txRogueLike_Village_EssenceText, v2EssenceTopLeft + new Vector2(12f, 0f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
             spriteBatch.Draw(RogueLikeUniqueResources.txRogueLike_Village_EssenceBox, v2EssenceTopLeft + new Vector2(0f, 13f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
             string sEssenceAsString = Program.game.xGlobalData.xLocalRoguelikeData.iEssence.ToString();
             sEssenceAsString = sEssenceAsString.PadLeft(3, '0');
             for (int i6 = 0; i6 < sEssenceAsString.Length; i6++)
             {
                 switch (sEssenceAsString[i6])
                 {
                 case '0':
                     spriteBatch.Draw(RogueLikeUniqueResources.txRogueLike_ScoreMini_OrangeScore[0], v2EssenceTopLeft + new Vector2((float)(39 + 10 * i6), 23f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                     break;
                 case '1':
                     spriteBatch.Draw(RogueLikeUniqueResources.txRogueLike_ScoreMini_OrangeScore[1], v2EssenceTopLeft + new Vector2((float)(39 + 10 * i6), 23f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                     break;
                 case '2':
                     spriteBatch.Draw(RogueLikeUniqueResources.txRogueLike_ScoreMini_OrangeScore[2], v2EssenceTopLeft + new Vector2((float)(39 + 10 * i6), 23f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                     break;
                 case '3':
                     spriteBatch.Draw(RogueLikeUniqueResources.txRogueLike_ScoreMini_OrangeScore[3], v2EssenceTopLeft + new Vector2((float)(39 + 10 * i6), 23f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                     break;
                 case '4':
                     spriteBatch.Draw(RogueLikeUniqueResources.txRogueLike_ScoreMini_OrangeScore[4], v2EssenceTopLeft + new Vector2((float)(39 + 10 * i6), 23f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                     break;
                 case '5':
                     spriteBatch.Draw(RogueLikeUniqueResources.txRogueLike_ScoreMini_OrangeScore[5], v2EssenceTopLeft + new Vector2((float)(39 + 10 * i6), 23f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                     break;
                 case '6':
                     spriteBatch.Draw(RogueLikeUniqueResources.txRogueLike_ScoreMini_OrangeScore[6], v2EssenceTopLeft + new Vector2((float)(39 + 10 * i6), 23f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                     break;
                 case '7':
                     spriteBatch.Draw(RogueLikeUniqueResources.txRogueLike_ScoreMini_OrangeScore[7], v2EssenceTopLeft + new Vector2((float)(39 + 10 * i6), 23f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                     break;
                 case '8':
                     spriteBatch.Draw(RogueLikeUniqueResources.txRogueLike_ScoreMini_OrangeScore[8], v2EssenceTopLeft + new Vector2((float)(39 + 10 * i6), 23f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                     break;
                 default:
                     spriteBatch.Draw(RogueLikeUniqueResources.txRogueLike_ScoreMini_OrangeScore[9], v2EssenceTopLeft + new Vector2((float)(39 + 10 * i6), 23f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
                     break;
                 }
             }
             Vector2 v2PerkTopLeft = new Vector2(239f, 304f);
             spriteBatch.Draw(RogueLikeUniqueResources.txRogueLike_Village_PerksText, v2PerkTopLeft + new Vector2(28f, 0f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
             spriteBatch.Draw(RogueLikeUniqueResources.txRogueLike_Village_PerkActive, v2PerkTopLeft + new Vector2(0f, 14f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
             if (Program.game.xGlobalData.xLocalRoguelikeData.iPerkSlots >= 2)
             {
                 spriteBatch.Draw(RogueLikeUniqueResources.txRogueLike_Village_PerkActive, v2PerkTopLeft + new Vector2(32f, 14f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
             }
             else
             {
                 spriteBatch.Draw(RogueLikeUniqueResources.txRogueLike_Village_PerkEmpty, v2PerkTopLeft + new Vector2(32f, 14f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
             }
             if (Program.game.xGlobalData.xLocalRoguelikeData.iPerkSlots >= 3)
             {
                 spriteBatch.Draw(RogueLikeUniqueResources.txRogueLike_Village_PerkActive, v2PerkTopLeft + new Vector2(64f, 14f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
             }
             else
             {
                 spriteBatch.Draw(RogueLikeUniqueResources.txRogueLike_Village_PerkEmpty, v2PerkTopLeft + new Vector2(64f, 14f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
             }
             if (game.xGlobalData.xLocalRoguelikeData.enPerkSlot01 != RogueLikeMode.Perks.None)
             {
                 Texture2D txPerk = game._RogueLike_GetPerkTexture(game.xGlobalData.xLocalRoguelikeData.enPerkSlot01);
                 spriteBatch.Draw(txPerk, v2PerkTopLeft + new Vector2(15f, 28f), null, Color.White * this.fAlpha, 0f, Utility.PointToVector2(txPerk), 1f, SpriteEffects.None, 0f);
             }
             if (game.xGlobalData.xLocalRoguelikeData.enPerkSlot02 != RogueLikeMode.Perks.None)
             {
                 Texture2D txPerk = game._RogueLike_GetPerkTexture(game.xGlobalData.xLocalRoguelikeData.enPerkSlot02);
                 spriteBatch.Draw(txPerk, v2PerkTopLeft + new Vector2(47f, 28f), null, Color.White * this.fAlpha, 0f, Utility.PointToVector2(txPerk), 1f, SpriteEffects.None, 0f);
             }
             if (game.xGlobalData.xLocalRoguelikeData.enPerkSlot03 != RogueLikeMode.Perks.None)
             {
                 Texture2D txPerk = game._RogueLike_GetPerkTexture(game.xGlobalData.xLocalRoguelikeData.enPerkSlot03);
                 spriteBatch.Draw(txPerk, v2PerkTopLeft + new Vector2(78f, 28f), null, Color.White * this.fAlpha, 0f, Utility.PointToVector2(txPerk), 1f, SpriteEffects.None, 0f);
             }
             Vector2 v2Quests = new Vector2(360f, 304f);
             spriteBatch.Draw(RogueLikeUniqueResources.txRogueLike_Village_ActiveQuestText, v2Quests + new Vector2(35f, 0f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
             spriteBatch.Draw(RogueLikeUniqueResources.txRogueLike_Village_ActiveQuestBox, v2Quests + new Vector2(0f, 13f), null, Color.White * this.fAlpha, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
             if (game.xGlobalData.WorldRelevantData.enActiveQuest != QuestCodex.QuestID.None)
             {
                 QuestDescription xDesc2 = QuestCodex.GetQuestDescription(game.xGlobalData.WorldRelevantData.enActiveQuest);
                 Program.GetTheGame()._RenderMaster_RenderTextWithOutline(InGameMenu.fontItemSorting, xDesc2.sQuestName, v2Quests + new Vector2(74f, 30f), Utility.Vector2_ToInts(InGameMenu.fontItemSorting.MeasureString(xDesc2.sQuestName) / 2f), base.fScale, Color.White * this.fAlpha, Color.Black * 0.7f * this.fAlpha);
             }
             else
             {
                 Program.GetTheGame()._RenderMaster_RenderTextWithOutline(InGameMenu.fontItemSorting, "None", v2Quests + new Vector2(74f, 30f), Utility.Vector2_ToInts(InGameMenu.fontItemSorting.MeasureString("None") / 2f), base.fScale, Color.White * this.fAlpha, Color.Black * 0.7f * this.fAlpha);
             }
         }
     }
     if (Program.GetTheGame().xCutsceneMaster.bInCutscene && !Program.GetTheGame().xCutsceneMaster.xActiveCutscene.bUnskippable && !this.bWaitingForPlayers)
     {
         float fMos = Utility.Alpha_GetPartFromRange((int)Program.GetTheGame().xStateMaster.iInGameFrameUpdates, 60, 60);
         float fEscAlpha = fMos * 0.4f + 0.3f;
         if (Program.GetTheGame().xInput_Game.enControlMode == LocalInputHelper.ControlMode.Keyboard)
         {
             spriteBatch.Draw(HudRenderComponent.txPressEscToSkip, new Vector2(518f, 5f), null, Color.White * fEscAlpha, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
             return;
         }
         spriteBatch.Draw(HudRenderComponent.txPressStartToSkip, new Vector2(518f, 5f), null, Color.White * fEscAlpha, 0f, Vector2.Zero, base.fScale, SpriteEffects.None, 0f);
     }
 }
 public void Init()
 {
     this.InitFenceParts();
     this.xNiceOverlay = new StaticRenderComponent(CAS.RegionContent.Load<Texture2D>("Bkg/Zone009_FlyingTemple/Inside/BossRoom/overlay"), new TransformComponent(Vector2.Zero));
     this.xNiceOverlay.v2Offset = Vector2.Zero;
     Program.game.xRenderMaster.RegisterBackground(this.xNiceOverlay);
     this.xNiceOverlay.fAlpha = 0.9f;
     this.xRenderFunction = new DelegateRenderComponent(new DelegateRenderComponent.RenderDelegate(this.Render));
     Program.game.xRenderMaster.RegisterAboveAllRenderComponent(this.xRenderFunction);
     this.colPillar = new BoxCollider(new Rectangle(309, 327, 23, 15));
     Program.game.xCollisionMaster.RegisterStaticCollider(this.colPillar);
     this.colPathBarrierMos = new BoxCollider(new Rectangle(279, 400, 84, 18));
     if (this.xColorOverlayWhite == null)
     {
         this.xColorOverlayWhite = new OverlayRenderComponent(new Rectangle(0, 0, 640, 360), Color.White);
         this.xColorOverlayWhite.fAlpha = 0f;
         Program.game.xRenderMaster.RegisterAboveSorted(this.xColorOverlayWhite);
     }
     if (this.xColorOverlayBlack == null)
     {
         this.xColorOverlayBlack = new OverlayRenderComponent(new Rectangle(0, 0, 640, 360), Color.Black);
         this.xColorOverlayBlack.fAlpha = 0f;
         Program.game.xRenderMaster.RegisterAboveSorted(this.xColorOverlayBlack);
     }
     string sText = "During my thousand years of captivity \nnot once did I doubt \nmy saviour would be the greed of humans.\n  \n  \nAt last, the time is nigh \nfor artifacts to rule mankind.";
     this.xFunMessageTextBatch = new TextBatch(FontManager.GetFont(FontManager.FontType.Reg7), sText, Color.White, -1, new float[0]);
     this.xFunMessageTextBatch.MakeTextCentered(240);
     this.xFunMessageTextBatch.OverridePosition(0);
 }
Example #10
0
 public void SetNewLineNoSpeaker(string s, SpriteFont p_font)
 {
     this.font = p_font;
     this.sParsedLine = this.ParseString(s, 330);
     this.xTextBatch = new TextBatch(FontManager.Bold10, this.sParsedLine, Color.White, -1, new float[0]);
     this.xTextBatch.OverridePosition(0);
     this.sDisplayLine = "";
     this.sNameOverride = "";
     this.iLinePosition = 0;
 }