mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-17 08:37:49 +08:00
Cleanup and fix some small issues with scroll pool
This commit is contained in:
@ -17,6 +17,8 @@ namespace UnityExplorer.UI.Widgets
|
||||
public ButtonListSource<T> list;
|
||||
|
||||
public GameObject uiRoot;
|
||||
private RectTransform m_rect;
|
||||
public RectTransform Rect => m_rect;
|
||||
public Text buttonText;
|
||||
public Button button;
|
||||
|
||||
@ -24,6 +26,7 @@ namespace UnityExplorer.UI.Widgets
|
||||
{
|
||||
this.list = list;
|
||||
this.uiRoot = uiRoot;
|
||||
this.m_rect = uiRoot.GetComponent<RectTransform>();
|
||||
this.buttonText = text;
|
||||
this.button = button;
|
||||
|
||||
|
@ -96,5 +96,7 @@ namespace UnityExplorer.UI.Widgets
|
||||
SetICell.Invoke((ButtonCell<T>)cell, index);
|
||||
}
|
||||
}
|
||||
|
||||
public void DisableCell(ICell cell, int index) => cell.Disable();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user