-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Show "Move Object To Layer" context menu as a tree when Object Layers are inside Group Layers #3454
Comments
Submenus would be rather annoying if your layer names are unique and the groupings aren't a hindrance or if you have a lot of groups but only 1-2 Object Layers in each, so I'd like for this to either be optional, or display the tree as single menu where the group names are non-selectable headings and the sublayers are indented, e.g.
|
Unfortunately showing two labels in the menu isn't going to be very straight-forward to implement, especially in a cross-platform way. Would it suffice if instead, we'd display the layer list with menu entries as follows? First Floor/Supports |
That would work for us. The group path could also be after the name in brackets if that’s better for users like @eishiya: Supports (First Floor) |
I think labels and indenting would the best and shouldn't require any alignment shenanigans (spaces can be used), but if that's not an option, then I think "Supports (First Floor/Dining Room)" and "Supports (Second Floor)" would work nicely - the information is there for those who need it (and the sorting by layer order will put layers from the same group together), and putting it after the layer name puts it out of the way for those who don't need it. |
Also reversed the order of the layers, to match the order in the Layers view. Closes mapeditor#3454
Also reversed the order of the layers, to match the order in the Layers view. Closes mapeditor#3454
Also reversed the order of the layers, to match the order in the Layers view. Closes mapeditor#3454
Also reversed the order of the layers, to match the order in the Layers and Objects views. Move-to-layer menu implementation is now shared between object tools and objects dock. Added object group icon to the menu items. Closes #3454
Problem
We have a map where we have a Group Layer for each "Floor" of a building. Inside each group there is a set of object and tile layers, like "Walls", "Floor", "Enemies". When we right click on a selected object to Move Object To Layer, the layers are shown in a flattened hierarchy so there are multiple "Walls", etc. layers and it's not clear which one is for which floor.
Suggested Solution
It would be better if the Move Object To Layer pull right menu displayed a tree where further sub-menus are Group Layer names and leaf nodes are the Object Layer names under those group layers.
Current Workaround
As a workaround we're currently adding a floor number to each layer name, e.g. "Walls4" for the walls on floor 4. It works but it would be nicer to be able to select the "Walls" layer under the "Floor4" group layer.
This image shows the problem of the flattened menu and the workaround we're using to add numbers to layer names:
![image](https://user-images.githubusercontent.com/1547800/185146200-f1e794d6-f79f-4e41-8270-da0b3c0f7655.png)
Here are our test files if it helps to see the issue and see any potential fix:
Example.zip
The text was updated successfully, but these errors were encountered: