private void ViewSkill(int equipId) { var buffList = Table.GetBuffGroup(1000).BuffID; //EventDispatcher.Instance.DispatchEvent(new Show_UI_Event(UIConfig.BufferListUI, new UIInitArguments() //{ // Args = buffList //})); DataModel.BufferListData.BuffList.Clear(); var enumorator = buffList.GetEnumerator(); while (enumorator.MoveNext()) { var cell = new BuffInfoCell(); cell.BuffId = enumorator.Current; cell.BuffLevel = 1; DataModel.BufferListData.BuffList.Add(cell); } }
public void RefreshData(UIInitArguments data) { if (data.Args == null) { return; } DataModel.BuffList.Clear(); var enumorator = data.Args.GetEnumerator(); while (enumorator.MoveNext()) { var cell = new BuffInfoCell(); cell.BuffId = enumorator.Current; cell.BuffLevel = 1; DataModel.BuffList.Add(cell); } }