示例#1
0
 public override void SetView(View view)
 {
     base.SetView(view);
     updateViewChipData();
 }
示例#2
0
 public override void SetView(View view)
 {
     _viewChips = null;
     base.SetView(view);
 }
示例#3
0
文件: Map.cs 项目: davinx/PitchPitch
        public virtual void SetView(View view)
        {
            this.view = view;
            int vb = (int)(view.Y + view.Height);

            _xOffset = view.X % _chipData.ChipWidth;
            _yOffset = view.Y % _chipData.ChipHeight;
            _xFirstIdx = convertP2IdxX(view.X);
            _yFirstIdx = convertP2IdxY(view.Y);
            _xLastIdx = _xFirstIdx + _needColumnNum;
            _yLastIdx = _yFirstIdx + _needRowNum;

            if(_viewChips != null) _viewChips.Clear();
            _viewChips = null;
        }