1618 Commits

Author SHA1 Message Date
yohann dossantos
22eac63738 Fix ASan issue detected at exit in with Slate attribute invalidation system (non-local objects using delegates with FMRSWRecursiveAccessDetector enabled).
Issues occured (in dev build only) because a thread_local object from FMRSWRecursiveAccessDetector was used when destructing a delegate at exit time, but the thread_local object was already destructed.
Disabling the MT access detector for now for the problematic objects (the safest solution), but will investigate other solutions for 5.5.
#jira UE-210217, UE-210418
#tests Used with engine test and Lyra project. Ran Lyra in PIE, no regression noticed. Validated using breakpoint that delegates were called as expected.
#rb daren.cheng

[CL 32592225 by yohann dossantos in 5.4 branch]
2024-03-28 16:32:28 -04:00
michael short
43b38b67a5 Removing unused inclusive Slate CSV metrics
#rb carles.fernandez, matt.harris

[CL 32499704 by michael short in 5.4 branch]
2024-03-26 02:35:37 -04:00
devin doucette
1920e4aaaf Deprecated fields on FPropertyTag that are now represented by its TypeName
#rb Steve.Robb
#rnx

[CL 32496405 by devin doucette in 5.4 branch]
2024-03-26 00:36:19 -04:00
jordan cristiano
8a8fa085d7 Added profiler scope around new FSlateElementBatcher::AddCachedElements logic from 31164434.
#rb daren.cheng

[CL 32496397 by jordan cristiano in 5.4 branch]
2024-03-26 00:36:12 -04:00
aditya ravichandran
ab67891f18 Details Panel Overrides UX updates:
Move icons into an editor folder so they don't get cooked
Change the override combo button to match the desired behavior

#jira UE-192063, UE-204831, UE-205036
#rb logan.buchy

[CL 32475269 by aditya ravichandran in 5.4 branch]
2024-03-25 13:29:22 -04:00
aditya ravichandran
473b5fc2d2 Submit missing stylesheet updates with overrides support
#jira UE-204605
#rb logan.buchy

[CL 32475155 by aditya ravichandran in 5.4 branch]
2024-03-25 13:27:46 -04:00
maxime mercier
e136a83298 Merging using //Fortnite/Dev-Valkyrie_to_//Fortnite/Dev-FN-29
Hooked up overrides menu items which was added by [at]KJ.Jirak

#jira UE-204831
#rb aditya.ravichandran, logan.buchy

[CL 32475001 by maxime mercier in 5.4 branch]
2024-03-25 13:25:50 -04:00
batlam987
41aeffc9ee Retainer: fix an issue with clipping that was not working in case Stencil clipping was used on elements inside the the retainer (which when using shear or non axis aligned rotation).
It was for instance preventing the display of the fill of the progress bar, if shear/rotation was applyed on it and it was used in a retainer.
It's not using the change of the PR as it was working only in some case: the clipping zone we use always start from 0,0, so using the size of the Retainer (like in the PR) if it was smaller than the window would lead to the element being clipped out if the retainer was too far from 0,0.
#11455
#jira UE-206460
#tests In PIE, put a progress bar inside a retainer and played with shear and rotation on both the retainer and the progress bar: the blue fill is now always displayed. Engine test retainer test still succeed. Validated curve editor was still working as expected. Tested that animation are still played properly on windows (in case of drag n drop).
#rb daren.cheng

[CL 31521168 by batlam987 in 5.4 branch]
2024-02-15 11:11:08 -05:00
jordan cristiano
d78c98ff46 Fixed FScopeCycleCounterSWidget not working in insights captures.
#rb evgenii.babinets, ionut.matasaru

[CL 31450931 by jordan cristiano in 5.4 branch]
2024-02-13 17:47:18 -05:00
jamie dale
68d9bd5c29 Fix missing virtual destructor on ISlateBrushSource
#rb Derek.Truong
#rnx

