Commit Graph

880 Commits

Author SHA1 Message Date
Patrick Boutot
02661d9bc4 Slate: Transform ResourceManager & SlateRenderer from Vector2D to Vector2f.
#jira UE-137340
#rb vincent.gauthier
#preflight 627a4b80fc07e0a9b4ee414c

[CL 20125423 by Patrick Boutot in ue5-main branch]
2022-05-10 13:26:06 -04:00
Lauren Barnes
6248f8d412 Replacing legacy EditorStyle calls with AppStyle
#preflight 6272a74d2f6d177be3c6fdda
#rb Matt.Kuhlenschmidt

#ROBOMERGE-OWNER: Lauren.Barnes
#ROBOMERGE-AUTHOR: lauren.barnes
#ROBOMERGE-SOURCE: CL 20057269 via CL 20070159 via CL 20072035 via CL 20072203
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)
#ROBOMERGE-CONFLICT from-shelf

[CL 20105363 by Lauren Barnes in ue5-main branch]
2022-05-09 13:12:28 -04:00
Patrick Boutot
26189bda15 DrawElements
Slate: Transform DrawElements from Vector2D to Vector2f. Use FDeprecateVector2D to create a deprecation path for function that returns a FVector2D.
#jira UE-137340
#rb sebastian.nordgren
#preflight 627572e0dd374c4235ce3174, 62791043822bdc69f007e4de

[CL 20102076 by Patrick Boutot in ue5-main branch]
2022-05-09 09:54:59 -04:00
Patrick Boutot
bdae98ad4e Slate: Transform some ElementPayload from Vector2D to Vector2f. Use FDeprecateVector2D to create a deprecation path for function that returns a FVector2D.
#jira UE-137340
#rb sebastian.nordgren
#preflight 6273e2f3230c8997ad94b076

[CL 20059075 by Patrick Boutot in ue5-main branch]
2022-05-05 12:02:42 -04:00
sebastian nordgren
0bd4338a0c Title bar height is now correctly set to 34 from the previous 24.
#jira UE-141085
#preflight 620d01423d541467563785a3
#lockdown simon.tourangeau

#ROBOMERGE-AUTHOR: sebastian.nordgren
#ROBOMERGE-SOURCE: CL 20042060 in //UE5/Release-5.0/... via CL 20045743
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20047984 by sebastian nordgren in ue5-main branch]
2022-05-04 16:14:27 -04:00
benjamin rouveyrol
428fb1cfce bugfixes for HDR in editor:
conversion to scRGB was happening twice in CompositeUIPixelShader: once during the LUT, and once during ST2084ToScRGB. We now rely only on the LUT to put us to the correct color space, just like we do during tonemapping
Make sure to use rec709 instead of rec2020 in editor, since this is the color space that is used by scRGB (PF_FloatRGBA backbuffer format)
Fixed UI composition to properly composite HDR elements (like the viewport) with the rest of the UI: we draw a black, 0-alpha rectangle as a proxy in the SDR pass for HDR elements, and we draw the HDR elements in their own rendertargets

#preflight 6266e5285037f70ba0f3939b
#jira UE-148996
#rb eric.renaudhoude Rod.Bogart vincent.gauthier

[CL 19918995 by benjamin rouveyrol in ue5-main branch]
2022-04-26 09:16:41 -04:00
dave jones2
1d36b62d36 UE-148463 - Update cumulative time tracking Engine variables to doubles
As a part of the LWC work, this change primarily focues on updating FGameTime and UWorld to use doubles for accumulated time. Note that time deltas will remain as floats.

Additionally:

* A few time-related BP functions were updated to use doubles where appropriate. as well as the FRenderThreadUpdateContext struct for the Slate renderer.
* Some compilation errors were also fixed due to the change.
* Minor changes of float literals to drop the 'f' suffix.

#rb andrew.davidson
#jira UE-148463
#preflight 62603748e30cb43e8cbf2aa7

[CL 19866207 by dave jones2 in ue5-main branch]
2022-04-22 11:57:28 -04:00
patrick boutot
ceca84d082 Slate: Add test to find FShapedGlyphSequence that are not GCed correctly. It can be activated with the cvar Slate.CheckUObjectShapedGlyphSequence
#rb vincent.gauthier
#preflight 6256f5b077269238e1699e4d

#ROBOMERGE-AUTHOR: patrick.boutot
#ROBOMERGE-SOURCE: CL 19742190 via CL 19742664 via CL 19742959
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v938-19570697)

