Beispiel #1
0
        public VirtualList(List cfg, ListBase listbase)
            : base(cfg, listbase)
        {
            var scroll = cfg.gameObject.GetComponent <ScrollRect>();

            //添加滚动事件回调
            scroll.onValueChanged.AddListener(delegate { OnScrollValueChange(); });
        }
Beispiel #2
0
 void Awake()
 {
     listbase = new ListBase(this);
 }
Beispiel #3
0
 public NormalList(List cfg, ListBase listbase)
     : base(cfg, listbase)
 {
 }
Beispiel #4
0
 public ListItemMgrStrategy(List cfg, ListBase listbase)
 {
     this.cfg      = cfg;
     this.listbase = listbase;
     this.type     = this.cfg.type;
 }