Commit Graph

1425 Commits

Author SHA1 Message Date
zahra nikbakht
c8c8a94f86 Add accessors for UImage.
#rb patrick.boutot
#jira ue-145352
#preflight 6376944f314f06b6860fe772

[CL 23182587 by zahra nikbakht in ue5-main branch]
2022-11-17 15:29:32 -05:00
Patrick Boutot
7ccbff75a4 UMG: Prevent the game widget to be painted/ticked when the BP is debugging. The SlateApplicatoin is enough to fix the jira but it can cause the same issue if the event was triggered by a mouse click instead of a tick. We need both until all events are registered. With GameLayerManager itself, it won't solve the jira in invalidation mode.
#jira UE-167057
#preflight 6373a930232e3d12cbbf668a

[CL 23153664 by Patrick Boutot in ue5-main branch]
2022-11-16 09:44:08 -05:00
henrik karlsson
5b96352978 Fixes for c++ headerunits/modules.
* Adding forward declarations
* Adding "inline" in front of const/constexpr variables in headers
* Adding includes
* A few moves of ctor/dtor to cpp file

#preflight 6372b3ac0c74adb48b49f313
#rb none

[CL 23130896 by henrik karlsson in ue5-main branch]
2022-11-14 19:59:41 -05:00
joe pribele
1d8537f20b changed PRAGMA_DISABLE_OPTIMIZATION to UE_DISABLE_OPTIMIZATION_SHIP
#preflight 6372ba60ee4d25f90ae3d207

[CL 23128414 by joe pribele in ue5-main branch]
2022-11-14 17:31:05 -05:00
jorge gonzalez
abf528b1cd #JIRA UE-168269
Add CVar in the SGameLayerManager to remove alpha multiplication on disabled game-layer widgets.

[REVIEW] [at]daren.cheng [at]jc.authier

[CL 23069901 by jorge gonzalez in ue5-main branch]
2022-11-09 21:05:00 -05:00
steve robb
1e5cb9a75c Removed legacy TAllocatorTraits::SupportsMove, which is assumed to be always be true everywhere it is used.
#rb
#preflight 636ab1e6843e6ac794dae0dc

[CL 23041494 by steve robb in ue5-main branch]
2022-11-08 17:17:09 -05:00
Zak Middleton
9149ed2129 #ue5 - Truncation fixes for misc engine headers and modules:
- GameplayMediaEncoder
- GameplayTasks

#jira UE-160833
#rb Andrew.Davidson
#preflight 6362aead876630122ab1dead

[CL 22990977 by Zak Middleton in ue5-main branch]
2022-11-04 13:48:41 -04:00
ben hoffman
7256c4586c Set user index on FPointerEvent in the WidgetInteractionComponent. This fixes an issue where there could be large input deltas on mobile when using a virtual slate user because the index of 8 would not be cleared, since it is not registered with the device mapper.
#rb Chris.Babcock
#rb David.Garza
#rb Maxime.Vaillancourt

#rnx
#preflight 63642bfb882365b85966e3fd

[CL 22987805 by ben hoffman in ue5-main branch]
2022-11-04 11:28:48 -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
henrik karlsson
4a36cfe8ff Moved operator== to be hidden friend instead of put directly in global namespace
Moved GetTypeHash function to be hidden friend instead of put directly in global namespace.

Note that the function/operator needs to be fully inlined in the type or placed in the cpp. If the function is added as friend but then implemented outside the type then hidden friend optimization won't work.

This should improve compile time somewhat according to msvc devs.

#rb Steve.Robb
#preflight 6360b7052b5338aceb26471b

[CL 22889837 by henrik karlsson in ue5-main branch]
2022-11-01 15:50:27 -04:00
henrik karlsson
8f895fef35 Added includes needed after removing includes in headers
#preflight 6360b63e41625be270a6e464
#rb none

[CL 22888775 by henrik karlsson in ue5-main branch]
2022-11-01 15:14:15 -04:00
yohann dossantos
e3275ca59b Improve Scrollbox slot to support the same settings than the vertical/horizontal/stack box:
- size rule auto and strech.
- max size.
Expose the size rule also in the ScrollBoxSlot for UMG.

tests:
-reverted some workaround in the code and used the new FillSize slot parameter with success.
-tested a lot of sub editors, as the code also impact vertical/horizontal box.
-created new UMG data in QAGame using the new attributes (will submit them soon), and used blueprint graph to change the size settings of a scrollbox slot.

#jira UE-161777
#rb patrick.boutot
#preflight 6360112be86070572fd89aae

[CL 22868510 by yohann dossantos in ue5-main branch]
2022-10-31 14:44:30 -04:00
graeme thornton
e7986ac620 [Backout] - CL22808749
[FYI] Steve.Robb
Original CL Desc
-----------------------------------------------------------------
TMap and TSet can now be declared as members with forward-declared key and value parameters.
KeyFuncs::KeyInitType and KeyFuncs::ElementInitType typedefs are no longer used and user-defined KeyFuncs do not need to provide them.  Deprecated placeholders for these typedefs exist though they may not be defined exactly as they were before.  A new KeyType typedef needs to be provided by custom KeyFuncs which don't already inherit from BaseKeyFuncs or TDefaultMapKeyFuncs.
KeyConstPointerType, KeyInitType, ValueInitType and ElementInitType typedefs have been deprecated across TMap, TSet and TSortedMap.  Regular C++ parameter-passing semantics should be used instead (const T& Ref or T Value, depending on T).
Added missing FSetElementId::operator!=().

