Commit Graph

244 Commits

Author SHA1 Message Date
andrew rodham
65be212f5a Slate: Added the ability to draw dotted and dashed line segments
In order to support this the following changes have been made:
 - A new API for FSlateDrawElement::MakeDashedLines.
 - Anti-aliased lines now upload texture coordinates dictating each vertex's position along the line, and the dash length in addition to the existing antialias gradient. This shouldn't add any additional bandwidth overhead since these texture coordinates were always being uploaded before anyway, just with a value of (1,1)
 - Additional shader instructions for anti-aliased lines are now also run to compute the opacity for each pixel based on the dash length and position. These are always run, even for non-dashed, antialiased lines. Profiling showed negligible performance difference for a test with heavy line-rendering.


#rb Daren.Cheng, Patrick.Boutot

[CL 34526531 by andrew rodham in ue5-main branch]
2024-06-20 09:26:33 -04:00
brandon schaefer
e64748d3de Disable the top modules that are not currently set to enable AutoRTFM
#rb neil.henning

[CL 34015003 by brandon schaefer in ue5-main branch]
2024-05-30 17:59:48 -04:00
robert millar
9b71c2be12 Add optional delegate to handle attempting to move to next wizard page and redirect to another page (e.g. error) on failure.
#rb will.brown

[CL 33844877 by robert millar in ue5-main branch]
2024-05-22 17:12:21 -04:00
patrick boutot
a2b5613488 Slate: Deprecate SListView::ItemHeight and STreeViewItemHeight. ItemHeight and ItemWidth are only used when the panel is is as a tile or both value are assigned. With TreeView and ListView, you can't assigned both. The function are protected, a subclass of those could but it's up to them to expose the ItemHeight and ItemWidth. This behavior changed was introduced with CL 7634094.
#jira UE-210415
#rb editor-ui-systems

[CL 33370360 by patrick boutot in ue5-main branch]
2024-05-01 08:05:39 -04:00
steve robb
20e93ad90b Fixed potentially uninitialized variables.
#jira UE-87511

[CL 33146357 by steve robb in ue5-main branch]
2024-04-22 14:54:14 -04:00
mikko mononen
3c6c49f854 Slate: Added support for FillContentSize for scrollbox
- Also removed  shrink size specialization from ArrangeChildrenInStack(), which did not infact work with SBoxPanel
- Fixed available space consumption and distribution for FillContentSize layout
- Added FillContentSize() example in SLayoutExample

#rb Patrick.Boutot

[CL 32820197 by mikko mononen in ue5-main branch]
2024-04-09 02:39:58 -04:00
karen jirak
4364fba6ad Color Picker Current Color Theme textbox shows double text
This was happening because there was a hack in SColorPicker.cpp to show the placeholder text for the SThemeColorBlocksBar, which was broken. It has since been fixed, so I removed the hack to fix the placeholder text. At this point the placeholder text was misaligned, so I fixed the padding for it in SColorThemes.cpp. Befpre and after pic is attached to the Jira.


#jira UE-203428
#rb JeanMichel.Dignard

[CL 31354947 by karen jirak in ue5-main branch]
2024-02-09 16:07:48 -05:00
max chen
3148c9509b Property Editor: Added ctrl/shift multiplier increments to spin box. Default behavior is: Shift multiplies the value by 10, Ctrl multiplies the value by 0.1.
These are the changes in existing behavior:
- ShiftMouseMovePixelPerDelta has been deprecated in favor of these new mechanisms of ShiftMultiplier and CtrlMultiplier.
- SupportDynamicSliderMaxValue and SupportDynamicSliderMinValue now activate with Alt instead of Ctrl so that Ctrl can be used for CtrlMultiplier.
- OnMouseWheel had hardcoded ctrl/shift step increments and these now follow the ShiftMultiplier and CtrlMultiplier attributes.

There are two changes required so that snapping to the Delta attribute does not occur when using ShiftMultiplier and CtrlMultiplier:
- OnMouseMove commits the value by CommittedViaSpinMultiplier
- OnMouseButtonUp detects that the mouse event either has Shift or Ctrl

#jira UE-195384
#rb Patrick.Boutot, Vincent.Gauthier

[CL 30962670 by max chen in ue5-main branch]
2024-01-28 23:19:46 -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
robb surridge
b8fd678d2d Apply padding around the button row in confirmation dialogs in places where it had been removed by a previous fix to SWindow.
#jira UE-195462
#rb aditya.ravichandran

[CL 28224816 by robb surridge in ue5-main branch]
2023-09-26 09:36:52 -04:00
christian savoie
8cc703a9a3 Add Invariant versions of Justification left/right that ignore the flow direction of the current culture.
[REVIEW] [at]patrick.boutot, [at]vincent.gauthier
#tests Used in widget that wants to use fixed left and right justication
#pf 649de0156b55986b7790f074

[CL 26332681 by christian savoie in ue5-main branch]
2023-06-29 20:46:14 -04:00
henrik karlsson
5db685f97d [Engine]
* Moved dllexport from type to methods/staticvar in all Engine runtime code. This improves compile times, memory and performance in dll builds

