Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collection of different sized images tilemap - Bad placement in tilesets window #1241

Closed
hedgehog90 opened this issue Mar 28, 2016 · 3 comments
Assignees
Labels

Comments

@hedgehog90
Copy link

@hedgehog90 hedgehog90 commented Mar 28, 2016

2016-03-28 21_01_57-assetsthe one fla_

There must be a better way to organize the tiles for rare instances like mine where I require different sized tiles.
I've made my tileset so it consists of single piece wall objects, the image above shows a fence tile that is placed as a single tile.
Is there a simple hack I can do so that the tiles are sorted more appropriately?

@bjorn

This comment has been minimized.

Copy link
Owner

@bjorn bjorn commented Mar 28, 2016

The simple hack would be to group your tiles roughly by size while adding them to separate image collection tilesets.

On the Tiled side, a relatively simple solution would be to introduce a mode where each tile gets the same amount of space, like when showing thumbnails in a file manager.

@hedgehog90

This comment has been minimized.

Copy link
Author

@hedgehog90 hedgehog90 commented Mar 28, 2016

The second option sounds ideal. Could you point me in the right direction as to which source file I should edit and how?

@bjorn

This comment has been minimized.

Copy link
Owner

@bjorn bjorn commented Mar 29, 2016

Sure, you'll have to adjust the TileDelegate in tilesetview.cpp:

https://github.com/bjorn/tiled/blob/master/src/tiled/tilesetview.cpp#L53

Adjusting its sizeHint and paint member functions according to your needs.

Directly modifying this code would be the quickest way. Of course, for integration back into Tiled, it will need to be implemented as an additional view mode. That will be quite a bit more work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.