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

Allow adding/editing TileSet layers in the new TileSet editor #3871

Open
snailrhymer opened this issue Jan 26, 2022 · 6 comments
Open

Allow adding/editing TileSet layers in the new TileSet editor #3871

snailrhymer opened this issue Jan 26, 2022 · 6 comments

Comments

@snailrhymer
Copy link

Describe the project you are working on

None - this follows on from the discussion on TileMap improvements found here:

#1769 (comment)

Describe the problem or limitation you are having in your project

Currently, if you are editing a TileSet in the TileSet Editor and try to e.g paint a new terrain on, this can't be done inside the editor. Users see that these things can be changed, but not how to change them:

image

image

It would be both more understandable for new users and more convenient for experienced users to be able to add/edit terrain sets, physics layers etc from inside the editor.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Include the necessary menus in the TileSet editor somehow. Below I propose one possible layout, but this is probably worth further discussion.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

Add a new tab to the TileSet editor:

image

which exposes the same functionality to add and edit terrain sets and layers as is available in the Inspector.


Additionally, this could be made easier to reach by appending an "add new" to the dropdown menus in the "paint properties" mode:

image

image

If this enhancement will not be used often, can it be worked around with a few lines of script?

This can be worked around by editing the layers in the inspector instead, but it will likely see use whenever people are setting up a TileSet.

Is there a reason why this should be core and not an add-on in the asset library?

This would improve the workflow of editing TileSets for most users.

@Calinou Calinou added this to the 4.0 milestone Jan 26, 2022
@Calinou Calinou changed the title Allow adding/editing TileSet layers in the TileSet editor Allow adding/editing TileSet layers in the new TileSet editor Jan 26, 2022
@groud
Copy link
Member

groud commented Jan 26, 2022

I think this will sadly be quite complex to implement, and might kind of break the "hierarchy" of what you are editing. It might be quite confusing to edit TileSet-wide properties while editing a TileSet source.

I am not sure this the right solution.

@snailrhymer
Copy link
Author

It might be quite confusing to edit TileSet-wide properties while editing a TileSet source

Good point.

What If you only had the tab at the top:
image
Would that respect the hierarchy, and be less complex to implement?

Though with only that, I suppose there's little added benefit compared to just editing the layers in the inspector, beyond the mostly aesthetic ideal of having everything available in the TileSet editor.

@wareya
Copy link

wareya commented Jan 27, 2022

This isn't just an aesthetic ideal, it's a basic usability problem. If the user creates a TileSet that belongs to a particular TileMap node, they can't create new terrain types unless they have the scene with the TileMap node focused, even though the TileSet editor itself is completely scene-focus-agnostic.

This means that, when they realize they need to manually add terrain types or physics layers, the user can poke around for ages for it, not realizing that they need to go to the scene the inline TileSet belongs to, focus the node that owns it, and then open up the resource inspector for the TileSet. Why would they think that they need to do that? The TileSet editor is already right there in front of them.

@snailrhymer
Copy link
Author

Also good point. Especially alongside #3874, where a new user has possibly just learned the lesson of not looking to the inspector when they want to edit a TileSet.

Do you think the additional tab at the top of the TileSet editor would be an adequate solution? (Assuming it's reasonably implementable)

@wareya
Copy link

wareya commented Jan 27, 2022

I do, though I think terrain sets and different layer types should probably all be different tabs (or at the very least, terrain sets should be a distinct tab from layers).

@groud
Copy link
Member

groud commented Jan 27, 2022

Do you think the additional tab at the top of the TileSet editor would be an adequate solution? (Assuming it's reasonably implementable)

I guess it's acceptable. It's likely going to be quite complex to implement, as it's basically about re-creating what the inspector already features in an horizontal layout. One solution would be to re-use the inspector with a proxy object, only showing the layers related properties, but that might be not optimal.

I do, though I think terrain sets and different layer types should probably all be different tabs (or at the very least, terrain sets should be a distinct tab from layers).

I disagree on that, both are ways to "add features" to you TileSet, they are not much different aside from the naming. They should be in the same tab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants