Commit Graph

151 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
922c8a0ea5 Keep track of whether the old viewport toolbar has created its "Show" menu via a bool instead of the ToolMenu system
By doing this, we can create the menu from the new viewport toolbar to support backward compatibility without breaking the old viewport toolbar. Without this change, creating the old menu for the sake of backward compatiblity will make the current code not build the menu, because it's already registered, so the old viewport toolbar's "Show" menu will be empty.

#jira UE-212285
#rb aditya.ravichandran, logan.buchy

[CL 34509783 by sebastian arleryd in ue5-main branch]
2024-06-19 15:19:06 -04:00
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
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
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
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
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
jeanfrancois dube
c24912f9ec [Actor Coloration] Allow for actor coloration handlers to be available only in game, not editor.
#rb Sebastien.Lussier

[CL 33332178 by jeanfrancois dube in ue5-main branch]
2024-04-30 07:25:35 -04:00
ruslan idrisov
ef71adac66 Level Viewport: Added Scene Captures to the list of cameras that users can look through in the viewport.
#jira UE-149890
#rb jason.hoerner, yohann.dossantos

[CL 33077246 by ruslan idrisov in ue5-main branch]
2024-04-18 13:16:29 -04:00
yohann dossantos
bcc20a93d0 Fix level viewport tool bar using the wrong width for its dimension.
#jira UE-210866, played with many different sizes, both with default viewport and cinematic viewport.
#rb daren.cheng
#tests Repro from the jira

[CL 32726332 by yohann dossantos in ue5-main branch]
2024-04-04 09:02:13 -04:00
luc eygasier
d48454bf5b Adds SActionableMessageViewportWidget in Viewport's toolbar.
This widget will host warnings or messages with the ability to automate actions for the user.

Current actionable messages:
* Invalid Landscape grassmaps, with associated rebuild action
* Invalid Landscape physical materials, with associated rebuild action
* Invalid Landscape nanite meshes with associated rebuild action
* Invalid grassmaps, physical materials, nanite meshes will be agregated to only one message if multiple rebuild are necessary
* Landscape proxy packages needs to be updated, with associated mark dirty action

#jira UE-204527

#rb Jonathan.Bard

[CL 32224398 by luc eygasier in ue5-main branch]
2024-03-13 15:34:54 -04:00
luc eygasier
29c904b3e3 Undo //Fortnite/Release-29.20/Engine/... changelist 32186488
#jira UE-204527

[CL 32191590 by luc eygasier in ue5-main branch]
2024-03-12 16:45:06 -04:00
luc eygasier
c409a75cc9 Adds SActionableMessageViewportWidget in Viewport's toolbar.
This widget will host warnings or messages with the ability to automate actions for the user.

Current actionable messages:
* Invalid Landscape grassmaps, with associated rebuild action
* Invalid Landscape physical materials, with associated rebuild action
* Invalid Landscape nanite meshes with associated rebuild action
* Invalid grassmaps, physical materials, nanite meshes will be agregated to only one message if multiple rebuild are necessary
* Landscape proxy packages needs to be updated, with associated mark dirty action

#jira UE-204527

#rb chris.tchou, jonathan.bard

[CL 32190792 by luc eygasier in ue5-main branch]
2024-03-12 16:29:49 -04:00
sebastian arleryd
b75dda2918 Make a few menus non-searchable to hide their menu search fields
This change removes duplicate search bars in the following menus
* Actor > Attach To" (main menu, viewport right click, details panel right click)
* Level Editor Toolbar > Blueprint Icon > Open Blueprint Class...
* Level Editor Toolbar > Blueprint Icon > GameMode Override > Create
* Level Editor Toolbar > Blueprint Icon > GameMode Override > Select ... Class
* Level Editor Toolbar > Media Plate Icon > Select a Media Profile
* Viewport Hamburger Icon > Layouts
* Viewport > Lit > OCIO Display

#jira UE-200513
#rb aditya.ravichandran

[CL 32150761 by sebastian arleryd in ue5-main branch]
2024-03-11 05:43:38 -04:00
stuart hill
5392cea416 Add the viewport to the toolbar context
The toolbar context used when extending the toolbar now has a weak pointer to the actual viewport the toolbar extension is being added to.
This provides additional information for CreateExtensionWidget in the FPanelExtensionFactory.

#rb lonnie.li

[CL 31185638 by stuart hill in ue5-main branch]
2024-02-05 14:58:37 -05:00
wouter burgers
6d343470c8 LevelEditor: Refactor ULevelViewportToolBarContext so that the ViewportClient is properly accessible through GetViewportClient().
#rb Rex.Hill
#rnx

