Commit Graph

129 Commits

Author SHA1 Message Date
mikko mononen
ef148ecd80 StateTree: StateTree UI spring clean.
- Added icons and icon colors for ST nodes
- Implemented icons for some common ST nodes
- Small update to ST logic icons
- Added icons to the task list in State treeview row, adjusted task list BG color to make icons visible
- Fixed ST editor tabs icons and names (e.g. there were two tabs that had the same label)
- Moved ST node picker to separate class
- Moved category array customization to common helper function
- Added node icons to the ST node picker
- Add node button is not node selector too (simila to Niagara)
- Consolidated the add button style across all lists
- Cleaned up the node customization
  - Moved type selector, debug, and property controls into one menu at right
  - The combined menu can be also summoned using right click
  - Renaming now has to be triggered via the menu
  - Replacing node happens via menu
  - Most of the row was left "clickable" to later use it for selection
  - Improved the visualization and controls for the expression indentation
- Cleaned up state customization
  - Moved parameters to own category (similar to the tree params)
  - Moved event to the enter conditions category
- Cleaned up transition customization
  - Improved the transition display
  - Consolidated add button styles

#jira UE-180608
#rb Juan.Portillo, Mieszko.Zielinski

[CL 33030431 by mikko mononen in ue5-main branch]
2024-04-17 03:01:36 -04:00
mikko mononen
1b8b7b68ed StateTree: Fixed duplicate localizations strings.
#jira UE-212181

[CL 32997038 by mikko mononen in ue5-main branch]
2024-04-16 07:17:16 -04:00
mikko mononen
36782b28e7 StateTree: Fixed StateTree state UI to refresh properly after undo
#jira UE-185357
#rb Mieszko.Zielinski

[CL 32969250 by mikko mononen in ue5-main branch]
2024-04-15 08:05:39 -04:00
mikko mononen
af34e7cba8 StateTree: Fixed UI when undoing
- When redoing add node + set node type the property customization for the node children is reused, but we cache the node ID from the initially empty node.
- Changed FBindableNodeInstanceDetails to always get the up to date ID

#jira UE-204376
#rb Mieszko.Zielinski

[CL 32969012 by mikko mononen in ue5-main branch]
2024-04-15 07:50:58 -04:00
mikko mononen
ea3a4ae635 StateTree: Changed Task icon.
[CL 32882913 by mikko mononen in ue5-main branch]
2024-04-11 06:56:08 -04:00
mikko mononen
25d1ba6c73 StateTree: Improved transition visualization and fixed some logic to better match the execution.
#jira UE-210496
#rb Yoan.StAmant

[CL 32875559 by mikko mononen in ue5-main branch]
2024-04-11 04:14:59 -04:00
mikko mononen
2d865a3f7e StateTree: Fix duplicate LOCTEXT
#jira UE-211740

[CL 32873134 by mikko mononen in ue5-main branch]
2024-04-11 02:20:18 -04:00
mikko mononen
b888b0f394 StateTree: Added automatic description to tasks and conditions.
#rb Mieszko.Zielinski

[CL 32754463 by mikko mononen in ue5-main branch]
2024-04-05 03:37:02 -04:00
mikko mononen
5e4d3a8a6c [Backout] - CL32744797
[FYI] bob.tellez
Original CL Desc
-----------------------------------------------------------------
[Backout] - CL32723276
[FYI] mikko.mononen
Original CL Desc
-----------------------------------------------------------------
StateTree: Made parent state required events and enter conditions to be evaluated when transition leads directly to it's child. (contributed)

[CL 32754072 by mikko mononen in ue5-main branch]
2024-04-05 02:16:32 -04:00
bob tellez
adaa2e290a [Backout] - CL32723276
[FYI] mikko.mononen
Original CL Desc
-----------------------------------------------------------------
StateTree: Made parent state required events and enter conditions to be evaluated when transition leads directly to it's child. (contributed)

[CL 32744822 by bob tellez in ue5-main branch]
2024-04-04 17:51:12 -04:00
marc audy
4cffeabc01 Fix warning V595: The 'SourceProperty' pointer was utilized before it was verified against nullptr.
[FYI] mikko.mononen
#rnx

