Пример #1
0
        public void setTilesMap(TilesMap tilesMap)
        {
            this.currentTilesMap = tilesMap;

            if (this.currentTilesMap != null)
            {
                this.tileEventManager.init(this.currentTilesMap, this.mainForm);

                this.ModelsSelection = new TilesSelection(tilesMap);
                this.setScrollValue();

                Point offsetPoint = this.getOffsetPoint();
                Rectangle rect = new Rectangle(new Point(-offsetPoint.X, -offsetPoint.Y), this.surfaceDessin.Size);

                this.currentTilesMap.setSurfaceVisible(rect,1,1);

                this.refreshPaletteContent();
                GorgonLibrary.Gorgon.Go();
            }
        }
Пример #2
0
        //---------------------------------------------------
        //-------------------Events--------------------
        //---------------------------------------------------

        public void setCurrentTilesMap(TilesMap map)
        {
            //Creer une selecteur de tilesmodel
            TilesSelection = new TilesSelection(map);
        }
Пример #3
0
 //---------------------------------------------------
 //-------------------Events--------------------
 //---------------------------------------------------
 public void setCurrentTilesMap(TilesMap map)
 {
     //Creer une selecteur de tilesmodel
     TilesSelection = new TilesSelection(map);
 }