Giter VIP home page Giter VIP logo

Comments (5)

bjorn avatar bjorn commented on May 7, 2024

The "replace all tiles of a kind" is covered by the "select all tiles of a kind" + "fill tool" (when holding shift it fills the selection). As a context menu item it also has the problem of selecting with which tile to replace it. The other two sound good.

from tiled.

stefanbeller avatar stefanbeller commented on May 7, 2024

Ok I started implementing that.
Now I have problems with tiles and cells, since you can only select tiles, but at a map there are cells
(tiles with flipped=yes/no attribute) .

My idea would be to make it a menu entry in the layer menu and to use the current stamp.

That would mean this way of handling:

  • select all tiles you want to replace/remove and have them in your stamp
  • LayerMenu->"Select all tiles of these"
    -> Now this behaves like the selection tool: A selection will be setup, at which the region will cover all the
    cells within the selection
  • Within that selection you can either use the erase tool or the stampbrush tool to replace/remove all the tiles in the region.

from tiled.

bjorn avatar bjorn commented on May 7, 2024

My idea would be to simply ignore the flipped state of the cells for the tileset right-click menu. We can have a different approach for the map, probably an additional tile selection tool that selects all cells that are the same as the clicked one. Similar to the Select by Color Tool in GIMP.

from tiled.

stefanbeller avatar stefanbeller commented on May 7, 2024

I think, that this is an inconsistent approach.
First we should do care for the flipped state, since every other tool does.
(Second I would not put it into a rightclickmenu, since all other tools are either in toolbars or in the menu)

from tiled.

eishiya avatar eishiya commented on May 7, 2024

I think this would be better handled by having a "contiguous" toggle (on by default) to the Bucket Fill Tool and the Magic Wand. This would be consistent with how image editors tend to handle similar scenarios, and it would eliminate the need for Select Same Tile as a separate tool.

For replacing a tile, a dedicated Replace Tile Tool would be useful. While Select Same Tile + Shift+Fill does work (or just non-contiguous Bucket Fill, if that's added), it gets quite tedious if the tile exists with multiple flips or on multiple layers. I wrote a scripted tool for this that reconciles flips and works across multiple layers and it's been a great time saver, would be great to see as a built-in feature. Perhaps a good replacement for the redundant Select Same Tile tool ;D

from tiled.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.