[CL 32729713 by marc audy in ue5-main branch]
2024-04-04 11:27:07 -04:00
mikko mononen
b67864e0ad StateTree: Made parent state required events and enter conditions to be evaluated when transition leads directly to it's child. (contributed)
[CL 32723281 by mikko mononen in ue5-main branch]
2024-04-04 07:01:38 -04:00
henrik karlsson
2755be1a9f Fixed iwyu compile errors when compiling FortniteEditor
[CL 32626759 by henrik karlsson in ue5-main branch]
2024-03-29 18:57:30 -04:00
mikko mononen
83d4312a2c StateTree: Improve state picker.
- imropoved the state picker to display the states in hieracrchy

#rb Mieszko.Zielinski

[CL 32576972 by mikko mononen in ue5-main branch]
2024-03-28 10:25:37 -04:00
mikko mononen
91012bfa0b StateTree: Added linked state overrides.
- Added ability to describe override table for linked state tree references
- This allows to override parts of the tree e.g. based on character type
- Fixed visibility of the State parameter button when in fixed mode

#rb guillaume.arruda

[CL 32572125 by mikko mononen in ue5-main branch]
2024-03-28 05:18:19 -04:00
jacob wang
b1921e0131 Browse to BP and Open BP Editor buttons for State Tree tasks/conditions
Hide buttons when inapplicable

#jira UE-204342
#rb mikko.mononen

[CL 32508034 by jacob wang in ue5-main branch]
2024-03-26 10:09:06 -04:00
guillaume arruda
16b1c302aa Add meta tag SchemaCanBeOverriden on StateTreeReference to make IStateSchemaProvider an opt in feature
#rb Yoan.StAmant

[CL 32436239 by guillaume arruda in ue5-main branch]
2024-03-22 11:55:18 -04:00
yoan stamant
73e3be5b16 Added unsafe type cast as warnings in AI related plugins/modules: StateTree, Mass, SmartObject. NavigationSystem, and ZoneGraph (partial)
#rb Mieszko.Zielinski, mikko.mononen

[CL 32398227 by yoan stamant in ue5-main branch]
2024-03-21 09:44:11 -04:00
mikko mononen
a82ca89e98 StateTree: Added support for event payload in transitions and event capture for states. (contributed) [take 2]
- Transitions can now be set up to require a specific payload type and/or a gameplay tag
- Required transition event payload is visible to property bindind for transition conditions
- States can require an event type as enter condition, the event is captured when state is selected
- Required state event payload is visible to binding for state enter conditions, tasks and transistions

[CL 32150454 by mikko mononen in ue5-main branch]
2024-03-11 04:54:44 -04:00
bob tellez
0189872e84 [Backout] - CL32082262
[FYI] mikko.mononen
Original CL Desc
-----------------------------------------------------------------
StateTree: Added support for event payload in transitions and event capture for states. (contributed)
- Transitions can now be set up to require a specific payload type and/or a gameplay tag
- Required transition event payload is visible to property bindind for transition conditions
- States can require an event type as enter condition, the event is captured when state is selected
- Required state event payload is visible to binding for state enter conditions, tasks and transistions

[CL 32113027 by bob tellez in ue5-main branch]
2024-03-07 23:49:50 -05:00
mikko mononen
cec24c894d StateTree: Added support for event payload in transitions and event capture for states. (contributed)
- Transitions can now be set up to require a specific payload type and/or a gameplay tag
- Required transition event payload is visible to property bindind for transition conditions
- States can require an event type as enter condition, the event is captured when state is selected
- Required state event payload is visible to binding for state enter conditions, tasks and transistions

[CL 32082269 by mikko mononen in ue5-main branch]
2024-03-07 06:53:02 -05:00
guillaume arruda
682760bafd Fux loctext macro warning
#jira UE-209071
#rnx

[CL 32061239 by guillaume arruda in ue5-main branch]
2024-03-06 13:55:56 -05:00
guillaume arruda
b01f59df59 Extend FStateTreePropertyRef to be able to bind to multiple property types
#rb mikko.mononen

[CL 31987032 by guillaume arruda in ue5-main branch]
2024-03-04 09:08:47 -05:00
guillaume arruda
a3f5944e10 Create IStateTreeSchemaProvider that allows a derived class to override the schema used by a parent property.
Create StateTreeAIComponent & StateTreeAIComponentSchema derived from StateTreeComponent but guaranteed to have a AIController
#rb mikko.mononen

[CL 31940750 by guillaume arruda in ue5-main branch]
2024-03-01 07:42:54 -05:00
mikko mononen
e329242707 StateTree: Blueprint Property Ref.
- State Tree property ref which can be used in BP tasks

[CL 31470182 by mikko mononen in ue5-main branch]
2024-02-14 09:04:52 -05:00