Commit Graph

134 Commits

Author SHA1 Message Date
Cody Haskell
a590c13b02 #UMG
- Adding a Play Sound function to User Widgets

#codereview Nick.Darnell

[CL 2327594 by Cody Haskell in Main branch]
2014-10-13 15:43:13 -04:00
Fred Kimberley
27c0402283 Integrating changes from the Fortnite branch up to CL 2318231.
Merging using UE4-Fortnite-To-UE4

[CL 2321212 by Fred Kimberley in Main branch]
2014-10-07 09:53:56 -04:00
Nick Darnell
2e11c8b655 Slate - The Menu Anchor now allows content to appear on the left. Customized the enum display names to be less wordy for UMG.
[CL 2319410 by Nick Darnell in Main branch]
2014-10-04 09:35:30 -04:00
Gareth Martin
e5aa3468bb Adding support for lambdas to slate events, on request of Nick Atamas
[CL 2317410 by Gareth Martin in Main branch]
2014-10-02 11:25:04 -04:00
Michael Trepka
eadc7b809a Fixed Clang compile errors
#codereview Gareth.Martin

[CL 2317357 by Michael Trepka in Main branch]
2014-10-02 10:54:05 -04:00
Gareth Martin
1d84d219d2 Lambda support in delegates and slate attributes
Not supported in multicast delegates for many reasons
Not supported in slate events (may reconsider in future)

Also some cleanup:
Removed comparisons between uobject delegates and sharedptr delegates, as it's impossible for them to match
Removed "const" static delegates, as they didn't really exist
Fixed some comments

[CL 2317232 by Gareth Martin in Main branch]
2014-10-02 10:51:29 -04:00
Matthew Griffin
effd365ac0 Added geometry and current time to ISlateViewport Tick function
This will be needed by the web browser so that its viewport can pass on the size of the viewport before it tries to render it.

[CL 2315659 by Matthew Griffin in Main branch]
2014-10-01 05:07:38 -04:00
Matthew Griffin
8d9091a282 Adding original key code to keyboard events and exposed AreCapsLocked from input events
This will be needed for the web browser module so that keys like delete can processed as their character code comes through as 0.
It also needs to know if caps lock is down when you pass through keyboard and mouse events.

[CL 2315655 by Matthew Griffin in Main branch]
2014-10-01 04:57:32 -04:00
Michael Noland
c49f495322 Slate: Coding-standards fixes (TypeName [*|&] VariableName -> TypeName[*|&] VariableName)
[CL 2315532 by Michael Noland in Main branch]
2014-10-01 01:26:26 -04:00
Bob Tellez
fa1a7542ca Merging Dev->Main using CL#2312419 UE4-Fortnite-To-UE4
[CL 2313759 by Bob Tellez in Main branch]
2014-09-29 21:43:13 -04:00
Wes Hunt
916c7be6d7 Made FGeometry::Size const like all the other members. This was an oversight when I made the rest const.
[CL 2313280 by Wes Hunt in Main branch]
2014-09-29 15:31:38 -04:00
Jaroslaw Palczynski
65ba5d456f TArray documentation and a coupld of methods deprecation.
Changes mostly in Array.h. The changes in other files are only renames for deprecated functions.

[CL 2312616 by Jaroslaw Palczynski in Main branch]
2014-09-29 04:23:44 -04:00
Wes Hunt
a78cef4ea0 Converted SWidget::RenderTransform into a TOptional for performance reasons.
* Allows code to skip the expensive stuff when no render transform is used. Specifically, skips render transform related concatenate calls in FGeometry ctor.
* UMG now sets a NULL RenderTransform when it detects the transform is identity.
TTP#346674: Slate: Editor performance has regressed in debug and release.
TTP#346490: MAIN: Performance drop when gathering resources
#codereview:nick.atamas,nick.darnell

[CL 2307703 by Wes Hunt in Main branch]
2014-09-23 19:06:06 -04:00
Matthew Griffin
783bd7cf82 Adding an updatable texture to easily allow writing to textures every frame.
Added an updatable texture interface, which will be implemented by the main texture types of each slate renderer.
Ensured that it is safe to update/resize the texture from the game or render thread in the case of the RHI renderer.
D3D could be improved if we could write the whole texture at once but the only working method I could find exposes memory buffer with 16 byte alignment for each row.

Fixed non-unity build failure

#codereview Matt.Kuhlenschmidt, John.Pollard