[CL 26082269 by henrik karlsson in ue5-main branch]
2023-06-17 18:13:06 -04:00
Patrick Boutot
0c164affd0 Slate: Add ObservableArray pattern to ListView, TitleView and TreeView.The TreeView implementation only supports the new pattern for the root items. It is where we would have the most gain in performance when it is changed.
The observable array automatically notify the view when an item is added/removed from the array.
#jira UE-132673
#review https://p4-swarm.epicgames.net/reviews/23853491
#preflight 64087eaaaa00423335a0891f

[CL 24594683 by Patrick Boutot in ue5-main branch]
2023-03-10 13:11:54 -05:00
jamie dale
c68b5e46e7 Set the color to full brightness/opacity when picking from the color wheel/spectrum if it was previously almost black or transparent
#jira UE-175820
#rb Rex.Hill, Lauren.Barnes

[CL 24058061 by jamie dale in ue5-main branch]
2023-02-07 15:41:04 -05:00
bryan sefcik
7596c6e1c7 Updated unity build file sizes.
OnlineServicesCommon:
Before: 393216 | 103.984375s | 104.02s  | 1
After: 136608 | 107.375s | 54.30 | 2

MetasoundFrontend:
Before: 393216 | 126.703125 | 126.86 | 1
After: 294912 | 138.515625 | 80.14 | 3

AppFramework:
Before: 393216 | 86.28125 | 86.4 | 1
Before: 244912 | 110.296875 | 66.3 | 2

#jira
#preflight 63d1ca24450d5cdd0b150f60

[CL 23864797 by bryan sefcik in ue5-main branch]
2023-01-26 02:26:33 -05:00
Patrick Boutot
30eb167a52 Resize the hex color input in SColorPicker
#jira UE-173454
#rb lauren.barnes
#preflight 63c0b12b1a06fc61059f2fa3

[CL 23737347 by Patrick Boutot in ue5-main branch]
2023-01-17 09:37:02 -05:00
Patrick Boutot
6a2863234b Deprecate arrays from SColorPicker. Memstomp was fixed with 23672712. This CL removed the posibility of creating a new memstomp
#jira UE-173303
#rb daren.cheng
#preflight 63c6034bd040694ab82f3970

[CL 23736262 by Patrick Boutot in ue5-main branch]
2023-01-17 07:24:54 -05:00
Patrick Boutot
6e02de5817 Fix memstomp with color picker. Prepare SColorPicker for API change. Update AssetViewUtilis::PathColors to use FLinearColor instead of shared pointer. The shared pointer was only needed for the SColorPicker.
#jira UE-173303, UE-173454
#review-23672715 23617361,23611673
#rb daren.cheng
#preflight 63c0b12b1a06fc61059f2fa3

[CL 23672712 by Patrick Boutot in ue5-main branch]
2023-01-12 20:33:08 -05:00
Andrew Rodham
4ff7bab147 Slate: Initial phase of FVector2D deprecation
- Expanded FDeprecateSlateVector2D to provide structs for parameters, return types and member variables that use FVector2f, while still allowing conversion to/from FVector2d with optional per-module deprecation mechanisms.
  - Many of the high-traffic SlateCore types like FSlateBrush, FGeometry and FSlateLayoutTransform have been converted to use these deprecation mechanisms.
  - Some legacy FGeometry::ToPaintGeometry and MakeChild overloads have been explicitly deprecated since they cause ambiguous overloads with FSlateLayoutTransform if it were to support implicit construction.
  - Deprecated ULocalPlayer::GetPixelBoundingBox and GetPixelPoint to prefer FVector2f for OptionalAllotedSize parameter since this parameter is expected to come from FGeometry
  - Exposed FVector2f members to blueprints

#jira none
#rb Andy.Davidson, Dave.Jones, Vincent.Gauthier, Patrick.Boutot
#preflight 63bc6fd068068a8bd6027c9f

[CL 23631073 by Andrew Rodham in ue5-main branch]
2023-01-10 14:46:43 -05:00
henrik karlsson
ce587eb612 Added markups for headers that can't be compiled standalone.. this is needed for both Header units and IWYU
#preflight 63789b0c170bc34a93a869e5
#rb none

[CL 23552160 by henrik karlsson in ue5-main branch]
2022-12-21 02:46:50 -05: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
bryan sefcik
07894f4a07 Removed redundant private include paths from build.cs files.
Fixed include paths to be relative to the private or public folders.
Hid or removed includes that reached into other private module folders.
Updated PublicInclude paths when necessary.

#jira
#preflight 631a717cec45fbf3d74d4ba7

[CL 21916033 by bryan sefcik in ue5-main branch]
2022-09-09 00:53:22 -04:00
paul chipchase
9e4f64782a Change terminology
#rb trivial
#jira UE-158646
#rnx
#preflight 62cd299e173a4f34089c95f5

- Replaced use of 'master' with ' employer'

[CL 21053802 by paul chipchase in ue5-main branch]
2022-07-12 04:25:20 -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