Commit Graph

1116 Commits

Author SHA1 Message Date
Patrick Boutot
e8bfb56e07 Slate: Rename StateAttribute h files to inl files.
#rnx
#rb trivial

[CL 16365329 by Patrick Boutot in ue5-main branch]
2021-05-18 07:25:29 -04:00
Patrick Boutot
51e6fe68ae Slate: Deprecate direct acces from the Alignment padding and the owner pointer of a FSlot.
#jira UE-109145
#rb daren.cheng
#preflight 60a27ad607285b0001d61dfd

[CL 16351434 by Patrick Boutot in ue5-main branch]
2021-05-17 11:08:42 -04:00
aurel cordonnier
84abf721a0 temp workaround for cooking issues, removing the assert for now.
#fyi patrick.boutot

[CL 16337986 by aurel cordonnier in ue5-main branch]
2021-05-14 19:55:38 -04:00
daren cheng
8eb00440df Reskin UMG Default Styles for Starship
#jira UETOOL-2218
#rb Matt.Kuhlenschmidt, Lauren.Barnes, Patrick.Boutot
#preflight 609ec7a14a67ba0001ef4dcc

[CL 16335619 by daren cheng in ue5-main branch]
2021-05-14 16:44:24 -04:00
Patrick Boutot
8801df26de Slate: Force the initialization order for SNullWidget and FNoChildren.
#rb martin.sevigny

[CL 16333561 by Patrick Boutot in ue5-main branch]
2021-05-14 15:33:49 -04:00
Patrick Boutot
e4798a1409 Temp fix for cooker on android.
#rb none
#rnx

[CL 16332976 by Patrick Boutot in ue5-main branch]
2021-05-14 14:52:20 -04:00
Patrick Boutot
0957499c70 Slate: Preperation work for SlateAttribute in FSlot.
Force a valid SWidget pointer for FChildren and for FNoChildren. Deprecate the TSupportsOneChildMixin because it was miss used at some places and cause FChildren to be used as FSlot. Prepare the TPaddingWidgetSlotMixin and TAlignmentWidgetSlotMixin to support invalidation. Fix slot instance that were not using the mixin (easier when we will support SlateAttribute).
#jira UE-109145
#rb daren.cheng, vincent.gauthier
#prefligh 609e94f6cbf9a4000115d883

[CL 16331830 by Patrick Boutot in ue5-main branch]
2021-05-14 13:28:37 -04:00
Patrick Boutot
23beac9926 Slate: Add LexToString to EInvalidateWidgetReason. Update SlateTraceFlags and ConsoleSlateDebuggerInvalidate with the newest EInvalidateWidgetReason. Add ConsoleSlateDebuggerBreak to break the application when a widget get invalidated or painted.
#rb vincent.gauthier
#preflight 609e8283423c960001e9906f

[CL 16329896 by Patrick Boutot in ue5-main branch]
2021-05-14 11:04:54 -04:00
ionut matasaru
be0c084a13 Fixed errors re format string / parameter list for various UE_LOGs:
- number of supplied parameters less or more than the number of specifiers used in format string
  - invalid format string specifiers used
Also changed text of two UE_LOG error messages to match the other ones.

#rb Patrick.Boutot

[CL 16314926 by ionut matasaru in ue5-main branch]
2021-05-13 13:12:04 -04:00
aurel cordonnier
8eebe8841f Merge UE5/RET @ 16305968 to UE5/Main
This represents UE4/Main @ 16261013 and Dev-PerfTest @ 16259937

[CL 16306996 by aurel cordonnier in ue5-main branch]
2021-05-12 18:10:03 -04:00
Patrick Boutot
097426f18c Slate: Add update flag for volatile prepass. These widgets always need a prepass in fastpath. Fix issue with collapsed, the desired size was not updated when a parent was also collapsed. Fix the wrong position of elements inside a Retainer when the Retainer moves. Keep an array of all widgets that always need to be updated (tick, timer, paint). That prevents notifying the proxy and the final list once the widget got painted and ensure that all elements are updated.
#preflight 609aa2bc8f637500016ce3f2

[CL 16276861 by Patrick Boutot in ue5-main branch]
2021-05-11 14:15:32 -04:00
Patrick Boutot
ebd1952e28 Slate: Add option to verify if a widget is already in the invalidaiton heap. Enabled with "Slate.InvalidationRoot.VerifyWidgetHeapContains"
#fyi matt.kuhlenschmidt
#preflight 6093f053e707620001c2d23e

[CL 16220501 by Patrick Boutot in ue5-main branch]
2021-05-06 10:25:51 -04:00
Patrick Boutot
fdbc4fe49c Slate: Fix unitialized SlateAttribute. FLinearColor, FVector2D (and others) do not initialize their values in the default constructor. The value in memory at that time can be a nan (just by chance). They will not be assigned because we check if the value changed before doing any assignment.
#preflight 609004e7e0eb8900014aa5c7

[CL 16184450 by Patrick Boutot in ue5-main branch]
2021-05-03 11:31:55 -04:00
Patrick Boutot
654fc89c0a Slate: Review fix from CL 16157339
#rb daren.cheng
#rnx
#preflight 608bfac8870cf4000150d70d

[CL 16167662 by Patrick Boutot in ue5-main branch]
2021-04-30 09:23:47 -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
Patrick Boutot
db61f282c6 Slate: SlateAttributeMemberRef now takes a TSharedRef instead of a reference to prevent circular inclusion. Split the SlateAttribute.h file into multiple files (other types are in progress and the file is getting bulky). Save some space in TSlateAttributeMetaData::FGetterItem (more variable are coming up). The maximum number of the defined attribute is now 255 (the biggest SWidget has ~25 attributes). Fix issue with bHasUpdatedManuallyFlagToReset that would reset the flag when we update the AffectVisibility attribute (the other attributes didn't have the chance to get updated). Prevent invalidation when the widget is not yet constructed (save some process time and space in the InvalidationRoot). Set bHasRegisteredSlateAttribute in ~SWidget to prevent invalidation when the widget is getting destroyed.
#preflight 608aad94200a1f00018a00a7

[CL 16157339 by Patrick Boutot in ue5-main branch]
2021-04-29 10:48:24 -04:00
Marc Audy
3cfedaade8 Fix PVS warning V502 when comparing against NAME_None in a trinary
[CL 16137741 by Marc Audy in ue5-main branch]
2021-04-28 01:58:36 -04:00
Matt Kuhlenschmidt
87e5451da6 Nomad tabs docked with major tabs now have a menu instead of just empty space. The menu is simplified because nomad tabs do not belong to a specific editor.
[CL 16115179 by Matt Kuhlenschmidt in ue5-main branch]
2021-04-26 12:11:27 -04:00
Steve Robb
bfddf3e267 TMethodPtr<U, ...> and TConstMethodPtr<U, ...> template aliases added to delegates to replace the T*Delegate_Const<U, ...>::FMethodPtr types.
#rb robert.manuszewski
#jira none

[CL 16092754 by Steve Robb in ue5-main branch]
2021-04-22 09:49:28 -04:00
Patrick Boutot
120469e3b5 Slate: Rename "Collapsed" SlateAttribute to "AffectVisibility". It represent more the intention. If the parent is collapsed, the child SlateAttribute was not updated even if they were marked as "update when collapsed". Update the widget reflector to show the name of the SlateAttribute (only if the widget is live). Call GetRelativeLayoutScale after the attribute are updated.
#preflight 60801fe317b40800013076ce

[CL 16072465 by Patrick Boutot in ue5-main branch]
2021-04-21 09:41:28 -04:00
Matt Kuhlenschmidt
7e94cbbb20 Add back in separate cvars for font atlas flush params. Each flushable atlas can now have their own params
#jira UE-109618
#rb jamie.dale

[CL 16062063 by Matt Kuhlenschmidt in ue5-main branch]
2021-04-20 11:33:52 -04:00
Patrick Boutot
6e691fc6d5 Slate: Remove OnInvalidation feature. The invalidation is not always triggered when the value is cached or when it's built from a FastPath widget list.
#preflight 607d88cd76cdf80001fa6ca7

[CL 16050686 by Patrick Boutot in ue5-main branch]
2021-04-19 10:26:46 -04:00
Patrick Boutot
f46af25282 Slate: Fix attributes update order in GlobalInvalidation.
[CL 16050094 by Patrick Boutot in ue5-main branch]
2021-04-19 09:03:16 -04:00
Patrick Boutot
bb133240b9 Slate: Modification to FOneSimpleMemberChild to use the SLATE_ADD_MEMBER_ATTRIBUTE_DEFINITION macro.
#rb vincent.gauthier
#preflight 607d56594df3b60001ef4323

[CL 16049426 by Patrick Boutot in ue5-main branch]
2021-04-19 07:18:20 -04:00
charles bloom
6331ae849c remove MemStack constructor with unused int argument
#rb none
#fyi yuriy.odonnell

[CL 16047263 by charles bloom in ue5-main branch]
2021-04-18 13:06:22 -04:00