public TilesetSelectionChangedEventArgs(ContentRef<Tileset> prev, ContentRef<Tileset> next, SelectionChangeReason reason) : base() { this.prev = prev; this.next = next; this.reason = reason; }
public SelectionChangedEventArgs(ObjectSelection current, ObjectSelection previous, ObjectSelection.Category changedCategoryFallback, SelectionChangeReason reason) { this.current = current; this.previous = previous; this.reason = reason; this.diffCat = ObjectSelection.GetAffectedCategories(this.previous, this.current); if (this.diffCat == ObjectSelection.Category.None) this.diffCat = changedCategoryFallback; this.added = this.current - this.previous; this.removed = this.previous - this.current; }
public SelectionChangedEventArgs(ObjectSelection current, ObjectSelection previous, ObjectSelection.Category changedCategoryFallback, SelectionChangeReason reason) { this.current = current; this.previous = previous; this.reason = reason; this.diffCat = ObjectSelection.GetAffectedCategories(this.previous, this.current); if (this.diffCat == ObjectSelection.Category.None) { this.diffCat = changedCategoryFallback; } this.added = this.current - this.previous; this.removed = this.previous - this.current; }
private void ApplyGlobalTilesetSelection(SelectionChangeReason changeReason) { Tileset tileset = TilemapsEditorSelectionParser.QuerySelectedTileset().Res; if (this.tilesetView.TargetTileset != tileset) { TilesetSelectionChangedEventArgs args = new TilesetSelectionChangedEventArgs( this.tilesetView.TargetTileset, tileset, changeReason); this.OnTilesetSelectionChanging(args); this.tilesetView.TargetTileset = tileset; this.OnTilesetSelectionChanged(args); } }
public TilesetSelectionChangedEventArgs(ContentRef <Tileset> prev, ContentRef <Tileset> next, SelectionChangeReason reason) : base() { this.prev = prev; this.next = next; this.reason = reason; }