[CL 19744846 by patrick boutot in ue5-main branch]
2022-04-13 15:58:06 -04:00
patrick boutot
9dd7a01831 Slate: Use reference when iterating on SWidget children.
#rb daren.cheng
#preflight 62444810dc6183e3f5f0836b

#ROBOMERGE-AUTHOR: patrick.boutot
#ROBOMERGE-SOURCE: CL 19557164 via CL 19557298 via CL 19557360
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v937-19513599)

[CL 19561867 by patrick boutot in ue5-main branch]
2022-03-30 14:51:54 -04:00
bob tellez
25dbcbc057 Merging CL#19518642
Replace uses of FVector2f with FVector2D in fix for a bug where a volatile widget redraws at an offset within its retainer box, to fix a compile error in contexts where FVector2f contains doubles.

#jira UE-147231
#rb patrick.boutot
#preflight 623e1cab5c289ac26e2ecaa6

#ROBOMERGE-AUTHOR: Nicholas.Howe
#ROBOMERGE-SOURCE: CL 19518799 via CL 19518805 via CL 19518811
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v937-19513599)

[CL 19519510 by bob tellez in ue5-main branch]
2022-03-25 18:29:28 -04:00
nicholas howe
a94fbd1aff Fix a bug where a volatile widget redraws at an offset within its retainer box, by caching the view offset it was painted with on the slow path and reusing it on the fast path.
#jira UE-147231
#rb patrick.boutot
#preflight 623def94361866e20fdfc878

#ROBOMERGE-AUTHOR: nicholas.howe
#ROBOMERGE-SOURCE: CL 19516539 via CL 19517660 via CL 19517679 via CL 19517697
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v937-19513599)

[CL 19519486 by nicholas howe in ue5-main branch]
2022-03-25 18:28:47 -04:00
Zak Middleton
878b4416b8 #ue5 - TransformCalculus converted to support templated types, and converted existing types to use templates.
Currently the old types (eg FTransform2D) are typedef'd to use the float version for backwards compat. After Slate converts its internal usage, this can be revisited and swapped to double by default for consistency with engine types; this will require Slate to start using its own defined type for all slate code for clarity.

#jira UE-138848
#rb Patrick.Boutot, Andrew.Davidson
#fyi Patrick.Boutot
#preflight 6238b3c1c73745c6008c37d3

[CL 19457342 by Zak Middleton in ue5-main branch]
2022-03-21 16:08:17 -04:00
Luke Thatcher
ee64a28f30 Copying //UE5/Dev-ParallelRendering to //UE5/Main
This change is the copy-up of work from //UE5/Dev-ParallelRendering to unify the various RHI texture types
 - The separate RHI texture types (FRHITexture2D, FRHITexture2DArray, FRHITexture3D, FRHITextureCube, FRHITextureCubeArray) have been replaced with a single type: FRHITexture.
 - Includes the required refactoring / fixes for the various platform RHIs.

The old texture types are still supported via typedefs, but will soon be marked deprecated. Future rendering code should make use of the FRHITexture type instead.

#jira UE-139559
#rb Mihnea.Balta
#preflight 622f3af819287beb2c3047f6
#robomerge[FN_ENGINEMERGE] DEV-NC

[CL 19371962 by Luke Thatcher in ue5-main branch]
2022-03-14 09:14:58 -04:00
chris gagnon
cb6fa7eca5 Made it so that yo can't interacte with the main frame until you choose a project.
The window is only closable if a project is open.

The goal here is to avoid situations where a user start modifying the empty level while not in a project.

#rb Matt.Kuhlenschmidt
#preflight https://horde.devtools.epicgames.com/job/622abbcfdf3960e506b8df9#b

#ROBOMERGE-AUTHOR: chris.gagnon
#ROBOMERGE-SOURCE: CL 19355372 via CL 19357276 via CL 19360244 via CL 19362489 via CL 19362585
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v926-19321884)

[CL 19365028 by chris gagnon in ue5-main branch]
2022-03-11 19:37:06 -05:00
marc audy
615a78fbad Get 16 bytes back on FSlateBrush
[FYI] Rob.Millar
#jira
#rnx

#ROBOMERGE-AUTHOR: marc.audy
#ROBOMERGE-SOURCE: CL 19281834 via CL 19295115 via CL 19299935 via CL 19300009
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v926-19321884)

