|
@@ -246,7 +246,9 @@ namespace GFGGame
|
|
int selectedIndex = 0;
|
|
int selectedIndex = 0;
|
|
if (_ui.m_list.numItems > 0)
|
|
if (_ui.m_list.numItems > 0)
|
|
{
|
|
{
|
|
|
|
+ if (_ui.m_list.selectedIndex < 0) return;
|
|
_ui.m_list.ScrollToView(_ui.m_list.selectedIndex);
|
|
_ui.m_list.ScrollToView(_ui.m_list.selectedIndex);
|
|
|
|
+
|
|
int childIndex = _ui.m_list.ItemIndexToChildIndex(_ui.m_list.selectedIndex);
|
|
int childIndex = _ui.m_list.ItemIndexToChildIndex(_ui.m_list.selectedIndex);
|
|
if (childIndex < 0) return;
|
|
if (childIndex < 0) return;
|
|
GButton item = _ui.m_list.GetChildAt(childIndex).asButton.GetChild("btnSend").asButton;
|
|
GButton item = _ui.m_list.GetChildAt(childIndex).asButton.GetChild("btnSend").asButton;
|