Commit Graph

1408 Commits

Author SHA1 Message Date
sebastian arleryd
22db02c043 Prevent SLevelViewportToolBar::GenerateShowMenu() from crashing if its context hasn't been set
#jira UE-212299

[CL 34353489 by sebastian arleryd in ue5-main branch]
2024-06-13 16:49:22 -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
92e06922dd Delegate-based top-level flagging of ToolMenu toolbar submenu entries
#jira UE-212285
#rb ross.smith2

[CL 34317354 by sebastian arleryd in ue5-main branch]
2024-06-12 14:45:43 -04:00
aditya ravichandran
0e177876ee Scene Outliner: Grab the selection set from the menu context instead of caching it in the lambda on level editor creation.
The latter would cause things to break if you re-created the level editor (e.g layout load) and the cached selection set would still use the one belonging to the old instance.

#jira UE-216647
#rb ronald.koppers

[CL 34316300 by aditya ravichandran in ue5-main branch]
2024-06-12 14:31:22 -04:00
sebastian arleryd
fe4f94ec1d Update the Transforms section of the new level editor viewport toolbar
#jira UE-212285
#rb ross.smith2

[CL 34301466 by sebastian arleryd in ue5-main branch]
2024-06-12 03:23:18 -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
97e5a23985 Run clang-format on viewport toolbar helper code
Also add // clang-format off/on comments around the Slate code in BuildVolumeControlCustomWidget.

#jira UE-212286
#rb ross.smith2

[CL 34267648 by sebastian arleryd in ue5-main branch]
2024-06-11 04:52:36 -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 lewicki
9caf645cd5 Fixing crash when saving an Actor to a GroundTruthData asset for test validation as the Actor does not have a valid level associated with it.
#jira UE-216179
#jira UE-216180
#rnx
#rb aditya.ravichandran, Jerome.Delattre


#virtualized

[CL 34151709 by sebastian lewicki in ue5-main branch]
2024-06-06 06:08:34 -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
jonathan bard
0387aa285d Tweaked formatting of project badge in editor to avoid unnecessary spaces
#rb JeanMichel.Dignard
#rnx

[CL 34100121 by jonathan bard in ue5-main branch]
2024-06-04 13:56:01 -04:00
sebastian arleryd
f5121fb00f Extract level editor-specific code for populating the viewport toolbar "View Modes" menu
Also rename UE::UnrealEd::FillViewMenu to UE::UnrealEd::PopulateViewModesMenu to make it match the new UE::LevelEditor::PopulateViewModesMenu.

#jira UE-212284
#rb ross.smith2

[CL 34087919 by sebastian arleryd in ue5-main branch]
2024-06-04 03:46:07 -04:00
sebastian arleryd
0c32e3071b Fix crash when the ToolMenu LevelEditor.LevelViewportToolBar.View is opened (or used as a parent) without its context object
#jira UE-212284
#rb ross.smith2

[CL 34073621 by sebastian arleryd in ue5-main branch]
2024-06-03 15:11:06 -04:00
sebastian arleryd
8cfe0ac7e5 Fix duplicated LOCTEXT key
#jira UE-212285

[CL 34067613 by sebastian arleryd in ue5-main branch]
2024-06-03 11:47:50 -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
jeanfrancois dube
4fd00bcc29 Fix editor "Copy Actor File Path" not working with non-OFPA actors.
#rb Richard.Malo

[CL 34016705 by jeanfrancois dube in ue5-main branch]
2024-05-30 18:42:55 -04:00
sebastian arleryd
87a40a7757 Move the realtime toggle of the new viewport toolbar to the top-level if realtime is off for the current viewport
Note that this top-level state doesn't react properly when unrelated code changes the top-level state. This will improve in the future when no other unrelated UI toggles the realtime state (right now it's easy to change in via the old viewport toolbar).

#jira UE-212284
#rb ross.smith2

[CL 33996201 by sebastian arleryd in ue5-main branch]
2024-05-30 03:02:57 -04:00
eric spevacek
c1d2c1dcd5 Add "EditorRequestBeginPlay" to expose starting PIE to scripting
#rb brooke.hubert
[FYI] Michael.Dolan

[CL 33991392 by eric spevacek in ue5-main branch]
2024-05-29 18:58:22 -04:00
sebastian arleryd
ead8d420a6 Convert the new viewport toolbar entries MaximizeRestore and ToggleImmersive from toolbar buttons to menu entries
#jira UE-212284
#rb ross.smith2

[CL 33975338 by sebastian arleryd in ue5-main branch]
2024-05-29 11:35:54 -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
6f22b59116 Use ToolMenu submenus instead of sections for grouping the new viewport toolbar functionality
The upside of this is that the submenus of each group ("section submenus") can have proper ToolMenu sections if they are ToolMenu submenus. Previously, when we grouped using sections, we couldn't section each section, because ToolMenus doesn't support nested sections.

#jira UE-212288
#rb ross.smith2

[CL 33935309 by sebastian arleryd in ue5-main branch]
2024-05-28 03:38:50 -04:00
sebastian arleryd
dea7905c58 Flag the "realtime toggle" as top-level in the new viewport toolbar
#jira UE-212289
#rb ross.smith2

[CL 33895643 by sebastian arleryd in ue5-main branch]
2024-05-24 11:27:10 -04:00
sebastian arleryd
fa7e430dc8 Use a section menu for the "Settings" section of the "LevelEditor.ViewportToolbar" menu add "Material Quality Level" and "Preview Platform" submenus
Note that this updates the level editor (non-viewport) toolbar "Settings" menu to use the same code for its "Material Quality Level" and "Preview Platform" submenus as is now used in the "LevelEditor.ViewportToolbar" menu.

#jira UE-212288
#rb ross.smith2

[CL 33764291 by sebastian arleryd in ue5-main branch]
2024-05-20 07:38:30 -04:00