[CL 19346727 by marc audy in ue5-main branch]
2022-03-10 20:44:12 -05:00
patrick boutot
7dc630d6a5 Slate: Clear the DrawElementList when the render has finished with the elements.
#prefligh 6222030ba00412627d3c733e

#ROBOMERGE-AUTHOR: patrick.boutot
#ROBOMERGE-SOURCE: CL 19265294 via CL 19271397 via CL 19278230 via CL 19293630
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v926-19321884)

[CL 19344972 by patrick boutot in ue5-main branch]
2022-03-10 19:35:40 -05:00
Dominik Peacock
d017c2c53a Move SCustomDialog from UnrealEd to ToolWidgets
Unshelved from pending changelist '19221005':

#jira none
#rb Sebastian.Nordgren
#preflight 622105f6a00412627d0743ed

[CL 19311394 by Dominik Peacock in ue5-main branch]
2022-03-08 16:29:24 -05:00
daren cheng
99592a0721 Widget Tool Palette Prototype.
Add Marquee & create widget tools.
Add framework for widget-based tools.

#preflight 62202c37123d7a7f69141278
#jira UETOOL-4564 UETOOL-4565
#rb Vincent.Gauthier

[CL 19248542 by daren cheng in ue5-main branch]
2022-03-03 14:01:42 -05:00
patrick boutot
00564c6a13 Backout - CL19222749
Slate: Some conversion for 2D to 2f in the Slate Renderer.
#rnx

#ROBOMERGE-OWNER: patrick.boutot
#ROBOMERGE-AUTHOR: patrick.boutot
#ROBOMERGE-SOURCE: CL 19223575 via CL 19223653 via CL 19226084
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19230145 by patrick boutot in ue5-main branch]
2022-03-02 16:48:14 -05:00
patrick boutot
4416b87c76 Slate: Some conversion for 2D to 2f in the Slate Renderer.
#jira UE-137340
#rb sebastian.nordgren
#prelfight 621f7023257fd6e0996086a8

#ROBOMERGE-OWNER: patrick.boutot
#ROBOMERGE-AUTHOR: patrick.boutot
#ROBOMERGE-SOURCE: CL 19221296 via CL 19222749 via CL 19222780 via CL 19225284
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19229324 by patrick boutot in ue5-main branch]
2022-03-02 16:14:31 -05:00
jack cai
54d9ef1ab9 Slate: Added more customization option to the search box, which allows for setting the alignment of search result buttons and the glass image separately
#jira none
#rb Vincent.Gauthier
#preflight skip

[CL 19156456 by jack cai in ue5-main branch]
2022-02-25 16:13:53 -05: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
vincent gauthier
e3e2521af9 Fix to flickering on ComboBox menu when the combobox size changes.
#jira UE-117054, UE-124618, UE-119499
#rb daren.cheng
#preflight 620e9736c91bcd0017a72157

#ROBOMERGE-AUTHOR: vincent.gauthier
#ROBOMERGE-SOURCE: CL 19082150 in //UE5/Release-5.0/... via CL 19097051
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19140709 by vincent gauthier in ue5-main branch]
2022-02-24 23:26:51 -05:00
vincent gauthier
80a9849b3c [Backout] - CL18952424
This is causing an ensure to hit in Slate applications.

[FYI] Patrick.Boutot, Matt.Kuhlenschmidt
Original CL Desc
-----------------------------------------------------------------
Slate: Clear the uncached draw elements once they are batches and clear 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.
#rb matt.kuhlenschmidt
#preflight 62066e4554003c49ad37c3e6

#ROBOMERGE-AUTHOR: vincent.gauthier
#ROBOMERGE-SOURCE: CL 18997554 via CL 18997606 via CL 18998070 via CL 18998217 via CL 18998286 via CL 19002213 via CL 19004425
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v917-18934589)

[CL 19004631 by vincent gauthier in ue5-main branch]
2022-02-15 17:06:47 -05:00
patrick boutot
bd0c001889 Slate: Clear the uncached draw elements once they are batches and clear 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.
#rb matt.kuhlenschmidt
#preflight 62066e4554003c49ad37c3e6

#ROBOMERGE-AUTHOR: patrick.boutot
#ROBOMERGE-SOURCE: CL 18952424 via CL 18952442 via CL 18953137 via CL 18953283 via CL 18955233 via CL 18956023
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v917-18934589)

[CL 18958325 by patrick boutot in ue5-main branch]
2022-02-11 14:42:51 -05:00