480 Commits

Author SHA1 Message Date
george rolfe
b6195801e9 [Editor Layout] Suppressed warning for optional layout config fields...
#jira UE-215852
#rb sebastian.arleryd

[CL 34022667 by george rolfe in ue5-main branch]
2024-05-30 20:14:12 -04:00
wouter burgers
bc4c2e5b4c SkeinUE: Fixed 'Tools -> Submit Content', which can result in a world reload if a sync is also necessary, taking the user out of their selected interactive editor mode and losing part of their progress.
#rb Stuart.Hill

[CL 33890864 by wouter burgers in ue5-main branch]
2024-05-24 07:56:17 -04:00
wouter burgers
e0cb77bf9b SkeinUE: Fixed 'Tools -> Sync Content', which can result in a world reload, taking the user out of their selected interactive editor mode and losing part of their progress.
#rb manuel.lang, marco.anastasi

[CL 33449907 by wouter burgers in ue5-main branch]
2024-05-05 09:32:24 -04:00
robb surridge
444589c7b9 Add tooltips for window controls and improve tooltips for tab controls.
#jira UE-212612
#rb aditya.ravichandran, Patrick.Boutot

[CL 33334991 by robb surridge in ue5-main branch]
2024-04-30 09:16:18 -04:00
ben hoffman
90b01146e8 Add an option to confirm closing the Unreal Editor
#rb aditya.ravichandran
the pre flight is actually 662bc15be774eebeff65c9a2
#jira none

#ushell-cherrypick of 33262528 by kristof.morva1

[CL 33267213 by ben hoffman in ue5-main branch]
2024-04-26 12:18:47 -04:00
sergio gardeazabal
0504dccdfd Fix an issue where the OnTabClosed delegate is not triggerd when the Tabs are closed during the Mainframe reinitialization process.
The issue was that we were destroying all windows before giving a change to the tab manager to properly close them.

#jira UE-211855

#rb aditya.ravichandran

[CL 32919999 by sergio gardeazabal in ue5-main branch]
2024-04-11 21:45:16 -04:00
christian savoie
840952841c Add cvar to allow re-opening asset editors when -PIE is present
[REVIEW] [at]aditya.ravichandran
#tests Launched with PIE and a bunch of asset windows open from last run
#rb aditya.ravichandran

[CL 30357347 by christian savoie in ue5-main branch]
2023-12-15 15:14:04 -05:00
patrick enfedaque
53dff52998 Choose File To Save: Fix issue where Saving a map would save it's dirty actors even if they werent selected by the user
#rb Richard.Malo

[CL 29994442 by patrick enfedaque in ue5-main branch]
2023-11-29 13:59:26 -05:00
sebastian arleryd
59b0650602 Going back on this because the plan for this work changed.
#jira UE-183373
[FYI] brooke.hubert, rex.hill

[CL 29515400 by sebastian arleryd in ue5-main branch]
2023-11-07 04:11:14 -05:00
sebastian arleryd
42e984c06e Backout CLs 29179069 and 29180697
#jira UE-183373

[CL 29204097 by sebastian arleryd in ue5-main branch]
2023-10-27 19:29:17 -04:00
sebastian arleryd
9d8c431bba Fix flickering menus by recreating main menu widgets for each window
* Add FTabManager::SetGeneratePerWindowMainMenuDelegate that allows users to set a delegate the tab manager calls when it needs a main menu widget for a tab's window. This way we can avoid drawing the same main menu widget in multiple windows and the flickering that can cause.
* Generated main menu widgets are cached and reused to avoid regenerating widgets for the same tab manager and window combination. FSlateApplication::OnWindowBeingDestroyed is used to clean this cache up as windows are destroyed.
* The old method FTabManager::SetMenuMultiBox to set a main menu widget for a tab manager now uses FTabManager::SetGeneratePerWindowMainMenuDelegate behind the scenes.
* Update FMainMenu::MakeMainMenu to use the new FTabManager::SetGeneratePerWindowMainMenuDelegate to avoid the main menu flickering described in this ticket.
* Remove unused code.

#jira UE-183373
#rb brooke.hubert, Matt.Kuhlenschmidt, aditya.ravichandran

[CL 29179083 by sebastian arleryd in ue5-main branch]
2023-10-27 07:00:49 -04:00
sebastian arleryd
20fab1b1c8 Remove unused return value from FMainMenu::MakeMainMenu
This paves the way for a flickering fix of the main menus when widgets are shared between widgets where I will move the responsibility for creating widgets into the tab manager. In the tab manager, the main menu widgets will be created per window behind the scenes. Therefore, we cannot return a widget from these methods because there might be more than one and they haven't been created yet.

* Private API changes: Change the return type from TSharedRef/Ptr<SWidget> to void on various private API MakeMainMenu methods (of FLevelEditorMenu, FMainFrameModule, FMainMenu, and SStandaloneAssetEditorToolkitHost).
* Public API change: Add new method void IMainFrameModule::MakeMainMenuNoWidget.
* Public API change: Deprecate the method TSharedRef<SWidget> IMainFrameModule::MakeMainMenu and provide a default implementation for the time being that calls MakeMainMenuNoWidget.

#jira UE-183373
#rb brooke.hubert

[CL 28710510 by sebastian arleryd in ue5-main branch]
2023-10-12 10:44:50 -04:00
sebastian arleryd
c06093d475 Extend Workspace Menus With Stable Section Names
Note: Workspace Menus is the name of the menu hierarchy created by tab spawners.

