Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public LocalLayerContext(StaticBrushForm form)
 {
     _form = form;
     _history = new CommandHistory();
     _annots = new ObservableCollection<Annotation>();
 }
Ejemplo n.º 3
0
 public TileFillTool(CommandHistory history, MultiTileGridLayer layer)
     : base(history, layer)
 {
 }
Ejemplo n.º 4
0
 public TileFillTool(CommandHistory history, MultiTileGridLayer layer, TileSourceType sourceType)
     : base(history, layer, sourceType)
 {
 }
Ejemplo n.º 5
0
 public CommandHistoryEventArgs(CommandHistory commandHistory)
 {
     _commandHistory = commandHistory;
 }
Ejemplo n.º 6
0
 public TileDrawTool(CommandHistory history, MultiTileGridLayer layer, ObservableCollection<Annotation> annots)
     : base(history, layer)
 {
     _annots = annots;
 }
Ejemplo n.º 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();
        }
Ejemplo n.º 8
0
 public TileSelectTool(CommandHistory history, MultiTileGridLayer layer, ObservableCollection<Annotation> annots, ITileSelectionLayer selectLayer)
     : base(history, layer)
 {
     _annots = annots;
     _selectLayer = selectLayer;
 }
Ejemplo n.º 9
0
 public TilePointerTool(CommandHistory history, MultiTileGridLayer layer, TileSourceType mode)
     : this(history, layer)
 {
     _sourceType = mode;
 }
Ejemplo n.º 10
0
 public TilePointerTool(CommandHistory history, MultiTileGridLayer layer)
 {
     _history = history;
     _layer = layer;
 }
Ejemplo n.º 11
0
 public CommandHistoryEventArgs(CommandHistory commandHistory)
 {
     _commandHistory = commandHistory;
 }