Commit Graph

282 Commits

Author SHA1 Message Date
sebastian arleryd
5e1d05e31e Add "Show" menu to the new level editor viewport toolbar
#jira UE-212284

[CL 34512232 by sebastian arleryd in ue5-main branch]
2024-06-19 16:08:49 -04:00
sebastian arleryd
017594a458 Initial work on "Select" submenu for the new level editor viewport toolbar
This is just a skeleton to have something to extend. Further work is needed to flesh out the menu.

#jira UE-212299
#rb ross.smith2

[CL 34352609 by sebastian arleryd in ue5-main branch]
2024-06-13 16:13:24 -04:00
sebastian arleryd
858bc3aa82 Use the new ToolMenu alignment support to align some parts of the new viewport toolbar to the right
#jira UE-212286
#rb ross.smith2

[CL 34289256 by sebastian arleryd in ue5-main branch]
2024-06-11 16:25:28 -04:00
sebastian arleryd
7e686cf687 Add Default, First, Middle, and Last alignment to ToolMenu sections
The new alignment support layers on top of the existing insertion-order support. Sections are added to the toolbar in groups where we first add all Left-aligned sections according to their insertion order, then all First-aligned sections, and then the Middle and Last-aligned sections. Note that this can break the specified insertion order if the user mixed alignments, but otherwise it's maintained.

The First and Default alignments are grouped together, with First-aligned sections appearing before Default-aligned sections. The result is a toolbar with visual empty space between the First-Default group, Middle group, and the Last group. A caveat here is that the Middle group won't necessarily appear perfectly centered on the toolbar because it's position depends on the sizes of the First-Default and Last groups.

#jira UE-212286
#rb brooke.hubert, ross.smith2

[CL 34230831 by sebastian arleryd in ue5-main branch]
2024-06-10 03:21:21 -04:00
sebastian arleryd
1d5572486e Add "View Modes" menu to the new viewport toolbar
#jira UE-212284
#rb ross.smith2

[CL 34117983 by sebastian arleryd in ue5-main branch]
2024-06-05 03:42:42 -04:00
sebastian arleryd
4e7d10d3ab Support old legacy menu extenders in the new level editor viewport toolbar
The "View Modes" menu's "Visualizers" entry is an example of one that needs this.

#jira UE-212284

[CL 34060535 by sebastian arleryd in ue5-main branch]
2024-06-03 03:55:23 -04:00
sebastian arleryd
3e36cef2ca Update the "Settings" submenu of the new viewport toolbar
#jira UE-212285
#rb ross.smith2

[CL 34027818 by sebastian arleryd in ue5-main branch]
2024-05-31 03:14:34 -04:00
sebastian arleryd
1261327ed5 Add "Performance & Scalability" submenu to the new viewport toolbar
This moves the a few things into the new menu and also adds the "Engine Scalability" and "Screen Percentage" submenus which previously didn't exist in the new viewport toolbar.

#jira UE-212285
#rb ross.smith2

[CL 34027724 by sebastian arleryd in ue5-main branch]
2024-05-31 02:49:52 -04:00
sebastian arleryd
a51f5ba920 Add the viewport layouts menu to the new viewport toolbar
#jira UE-212284
#rb ross.smith2

[CL 33965978 by sebastian arleryd in ue5-main branch]
2024-05-29 03:50:45 -04:00
sebastian arleryd
d32b467c8d Resubmit - Add "Settings" section to UToolMenu "LevelEditor.ViewportToolbar"
* Add buttons to the new section to toggle realtime rendering, maximize/restore the viewport, and toggle immersive mode.
* Add a context to the "LevelEditor.ViewportToolbar" when a widget is generated for it. This context carries the SLevelViewport so the maximize/restore button can act on the correct viewport (the same button is drawn in all level editor viewports).
* Resubmit change: Use ::SLevelViewport in LevelEditorViewportToolbarSections.cpp to resolve ambiguity between class SLevelViewport and namespace UE::SLevelViewport.

#jira UE-212284
#rb brooke.hubert

[CL 33227832 by sebastian arleryd in ue5-main branch]
2024-04-25 08:09:51 -04:00
keaton stewart
a634c7d32b [Backout] - CL33201403
[FYI] sebastian.arleryd
Original CL Desc
-----------------------------------------------------------------
Add "Settings" section to UToolMenu "LevelEditor.ViewportToolbar"

* Add buttons to the new section to toggle realtime rendering, maximize/restore the viewport, and toggle immersive mode.
* Add a context to the "LevelEditor.ViewportToolbar" when a widget is generated for it. This context carries the SLevelViewport so the maximize/restore button can act on the correct viewport (the same button is drawn in all level editor viewports).

#jira UE-212284
#rb brooke.hubert

