Пример #1
0
        public TileEraseTool(CommandHistory history, MultiTileGridLayer layer, ObservableCollection<Annotation> annots)
            : base(history, layer)
        {
            _annots = annots;

            _previewMarker = new SelectionAnnot(new Point(0, 0))
            {
                Fill = new SolidColorBrush(new Color(192, 0, 0, 128)),
            };

            _annots.Add(_previewMarker);
        }
Пример #2
0
 public LocalLayerContext(StaticBrushForm form)
 {
     _form = form;
     _history = new CommandHistory();
     _annots = new ObservableCollection<Annotation>();
 }
Пример #3
0
 public TileFillTool(CommandHistory history, MultiTileGridLayer layer)
     : base(history, layer)
 {
 }
Пример #4
0
 public TileFillTool(CommandHistory history, MultiTileGridLayer layer, TileSourceType sourceType)
     : base(history, layer, sourceType)
 {
 }
Пример #5
0
 public CommandHistoryEventArgs(CommandHistory commandHistory)
 {
     _commandHistory = commandHistory;
 }
Пример #6
0
 public TileDrawTool(CommandHistory history, MultiTileGridLayer layer, ObservableCollection<Annotation> annots)
     : base(history, layer)
 {
     _annots = annots;
 }
Пример #7
0
        public LevelPresenter(PresenterManager pm, EditorPresenter editor, Level level)
        {
            _pm = pm;
            _pm.InstanceRegistered += PresenterRegsitered;
            _pm.InstanceUnregistered += PresenterUnregistered;

            _editor = editor;
            _level = level;

            _zoom = new ZoomState();
            _zoom.ZoomLevelChanged += ZoomStateLevelChanged;

            _info = new LevelInfoPresenter(this);

            _layerPresenters = new Dictionary<Guid, LevelLayerPresenter>();

            _history = new CommandHistory();
            _history.HistoryChanged += HistoryChangedHandler;

            _annotations = new ObservableCollection<Annotation>();

            InitializeCommandManager();
            InitializeLayerHierarchy();
            InitializeLayers();
        }
Пример #8
0
 public TileSelectTool(CommandHistory history, MultiTileGridLayer layer, ObservableCollection<Annotation> annots, ITileSelectionLayer selectLayer)
     : base(history, layer)
 {
     _annots = annots;
     _selectLayer = selectLayer;
 }
Пример #9
0
 public TilePointerTool(CommandHistory history, MultiTileGridLayer layer, TileSourceType mode)
     : this(history, layer)
 {
     _sourceType = mode;
 }
Пример #10
0
 public TilePointerTool(CommandHistory history, MultiTileGridLayer layer)
 {
     _history = history;
     _layer = layer;
 }
Пример #11
0
 public CommandHistoryEventArgs(CommandHistory commandHistory)
 {
     _commandHistory = commandHistory;
 }