Commit Graph

88 Commits

Author SHA1 Message Date
dan oconnor
7b535a45eb Deprecate FGraphActionListBuilderBase::ActionGroup, as it is redundant with FEdGraphSchemaAction. It was introduced to handle 'multi edit' but was never fully realized and contains redundant categorization fields that are inconsistently used in scoring of menu entries. What little categorization was being done on the action group is now properly done on the FEdGraphSchemaAction
#jira UE-211244
#rb jordan.hoffmann

[CL 33123756 by dan oconnor in ue5-main branch]
2024-04-19 19:47:31 -04:00
dan oconnor
1990f8aa53 Allow keyboard navigation in the action menu to disable scoring of added entries - this allows the user to keyboard navigate effectively while the menu is still building
#rb Phillip.Kavan
#jira UE-211629

[CL 32780151 by dan oconnor in ue5-main branch]
2024-04-05 20:46:03 -04:00
dan oconnor
55f1af2746 Made the focussed menu entry stable in the blueprint context menu, even while populating with a filter string
#rb Phillip.Kavan
#jira UE-211629

[CL 32766131 by dan oconnor in ue5-main branch]
2024-04-05 13:55:11 -04:00
dan oconnor
40e74fa28f Rework SGraphActionMenu such that there is no need to walk all existing nodes during menu building, GetLeafNodes is instead called only during keyboard navigation. This speeds up asynchronous (and synchronous) action menu construction. FGraphActionNode now tracks the number of 'leaf' nodes that have been added to it, SGraphActionMenu now tracks the selected node, rather than its leaf index (which is unstable and would require expensive recalculation)
#rb Phillip.Kavan
#jira UE-211244

[CL 32716387 by dan oconnor in ue5-main branch]
2024-04-03 20:04:53 -04:00
mateo egey
42d515886c Added slate argument to automatically select an action in the graph action menu when only one action exists.
Defaults to off to save perf. Useful for some Niagara cases

#jira UE-144291
#rb aditya.ravichandran

[CL 30617677 by mateo egey in ue5-main branch]
2024-01-15 08:46:24 -05:00
ben hoffman
b36f38d22e Fix BT decorator and service lists (and also some custom licensee graph implementations) put the first and second level category on the same level.
A very long time ago CL 2411381 introduced a change to make the default Base Indent Level of all Graph Action Menus "1", basically meaning that both "0" and "1" indent levels would be placed at the root of the menu. Presumably they've needed it, because in BPs, categories on the left side are custom headers, and they didn't want the children (functions, variables, etc) to have an extra indent.
However, they've made this change globally, basically breaking Graph Action Menus that didn't have category customization and needed the first level to be indented under the root level.
Some systems have overcome this by defining a custom expander with a Base Indent Level of 0 - getting back the original, expected behavior. That was however just hiding the underlying issue.
This change reverts back the Base Indent Level to 0, and sets it to 1 instead only for those menus, which have a customized category header. This should fix all graph menus where the second category level was not indented (i.e. BT Action Menu and Decorator Context Menu).

#rb aditya.ravichandran
#jira none

#ushell-cherrypick of 29515770 by kristof.morva1

[CL 29530311 by ben hoffman in ue5-main branch]
2023-11-07 15:20:10 -05:00
dan oconnor
d2f5aa0de2 Optimize async blueprint context menu building by avoiding resorting and inserting nodes in the desired order
#rb Phillip.Kavan
#jira UE-167392
#preflight 6419ef73ec01de1664d727e3

[CL 24742868 by dan oconnor in ue5-main branch]
2023-03-21 19:49:22 -04:00
phillip kavan
0507c05d34 Extend SGraphActionMenu to allow owners to directly provide the action menu source list at refresh time.
#jira UE-167392
#rb Lauren.Barnes
#preflight 63c075b20225f00e14ab8664

[CL 23671671 by phillip kavan in ue5-main branch]
2023-01-12 18:36:13 -05:00
bryan sefcik
8cc129f2b6 IWYU Pass 1 - Engine/Source/Editor/...
#jira
#preflight 6306736ac85b7fef22be7751

[CL 21558583 by bryan sefcik in ue5-main branch]
2022-08-24 22:45:13 -04:00
jordan hoffmann
0c729fbf28 Unshelved from pending changelist '20809968':
Additional right-click Blueprint graph context menu profiling.

#preflight 62be03913f0d6beee29e55e0

#ROBOMERGE-OWNER: jordan.hoffmann
#ROBOMERGE-AUTHOR: jordan.hoffmann
#ROBOMERGE-SOURCE: CL 20905335 via CL 20915206 via CL 20915216
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v971-20777995)

[CL 20917862 by jordan hoffmann in ue5-main branch]
2022-07-01 14:16:41 -04:00
Lauren Barnes
6248f8d412 Replacing legacy EditorStyle calls with AppStyle
#preflight 6272a74d2f6d177be3c6fdda
#rb Matt.Kuhlenschmidt