[FYI] steve.robb
#rb james.hopkin
[FYI] henrik.karlsson
#preflight 635a56c15d49a96f7b31938f

[CL 22850782 by graeme thornton in ue5-main branch]
2022-10-29 02:59:59 -04:00
henrik karlsson
cd1466475b Fixed up const/constexpr variables in header files to be "inline"
This is required for c++ modules/header units in order to decide if constexpr/const value should be available to outside module

#preflight 635c0b5c1803be35c767e0ea
#rb none

[CL 22835882 by henrik karlsson in ue5-main branch]
2022-10-28 15:38:42 -04:00
steve robb
e980405a8f TMap and TSet can now be declared as members with forward-declared key and value parameters.
KeyFuncs::KeyInitType and KeyFuncs::ElementInitType typedefs are no longer used and user-defined KeyFuncs do not need to provide them.  Deprecated placeholders for these typedefs exist though they may not be defined exactly as they were before.  A new KeyType typedef needs to be provided by custom KeyFuncs which don't already inherit from BaseKeyFuncs or TDefaultMapKeyFuncs.
KeyConstPointerType, KeyInitType, ValueInitType and ElementInitType typedefs have been deprecated across TMap, TSet and TSortedMap.  Regular C++ parameter-passing semantics should be used instead (const T& Ref or T Value, depending on T).
Added missing FSetElementId::operator!=().

#rb james.hopkin
[FYI] henrik.karlsson
#preflight 635a56c15d49a96f7b31938f

[CL 22810695 by steve robb in ue5-main branch]
2022-10-27 11:20:32 -04:00
henrik karlsson
77d7e1bd67 [SlateCore]
* DrawElementPayloads - Added include to fix non-unity error

#rb none
#preflight skipped

[CL 22787103 by henrik karlsson in ue5-main branch]
2022-10-26 15:32:10 -04:00
henrik karlsson
0da5962f86 Removed lots of includes in UE based on compile profiling
#preflight 6356cb02ae33b04ec1e358ac
#rb none

[CL 22786278 by henrik karlsson in ue5-main branch]
2022-10-26 15:02:30 -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
Zak Middleton
a68f85d9d2 #ue5 - Truncation/conversion fixes for ProjectLauncher, MediaAssets, ProjectTargetPlatformEditor, and associated UI code.
#jira UE-160837
#rb Dave.Jones2, Andrew.Davidson
#preflight 63518de9f92c325024c03814

[CL 22693245 by Zak Middleton in ue5-main branch]
2022-10-21 12:58:17 -04:00
marc audy
927adb79be Correct deprecation versions
#preflight trivial
#rnx

[CL 22573046 by marc audy in ue5-main branch]
2022-10-17 15:13:35 -04:00
daren cheng
d7974edd4f Increase background threading priority of callstack capture in slate insights.
#jira UE-165721
#rb Patrick.Boutot
#preflight 63485091a8717e94536d7119
#lockdown jeanmichel.dignard

[CL 22513057 by daren cheng in ue5-main branch]
2022-10-13 17:42:40 -04:00
lonnie li
0b3f45c523 Slate: Added interface to explicitly disable Slate throttling through code.
#rb patrick.boutot

[CL 22505556 by lonnie li in ue5-main branch]
2022-10-13 11:40:57 -04:00
yohann dossantos
91fb80e2c0 After recent editable text box and style dev, in the case where no font was configured on an editable text box, and when editing in the designer, the 'no font' symbols were displayed instead of the actual glyph.
While before the change, a font was diplayed... temporarily (it would disappear  if you started to play with the font settings and moved the object in the viewport).

A font will now be displayed as before, but will still disappear in the same condition, but it's not valid anyway to have no font, and soon (hopefully with 5.1) we will also assign a default font to avoid having this issue.

Tests: in the editor, opened in the UMG designer problematic assets (old misconfigured data, on which the deprecation code would be applyied, and validated that a font was used as before). Opened other assets without issue.

#jira UE-166794
#preflight 6345d0c88a0a7b2adc30951d
#rb vincent.gauthier
#lockdown jeanmichel.dignard

[CL 22478251 by yohann dossantos in ue5-main branch]
2022-10-12 10:14:14 -04:00
ben hoffman
b770e92daf Fix for using the incorrect slate user when synthesizing the mouse cursor
#jira UE-161913
#preflight skip
#rb david.harvey
#rnx

[CL 22450144 by ben hoffman in ue5-main branch]
2022-10-11 00:32:46 -04:00
benjamin rouveyrol
8ec33f2227 Update HDR display info when display changed
Only handling the display change event is not enough though: the DXGI factory might not be contain up-to-date display information in case it's not current anymore. In that case, we need to rely on a newly created factory, used exclusively to retrieve the display info

#rb mihnea.balta
#jira UE-161418
#preflight 633f1a2b62762f4a1b604f62

[CL 22425912 by benjamin rouveyrol in ue5-main branch]
2022-10-10 03:22:42 -04:00