Commit Graph

78 Commits

Author SHA1 Message Date
sebastian arleryd
6223cfc88f Make UToolMenu::bSearchable control whether the menu's search field is available
Setting UToolMenu::bSearchable to false in a menu delegate will now disable the search field completely for that menu (hidden and non-functional even if the user types into the menu). However, menu entries from this unsearchable menu will still show if a parent menu is searched.

#jira UE-208812
#rb brooke.hubert

[CL 32081852 by sebastian arleryd in ue5-main branch]
2024-03-07 06:19:34 -05:00
steve robb
f8d47335a4 Replaced RemoveAt(N, 1, EAllowShrinking::*) with RemoveAt(N, EAllowShrinking::*).
[CL 31626444 by steve robb in ue5-main branch]
2024-02-19 16:51:58 -05:00
aditya ravichandran
db87edff5e ToolMenus: Fix a bug where menu contexts would be incorrectly cleaned up during menu refresh
This fixes a crash on hovering over the "transform" submenu in the light mixer context menu

#jira UE-203032
#rb Jamie.Dale
[FYI] Jason.Walter

[CL 30778338 by aditya ravichandran in ue5-main branch]
2024-01-22 12:30:24 -05:00
steve robb
f029468598 Fixed up a lot of bool-taking container resize functions to take EAllowShrinking instead.
[CL 30729174 by steve robb in ue5-main branch]
2024-01-19 16:41:35 -05:00
aditya ravichandran
c586fa4e0e ToolMenus: Add a method to unregister an owner for menu profiles
ToolMenusTest: Add tests for sections, entries, customizations and profiles


#jira UE-195628
#rb Rex.Hill, sebastian.arleryd

[CL 30428714 by aditya ravichandran in ue5-main branch]
2023-12-21 11:43:58 -05:00
sebastian arleryd
188adb661b Fix crash in UToolMenus::GenerateWidget(UToolMenu*)
* Fix a crash in UToolMenus::GenerateWidget(UToolMenu*) that could happen when UToolMenus::AddReferencedObjects was called while a legacy menu-building delegate was running.
* Add a unit test that triggers the crash if the fix is not applied.

#jira UE-201151
#rb Rex.Hill

[CL 30042071 by sebastian arleryd in ue5-main branch]
2023-12-01 11:07:17 -05:00
aditya ravichandran
a94abf2d1c UToolMenus: Add API to support Menu Profiles, a menu profile is a lightweight version of a menu customization - but you can have multiple menu profiles and activate/deactivate them at runtime per menu instance using a new menu context.
Read Only Asset Editors: Automatically hide any custom menu and toolbar items in read only mode, with an opt in permission list for specific asset editors to selectively allow entries that are valid in read only mode

#jira UE-195628
#rb Rex.Hill

[CL 29809442 by aditya ravichandran in ue5-main branch]
2023-11-17 11:26:45 -05:00
sebastian arleryd
74696d30d1 Add Documentation Strings to User-Facing ToolMenus Code
This adds in-code documentation strings to a few more ToolMenus APIs. The goal is not full coverage but to hit the most commonly used bits and the ones new users most likely run into first.

#jira UE-193566
#rb Rex.Hill

[CL 29372914 by sebastian arleryd in ue5-main branch]
2023-11-02 14:18:27 -04:00
kerim borchaev
5d42b61c5c Context Menu/SubMenu slate widgets can now be tagged
#rb logan.buchy brooke.hubert

[CL 28953627 by kerim borchaev in ue5-main branch]
2023-10-19 23:36:03 -04:00
george rolfe
e8d819c903 [ToolMenus] Overloaded FindOrAdd functions with other Add params
#rb rex.hill
#rb sebastian.arleryd
#rnx

[CL 28651800 by george rolfe in ue5-main branch]
2023-10-10 22:52:43 -04:00
george rolfe
0b0ff025d7 [ToolMenus] Added FToolMenuEntry::InputBindingLabel to allow for explicit input binding hint without requiring a UICommand
#rb rex.hill
#rnx

[CL 28481986 by george rolfe in ue5-main branch]
2023-10-04 19:17:26 -04:00
george rolfe
0fade0153e [ToolMenus] Exposed StyleSet in UToolMenu
#jira UE-194503
#rb rex.hill

[CL 27589969 by george rolfe in ue5-main branch]
2023-09-04 18:15:13 -04:00
kirill zorin
b6ee3a6c64 Fix UE_LOG callsites that have format string-related UB
#rb trivial
#preflight 647107780a6634dbb236a0a6

