コード例 #1
0
ファイル: GridPointMatrix.cs プロジェクト: Isthimius/Gondwana
        protected virtual void OnWrappingChanged(bool oldHoriz, bool newHoriz, bool oldVerti, bool newVerti)
        {
            if (WrappingChanged != null)
            {
                GridPointMatrixWrappingChangedEventArgs e =
                    new GridPointMatrixWrappingChangedEventArgs(this, oldHoriz, newHoriz, oldVerti, newVerti);
                WrappingChanged(e);
            }

            // set indexer delegate
            if (newHoriz || newVerti)
                FindIndexedGridPoint = new GetIndexer(GetIndexer_Wrap);
            else
                FindIndexedGridPoint = new GetIndexer(GetIndexer_NoWrap);

            // create new child Sprites for all Sprite instances on this grid
            Sprites.CreateChildSprites(this);
        }
コード例 #2
0
 private void _GridPointMatrixWrappingChanged(GridPointMatrixWrappingChangedEventArgs e)
 {
     refreshNeeded = MatrixesRefreshType.All;
 }