Commit Graph

819 Commits

Author SHA1 Message Date
dan hertzka
ed3ede3e5c FReply now stores the target widgets for various requests as WeakPtrs.
- Resolves issues where the FReply living on ULocalPlayer could cause SObjectWidgets and their associated UUserWidgets to have a delayed destruction process.
- Also just generally stands to reason that if the FReply reference is the only thing keeping a widget alive, there's no chance that SlateApplication will actually be able to do anything meaningful with that widget anyway (it can't be focused, captured, dragged, etc.)
- Resolved a lurking potential crash in FSlateApplication that was made more possible by this change

[at]Nick.Darnell


#ROBOMERGE-SOURCE: CL 10379330 via CL 10380129 via CL 10380157
#ROBOMERGE-BOT: (v594-10333955)

[CL 10380670 by dan hertzka in Main branch]
2019-11-22 16:52:52 -05:00
dan hertzka
4e1eeaa557 - Fixed the signature of FPointerEvent::GetCursorDelta() to return a const ref to the member instead of copy
- Added FSlateUser::IsWidgetInFocusPath() and added some comments explaining the three different functions there for checking focused-ness of a widget



#ROBOMERGE-SOURCE: CL 10282945 via CL 10282946 via CL 10282947
#ROBOMERGE-BOT: (v591-10236483)

[CL 10282948 by dan hertzka in Main branch]
2019-11-16 20:32:13 -05:00
stephan jiang
1ab9e8f990 Exposed CanLoadCodepoint on FSlateFontCache and HasValidGlyph on FShapedGlyphEntry
These can be used to validate whether a font supports certain characters and glyphs.

[FYI] Jamie.Dale
#rb Jamie.Dale


#ROBOMERGE-SOURCE: CL 10060107 via CL 10060109 via CL 10060112 via CL 10060113
#ROBOMERGE-BOT: (v566-10053404)

[CL 10060114 by stephan jiang in Main branch]
2019-11-06 14:58:09 -05:00
john white
de14b11e6a Fix for stale safe zone updates
#Jira UE-75661
#rb jeff.newquist

#ROBOMERGE-SOURCE: CL 9907013 in //UE4/Release-4.24/...
#ROBOMERGE-BOT: RELEASE (Release-4.24 -> Main) (v558-9892490)

[CL 9907099 by john white in Main branch]
2019-10-31 13:26:18 -04:00
rex hill
be4ccd0c28 Improved display scaling support during window creation and resize.
#jira UE-82383
#rb chris.gagnon

#ROBOMERGE-SOURCE: CL 9873043 in //UE4/Release-4.24/...
#ROBOMERGE-BOT: RELEASE (Release-4.24 -> Main) (v548-9842178)

[CL 9873096 by rex hill in Main branch]
2019-10-28 16:11:18 -04:00
jamie dale
3b6afbd518 Bound clipping rect to the outline control bounds when rendering outlined fonts
The unbounded rect caused a serious performance regression in FreeType 2.10 when compared to FreeType 2.6 (which did this clamping internally).

#jira FORT-224368
#rb Matt.Kuhlenschmidt
#rnx

#ROBOMERGE-SOURCE: CL 9841489 in //UE4/Release-4.24/...
#ROBOMERGE-BOT: RELEASE (Release-4.24 -> Main) (v546-9757112)

[CL 9841499 by jamie dale in Main branch]
2019-10-25 13:40:31 -04:00
brandon schaefer
9508ec35cc Fix compiling editor with RTTI enabled for Linux/Mac
#jira UE-80019
#rb none
[FYI] Ben.Marsh

#ROBOMERGE-SOURCE: CL 9735499 in //UE4/Release-4.24/...
#ROBOMERGE-BOT: RELEASE (Release-4.24 -> Main) (v539-9700858)

[CL 9735507 by brandon schaefer in Main branch]
2019-10-21 14:39:01 -04:00
emil persson
d4be394272 Fix alt-tab on DX12
#ROBOMERGE-SOURCE: CL 9708016 via CL 9708033 via CL 9708038 via CL 9708047
#ROBOMERGE-BOT: (v539-9700858)

[CL 9708053 by emil persson in Main branch]
2019-10-18 19:40:55 -04:00
Louise Rasmussen
f18d8a7cad Merge CL #9455766 from Dev-Editor- Fixes tab hover regression
- also fixes mode toolbar palette tabs to match dock tab colors

#rb none
#jira none

