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

Proper alignment and fixed scaling for TileMapEditor tile icons. #4847

Merged
merged 3 commits into from
May 29, 2016

Conversation

27thLiz
Copy link
Contributor

@27thLiz 27thLiz commented May 27, 2016

Makes Tiles in the TileMapEditor nice & evenly distributed (thanks to @bojidar-bg).
Also, tiles with sizes different from the cell size are being properly scaled now.

Related to #4412

Size2 size = node->get_cell_size() * p_value;
palette->set_min_icon_size(size + Size2(4, 0)); //4px gap between tiles
//palette->set_max_icon_size(size);
//Size2 size = node->get_cell_size() * p_value;
Copy link
Member

@akien-mga akien-mga May 27, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guys, don't comment out code when it's no longer needed ;) Just drop it :)

@akien-mga akien-mga added this to the 2.1 milestone May 29, 2016
@akien-mga akien-mga merged commit c2b1315 into godotengine:master May 29, 2016
@27thLiz 27thLiz deleted the fix_icon_scale_new branch September 27, 2016 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants