Commit Graph

86 Commits

Author SHA1 Message Date
mikko mononen
917f91f1dc StateTree: Fix copy pasting UObject based nodes
- not all properties were copied due to use of PPF_PropertyWindow instead of PPF_Copy
- instance object was not duplicated correctly

#rb Mieszko.Zielinski
#preflight 636372d954471d10be4d69f3

[CL 22959051 by mikko mononen in ue5-main branch]
2022-11-03 14:21:42 -04:00
henrik karlsson
fa90b399a4 Added includes for future change. This changelist only contains added #include and a couple of empty placeholder files
Tested compiling fortnite, unrealeditor, lyra, qagame with non-unity/pch

#preflight 63635997876630122adeab9f
#rb none

[CL 22958990 by henrik karlsson in ue5-main branch]
2022-11-03 14:18:47 -04:00
yohann dossantos
a0ca551c0c Revert code that was work arounding the fact that the SScrollBox slots were not configurable enough.
tests:
-placement editor drag n drop
-state tree view while resizing the scrollbox.

#jira UE-161777
#rb brooke.hubert mikko.mononen
#preflight 636017da7e083afb290e5329

[CL 22869439 by yohann dossantos in ue5-main branch]
2022-10-31 15:13:40 -04:00
mikko mononen
f57006bb63 StateTree: Fix compilation of any enum bindings.
#jira UE-166050
#preflight 63564428ae33b04ec1bc45de
#rb Mieszko.Zielinski

[CL 22783245 by mikko mononen in ue5-main branch]
2022-10-26 13:01:21 -04:00
henrik karlsson
b5b86c796c This change is a strategical submit for a coming change that removes lots of includes in headers that are included by many files. This change contains adding of includes in files that previously got those includes transitively from other inclkudes
#preflight 6355d4940313c24974b2107b
#rb none

[CL 22783162 by henrik karlsson in ue5-main branch]
2022-10-26 12:57:32 -04:00
bryan sefcik
117472780d Fixed include paths.
#jira
#preflight 634ee62fe746026e48eb077e

[CL 22621687 by bryan sefcik in ue5-main branch]
2022-10-19 06:39:08 -04:00
mikko mononen
bb0b758364 StateTree: Fix AnyEnum display and binding
#jira UE-166050
#rb Mieszko.Zielinski
#preflight 633d2f411451b83c2a7558c5

[CL 22362064 by mikko mononen in ue5-main branch]
2022-10-05 15:59:33 -04:00
mikko mononen
b6b9d5c784 StateTree: Fix unity build on StateTreeEditorNodeDetails
#rb trivial

[CL 22272732 by mikko mononen in ue5-main branch]
2022-09-30 12:22:10 -04:00
mikko mononen
39c7181f12 StateTree: Fix duplicate and copy/paste of node
- Generate new IDs for transition conditions nodes on duplicate
- Generate new IDs for nodes on paste
- Prevent pasting between incompatible node containers

#jira UE-149896
#preflight 6336cbd1d165c45137fe1973

[CL 22272713 by mikko mononen in ue5-main branch]
2022-09-30 12:21:34 -04:00
mikko mononen
a43fd72984 StateTree: Editor fixes
- Updated add button to new positive button style
- Change the add-state logic to add to root or subtrees if context is present (e.g. add after)
- Renamed UStateTreeState::LinkedState to LinkedSubtree to indicate what kind of state is expected
- Removed strong reference from the treeview (was preventing a StateTree asset being deleted)
- Fixed bad colors when renaming a state

#jira UE-151757, UE-151874, UE-163569, UE-150568
#rb Mieszko.Zielinski
#preflight 63369601f76de2d4d5977b94

[CL 22271644 by mikko mononen in ue5-main branch]
2022-09-30 11:31:57 -04:00
yohann dossantos
59b5769eca -Text font size changes in Text Box (Multy-Line) widget applies only after moving the text widget
It was the initial bug, but while looking at it, I noticed that the MultilineEditableTextBox was containing both a Font via FEditableTextBoxStyle, and another one via FTextBlockStyle, thus being error prone / inconsistent.
In order to fix the underlying issue (in addition to fix the initial bug), I removed the Font from FEditableTextBoxStyle, and moved the FTextBlockStyle from MultilineEditableTextBox to FEditableTextBoxStyle.
It solves the duplication issue and so make it clear where the Font should be set/read from.
However, as the text block style is now embedded in the editable text box style, it cannot be initialized the exact same way, and I had to do some changes to ensure there was no regression, by configuring various FEditableTextBoxStyle in some style files. I also change the default value for TextBlockStyle to better match our default theme.

-Default font is not set for text widgets.
EditableWidget: ensure to have a default font, and to set the style when calling SynchronizeProperties to ensure it reacts directly without having to force a refresh (by moving the widget for instance)

Bonus:
-Move to cpp some private methods that where 'forced' inline (and we were using function pointer on them). It will avoid some noise in public interface and speed up iteration / compile time when playing with them.

#jira UE-96464
#jira UE-137126

[RN] MultilineEditableTextBox was containing both a Font via FEditableTextBoxStyle, and another one via FTextBlockStyle, thus being error prone / inconsistent.The Font from FEditableTextBoxStyle has been removed, and the FTextBlockStyle moved from MultilineEditableTextBox to FEditableTextBoxStyle. It solves the duplication issue and so make it clear where the Font should be set/read from.
However, as the FTextBlockStyle is now embedded in the FEditableTextBoxStyle, it cannot be initialized the exact same way, and you can now configure the FTextBlockStyle of FEditableTextBoxStyle when creating one from scratch, by calling SetTextStyle on it.


