Ejemplo n.º 1
0
 /** Activates an action on the action bar. */
 private void activate(MDRAction action)
 {
     Character.CurrentAction = action;
     if (action != null && action.NeedsTargetSelection)
     {
         action.SpecifiedTarget = null;
         GuiPartyInfo.State     = PartyState.ChoosingLivingCharacter;
     }
 }
Ejemplo n.º 2
0
        public GuiSpellButton(MDRSpell spell)
            : base(spell.Icon)
        {
            _spell = spell;

            DragDropEnabled = true;

            ShowToolTipOnHover = true;

            MDRAction action = new MDRAction(ActionType.Spell, spell.ID);

            _ddContent = new GuiAction(action);
        }
Ejemplo n.º 3
0
 public GuiAction(MDRAction action)
     : base(SIZE, SIZE)
 {
     EnableBackground = false;
     Action           = action;
 }