[CL 25651638 by kirill zorin in ue5-main branch]
2023-05-26 15:52:39 -04:00
kirill zorin
de8db5ff76 Converting ARO-facing raw pointers to TObjectPtr ahead of raw pointer ARO API deprecation.
#rb zousar.shaker
#rb markus.breyer
#rb robert.manuszewski

#preflight 646391406b1406b54ab15460

[CL 25489627 by kirill zorin in ue5-main branch]
2023-05-16 10:52:49 -04:00
JeanMichel Dignard
4f765106b9 Add additional info to a log error to find out which UI Command doesn't have a UI Action.
#jira UE-185116
#rb aditya.ravichandran
#preflight 645570a24c3ec54e6e728edf

[CL 25359872 by JeanMichel Dignard in ue5-main branch]
2023-05-05 17:27:16 -04:00
rex hill
7ef0cc97b2 Menus - Allow suppress extenders using runtime customization
#preflight 6412627ba62aae9c87d1f1b3
#rnx

[CL 24679046 by rex hill in ue5-main branch]
2023-03-16 16:48:13 -04:00
rex hill
18be68b1bf Menus - Add function to unregister all runtime customizations belonging to a specific owner name
#preflight skip
#rnx

[CL 24648513 by rex hill in ue5-main branch]
2023-03-14 22:26:02 -04:00
nick darnell
b81efdcf63 AssetDefinition - Upgrading several sound asset actions.
AssetDefinition - Fixing a regression where we needed to load assets on right click to check a 'can we create a blueprint from this asset' option.
AssetDefinition - Making the dynamic entries for GetAssetActions nameless so that they don't stomp eachother on accident.
AssetDefinition -

#jira UE-165574

[CL 23632575 by nick darnell in ue5-main branch]
2023-01-10 15:49:07 -05:00
aditya ravichandran
dcfd86eedf Add the ability to provide a tooltip for menu items that use widgets
#jira UE-149022
#rb Lauren.Barnes
#preflight 63612687731604696a109fdd

[CL 22882146 by aditya ravichandran in ue5-main branch]
2022-11-01 10:12:45 -04:00
rex hill
3bade3dba6 Deprecate AddOptionsDropdown
#rnx
#preflight skip

[CL 22635602 by rex hill in ue5-main branch]
2022-10-19 15:31:35 -04:00
bryan sefcik
0beee50b45 Updated ../Engine/Source/Developer/... to inline gen.cpp files
Before:
Total CPU Time: 53783.640625 s
Total time in Parallel executor: 558.66 seconds
After:
Total CPU Time: 47886.140625 s
Total time in Parallel executor: 498.81 seconds

#jira

[CL 22173145 by bryan sefcik in ue5-main branch]
2022-09-24 13:31:25 -04:00
rex hill
76414f966d Minor follow up adjustment of recent ToolMenu submenu change
#preflight skip

#ROBOMERGE-AUTHOR: rex.hill
#ROBOMERGE-SOURCE: CL 20986800 via CL 21080942 via CL 21081164 via CL 21081436
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21083114 by rex hill in ue5-main branch]
2022-07-13 18:31:15 -04:00
thomas sarkanen
a2144b84a3 Fixed custom FOnGetContent not working for UToolMenu submenus
#rb Sebastian.Nordgren
#preflight 62bc2310115d146ce3caefb2

#ROBOMERGE-AUTHOR: thomas.sarkanen
#ROBOMERGE-SOURCE: CL 20872256 via CL 20873006 via CL 20881328 via CL 20881670
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v971-20777995)

[CL 20885702 by thomas sarkanen in ue5-main branch]
2022-06-29 18:59:51 -04:00
rex hill
51a511eb5c ToolMenus - Updated debug warning message to display enum value as string when trying to add menu entry to toolbar
#preflight skip

#ROBOMERGE-AUTHOR: rex.hill
#ROBOMERGE-SOURCE: CL 20812959 via CL 20863320 via CL 20866583 via CL 20866620
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v971-20777995)

[CL 20876845 by rex hill in ue5-main branch]
2022-06-29 12:25:46 -04:00
rex hill
64df2b5cab Fix menu losing name when calling certain API
#ROBOMERGE-AUTHOR: rex.hill
#ROBOMERGE-SOURCE: CL 20438501 via CL 20438504 via CL 20438513 via CL 20438521
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v949-20362246)

[CL 20448694 by rex hill in ue5-main branch]
2022-06-01 03:55:33 -04:00