Ejemplo n.º 1
0
        private void doCreateStack()
        {
            ACImage mQuickSlots;
            Rectangle rec = new Rectangle(0, 0, 20, 20);

            HudImageStack mQuickStacks = new HudImageStack();
            try
            {
                if (thisQuickie.IconUnderlay != 0)
                {
                    mQuickSlots = new ACImage(thisQuickie.IconUnderlay);
                    mQuickStacks.Add(rec, mQuickSlots);
                }

                mQuickSlots = new ACImage(thisQuickie.Icon);
                mQuickStacks.Add(rec, mQuickSlots);

                if (thisQuickie.IconOverlay != 0)
                {
                    mQuickSlots = new ACImage(0x6000000 + thisQuickie.IconOverlay);
                    mQuickStacks.Add(rec, mQuickSlots);
                }

                mQuickieControl = new QSControls();
                mQuickieControl.QuickSlotGuid = thisQuickie.Guid;
                mQuickieControl.QuickSlotName = AetherObjects.Collection[mQuickieControl.QuickSlotGuid].Name;
                mQuickieControl.QuickSlotStack = mQuickStacks;
                mQuickieControl.QuickSlotToolTip = mQuickieControl.QuickSlotName;;
            //                mQuickieControl.QuickSlotHit += mQuickStacks_Hit();

            }
            catch (Exception ex) { LogError(ex); }
        }
Ejemplo n.º 2
0
        private void mvQuickStacks_Hit(object sender, System.EventArgs e)
        {
            try
            {
                mvQuickieControl = new QSControls();

                int index = qsvswitches.FindIndex(x => x.QuickSlotStack == sender);
                mvQuickieControl = qsvswitches[index];
                mQuikieId = mvQuickieControl.QuickSlotGuid;
                doQuickieChkWork(mQuikieId, index, quickiesvHud);

            }
            catch (Exception ex) { LogError(ex); }
        }
Ejemplo n.º 3
0
 private void ClearVariables()
 {
     if(mQuickieControl != null) {mQuickieControl = null;}
      if(mvQuickieControl != null) {mvQuickieControl = null;}
      if(mhQuickieControl != null) {mhQuickieControl = null;}
      mQuikieId = 0;
      baddItem = false;
      bremoveItem = false;
      bdual = false;
 }