Commit Graph

462 Commits

Author SHA1 Message Date
ben hoffman
98924bb0be Change the format of some slate functions to be not FORCEINLINE, and remove extra spacing based on feedback about changing the pattern in the file
#rb Patrick.Boutot
#preflight 62a9ee18f878f9423edb4b40
#rnx
#jira none

[CL 20670948 by ben hoffman in ue5-main branch]
2022-06-15 11:48:04 -04:00
ben hoffman
80850587dd Update SlateApplication and the message handler to take in FInputDeviceId and FPlatformId instead of the old int32 controllerid for controller input
#jira UE-147796
#rb trivial
#preflight 62a8f9dd0c386ccae48c2ae1

[CL 20658936 by ben hoffman in ue5-main branch]
2022-06-14 17:49:49 -04:00
ben woodhouse
4ecdb9f84c Backout 20582422. It's causing editor crashes on startup
#jira UE-156273

#ROBOMERGE-AUTHOR: ben.woodhouse
#ROBOMERGE-SOURCE: CL 20602169 via CL 20602456 via CL 20602818
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v955-20579017)

[CL 20604832 by ben woodhouse in ue5-main branch]
2022-06-10 18:41:00 -04:00
jeannoe morissette
023ca4d371 RHI: Fix crash in Vulkan on Linux (and leak on Windows) with modal slate dialogs.
#rb Mihnea.Balta
#jira UE-148255
#preflight 62a111493f1e313c6ad92259
#lockdown Mihnea.Balta

#ROBOMERGE-AUTHOR: jeannoe.morissette
#ROBOMERGE-SOURCE: CL 20573397 in //UE5/Release-5.0/... via CL 20575507
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v954-20466795)

[CL 20577206 by jeannoe morissette in ue5-main branch]
2022-06-09 11:05:44 -04:00
ben hoffman
c1d3cd9906 Add a FPlatformUserId to the Slate User and define a default Platform User for the SlateApplication to use. There is no functionality difference here, it is just updating to use the FPlatformUserId struct wrapper instead of the raw int32 ControllerId concept. This is another piece in the large puzzle that is properly supporting local multiplayer input in UE.
#jira UE-147792
#rb daren.cheng
#rnx
#preflight 629a581e2728924cef5bf209

[CL 20491544 by ben hoffman in ue5-main branch]
2022-06-03 15:42:08 -04:00
ionut matasaru
542395fe42 [Insights] Added LLM_SCOPE(ELLMTag::UI); in FSlateApplication::OnSizeChanged() in effort to reduce untagged allocations. It captures ~10000 untagged allocations (~10 MiB) in a short Editor run session.
#jira UE-153503
#rb Vincent.Gauthier
#preflight 6296313c95336ad2bfbe5d31

[CL 20484018 by ionut matasaru in ue5-main branch]
2022-06-03 03:55:26 -04:00
David Harvey
b5840fed7f removing several PLATFORM_HOLOLENS references, mostly around WindowsHWrapper etc.
#jira UE-149794
#rnx
#preflight 628f7a4df622d972b5db8318
#rb pending

[CL 20391626 by David Harvey in ue5-main branch]
2022-05-27 07:04:22 -04:00
aditya ravichandran
8facdaacfa FAsyncTaskNotification: Refactor to remove SSlateAsyncTaskNotificationWidget and use different SNotificationItem notifications depending on the state
#jira UE-134088
#rb Matt.Kuhlenschmidt
#preflight 62791d38ea2a9db9dc57a50e

[CL 20102262 by aditya ravichandran in ue5-main branch]
2022-05-09 10:06:37 -04:00
Prajwal Manjunath
a1abec53da Crash Fix: Check if WidgetsUnderMouse is valid before accessing it in FSlateApplication::ProcessReply
#jira UE-146663, UE-147295
#rb vincent.gauthier
#preflight 19546271

