380 Commits

Author SHA1 Message Date
guillaume arruda
8e21641cf7 Fix ValueOrBBKey details for vector, rotator and gameplay tag
#rnx

[CL 35862375 by guillaume arruda in ue5-main branch]
2024-08-28 07:59:35 -04:00
matt hoffman
7815fbb5c1 Behavior Tree Editor: Added support for adding comments without nodes being selected.
When you right click in the Behavior Tree, adjacent to "Auto Arrange" is a new "Add Comment"
When a comment is added, if you have a selection it encompasses the entire selection (matching existing behavior)
If you don't have a selection, it adds a default-sized comment box under your cursor
You can now press C at any point to create a comment under the cursor (matching Blueprint Behavior)

Specifically tested:
Having no nodes selected and pressing C to add a comment
Having one node selected and pressing C
Having multiple nodes selected and pressing C
Having a Decorator selected and pressing C (this doesn't create a bounding box but still creates the comment, not a regression, caused by a complication of how decorators don't have their own widgets)
The above but with the context menu's "Add Comment"

#jira UE-222463
#rb Aris.Theophanidis

[CL 35752310 by matt hoffman in ue5-main branch]
2024-08-22 15:45:44 -04:00
guillaume arruda
15384a80d3 Add a browse to asset button on ValueOrBBKey Class and object
#rnx
#rb Yoan.StAmant

[CL 35350003 by guillaume arruda in ue5-main branch]
2024-08-06 15:39:22 -04:00
guillaume arruda
f22a4ad27e Create BlackboardKeyType_Struct and associated ValueOrBBKey_Struct
#rb Yoan.StAmant

[CL 34530427 by guillaume arruda in ue5-main branch]
2024-06-20 11:15:54 -04:00
kevin macaulayvacher
276d09f6df Remove all simple usage of REN_ForceNoResetLoaders from the codebase since the flag has been deprecated and currently does nothing. Simple in this case is direct use of the flag with no conditional logic. More complex uses were removed in another change.
#rnx
#rb Francis.Hurteau

[CL 34424068 by kevin macaulayvacher in ue5-main branch]
2024-06-17 11:55:02 -04:00
guillaume arruda
d2979c014e Add SerializeFromMismatchedTag and implicit conversion to underlying type to FValueOrBBKey_X to allow them to be drop in replacement.
Change property in bt nodes to their FValueOrBBKey_X equivalent where it made sense
#rb Mieszko.Zielinski
#tests Made sure  existing behavior trees values where preserved, tested juno and br AI

[CL 34158714 by guillaume arruda in ue5-main branch]
2024-06-06 11:32:10 -04:00
guillaume arruda
e9a660bff7 Introduce FValueOrBBKey_X, a Default Value/Blackboard Key pair for BTNodes with a custom view to make picking key easier
FValueOrKey are created of each of the engine blackboard key types.
#rb mikko.mononen, Yoan.StAmant, Mieszko.Zielinski

[CL 34120944 by guillaume arruda in ue5-main branch]
2024-06-05 08:05:12 -04:00
guillaume arruda
5bf8e3238c Missing file in cl 34071056
#rnx

[CL 34072278 by guillaume arruda in ue5-main branch]
2024-06-03 14:28:07 -04:00
guillaume arruda
84d4794c25 Add default value to blackboard key class, enum and object.
Create editor details for the key types to ensure default value are the right type
#rb Yoan.StAmant
#rnx

[CL 34071059 by guillaume arruda in ue5-main branch]
2024-06-03 13:56:09 -04:00
yoan stamant
a512fea797 [DiffUtils] skip non visible properties from node Graph diffs.
Added details on the subproperty causing the difference.
#rb jordan.hoffmann, Maxime.Mercier

[CL 33554625 by yoan stamant in ue5-main branch]
2024-05-09 14:54:17 -04:00
patrick boutot
a2b5613488 Slate: Deprecate SListView::ItemHeight and STreeViewItemHeight. ItemHeight and ItemWidth are only used when the panel is is as a tile or both value are assigned. With TreeView and ListView, you can't assigned both. The function are protected, a subclass of those could but it's up to them to expose the ItemHeight and ItemWidth. This behavior changed was introduced with CL 7634094.
#jira UE-210415
#rb editor-ui-systems