[CL 30693310 by wouter burgers in ue5-main branch]
2024-01-18 14:59:13 -05:00
jeanmichel dignard
2ba1180584 Add names to ShowFlags menu entries so that we can allow list them.
#rb Rex.Hill
#jira UE-0

[CL 30593038 by jeanmichel dignard in ue5-main branch]
2024-01-12 10:17:41 -05:00
jeanfrancois dube
a1cac9c1e6 Actor Coloration Framework
- Level Coloration show flag is now replaced by the generic Actor Coloration show flag, and is now hidden in the show flags menu.
- Added a dropdown Actor Coloration menu that is dynamically populated with the current registered Actor Coloration handlers.
- Color handlers can now return different colors for the same actor, but different primitive components.

This way, if a plugin registers a new Actor Coloration mode, the menu will be automatically populated with that option until the plugin is unregistered.

#rb Sebastien.Lussier

[CL 30349047 by jeanfrancois dube in ue5-main branch]
2023-12-15 10:43:42 -05:00
sebastien lussier
82eb8c5dee World Partition - HLOD: Refresh viewport when dragging the HLOD in editor min/max draw distance sliders
#rb JeanFrancois.Dube

[CL 30082283 by sebastien lussier in ue5-main branch]
2023-12-04 10:44:50 -05:00
sebastien lussier
eafb9cfa54 World Partition - HLOD in Editor
* Added World & User settings to control whether HLOD are shown in editor
* Added HLOD entry in "Show" viewport menu, exposing the following user settings
-> Show HLODs (enabled by default)
-> Show HLODs over loaded regions (disabled by default)
-> Min Draw Distance (distance at which HLOD starts to be rendered in editor, 128m by default)
-> Max Draw Distance (infinity by default)
* Added "Load Region from Selection" to viewport context menu (on right-click)
* Added World category to Scene Outliner filter, currently only contains "World Partition HLOD"
* Hid a few categories from World Partition HLOD (when showing in Details panel)
* Feature is still disabled globally by the wp.Editor.HLOD.AllowShowingHLODsInEditor cvar
#rb jeanfrancois.dube
#jira UE-193294

[CL 29541562 by sebastien lussier in ue5-main branch]
2023-11-07 18:58:37 -05:00
justin peterson
5398900aba [Backout] - CL29526661 - CIS Compile Error
[FYI] Sebastien.Lussier
Original CL Desc
-----------------------------------------------------------------
World Partition - HLOD in Editor
* Added World & User settings to control whether HLOD are shown in editor
* Added HLOD entry in "Show" viewport menu, exposing the following user settings
-> Show HLODs (enabled by default)
-> Show HLODs over loaded regions (disabled by default)
-> Min Draw Distance (distance at which HLOD starts to be rendered in editor, 128m by default)
-> Max Draw Distance (infinity by default)
* Added "Load Region from Selection" to viewport context menu (on right-click)
* Added World category to Scene Outliner filter, currently only contains "World Partition HLOD"
* Hid a few categories from World Partition HLOD (when showing in Details panel)
* Feature is still disabled globally by the wp.Editor.HLOD.AllowShowingHLODsInEditor cvar
#rb jeanfrancois.dube
#jira UE-193294

[CL 29528240 by justin peterson in ue5-main branch]
2023-11-07 14:19:57 -05:00
sebastien lussier
d370837cd3 World Partition - HLOD in Editor
* Added World & User settings to control whether HLOD are shown in editor
* Added HLOD entry in "Show" viewport menu, exposing the following user settings
-> Show HLODs (enabled by default)
-> Show HLODs over loaded regions (disabled by default)
-> Min Draw Distance (distance at which HLOD starts to be rendered in editor, 128m by default)
-> Max Draw Distance (infinity by default)
* Added "Load Region from Selection" to viewport context menu (on right-click)
* Added World category to Scene Outliner filter, currently only contains "World Partition HLOD"
* Hid a few categories from World Partition HLOD (when showing in Details panel)
* Feature is still disabled globally by the wp.Editor.HLOD.AllowShowingHLODsInEditor cvar
#rb jeanfrancois.dube
#jira UE-193294

[CL 29527011 by sebastien lussier in ue5-main branch]
2023-11-07 13:38:35 -05:00
marc audy
65de35fdfb Lof elements that were not renamed yet.
- MSM_Substrate
- MCT_Substrate
- FStrataMaterialInput

#rb charles.derousiers

[CL 27563163 by marc audy in ue5-main branch]
2023-09-01 15:06:19 -04:00
sebastien hillaire
4f274d1ef3 Substrate - Rename/move file(s)
#rb none
[FYI] charles.derousiers

[CL 27514986 by sebastien hillaire in ue5-main branch]
2023-08-31 04:47:50 -04:00