[CL 19560660 by Prajwal Manjunath in ue5-main branch]
2022-03-30 14:03:47 -04:00
patrick boutot
835727130a Slate: Clear the uncached draw elements and the batches elements once they are rendered. We do this to remove hard references to the Glyph Sequence from the previous frame. Cached draw elements are still cached. An old Glyph Sequence may still be a reference in a cached element but it is the responsibility of the SWidget to do the proper invalidation. Deprecated the FSlateRenderer::GetDrawBuffer to remind the user to call FSlateRenderer::ReleaseDrawBuffer.
#rb matt.kuhlenschmidt, none
#preflight 62066e4554003c49ad37c3e6
#preflight 6214eeab797dbbeb471d43cc
#preflight 621522ff9e113332ba17dc9d
#preflight 62162720104496cff889752a

#ROBOMERGE-OWNER: patrick.boutot
#ROBOMERGE-AUTHOR: patrick.boutot
#ROBOMERGE-SOURCE: CL 19089835 via CL 19089855 via CL 19092359 via CL 19093299 via CL 19101760
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19141573 by patrick boutot in ue5-main branch]
2022-02-24 23:56:41 -05:00
patrick boutot
68d0f9cf48 Slate: Fix VerifyWidgetLayerId to only use the invalidation test when we painted in fast path. Add the VerifyOutgoingLayerId to the Widget Reflection test list.
#jira UE-136046
#rb none
#preflight 62017574384d6a94e8dc65bf

#ROBOMERGE-AUTHOR: patrick.boutot
#ROBOMERGE-SOURCE: CL 18897351 via CL 18897352 via CL 18897354 via CL 18903428 via CL 18903856
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v912-18901109)

