修复UIListBase和UIUILoopListWidget赋值问题

This commit is contained in:
Weekend
2023-10-25 22:18:57 +08:00
parent f5f983f220
commit dfef83919c
2 changed files with 2 additions and 2 deletions

View File

@@ -277,7 +277,7 @@ namespace GameLogic
item.SetSelected(false); item.SetSelected(false);
} }
item = GetItem(selectIndex) as IListSelectItem; item = GetItem(m_selectIndex) as IListSelectItem;
if (item != null) if (item != null)
{ {
item.SetSelected(true); item.SetSelected(true);

View File

@@ -161,7 +161,7 @@ namespace GameLogic
m_items.Clear(); m_items.Clear();
for (int i = 0; i < m_itemCache.Count; i++) for (int i = 0; i < m_itemCache.Count; i++)
{ {
m_items.Add(m_itemCache[i]); m_items.AddRange(m_itemCache.Values);
} }
return m_items; return m_items;
} }