示例#1
0
        protected override void OnInitialize()
        {
            _scrollArea.Clear();

            foreach (PartyListEntry entry in _partyListEntries)
            {
                entry.Clear();
                entry.Dispose();
            }

            _partyListEntries.Clear();

            foreach (PartyMember member in World.Party.Members)
            {
                PartyListEntry p = new PartyListEntry(member);
                _partyListEntries.Add(p);
                _scrollArea.Add(p);
            }
        }
        protected override void OnInitialize()
        {
            _scrollArea.Clear();

            foreach (PartyListEntry entry in _partyListEntries)
            {
                entry.Dispose();
            }
            _partyListEntries.Clear();

            for (int i = 0; i < World.Party.Members.Length; i++)
            {
                var m = World.Party.Members[i];

                if (m == null)
                {
                    continue;
                }

                PartyListEntry p = new PartyListEntry(i);
                _partyListEntries.Add(p);
                _scrollArea.Add(p);
            }
        }