Beispiel #1
0
 public void FillData(LayoutConfig config)
 {
     this.prefab       = config.prefab;
     this.dir          = config.dir;
     this.dirCellWidth = config.dirCellWidth;
     this.dirViewLen   = config.dirViewLen;
     this.cellSize     = config.cellSize;
     this.spacing      = config.spacing;
     this.bufHalfCnt   = config.bufHalfCnt;
     this.progress     = config.progress;
 }
 public void DoInit(LayoutConfig tconfig, List <F> tdatas)
 {
     config = tconfig;
     if (tdatas == null)
     {
         datas.Clear();
     }
     else
     {
         datas = new List <F>(tdatas);
     }
     inited = true;
     TryWork();
 }
Beispiel #3
0
 public LayoutConfig(LayoutConfig config)
 {
     FillData(config);
 }