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

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