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); }
public LocalLayerContext(StaticBrushForm form) { _form = form; _history = new CommandHistory(); _annots = new ObservableCollection<Annotation>(); }
public TileFillTool(CommandHistory history, MultiTileGridLayer layer) : base(history, layer) { }
public TileFillTool(CommandHistory history, MultiTileGridLayer layer, TileSourceType sourceType) : base(history, layer, sourceType) { }
public CommandHistoryEventArgs(CommandHistory commandHistory) { _commandHistory = commandHistory; }
public TileDrawTool(CommandHistory history, MultiTileGridLayer layer, ObservableCollection<Annotation> annots) : base(history, layer) { _annots = annots; }
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(); }
public TileSelectTool(CommandHistory history, MultiTileGridLayer layer, ObservableCollection<Annotation> annots, ITileSelectionLayer selectLayer) : base(history, layer) { _annots = annots; _selectLayer = selectLayer; }
public TilePointerTool(CommandHistory history, MultiTileGridLayer layer, TileSourceType mode) : this(history, layer) { _sourceType = mode; }
public TilePointerTool(CommandHistory history, MultiTileGridLayer layer) { _history = history; _layer = layer; }