[CL 31443322 by jamie dale in 5.4 branch]
2024-02-13 15:23:58 -05:00
sebastian arleryd
c4ae9c4e0c Reduce vertical space consumed by title bar
The intent of this change is twofold. First, it fixes a bug where the min/max/close buttons overlapped the row of tabs in windows with a main menu. Second, it reduces the vertical space consumed by our windows in the area around the title bar, main menu, and tabs.

* Reduced height of SVG images used for the min/max/restore/close window buttons from 34 pixels to 23 pixels. This avoids an overlap of the min/max/close buttons and the row of tabs in windows with a main menu.
* Rebalanced padding around the Unreal icon in windows with or without a main menu. There is now at most 1 pixel more spacing below the logo than above where before it could be 3 to 8 pixels more below than above.
* Reduced padding between tabs and main menu.

Note that these changes are all within #if !PLATFORM_MAC, so the Mac should not be affected.

#jira UE-204349
#rb brooke.hubert

[CL 31377272 by sebastian arleryd in 5.4 branch]
2024-02-12 04:36:36 -05:00
helge mathee
1efc78cb9f Slate: move animated attribute from slatecore to slate
#rb sara.schvartzman
#jira UE-204843
#rnx

[CL 31286588 by helge mathee in 5.4 branch]
2024-02-08 06:00:55 -05:00
daren cheng
254e4c0589 Fix Post Buffer updates not triggering with global invalidation due cached batch buffer use not being considered.
#rb daren.cheng
[FYI] alex.battista, Brian.Sprague

[CL 31164468 by daren cheng in 5.4 branch]
2024-02-04 18:04:19 -05:00
benoit gadreau
00b7fbb275 Constraints: move constraints related styles from core to control rig plugin
#rb aditya.ravichandran
#rnx

[CL 31045512 by benoit gadreau in 5.4 branch]
2024-01-31 09:11:56 -05:00
benoit gadreau
bb087aa4d1 Constraints: enable setting properties when creating a new constraint
#jira UE-181854
#rb Mike.Zyracki

[CL 31003426 by benoit gadreau in 5.4 branch]
2024-01-30 08:14:39 -05:00
benjamin rouveyrol
a7ca93183f Fix for HDR viewports not rendering properly when Slate.EnableGlobalInvalidation=1
When Slate.EnableGlobalInvalidation=1, we go through FSlateElementBatcher::AddCachedElements and do BatchData->AddCachedBatches(CachedElementData.GetCachedBatches());
HDR viewports actually need to choose between BatchDataHDR and BatchData based on whether we want to composite ui with the scene later on
Added a flag on the batchdraw flags to specify which batchdata the viewport should end up into.
Since the flag might change when toggling, we invalidate the window the viewport is associated with whenever we detect a viewport change in FSlateRHIRenderer::ConditionalResizeViewport
Add GetViewportDynamicRange on ISlateViewport to be able to distinguish SDR and HDR viewports: we can end up in a scenario where we have an HDR window because still have an SDR viewport, like the FMovieViewport
The assumption is that we only play SDR movies, the code will  have to be updated to support HDR movies

#jira UE-204214
#rb Patrick.Boutot

[CL 30964805 by benjamin rouveyrol in 5.4 branch]
2024-01-29 06:17:39 -05:00
patrick boutot
09edb53269 Slate: Add test to prevent unwanted modifications while iterating on a the list with the FWidgetAttributeIterator.
#jira UE-202041
#rb yohann.dossantos

[CL 30843897 by patrick boutot in ue5-main branch]
2024-01-24 10:26:07 -05:00
DanteSSS333
e39adc216b PR #11213: [Slate] SBox: Force contents to be center-aligned, not left-aligned, when using Min/MaxAspectRatio
#jira UE-202475
#rb yohann.dossantos

