Comments (11)
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.
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.
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.
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.
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.
@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.
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.
showing local tile IDs while hovering in the tileset view would be sufficient for me!
from tiled.
@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.
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.
@kheftel I've just updated the Windows "daily" build!
from tiled.
woohoo!
from tiled.
Related Issues (20)
- Idea: To export Objects Only JSON file HOT 2
- Add a Selected Tile Preview to "Shape Fill Tool", just like the "Stamp Brush" has HOT 6
- tmxrasterizer's --hide-layer doesn't work with group layers HOT 1
- Scripting: Access Terrain Properties
- Issues compiling in Windows (newbie) HOT 3
- Automapping stops working when a project's rules.txt is modified during runtime. HOT 3
- "Blob Tileset" points to a broken link HOT 2
- Add map.fileName in tiled.registerMapFormat -> write HOT 2
- Unable to open a tmx file with a space in the filename using AppImage with the shell HOT 2
- Error with `libtiled` in Java 21: `java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException` HOT 1
- Any AI generated plugin? HOT 1
- Tile Animation Editor may not show additional tiles if source image resized
- World Map chunks getting loaded twice. HOT 4
- Scripting: Signal for brush changing
- Layer Blend Mode Property HOT 2
- Switch keyboard shortcuts for "Save As" and "Save All" HOT 3
- Custom Type Search/Filter HOT 2
- Patterned document background option
- AppStream metadata screenshots are missing a caption
- tileset not displaying HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tiled.