[CL 33220319 by keaton stewart in ue5-main branch]
2024-04-24 20:32:54 -04:00
sebastian arleryd
4b146db4a3 Add "Settings" section to UToolMenu "LevelEditor.ViewportToolbar"
* Add buttons to the new section to toggle realtime rendering, maximize/restore the viewport, and toggle immersive mode.
* Add a context to the "LevelEditor.ViewportToolbar" when a widget is generated for it. This context carries the SLevelViewport so the maximize/restore button can act on the correct viewport (the same button is drawn in all level editor viewports).

#jira UE-212284
#rb brooke.hubert

[CL 33201434 by sebastian arleryd in ue5-main branch]
2024-04-24 11:52:33 -04:00
sebastian arleryd
e0792537a6 Use the SLevelViewport command list when generating a widget for the UToolMenu "LevelEditor.ViewportToolbar".
This can prevent crashes if the viewport widget hasn't yet been set.

#rb brooke.hubert, ross.smith2

[CL 33200121 by sebastian arleryd in ue5-main branch]
2024-04-24 11:04:51 -04:00
sebastian arleryd
bd995bcdae Improve the experimental UToolMenu "LevelEditor.ViewportToolbar"
* Changes to LevelEditor.ToolMenusViewportToolbar now reflect immediately.
* CVAR value is stored in a file-private variable.

#jira UE-212283
#rb brooke.hubert

[CL 33162682 by sebastian arleryd in ue5-main branch]
2024-04-23 03:24:04 -04:00
sebastian arleryd
8791753f4e Add ToolMenus-based viewport toolbar "LevelEditor.ViewportToolbar" behind CVAR LevelEditor.ToolMenusViewportToolbar
#jira UE-212283
#rb brooke.hubert

[CL 33136268 by sebastian arleryd in ue5-main branch]
2024-04-22 08:45:39 -04:00
brooke hubert
99e7345572 [Viewport Toolbar] Fix errant merge issue from CL 33047928
#jira UE-203689
#rb sebastian.arleryd

[CL 33069818 by brooke hubert in ue5-main branch]
2024-04-18 09:08:26 -04:00
george rolfe
d2a9c219bc Added z-index override to Viewport AddOverlay calls
#jira UE-212438
#rb brooke.hubert

[CL 33063642 by george rolfe in ue5-main branch]
2024-04-17 23:41:14 -04:00
brooke hubert
7ab7a96147 [Viewport Toolbar] Fix commented out generation of show flag menu entries in SCommonEditorViewportToolbarBase class
Updated them to the UToolMenu representation to emulate what the level editor toolbar is doing.

#jira UE-203689
#rb aditya.ravichandran

[CL 33052888 by brooke hubert in ue5-main branch]
2024-04-17 18:39:58 -04:00
brooke hubert
1245dca4a0 Allow Game View to be toggled in ortho viewports
#jira UE-211474
#rb sebastian.arleryd

[CL 32828661 by brooke hubert in ue5-main branch]
2024-04-09 12:08:41 -04:00
wouter dek
3b69c3d0f1 Mitigation against editor viewport setting ortho zoom to float max value, which causes an ensure from rendering code due to precision loss.
#rb jon.cain

[CL 31854437 by wouter dek in ue5-main branch]
2024-02-27 16:55:25 -05:00
george rolfe
84ff973c8f Pilot toolbar label converted to a button that selects the actor
#jira UE-203573
#rb aditya.ravichandran

[CL 30648919 by george rolfe in ue5-main branch]
2024-01-16 18:11:49 -05:00
semion piskarev
f3f45f2115 Editor: Support using non-actor factories for dragging things into the level, support non-actor drag preview objects, and fix some "recently placed" category handling to handle custom placed items.
#rb brooke.hubert, logan.buchy
#jira UE-201096

[CL 30305072 by semion piskarev in ue5-main branch]
2023-12-13 16:33:42 -05:00
brooke hubert
6bc2713109 [Keyboard Shortcuts] Deprecate AActor::EditorKeyPressed and convert current usage to keybinds
#Jira UE-200170
#rb aditya.ravichandran

[CL 29718188 by brooke hubert in ue5-main branch]
2023-11-14 13:09:13 -05:00
max chen
8441c6b3f3 Editor: Add Allow Cinematic Control to FLevelEditorViewportInstanceSettings so that the state is stored/restored
#jira UE-132376
#rb matt.hoffman

[CL 29116760 by max chen in ue5-main branch]
2023-10-25 22:10:20 -04:00
jeanmichel dignard
874a2b3406 Level editor viewport: Save level viewport infos when closing the editor
- We currently save the viewport camera infos on map change and map teardown.
- With this change, we will also save the camera infos when closing the editor, as it's equivalent to a map teardown.
#rb brooke.hubert, logan.buchy
#jira UE-197718

[CL 28683638 by jeanmichel dignard in ue5-main branch]
2023-10-11 17:14:06 -04:00