[CL 9666952 by Louise Rasmussen in 4.24 branch]
2019-10-17 18:54:40 -04:00
Louise Rasmussen
d5d30b8bfa Merge CL#9424546 fix viewport transform control spacing regression
#jira UE-81387
#rb none

[CL 9665724 by Louise Rasmussen in 4.24 branch]
2019-10-17 18:38:15 -04:00
nick darnell
4e14394934 Slate - When doing WidgetProxy fast path update, we now return true correctly if any of the updated proxies required a repaint. Also removed some stats and variables that were not being used. This fixes the issue with retainer widgets using invalidation method of redrawing to correctly repaint when widgets invalidate layout and paint.
Matt.Kuhlenschmidt


#ROBOMERGE-SOURCE: CL 9421835 via CL 9421841 via CL 9421844 via CL 9421851 via CL 9422758
#ROBOMERGE-BOT: (v480-9420520)

[CL 9423104 by nick darnell in Main branch]
2019-10-04 16:50:49 -04:00
Ben Marsh
b6039a9873 Merging //UE4/Dev-Main to Dev-Build (//UE4/Dev-Build)
#rb none
#rnx

[CL 9419420 by Ben Marsh in Dev-Build branch]
2019-10-04 11:20:44 -04:00
Stefan Boberg
1f813eb516 Copying //UE4/Dev-Core to Main (//UE4/Main)
#rb many

[CL 9405827 by Stefan Boberg in Main branch]
2019-10-03 16:26:48 -04:00
nick darnell
68d739685f Slate - Creating an alternative play of Slate's CurveSequence that manages the lifetime of the animation through a ticker rather than a specific widget.
#ROBOMERGE-SOURCE: CL 9388509 via CL 9388536 via CL 9388543 via CL 9388574 via CL 9388597
#ROBOMERGE-BOT: (v456-9359915)

[CL 9391943 by nick darnell in Main branch]
2019-10-03 11:03:16 -04:00
ben marsh
aafa52ec80 Copying //UE4/Dev-Editor to Dev-Main (//UE4/Dev-Main) for 4.24
#rb none

#ROBOMERGE-OWNER: ben.marsh
#ROBOMERGE-AUTHOR: chris.gagnon
#ROBOMERGE-SOURCE: CL 9325047 in //UE4/Main/...
#ROBOMERGE-BOT: BUILD (Main -> Dev-Build) (v456-9359915)

[CL 9374681 by ben marsh in Dev-Build branch]
2019-10-02 13:27:29 -04:00
lina halper
72ae789a6c Copying //UE4/Dev-Anim to Dev-Main (//UE4/Dev-Main)
[FYI] Laurent.Delayn, Marc.Audy
#rb: none

#ROBOMERGE-OWNER: ben.marsh
#ROBOMERGE-AUTHOR: lina.halper
#ROBOMERGE-SOURCE: CL 9321182 in //UE4/Main/...
#ROBOMERGE-BOT: BUILD (Main -> Dev-Build) (v456-9359915)

[CL 9373382 by lina halper in Dev-Build branch]
2019-10-02 12:29:12 -04:00
ben marsh
b0bc58eb2a Deprecating ARRAY_COUNT and changing it to UE_ARRAY_COUNT.
Replicated from CL# 7924370.

#rb none

#ROBOMERGE-OWNER: ben.marsh
#ROBOMERGE-AUTHOR: steve.robb
#ROBOMERGE-SOURCE: CL 9279060 via CL 9279063 via CL 9279836
#ROBOMERGE-BOT: BUILD (Main -> Dev-Build) (v456-9359915)

[CL 9366698 by ben marsh in Dev-Build branch]
2019-10-02 10:52:53 -04:00
Chris Gagnon
8ab0638182 Copying //UE4/Dev-Editor to Dev-Main (//UE4/Dev-Main) for 4.24
#rb none

[CL 9325047 by Chris Gagnon in Main branch]
2019-10-01 20:41:42 -04:00
Lina Halper
3fd7f76532 Copying //UE4/Dev-Anim to Dev-Main (//UE4/Dev-Main)
#fyi: Laurent.Delayn, Marc.Audy
#rb: none

[CL 9321182 by Lina Halper in Main branch]
2019-10-01 16:59:31 -04:00
Nick Shin
3526d16d5e merge/copyup to parent stream - HTML5 platform extension
#jira UEMOB-482  HTML5 platform as a plug in
#rb josh.adams
#rn