The intent here is to give stable section and sub-menu names to the main menu hierarchy created by tab spawners to allow anyone to extend said hierarchy using UToolMenus.

* Add a NameAttribute to FWorkspaceItem which is NAME_None by default. Allow NameAttribute to be set through constructors and the NewGroup and AddGroup methods. Add an FWorkspaceItem::GetFName method for fetching NameAttribute.
* Set the NameAttribute of FWorkspaceItems created for tab spawners using their TabType.
* When adding tab spawners to the main menus, set the FName identifier as appropriate on sections and sub-menus with the value returned by FWorkspaceItem::GetFName.
* Set the NameAttribute on a lot of workspace groups to make use of this new functionality.

#jira UE-186967
[REVIEW] [at]editor-ux [at]editor-framework
#rb brooke.hubert

[CL 28416011 by sebastian arleryd in ue5-main branch]
2023-10-03 11:34:10 -04:00
jamie dale
7c7dfb0c32 Clear the auto-save restore file after closing the main frame (and discarding changes)
This avoids the auto-save restore prompt appearing if the editor crashes after the user has already opted to discard their pending changes during shutdown

[FYI] Scott.Clifford
#rb Rex.Hill

[CL 28379316 by jamie dale in ue5-main branch]
2023-10-02 11:23:17 -04:00
marc audy
72f93b275e Register FGlobalEditorCommonCommands before trying to create the main menu
#rnx
#jira

[CL 25909766 by marc audy in ue5-main branch]
2023-06-09 22:20:54 -04:00
aditya ravichandran
e8c07295f3 Fix a bug causing icons to be missing from the Window menu
#jira UE-185939
#rb trivial
#fyi sebastian.arleryd
#preflight 64638c826b1406b54ab00d2d

[CL 25488970 by aditya ravichandran in ue5-main branch]
2023-05-16 10:20:14 -04:00
bryan sefcik
d205101cc8 Removed unnecessary private include modules.
#preflight 645da640cf788a25581110bb

[CL 25451545 by bryan sefcik in ue5-main branch]
2023-05-12 12:13:52 -04:00
aditya ravichandran
09f6193c4f Make the "Restore Open Asset Editor Tabs" prompt respect the recent assets filter
#rb dave.Belanger
#preflight 645bcde3cf1e6cb9a857fe09

[CL 25438514 by aditya ravichandran in ue5-main branch]
2023-05-11 19:32:19 -04:00
bryan sefcik
91c57d395e Removed redundant module includes.
#preflight 645d4bf3aa3c584c0b5b3a67

[CL 25435653 by bryan sefcik in ue5-main branch]
2023-05-11 16:48:21 -04:00
sebastian arleryd
4ba7a0fa36 Use ToolMenus to add tab spawners under Edit, Window, and Tools instead of FMenuBuilder.
This change only affects the main menu entries added by MainMenu.cpp under "MainFrame.MainMenu.Edit", "MainFrame.MainMenu.Window", and "MainFrame.MainMenu.Tools". See the header "Acceptance Criteria WM-1" in https://docs.google.com/document/d/1xZsXdaa3CgIYYmKbZzEUuAbnjgqbV53Qdtax_RbVBLs for an example of what can change in these dynamic menus.

#jira UE-181389
#preflight 644828ebfa6ba3cc5b5ef00b

[CL 25187872 by sebastian arleryd in ue5-main branch]
2023-04-25 15:44:15 -04:00
aditya ravichandran
d6ae19a4e9 Add a "Recent Assets" menu to the level editor and all asset editors
#jira UE-174150, UE-174151
#rb lauren.barnes, rex.hill
#preflight 64418f61b14f1faacfbf4f06

[CL 25149297 by aditya ravichandran in ue5-main branch]
2023-04-21 13:56:55 -04:00
jamie dale
933348f856 Use the FMessageDialog overloads that pass the optional title by-value
#jira
#rb none
#rnx

[CL 25062589 by jamie dale in ue5-main branch]
2023-04-15 19:49:32 -04:00
JeanMichel Dignard
650a5966c4 Fixed warnings when the layout menu is accessing the config cache:
- Normalize the layout file paths as the config cache expects them to be.
- Removed the ConvertToAbsolutePathForExternalAppForRead call since the config cache expects relatives paths and it generates an unusable path if the platform file is IPlatformPakFile.

#jira UE-148371
#tests Validated that this works with cooked editors that use the IPlatformPakFile.
#rb lauren.barnes
#preflight 6426eb0b50546ea336ae674a

[CL 24871001 by JeanMichel Dignard in ue5-main branch]
2023-03-31 10:23:19 -04:00
aditya ravichandran
099bdba3ac Properly disable the "Restore open asset editors" prompt when the override is set
#rb lauren.barnes
#preflight 642336215e52099fe3f76f82

[CL 24831842 by aditya ravichandran in ue5-main branch]
2023-03-29 02:26:40 -04:00
aditya ravichandran
2aa36f0f94 UX Improvements for the "Reopen asset tabs" notification that shows up when you launch the editor
#jira UE-174149
#rb lauren.barnes
#preflight 64022505c13b7130d2eeee1a

[CL 24507904 by aditya ravichandran in ue5-main branch]
2023-03-03 17:05:10 -05:00