Git Product home page Git Product logo

Comments (11)

bjorn avatar bjorn commented on May 7, 2024

Local IDs would be possible to show, but global IDs only exist in the map file as a way to map each tile to the right tile in multiple tilesets. The global ID is subject to change when tilesets are reordered, removed or resized, so are they really useful to show?

from tiled.

mrmalee avatar mrmalee commented on May 7, 2024

When hovering over tiles in a tileset I would expect to see local id's, but hovering over a tile in the world I would expect to see global ids. I don't know about anyone else but I use global Id's in my game when referring to tiles and building their functionality. If its not possible to show global id's, then local would be fine :)

from tiled.

stefanbeller avatar stefanbeller commented on May 7, 2024

So GIDs only change, when tilesets are

reordered, removed or resized

This can be tracked and at any change the firstGID of a tileset (if you'd save it right now, so more a hypothetically firstGID of a tileset) could be recalculated. Then at hovering over tiles a GID of a tile can be shown. This GID is also just that number which would be GID if saving the map as it is now.

from tiled.

MHendricks avatar MHendricks commented on May 7, 2024

It looks like the existing pull request isn't going anywhere, So I took a stab at implementing it based on the feedback in this issue, and the existing request.

MHendricks@f63d8c2

I removed the local Id display because I didn't want to take up a lot of space in the statusbar, but it could be added back in.

Does this look like a good way to add this feature? And a good way to handle the GidMapper?

from tiled.

bjorn avatar bjorn commented on May 7, 2024

@MHendricks The global IDs are subject to change and should not be used in people's code. Displaying them would only serve to encourage that practice. Also, the global IDs include bitflags for flipping tiles, making them sometimes huge unfriendly numbers.

In contrast it could be useful to show the local IDs, if only to make it easier to understand the way the tiles in the tileset are numbered. I would only do that when hovering the tileset view, though, since as soon as you have multiple tilesets showing that number when hovering the map is a little pointless.

from tiled.

bjorn avatar bjorn commented on May 7, 2024

The above change only adds it to the new Properties window rather than to the status bar, but I think that's good enough and resolves this issue.

from tiled.

kheftel-old avatar kheftel-old commented on May 7, 2024

showing local tile IDs while hovering in the tileset view would be sufficient for me!

from tiled.

bjorn avatar bjorn commented on May 7, 2024

@kheftel This would be nice indeed, but my time is very limited so I hope that you don't mind that as of this change, you will still need to actually click the tile to see its local ID in the Properties window.

from tiled.

kheftel-old avatar kheftel-old commented on May 7, 2024

No worries, I know you volunteer your time! Ps I don't know how to build Tiled, when will this feature make it into a Windows build?

from tiled.

bjorn avatar bjorn commented on May 7, 2024

@kheftel I've just updated the Windows "daily" build!

from tiled.

kheftel-old avatar kheftel-old commented on May 7, 2024

woohoo!

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.