[CL 33370360 by patrick boutot in ue5-main branch]
2024-05-01 08:05:39 -04:00
guillaume arruda
10bfe6343d Fix static analyzer warning
#rnx

[CL 32480805 by guillaume arruda in ue5-main branch]
2024-03-25 15:45:48 -04:00
batlam987
44cbc6ce37 PR #11456: Add ability to search for blackboard keys and gameplay tags in the behavior tree editor
#rb Yoan.StAmant
#jira UE-206463

[CL 32478781 by batlam987 in ue5-main branch]
2024-03-25 14:41:23 -04:00
ben hoffman
8f777c8b59 Behavior Tree: Show runtime node description on the node itself (instead of its tooltip)
#rb mieszko.zielinski, Yoan.Stamant
#jira none

#ushell-cherrypick of 31385563 by kristof.morva1

[CL 31730474 by ben hoffman in ue5-main branch]
2024-02-22 14:37:51 -05:00
ben hoffman
0b69bded2b Behavior Tree Debugger: Fix subtrees never switched back to inactive state.
#rb mieszko.zielinski, Yoan.Stamant
#jira none

#ushell-cherrypick of 31385573 by kristof.morva1

[CL 31730327 by ben hoffman in ue5-main branch]
2024-02-22 14:33:22 -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
olivier lamothe
91d5e97ee1 Behavior Tree Editor: Allow search to find decorators and services by the class of the instance
#rb Yoan.StAmant

[CL 30780687 by olivier lamothe in ue5-main branch]
2024-01-22 13:34:29 -05:00
steve robb
6d5b974842 Fixed up a lot of bool-taking container resize functions to take EAllowShrinking instead.
[CL 30735396 by steve robb in ue5-main branch]
2024-01-19 19:41:56 -05:00
guillaume arruda
fa4c1675d3 Improve behavior tree debugging
- Add a warning to the bottom left of the debug window when the behavior tree being debugged is paused.
- Gather runtime values from instanced nodes when needed so the correct values are displayed when debugging.
- Make double clicking on a dynamic subtree node open the running subtree
#rb Yoan.StAmant

[CL 30265686 by guillaume arruda in ue5-main branch]
2023-12-12 11:46:29 -05:00
guillaume arruda
d3334aac6b Add ability to override default blackboard key value for most type.
Prevent child blackboards from being able to modify the key type of inherited key.
#rb Maxime.Mercier, Mieszko.Zielinski, Yoan.StAmant

[CL 30155186 by guillaume arruda in ue5-main branch]
2023-12-06 10:17:12 -05:00
marc audy
763a611985 Fix C4072 warnings
#rnx

[CL 29852844 by marc audy in ue5-main branch]
2023-11-20 17:26:53 -05:00
ben hoffman
4f3280c91f [Behavior Tree] Fix BT Composite Decorator had an erroneous tooltip ("Class not found, make sure it's saved!")
#rb mieszko.zielinski
#rb ben.hoffman
#jira none

#ushell-cherrypick of 29179945 by kristof.morva1

[CL 29638497 by ben hoffman in ue5-main branch]
2023-11-10 09:18:56 -05:00
ben hoffman
ac7cab8606 [Behavior Tree] Fix re-opening BT assets on project start-up opens up the BB instead
#rb mieszko.zielinski, aditya.ravichandran
#jira none

#ushell-cherrypick of 29179949 by kristof.morva1

[CL 29564510 by ben hoffman in ue5-main branch]
2023-11-08 12:20:48 -05:00
ben hoffman
f3b66d6be3 [Behavior Tree] Add support for node-specific error reporting
#rb mieszko.zielinski
#jira none

#ushell-cherrypick of 29519502 by kristof.morva1

[CL 29563418 by ben hoffman in ue5-main branch]
2023-11-08 11:42:58 -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