[CL 30815811 by DanteSSS333 in ue5-main branch]
2024-01-23 15:30:07 -05:00
daren cheng
580b31182b Fix brush style not applying on EUW due to SVG leftover data.
#jira UE-190539
#rb yohann.dossantos

[CL 30763719 by daren cheng in ue5-main branch]
2024-01-21 22:48:11 -05:00
steve robb
f029468598 Fixed up a lot of bool-taking container resize functions to take EAllowShrinking instead.
[CL 30729174 by steve robb in ue5-main branch]
2024-01-19 16:41:35 -05:00
steve robb
f70478d4f0 Moved some bool-taking container wrappers over to using EAllowShrinking.
FGraphAStar::PopIndex() isn't passing on its argument to the container - that existing behavior has been retained.

#rb james.hopkin
[FYI] Yoan.StAmant

[CL 30712410 by steve robb in ue5-main branch]
2024-01-19 05:12:44 -05:00
viktor chlumsky
7b6edd78d0 MSDF fast placeholder generation and general performance (original CL 29402944)
#tests: Tested in Editor and PIE, with and without artificial delay in generate tasks

#rnx <Release Notes exclude>
#rb yohann.dossantos

[CL 30682105 by viktor chlumsky in ue5-main branch]
2024-01-18 08:42:00 -05:00
yohann dossantos
74ef7b9ae6 Text Overflow policy: added a new ellipsis mode, LineEllipsis, that avoid a possible issue occuring with multiline text and the Ellipsis mode.
With Ellipsis, all lines that are fully or partially visible will be displayed, the drawback of that being that if the "..." are displayed at the end of a line from which the lower part is clipped, the "..." are not visible.
With LineEllipsis, only lines that are fully visible vertically will be displayed. So if a line would be clipped at its lower part, the whole line will be culled, and the "..." will be displayed at the end of the last fully visible line, preventing the case where the "..." might not be seen.

#jira UE-195323
#tests Added new tests in the FontOverflow functionnal test from EngineTest. Visually checked in UnrealEditor that there were no regressions.
#rb Patrick.Boutot

#virtualized

[CL 30665613 by yohann dossantos in ue5-main branch]
2024-01-17 14:48:42 -05:00
rcowsill
b4c821342d PR #10524: Slate: Fix aliased glyph quad edges
To avoid aliasing on quad edges (for non SDF font only), the glyph quads are now drawn slighty bigger, with a larger UV area (by taking advantage of the padding, if there is any).
The rendered result will look exactly the same most of the time, but as soon as a scale or a non axis aligned rotation will be applyed to the render transform of the text, it will look a lot smoother on the edges.
By default, texts that are scaled up/down may now looks a bit different due to pixel rounding + different size of the quad.
Scrolling texts (without pixel snapping) move more smoothly.

Tweaked functionnal tests used for font to detect smaller local changes that got ignored otherwise, while they were important in the context of font. Maximum local error is now 0.5%.
#jira UE-188444

#tests Ran engine test font functionnal test and updated them. Compared the editor with and without the change. Compared scrolling text (pixel snapping disabled) with and without the change. Tolerance for local change is now
#rb Patrick.Boutot

#virtualized

[CL 30632576 by rcowsill in ue5-main branch]
2024-01-16 09:34:36 -05:00
emacser0
235daaaf9f PR #10894: Fix slate text layout tab character width calculation.
Used the code from the PR as base, and changed it a little bit to optimize it and for readability.
Fix issue with leading tabs, but still need work to have it working properly for tabulation at any position in the text.

#jira UE-195689
#tests In editor, used test data with various amount of tabs at different position of the text. Multiple tabs at beggining of lines now works correctly, however, tabs at random position inside a text still don't aling the text properly (it won't be aligned to the next spacex4 multplier from the beggining of the line, but relatively to the last characters.
#rb Vincent.Gauthier

[CL 30632311 by emacser0 in ue5-main branch]
2024-01-16 09:15:56 -05:00