[CL 9306021 by Nick Shin in Dev-Build branch]
2019-09-30 15:13:56 -04:00
steve robb
14cab21e0c Deprecating ARRAY_COUNT and changing it to UE_ARRAY_COUNT.
Replicated from CL# 7924370.

#rb none


#ROBOMERGE-OWNER: steve.robb
#ROBOMERGE-AUTHOR: steve.robb
#ROBOMERGE-SOURCE: CL 9279060 via CL 9279063
#ROBOMERGE-BOT: (v443-9013191)

[CL 9279836 by steve robb in Main branch]
2019-09-28 08:19:35 -04:00
Michael Lentine
9db7de9fdf Copying //UE4/Dev-Physics to Dev-Main (//UE4/Dev-Main) [at] 9098278
#rb none
#rnx

[CL 9098401 by Michael Lentine in Main branch]
2019-09-25 13:55:37 -04:00
jamie dale
b7b613b7d0 Enable an Emoji font for the UE4 editor
#jira
#rb none


#ROBOMERGE-SOURCE: CL 8848931 via CL 8867187
#ROBOMERGE-BOT: (v425-8812723)

[CL 8883606 by jamie dale in Main branch]
2019-09-19 08:44:35 -04:00
jamie dale
a287480c36 Allow FString instances containing code units outside of the basic multilingual plane to be losslessly processed regardless of whether TCHAR is 2 or 4 bytes.
Most UE4 platforms use a 2-byte TCHAR, however some still use a 4-byte TCHAR. The platforms that use a 4-byte TCHAR expect their string data to be UTF-32, however there are parts of UE4 that serialize FString data as a series of UCS2CHAR, simply narrowing or widening each TCHAR in turn. This can result in invalid or corrupted UTF-32 strings (either UTF-32 strings containing UTF-16 surrogates, or UTF-32 code points that have been truncated to 2-bytes), which leads to either odd behavior or crashes.

This change updates the parts of UE4 that process FString data as a series of 2-byte values to do so on the correct UTF-16 interpretation of the data, converting to/from UTF-32 as required on platforms that use a 4-byte TCHAR. This conversion is a no-op on platforms that use a 2-byte TCHAR as the string is already assumed to be valid UTF-16 data. It should also be noted that while FString may contain UTF-16 code units on platforms using a 2-byte TCHAR, this change doesn't do anything to make FString represent a Unicode string on those platforms (ie, a string that understands and works on code points), but is rather just a bag of code units.

Two new variable-width string converters have be added to facilitate the conversion (modelled after the TCHAR<->UTF-8 converters), TUTF16ToUTF32_Convert and TUTF32ToUTF16_Convert. These are used for both TCHAR<->UTF16CHAR conversion when needed, but also for TCHAR<->wchar_t conversion on platforms that use char16_t for TCHAR along with having a 4-byte wchar_t (as defined by the new PLATFORM_WCHAR_IS_4_BYTES option).

These conversion routines are accessed either via the conversion macros (TCHAR_TO_UTF16, UTF16_TO_TCHAR, TCHAR_TO_WCHAR, and WCHAR_TO_TCHAR), or by using a conversion struct (FTCHARToUTF16, FUTF16ToTCHAR, FTCHARToWChar, and FWCharToTCHAR), which is the same pattern as the existing TCHAR<->UTF-8 conversion. Both the macros and the structs are defined as no-ops when the conversion isn't needed, but always exist so that code can be written in a portable way.

Very little code actually needed updating to use UTF-16, as the vast majority makes no assumptions about the size of TCHAR, nor how FString should be serialized. The main places were the FString archive serialization and the JSON reader/writer, along with some minor fixes to the UTF-8 conversion logic for platforms using a 4-byte TCHAR.

Tests have been added to verify that an FString representing a UTF-32 code point can be losslessly converted to/from UTF-8 and UTF-16, and serialized to/from an archive.

#jira
#rb Steve.Robb, Josh.Adams


#ROBOMERGE-SOURCE: CL 8676728 via CL 8687863
#ROBOMERGE-BOT: (v421-8677696)

[CL 8688048 by jamie dale in Main branch]
2019-09-16 05:44:11 -04:00
Marcus Wassmer
6517c68ef5 Copying //UE4/Dev-RenderPlat-Staging@8684824 to Dev-Main (//UE4/Dev-Main)
#rb none

[CL 8684840 by Marcus Wassmer in Main branch]
2019-09-14 09:45:25 -04:00