#ROBOMERGE-OWNER: Lauren.Barnes
#ROBOMERGE-AUTHOR: lauren.barnes
#ROBOMERGE-SOURCE: CL 20057269 via CL 20070159 via CL 20072035 via CL 20072203
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)
#ROBOMERGE-CONFLICT from-shelf

[CL 20105363 by Lauren Barnes in ue5-main branch]
2022-05-09 13:12:28 -04:00
aurel cordonnier
d17d20ca36 Merge from Release-Engine-Test @ 16758890 to UE5/Main
This represents UE4/Main @ 16738161 and Dev-PerfTest @ 16737719 (and Release-17.00 @ 16658211)

[CL 16763350 by aurel cordonnier in ue5-main branch]
2021-06-23 17:51:32 -04:00
aurel cordonnier
50944fd712 Merge UE5/RES @ 16162155 to UE5/Main
This represents UE4/Main @ 16130047 and Dev-PerfTest @ 16126156

[CL 16163576 by aurel cordonnier in ue5-main branch]
2021-04-29 19:32:06 -04:00
Marc Audy
01b7c9f4f5 Merge UE5/RES @ 15958325 to UE5/Main
This represents UE4/Main @ 15913390 and Dev-PerfTest @ 15913304

[CL 15958515 by Marc Audy in ue5-main branch]
2021-04-08 14:32:07 -04:00
matt kuhlenschmidt
eafcf10f4f Fix giant separators in graph action menus
#jira UE-108120

#ROBOMERGE-SOURCE: CL 15493152 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v771-15082668)

[CL 15493153 by matt kuhlenschmidt in ue5-main branch]
2021-02-22 15:56:04 -04:00
Marc Audy
cac1fe0019 Merge UE5/Release-Engine-Staging @ CL# 15299266 to UE5/Main
This represents UE4/Main @ CL# 15277572

[CL 15299962 by Marc Audy in ue5-main branch]
2021-02-03 14:57:28 -04:00
Marcus Wassmer
3b81cf8201 Merging using //UE5/Main_to_//UE5/Release-Engine-Staging @14384769
autoresolved files
#rb none

[CL 14384911 by Marcus Wassmer in ue5-main branch]
2020-09-24 00:43:27 -04:00
Matt Kuhlenschmidt
7643234731 Blueprint editor reskin first pass and supporting work
[CL 14279737 by Matt Kuhlenschmidt in ue5-main branch]
2020-09-09 10:51:17 -04:00
Marc Audy
a7c9001a94 Merging //UE5/Release-Engine-Staging to Main (//UE5/Main) @ 14075166
#rb
#rnx

[CL 14075271 by Marc Audy in ue5-main branch]
2020-08-11 01:36:57 -04:00
ben hoffman
34470f8025 Fix CIS warning about implicit bool cast
#rnx
#rb trivial


#ROBOMERGE-SOURCE: CL 12435573 via CL 12444938
#ROBOMERGE-BOT: (v671-12333473)

[CL 12445238 by ben hoffman in Release-Engine-Staging branch]
2020-03-26 08:03:27 -04:00
ben hoffman
6ede1aef25 Update context menu search calculation to prefer shorter things even more than before
Reduce keyword weight to improve Niagara search functionality

#jira UE-90986
#rb michael.noland
#rnx


#ROBOMERGE-SOURCE: CL 12435399 via CL 12437146
#ROBOMERGE-BOT: (v671-12333473)

[CL 12444537 by ben hoffman in Release-Engine-Staging branch]
2020-03-26 07:55:20 -04:00
ryan durand
627baf970a Updating copyright for Engine Editor.
#rnx
#rb none


#ROBOMERGE-SOURCE: CL 10869241 via CL 10869527 via CL 10869904
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870586 by ryan durand in Main branch]
2019-12-26 15:33:43 -05:00
Ben Hoffman
192532ec20 Make context menu debug info only print out when the user types, not whenever the context menu is built.
#jria UE-77737
#jira UE-77748
#rb none

[CL 7544648 by Ben Hoffman in Dev-Framework branch]
2019-07-23 10:39:34 -04:00
Ben Hoffman
85bfc5bd09 Improve the blueprint context menu searching heuristics
Add context menu CVars for tweaking the behavior of finding matches in the context menu
Add some comparisons to the type of pin that was dragged off so that there is a preference towards that type
Prefer shorter matches over long ones
Update how percentage matches are calculated

#jira UE-75750
#jira UE-44994
#jira UE-47324

#RB Michael Noland

[CL 7433140 by Ben Hoffman in Dev-Framework branch]
2019-07-17 17:17:45 -04:00
Marc Audy
278eda75dd Merging //UE4/Dev-Main to Dev-Framework (//UE4/Dev-Framework) @ 7234503
#rb
#rnx

[CL 7263339 by Marc Audy in Dev-Framework branch]
2019-07-10 13:47:03 -04:00