예제 #1
0
        public MapEditorSceneTiledLayer(Point mapSize, Vector2 nodeSize)
        {
            var size                    = mapSize;
            TiledMap                    = new CozyTiledMap(size);
            TiledMap.NodeContentSize    = nodeSize;

            MapEditorScene.Container.DataMessage    += OnDataChanged;
            MapEditorScene.Container.ClearMessage   += OnClear;
            MapEditorScene.Container.RefreshMessage += OnRefersh;
            this.AddChind(TiledMap);

            var thumb   = new MapEditorThumb(mapSize, TiledMap.NodeContentSize / 4);
            thumb.Position = new Vector2(thumb.Position.X + 960, thumb.Position.Y);
            this.AddChind(thumb, 1);
        }
예제 #2
0
        public MapEditorSceneTiledLayer(Point mapSize, Vector2 nodeSize)
        {
            var size = mapSize;

            TiledMap = new CozyTiledMap(size);
            TiledMap.NodeContentSize = nodeSize;

            MapEditorScene.Container.DataMessage    += OnDataChanged;
            MapEditorScene.Container.ClearMessage   += OnClear;
            MapEditorScene.Container.RefreshMessage += OnRefersh;
            this.AddChind(TiledMap);

            var thumb = new MapEditorThumb(mapSize, TiledMap.NodeContentSize / 4);

            thumb.Position = new Vector2(thumb.Position.X + 960, thumb.Position.Y);
            this.AddChind(thumb, 1);
        }