Example #1
0
        public Sprite GetAbnormalIconSprite(eStateIconType stateIconType)
        {
            int index = 40;

            try
            {
                index = int.Parse(stateIconType.GetDescription());
            }
            catch
            {
                LogMessage("未设置" + stateIconType.GetDescription() + "的技能图标!", eLogMessageType.ERROR, false);
            }
            return(buffDebuffIcons[index]);
        }
Example #2
0
 public void SetAbnormalIcons(UnitCtrl unitCtrl, eStateIconType stateIconType, bool enable)
 {
     if (stateIconType == eStateIconType.NONE)
     {
         Reflash();
         return;
     }
     if (currentBuffs.Contains(stateIconType))
     {
         currentBuffs.Remove(stateIconType);
     }
     if (enable)
     {
         currentBuffs.Add(stateIconType);
     }
     Reflash();
 }