[CL 18903906 by patrick boutot in ue5-main branch]
2022-02-08 12:08:49 -05:00
patrick boutot
9d38d6eea0 Slate: Update the LayerId in invalidation when the widget painted more elements than the previous paint. Disable by default. You can enable it with the cvar `Slate.InvalidationList.EnableReindexLayerId. This occurs when a child-widget was collapsed and is now visible. The sibling of the widget may have the same LayerId as the child-widget. That would affect how the elements are rendered.
#jira UE-136046, UE-106162
#rb vincent.gauthier
#preglight 61f94bb6a6632a34f372935a

#ROBOMERGE-AUTHOR: patrick.boutot
#ROBOMERGE-SOURCE: CL 18810476 via CL 18810478 via CL 18810490 via CL 18821442 via CL 18822953
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v910-18824042)

[CL 18825126 by patrick boutot in ue5-main branch]
2022-02-02 08:23:10 -05:00
andrew davidson
8e95b10069 Fix FVector2D variant casts - Runtime
Submitted on behalf of fred.kimberley
#rb andy.davidson
#preflight 61f8729a5a026d2d19bb9ca6
#preflight 61f87a025a026d2d19be76ed

#ROBOMERGE-OWNER: andrew.davidson
#ROBOMERGE-AUTHOR: andrew.davidson
#ROBOMERGE-SOURCE: CL 18802361 in //UE5/Release-5.0/... via CL 18802891 via CL 18821557
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v908-18788545)

[CL 18821641 by andrew davidson in ue5-main branch]
2022-02-02 01:47:07 -05:00
patrick boutot
8cd8502185 Slate: Add test to see if widgets have a valid LayerId.
#rb vincent.gauthier
#preflight 61d6ebac932a02483cd2e7d3

#ROBOMERGE-AUTHOR: patrick.boutot
#ROBOMERGE-SOURCE: CL 18532890 via CL 18532895 via CL 18532903 via CL 18533472 via CL 18533989
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v899-18417669)

[CL 18534183 by patrick boutot in ue5-release-engine-test branch]
2022-01-06 14:19:18 -05:00
robb surridge
0d146fd165 Allow links in interactive tooltips to be clickable when the tooltip is spawned from modal windows and menu items.
#jira 112412, 135236
#rb vincent.gauthier

#ROBOMERGE-AUTHOR: robb.surridge
#ROBOMERGE-SOURCE: CL 18311798 in //UE5/Release-5.0/... via CL 18311835
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v895-18170469)

[CL 18311868 by robb surridge in ue5-release-engine-test branch]
2021-11-29 12:20:56 -05:00
Marc Audy
0c3be2b6ad Merge Release-Engine-Staging to Test @ CL# 18240298
[CL 18241953 by Marc Audy in ue5-release-engine-test branch]
2021-11-18 14:37:34 -05:00
leon huang
2a30763929 Refactoring FGenericAccessibleMessageHandler to raise accessible events that include user Id and additional arguments. This is to stabilize the accessibility API and allow more information to be passed
around for modules that require more accessibility information such as User/Controller Id.
#rnx
#rb: Patrick.Boutot
#preflight: 617b17e05aecf4000120a61a

#ROBOMERGE-AUTHOR: leon.huang
#ROBOMERGE-SOURCE: CL 17974834 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v885-17909292)

[CL 17974837 by leon huang in ue5-release-engine-test branch]
2021-10-29 00:24:02 -04:00
aurel cordonnier
a6e741e007 Merge from Release-Engine-Staging @ 17915896 to Release-Engine-Test
This represents UE4/Main @17911760, Release-5.0 @17915875 and Dev-PerfTest @17914035

[CL 17918595 by aurel cordonnier in ue5-release-engine-test branch]
2021-10-25 20:05:28 -04:00
patrick boutot
361918832e Prevent drag enter when no widget can accept the operation. The drag will be disabled until a widget can accept it and the asset will be release in OnDragLeave since it doesn't check if the drag operation is valid.
#jira UE-131039

#ROBOMERGE-AUTHOR: patrick.boutot
#ROBOMERGE-SOURCE: CL 17794093 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v881-17767770)

[CL 17794381 by patrick boutot in ue5-release-engine-test branch]
2021-10-12 21:47:51 -04:00
vincent gauthier
3f0931fa03 Fix to UE4 reference in comments
#rb trivial
#jira UE-111072

#ROBOMERGE-AUTHOR: vincent.gauthier
#ROBOMERGE-SOURCE: CL 17723298 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v879-17706426)
#ROBOMERGE[STARSHIP]: UE5-Release-Engine-Staging Release-5.0

[CL 17723348 by vincent gauthier in ue5-release-engine-test branch]
2021-10-05 12:27:21 -04:00
daren cheng
aa88145b0a Fix Slider and text selections offset at non-standard viewport resolutions
#jira 117869
#rb Vincent.Gauthier
#preflight 6148f7756a142b0001687e55

#ROBOMERGE-AUTHOR: daren.cheng
#ROBOMERGE-SOURCE: CL 17576579 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v871-17566257)

[CL 17576583 by daren cheng in ue5-release-engine-test branch]
2021-09-20 18:20:20 -04:00
steve robb
3d5da0131f Some PLATFORM_COMPILER_HAS_IF_CONSTEXPR usage removed.
#rb none
#jira none

#ROBOMERGE-SOURCE: CL 17104158 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v853-17066230)

[CL 17104179 by steve robb in ue5-release-engine-test branch]
2021-08-09 12:24:24 -04:00
dmytro vovk
fe6369b9ca Fixed SSE Math double precision issues
#jira none
#rb Zak.Middleton

#ROBOMERGE-SOURCE: CL 17033934 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v846-17029325)

[CL 17035634 by dmytro vovk in ue5-release-engine-test branch]
2021-08-03 14:44:57 -04:00
c4augustus
dced82a541 PR #8260: fix Slate to ensure instead of assert when keys are invalid(Contributed by c4augustus)
#rb vincent.gauthier

#ROBOMERGE-SOURCE: CL 17018161 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v839-17012307)

[CL 17018167 by c4augustus in ue5-release-engine-test branch]
2021-08-02 13:57:53 -04:00
daren cheng
29fe6f465b Fix mouse offset at non-standard resolutions.
#jira UE-117869
#rb Vincent.Gauthier
#preflight 6102e20803d30300016de6d7

#ROBOMERGE-SOURCE: CL 16999127 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v838-16927207)

[CL 16999132 by daren cheng in ue5-release-engine-test branch]
2021-07-29 14:34:55 -04:00