public void pnl_HoverLeave(Base sender, EventArgs arguments)
 {
     if (mDescWindow != null)
     {
         mDescWindow.Dispose();
         mDescWindow = null;
     }
 }
Esempio n. 2
0
 void pnl_HoverLeave(Base sender, EventArgs arguments)
 {
     mMouseOver = false;
     mMouseX    = -1;
     mMouseY    = -1;
     if (mDescWindow != null)
     {
         mDescWindow.Dispose();
         mDescWindow = null;
     }
 }
        void pnl_HoverEnter(Base sender, EventArgs arguments)
        {
            if (mDescWindow != null)
            {
                mDescWindow.Dispose();
                mDescWindow = null;
            }

            mDescWindow = new SpellDescWindow(
                mStatus.SpellId, mEntityBox.EntityWindow.X + Pnl.X + 16,
                mEntityBox.EntityWindow.Y + Container.Parent.Y + Container.Bottom + 2, true
                );
        }
Esempio n. 4
0
        void pnl_HoverEnter(Base sender, EventArgs arguments)
        {
            if (InputHandler.MouseFocus != null)
            {
                return;
            }

            mMouseOver = true;
            mCanDrag   = true;
            if (Globals.InputManager.MouseButtonDown(GameInput.MouseButtons.Left))
            {
                mCanDrag = false;

                return;
            }

            if (mCurrentItem != null)
            {
                if (mItemDescWindow != null)
                {
                    mItemDescWindow.Dispose();
                    mItemDescWindow = null;
                }

                mItemDescWindow = new ItemDescWindow(
                    mCurrentItem, 1, mHotbarWindow.X + Pnl.X + 16, mHotbarWindow.Y + mHotbarWindow.Height + 2,
                    mInventoryItem?.StatBuffs, mCurrentItem.Name, "", true
                    );
            }
            else if (mCurrentSpell != null)
            {
                if (mSpellDescWindow != null)
                {
                    mSpellDescWindow.Dispose();
                    mSpellDescWindow = null;
                }

                mSpellDescWindow = new SpellDescWindow(
                    mCurrentSpell.Id, mHotbarWindow.X + Pnl.X + 16, mHotbarWindow.Y + mHotbarWindow.Height + 2, true
                    );
            }
        }
Esempio n. 5
0
        void pnl_HoverEnter(Base sender, EventArgs arguments)
        {
            if (InputHandler.MouseFocus != null)
            {
                return;
            }

            mMouseOver = true;
            mCanDrag   = true;
            if (Globals.InputManager.MouseButtonDown(GameInput.MouseButtons.Left))
            {
                mCanDrag = false;

                return;
            }

            if (mDescWindow != null)
            {
                mDescWindow.Dispose();
                mDescWindow = null;
            }

            mDescWindow = new SpellDescWindow(Globals.Me.Spells[mYindex].SpellId, mSpellWindow.X, mSpellWindow.Y);
        }