Exemple #1
0
    protected override void OnCreated()
    {
        base.OnCreated();

        Transform transform = this.transform;

        if (transform == HS_ViewManager.root.transform)
        {
            return;
        }

        this._uIScrollRect                = HS_Base.FindProperty <HS.UI.HS_UIListView>(transform, "UIScrollRect");
        this._uIScrollRect.onInit        += OnListViewInit;
        this._uIScrollRect.onCellCreated += OnCellCreated;
        this._uIScrollRect.onClick       += OnListViewClick;
        this._uIScrollRect.onSelected    += OnListViewSelected;
        this._uIScrollRect.onDeselected  += OnListViewDeselected;
    }
Exemple #2
0
 virtual protected void OnListViewSelected(HS_UIListView listView, int dataIndex)
 {
 }
Exemple #3
0
 virtual protected void OnListViewClick(HS_UIListView listView, HS_UIListViewCell cell, GameObject target)
 {
 }