474 Commits

Author SHA1 Message Date
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
wouter burgers
b9ecefcdbc SourceControl / UEFN: The F5 shortcut for getting latest should be specific to when Skein is enabled within UEFN.
#preflight none

[CL 24464995 by wouter burgers in ue5-main branch]
2023-03-01 12:33:10 -05:00
sebastian arleryd
dde7bcdaea Rewrite "Save Layout As..." using SGridPanel to improve text overflow behavior.
#jira FORT-552105
#preflight 63eccba396073a3e190064c9

[CL 24229697 by sebastian arleryd in ue5-main branch]
2023-02-15 09:46:06 -05:00
zach rammell
bdc16077f3 View Changes UI visual improvements
- Side panel no longer compressed
- Name changed to "View Changes"

#jira UE-175840
#rb ronald.koppers
#preflight 63daeceb4965eb8c33d456e5
#lockdown jeanmichel.dignard

[CL 23961626 by zach rammell in ue5-main branch]
2023-02-01 19:44:37 -05:00
marco anastasi
b29f599449 * Refactored Sync Latest operation to improve performance
* Sync Latest no longer listing and reloading all packages when the source control provider provides a sync preview functionality. When a Sync Preview is available, Sync Latest unloads only the files that are going to be overwritten by the sync operation, and then reloads them and the world

* Refactored Revert All operation to improve performance
* Revert All no longer lists and reloads all packages when the source control provider provides a sync preview functionality. Instead it unloads only the files that may be overwritten by the revert operation (i.e. submittable files), and then reloads them and the world
* Replaced RevertAndReloadAllPackages with RevertAndReloadWorld, no longer listing and reloading all packages (see https://p4-swarm.epicgames.net/reviews/23244245/)

This review is a combination of the two archived reviews https://p4-swarm.epicgames.net/reviews/23736137 and https://p4-swarm.epicgames.net/reviews/23736282

#rb wouter.burgers, stuart.hill, brooke.hubert, francis.hurteau
#preflight 63c9c7786a00f3cc8ead6779

[CL 23796067 by marco anastasi in ue5-main branch]
2023-01-20 15:31:16 -05:00
aditya ravichandran
f8b7ee5555 Replace any instances of "Source Control" with "Revision Control" in text in the Editor
#rb JeanMichel.Dignard, Robb.Surridge
#preflight 637d180efa348e8480e8837e

[CL 23250808 by aditya ravichandran in ue5-main branch]
2022-11-23 11:57:50 -05:00
wouter burgers
1161fdcd00 SourceControl / UEFN: Get latest on project with the shortcut F5.
This introduces a MainFrame menu item under TOOLS -> SOURCE CONTROL called 'Sync Content', similar to the existing 'Submit Content' option. The new menu item is tied to the F5 hot key.

#preflight 63722efcb6636838285ea216

[CL 23129394 by wouter burgers in ue5-main branch]
2022-11-14 18:26:11 -05:00