Test
- created a Widget blueprint with different editable types combination: multiline or single line, box or no box.
    -Validated that everything was reacting live as expected now.
    -Created a blue print to set the text style and validated it was working.
    -Create data with old version, then open it with updated version to validate that the visual was still the same and deprecation of style working as expected.
-checked different places in the editor using variation of editable text to ensure they were behaving as before (detail view, console command entry, comment on blueprint node).
#preflight 63344b9f110bb3721ef8aa77

[CL 22232366 by yohann dossantos in ue5-main branch]
2022-09-28 17:59:29 -04:00
bryan sefcik
50d4fac9e0 Updated ../Engine/Plugins/... to inline gen.cpp files
Before:
3548 unity files
Total CPU Time: 47343.578125 s
Total time in Parallel executor: 494.60 seconds

After:
3445 unity files
Total CPU Time: 46044.671875 s
Total time in Parallel executor: 468.51 seconds

#jira
#preflight 63336159b20e73a098b7f24f

[CL 22218213 by bryan sefcik in ue5-main branch]
2022-09-28 01:06:15 -04:00
mikko mononen
ab1b7f80cf StateTree: fix test and empty parameters
- handle empty subtree parameters
- changed a compiler check() to an error
- fixed tests

#jira UE-164541
#rb Mieszko.Zielinski
#preflight 632c4e77671a1a24b5ff67a6

[CL 22163478 by mikko mononen in ue5-main branch]
2022-09-23 19:58:36 -04:00
mikko mononen
780e3d6ec2 StateTree: Handle optionally bound Input properties.
#jira UE-164450
#rb none

[CL 22112889 by mikko mononen in ue5-main branch]
2022-09-21 10:45:14 -04:00
marc audy
a194435a78 Fix const cast on a TObjectPtr
[CODEREVIEW] Mikko.Mononen

[CL 22086998 by marc audy in ue5-main branch]
2022-09-19 21:56:39 -04:00
mikko mononen
0d47d49765 StateTree: Context Objects
- Cleaned up Blueprint nodes from deprecated functions
- Added call guards for BP implemented events on BP nodes
- Renamed Named External Data to Context (Object/Data)
- Added automatic binding for Context objects
- Added UI visualization for Context properties and cleaned up the Input/Ouput visualization
- Added compiler errors for missing Input and Context properties

#jira UE-156544 UE-147509
#rb Stephen.Holmes

[CL 22084585 by mikko mononen in ue5-main branch]
2022-09-19 19:47:11 -04:00
mikko mononen
aa99e51c55 StateTree: Compile StateTree on load if in older format.
#preflight 6322e4a536768f8cf385ced2
#rb Mieszko.Zielinski

[CL 22033017 by mikko mononen in ue5-main branch]
2022-09-15 13:53:23 -04:00
robert millar
5396f7f214 FNames containing asset paths are deprecated. FSoftObjectPath or FTopLevelAssetPath should be used instead.
Fixups for some misc code in plugins.

#jira UE-161932
#rb matt.peters
#preflight https://horde.devtools.epicgames.com/job/631fa3f6bd77c5883fe68184

[CL 21984919 by robert millar in ue5-main branch]
2022-09-13 12:20:10 -04:00
mikko mononen
cb133991e1 StateTree: include mode double conversion for the type promotions
#rb Mieszko.Zielinski Stephen.Holmes
#preflight 631b016a304480f8f893dc7a

[CL 21918321 by mikko mononen in ue5-main branch]
2022-09-09 07:14:47 -04:00
mikko mononen
58cde503d4 PropertyBag: UI tweaks
- simplified the usage of the FPropertyBagInstanceDataDetails
- Changed the UI to match closer the array property style

#preflight 631af12bd135b61bc54b0960

[CL 21918229 by mikko mononen in ue5-main branch]
2022-09-09 06:56:01 -04:00
mikko mononen
61fee4aad0 StateTree: Fixed the schema filtering
- change schema types to include the module path
- removed unused GetStorageSuperStruct()

#rb Stephen.Holmes

[CL 21862723 by mikko mononen in ue5-main branch]
2022-09-07 17:12:28 -04:00
mikko mononen
cb367257d7 StateTree:
- Fixed potential crash in StateTree editor row
- Fixed StateTreeComponentSchema actor class not updating property on load

#rb Mieszko.Zielinski
#preflight 6315cd43ec45fbf3d7ae82d0

[CL 21791567 by mikko mononen in ue5-main branch]
2022-09-05 09:08:59 -04:00
mikko mononen
bbd34dd782 StateTree Events
- Added StateTree events, which allows e.g. transitions based on internal or external events
- Clarified transition nomenclature
- Update UI to support transition events
- BP support for events
- Renamed UStateTreeItemBase to UStateTreeNodeBase for consistency with FStateTreeNodeBase

#jira UE-156543
#rb Mieszko.Zielinski
#preflight 631077ef660db81edbd068ca

[CL 21738918 by mikko mononen in ue5-main branch]
2022-09-01 09:06:53 -04:00
mikko mononen
0d1ace8323 StateTree: StateTreeComponent improvements
- Added option to start the StateTree automatically on BeginPlay
- StateTreeComponentSchema: allow to specify which actor class to expect the StateTree to run on (allows to bind to Actor specific data directly)
- Fixed FStateTreeReference parameter update on BP instance (the struct gets copied, which cause issues with the delegate handle)

#rb Mieszko.Zielinski
#preflight 630c70bb0345de4ccf7c8b51

[CL 21685020 by mikko mononen in ue5-main branch]
2022-08-29 14:47:43 -04:00
mikko mononen
918ef3e1e2 StateTree: Fix potential nullptr reference
#rb trivial

[CL 21684959 by mikko mononen in ue5-main branch]
2022-08-29 14:45:47 -04:00