[CL 2306749 by Matthew Griffin in Main branch]
2014-09-23 08:23:45 -04:00
Richard TalbotWatkin
fc796d2ff4 Fixed typo in SearchForWidgetRecursively_Reverse, so that Shift+Tab to focus to the previous widget works correctly.
#ttp 345543 - NUX:Details: NUX: Shift+Tab is behaving inconsistently with Tab -- it skips over value fields!
#branch UE4
#proj Runtime.SlateCore
#reviewedby Matt.Kuhlenschmidt

[CL 2305626 by Richard TalbotWatkin in Main branch]
2014-09-22 11:18:57 -04:00
Jamie Dale
acda749986 Fixed a crash caused by changing an FLinearColor property to an FSlateColor
Added a SerializeFromMismatchedTag to FSlateColor that can convert an FColor or FLinearColor property to an FSlateColor.

Had to update the logic for calling SerializeFromMismatchedTag so that it would also call it when the StructName in the Tag of a StructProperty had changed.

ReviewedBy Andrew.Rodham

[CL 2305436 by Jamie Dale in Main branch]
2014-09-22 09:45:42 -04:00
Ben Marsh
c1e81241c7 Fix for warning about implementation of deprecated method in FSlateApplication.
[CL 2303934 by Ben Marsh in Main branch]
2014-09-19 08:38:30 -04:00
Frank Fella
651cb439db SlateApplication - Add back an API which was removed when multitouch capture was added, and mark it as deprecated.
[CL 2303443 by Frank Fella in Main branch]
2014-09-18 21:10:25 -04:00
Dan Hertzka
1dafd53c81 - Added IVirtualKeyboardEntry
- Virtual keyboard entry automatically supported for editable text
- Spinbox defaults to numeric keyboard and filters entry properly
- SVirtualKeyboard should function as before for any pre-existing use cases

[CL 2303366 by Dan Hertzka in Main branch]
2014-09-18 19:55:06 -04:00
Dan Hertzka
7cee267e06 - Slider bar now draws a thin box instead of a line to make it show up on mobile
- FSliderStyle includes a brush for the enabled & disabled bar

[CL 2303155 by Dan Hertzka in Main branch]
2014-09-18 17:19:29 -04:00
Frank Fella
15707af583 SlateApplication - Add support for multitouch mouse capture.
#codereview nick.atamas

[CL 2303087 by Frank Fella in Main branch]
2014-09-18 16:59:22 -04:00
Wes Hunt
959a806189 Support for a ScissorRectBox that ensures child widgets are clipped even under render transforms by using hardware scissor rect. #BUN
* This is a hack for the UMG designer to ensure any render transforms in designed widgets do not leak outside the designer. Implemented in a low-level hacky way so we don't have to change any public APIs because clipping control can and will change in better ways going forward.
* SlateViewer now uses it for all it's views as a test, and the UMG designer uses it.
* ElementBatcher now uses a new hash function that incorporates the ScissorRect, and slightly improves the efficiency, definitely improving the accuracy.

#TTP346004: UMG: Scaling a widget will result in it scaling outside of the graph
#codereview:nick.darnell,matt.kuhlenschmidt

[CL 2303045 by Wes Hunt in Main branch]
2014-09-18 16:45:23 -04:00
Nick Atamas
a634c28c90 Slate: TabManager now adds a tutorial tag if the content being spawned is not already tagged for tutorials.
// NOTE: relying on this is bad because it couples tutorials to the internals of tab management!
// We should find another way.

#codereview Thomas.Sarkanen,Bruce.Nesbit,James.Golding

[CL 2301793 by Nick Atamas in Main branch]
2014-09-17 18:27:55 -04:00
Andrew Rodham
4b97479564 Added ability to specify a font hinting algorithm to use when rendering fonts with slate
Available algorithms are:
    Default: Prefer to use hinting embedded into the font
    Auto: Use freetype's automatic hinting algorithm
    AutoLight: Use a lighter automatic hinting algorithm
    Monochrome: Use a hinting algorithm optimised for monochrome displays
    None: Disable hinting altogether

[CL 2299285 by Andrew Rodham in Main branch]
2014-09-16 05:46:02 -04:00
Nick Darnell
cf057b22e2 UMG - Upgrading several more widgets to use the new mechanism for styling. Making a few things advanced/not.
[CL 2298363 by Nick Darnell in Main branch]
2014-09-15 13:17:20 -04:00