Beispiel #1
0
        public void TryToHover()
        {
            Vector2 mouseScreen = Main.MouseScreen;
            Player  localPlayer = Main.LocalPlayer;
            int     num1        = 26 * localPlayer.statLifeMax2 / (int)this.UIDisplay_LifePerHeart;
            int     num2        = 0;

            if (localPlayer.statLifeMax2 > 200)
            {
                num1  = 260;
                num2 += 26;
            }
            if ((double)mouseScreen.X > (double)(500 + this.UI_ScreenAnchorX) && (double)mouseScreen.X < (double)(500 + num1 + this.UI_ScreenAnchorX) && ((double)mouseScreen.Y > 32.0 && (double)mouseScreen.Y < (double)(32 + TextureAssets.Heart.Height() + num2)))
            {
                CommonResourceBarMethods.DrawLifeMouseOver();
            }
            int num3 = 24;
            int num4 = 28 * localPlayer.statManaMax2 / this.UIDisplay_ManaPerStar;

            if ((double)mouseScreen.X <= (double)(762 + this.UI_ScreenAnchorX) || (double)mouseScreen.X >= (double)(762 + num3 + this.UI_ScreenAnchorX) || ((double)mouseScreen.Y <= 30.0 || (double)mouseScreen.Y >= (double)(30 + num4)))
            {
                return;
            }
            CommonResourceBarMethods.DrawManaMouseOver();
        }
 public void TryToHover()
 {
     if (_hpHovered)
     {
         CommonResourceBarMethods.DrawLifeMouseOver();
     }
     if (_mpHovered)
     {
         CommonResourceBarMethods.DrawManaMouseOver();
     }
 }
 public void TryToHover()
 {
     if (_hoverLife)
     {
         CommonResourceBarMethods.DrawLifeMouseOver();
     }
     if (_hoverMana)
     {
         CommonResourceBarMethods.DrawManaMouseOver();
     }
 }
Beispiel #4
0
 public void TryToHover()
 {
     if (this._hpHovered)
     {
         CommonResourceBarMethods.DrawLifeMouseOver();
     }
     if (!this._mpHovered)
     {
         return;
     }
     CommonResourceBarMethods.DrawManaMouseOver();
 }
Beispiel #5
0
        public void TryToHover()
        {
            Vector2 mouseScreen = Main.MouseScreen;
            Player  localPlayer = Main.LocalPlayer;
            int     num         = 26 * localPlayer.statLifeMax2 / (int)UIDisplay_LifePerHeart;
            int     num2        = 0;

            if (localPlayer.statLifeMax2 > 200)
            {
                num   = 260;
                num2 += 26;
            }
            if (mouseScreen.X > (float)(500 + UI_ScreenAnchorX) && mouseScreen.X < (float)(500 + num + UI_ScreenAnchorX) && mouseScreen.Y > 32f && mouseScreen.Y < (float)(32 + TextureAssets.Heart.Height() + num2))
            {
                CommonResourceBarMethods.DrawLifeMouseOver();
            }
            num  = 24;
            num2 = 28 * localPlayer.statManaMax2 / UIDisplay_ManaPerStar;
            if (mouseScreen.X > (float)(762 + UI_ScreenAnchorX) && mouseScreen.X < (float)(762 + num + UI_ScreenAnchorX) && mouseScreen.Y > 30f && mouseScreen.Y < (float)(30 + num2))
            {
                CommonResourceBarMethods.DrawManaMouseOver();
            }
        }