Battle Talent  V11
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
CrossLink.VerticalContentContainer< T > Class Template Reference

Inherits MonoBehaviour.

Public Member Functions

virtual void RefleshData ()
 
virtual void OnNextType ()
 
virtual void RefleshView ()
 
UIButton SpawnGridItem (GameObject prefab)
 
void PutIntoGridPool (List< UIButton > list)
 
virtual void OnItemSelect (UIEvent ue, T data)
 
virtual void OnItemHoverEnter (T data)
 
virtual void OnItemHoverExit (T data)
 
void OnPagePrev ()
 
void OnPageNext ()
 

Public Attributes

DebugPanel debug
 
GameObject nextBtn
 
GameObject prevBtn
 
Transform stateRoot
 
UnityEngine.Object statePrefab
 
int maxRow = 5
 
int maxColumn = 4
 

Protected Member Functions

virtual void Awake ()
 
void ClearPageView ()
 
void MakeContent ()
 
virtual void InitPageData (List< T > datas)
 
virtual void MakeContentItem ()
 
virtual void InitBtnContent (UIButton btn, T item)
 

Protected Attributes

int[] itemType
 
int curSource = 0
 
Dictionary< UIEvent, T > btn2Item = new Dictionary<UIEvent, T>()
 
List< T >[] typeList
 
List< Dictionary< string, List< T > > > pageData = new List<Dictionary<string, List<T>>>()
 
int curPage = 1
 
List< VerticalContentItem< T > > contentItemList = new List<VerticalContentItem<T>>(4)