-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Portals - Improve UI and add shortcuts #51152
Conversation
Regarding
Maybe show the new buttons and the "View portal culling" submenu entry only if a |
Yup it does this already. The |
d3bf1fd
to
579e994
Compare
This PR makes the 'convert rooms' button permanently on the toolbar and accessible whichever node is selected, so you can convert rooms without having to select the RoomManager first. It also adds a togglable item 'view portal culling' to the 'View' menu which is a simple way of setting the RoomManager 'active' setting without the RoomManager being the selected node. Both of these have keyboard shortcuts, which should make it much faster to reconvert rooms and edit. In addition there the string in the 'Perspective' Listbox is modified to show [portals active] when portal culling is operational, for visual feedback. This is updated when you change modes, and when the rooms are invalidated.
579e994
to
776623d
Compare
Marking as ready for review to get some eyes on. I suspect we may need different shortcuts, I know next to nothing about choosing them (they are ALT+C and ALT+P at the moment). I don't even know if these are available on Mac. |
From a quick look it should be fine:
|
Thanks! |
This PR makes the 'convert rooms' button permanently on the toolbar and accessible whichever node is selected, so you can convert rooms without having to select the RoomManager first.
It also adds a togglable item 'view portal culling' to the 'View' menu which is a simple way of setting the RoomManager 'active' setting without the RoomManager being the selected node.
Both of these have keyboard shortcuts, which should make it much faster to reconvert rooms and edit.
In addition there the string in the 'Perspective' Listbox is modified to show [portals active] when portal culling is operational, for visual feedback. This is updated when you change modes, and when the rooms are invalidated.
The rooms convert button is to the right of the camera button. It disappears when there is no RoomManager in the scene.. it could alternatively be greyed out.
Notes
room_manager_editor_plugin
, and simply not hiding it, but it didn't seem like it was easy to control the location on the toolbar unless I put it in thespatial_editor_plugin
.convert rooms
button is permanently on the toolbar, it may not be so obvious to first time users because it doesn't have a big text label. Perhaps I could make a label appear when the RoomManager is selected? EDIT : Have done this.view_portal_culling
toggle, therooms_active
toggle in the RoomManager is also changed and the tick updated. The names aren't quite the same. Not sure how to improve the naming situation.