public ShortcutView() : base(662, 160) { skillItems = new SkillShortcutItem[SKILL_COUNT]; for (int i = 0; i < 8; i++) { shortcuts[i] = new ShortcutItem(); } }
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); } }