示例#1
0
 public ShortcutView() : base(662, 160)
 {
     skillItems = new SkillShortcutItem[SKILL_COUNT];
     for (int i = 0; i < 8; i++)
     {
         shortcuts[i] = new ShortcutItem();
     }
 }
示例#2
0
        public void SetShortCut(int index, SHORTCUTITEM type, int id, bool save = true)
        {
            if (index < 0 && index > 7)
            {
                return;
            }
            ShortCutData data = ShortCutDataManager.Instance.datas[index];

            data.id   = id;
            data.type = type;
            ShortcutItem item = shortcuts[index];

            item.Refreash();
            if (save)
            {
                //OnShortCutChange(index,type,id);
            }
        }