Commit Graph

361 Commits

Author SHA1 Message Date
Mikolaj Sieluzycki
c8e775c867 Skip adding/removing Resource object in FSlateDynamicImageBrush to/from root set if object is already there.
#codereview Matt.Kuhlenschmidt

[CL 2539091 by Mikolaj Sieluzycki in Main branch]
2015-05-06 09:29:44 -04:00
Graeme Thornton
a85656b6ea Fix build error about shadowing bCreateTitleBar in SWindow
[CL 2537409 by Graeme Thornton in Main branch]
2015-05-05 10:34:36 -04:00
Graeme Thornton
dd93cc074b Slate windows now take into account required border/tiitle bar sizes when resizing the window. This ensures that the client area stays at the requested size
[CL 2537219 by Graeme Thornton in Main branch]
2015-05-05 08:37:37 -04:00
Keli Hlodversson
a7346a3462 Add method to UpdatableTexture to enable passing in raw texture data from 3rd party APIs
Merged CL 2533543 + 2534462 from LauncherDev to Main using UE4-To-UE4-LauncherDev

[CL 2536315 by Keli Hlodversson in Main branch]
2015-05-04 16:11:53 -04:00
Keli Hlodversson
ebdc68cf0e Viewports can now request not to be scaled by overriding ISlateViewport::AllowScaling.
Merging CL2531963+2534462 from LauncherDev to Main (using UE4-To-UE4-LauncherDev)

[CL 2535821 by Keli Hlodversson in Main branch]
2015-05-04 11:13:51 -04:00
Keli Hlodversson
dd5494696f Add bool FSlateApplicationBase::IsSlateAsleep() to allow querying whether Slate is currently sleeping.
Merging CL2533947 from LauncherDev back to main (using UE4-To-UE4-LauncherDev)

[CL 2534421 by Keli Hlodversson in Main branch]
2015-05-01 17:41:52 -04:00
yaakuro
1311f1ad42 Linux: merging pull requests that fix a bunch of UI bugs.
- UE-14543: PR #1104: Fix for notification over dialog window issue on GNU/Linux (Contributed by yaakuro)
- UE-14542: PR #1103: Allow Layout Border on GNU/Linux (Contributed by yaakuro)
- Fixes UE-14578 (Entire menu closes when child menu loses focus)
- Fixes UEPLAT-192 (Better support for window decorations).
- Contributed by yaakuro, with cosmetic changes.
- SDL libs rebuilt for x86_64 and ARMv6l.

[CL 2532869 by Dmitry Rekman in Main branch]
2015-04-30 19:29:45 -04:00
Nick Atamas
8c35f7faff Slate mouse input now works with Application Scales < 1.0. Previously mouse input was erroneously clipped.
[CL 2528537 by Nick Atamas in Main branch]
2015-04-28 11:06:55 -04:00
Marcus Wassmer
0ba5c5f2e1 Merge Morpheus 120hz and reprojection support.
Also fixes for NGS2A3D

[CL 2521711 by Marcus Wassmer in Main branch]
2015-04-22 16:41:54 -04:00
Michael Trepka
f26a552270 Added an option to create Slate window without a close button and used it for Source Control Login window, replacing a custom title bar it was using that didn't look well on Mac
[CL 2521044 by Michael Trepka in Main branch]
2015-04-22 10:27:12 -04:00
Chris Wood
2c7d83c0cd Fix the inconsistency in the ownership hierarchy of 3D widgets
#change Allow ArrangeChildren() calls inside FWidgetPath::GeneratePathToWidget() to include 3D widgets.

#codereview Nick.Atamas

[CL 2517575 by Chris Wood in Main branch]
2015-04-20 10:30:11 -04:00
Matthew Griffin
6414672801 Added constructor to FSlateTextureData that takes a pointer to texture data
#codereview Matt.Kuhlenschmidt

[CL 2517442 by Matthew Griffin in Main branch]
2015-04-20 08:33:24 -04:00
Saul Abreu
901042c9ac Massive cleanup of text localization code and its uses. REVIEW API CHANGES FOR RELEASE NOTES.
[CL 2514827 by Saul Abreu in Main branch]
2015-04-16 15:39:05 -04:00
Marc Audy
a523efb225 Fix shadowed variables
[CL 2510461 by Marc Audy in Main branch]
2015-04-13 12:42:09 -04:00
Dan Hertzka
fcca7b991d Updated SPropertyEditorAsset to account for AllowedClasses metadata on properties when being created without a valid property editor
[CL 2508764 by Dan Hertzka in Main branch]
2015-04-10 15:22:21 -04:00
Nick Atamas
840f5522c0 Slate : fixed typo.
[CL 2505655 by Nick Atamas in Main branch]
2015-04-08 15:12:36 -04:00
Nick Atamas
678594279f Slate : Hittest grid no longer discards entire event path when a single widget in that path is broken. Instead, return a truncated path from root.
Fixes UE-13401.

[CL 2505635 by Nick Atamas in Main branch]
2015-04-08 15:06:23 -04:00
Mike Fricker
114458bf0f Clang warning fixes: Fixed missing 'override' specifiers
- Also removed some unreferenced functions that adding 'override' revealed

PR #1002 -- Thank you, Omar007!

[CL 2498415 by Mike Fricker in Main branch]
2015-04-01 07:20:55 -04:00
PaulEremeeff
3d878d5a79 PR #996: Fixing PVS-Studio warnings (Contributed by PaulEremeeff)
I have reviewed each change carefully, but it is a large change and I could have missed something! Here is a summary of the types of changes in this CL:
 * Made nullptr checks consistent (the plurality of the changes are of this type)
 * Completed switch statements (IE, switch did not explicitly handle default case, but had unhandled enum entries - this is the second most popular type of fix)
 * Removed unused variables
 * Removed redundant initializations
 * WidgetNavigationCustomization.cpp was fixed by the owner
 * integers converted to floats where result was stored in a float
 * Removed redundent null checks (e.g. before delete statements)
 * Renamed variables to prevent non-obvious shadowing
 * Fixed use of bitwise & when checking for equality to an enum entry (which is often 0)
 * Fixes for some copy paste errors (e.g. FoliageEdMode.cpp)

[CL 2498053 by Dan Oconnor in Main branch]
2015-03-31 20:12:31 -04:00
Maciej Mroz
34fcc85a6d Better fix for: UE-11733 Using a function to set button style causes a crash
[CL 2496754 by Maciej Mroz in Main branch]
2015-03-31 00:05:46 -04:00
Michael Noland
06013fa933 Optimizing various uses of Pop to prevent incremental reallocation for short-lived or frequently used TArray instances
[INTEGRATE] Change 2490222 by Michael.Noland@mnoland-T2784-HDepot on 2015/03/25 00:18:46

[CL 2494763 by Michael Noland in Main branch]
2015-03-27 20:05:10 -04:00
Nick Darnell
c194edd9f7 UMG/Slate - No longer exposing Disabled slate brush on the FButtonStyle. This was adding a lot of confusion. We want to support custom look and feel disabled buttons, but this particular property wasn't actually being used by any of the core slate widgets and so users were becoming confused why it didn't work as expected. Hiding from view until we have time to refactor disabled styling for buttons and more.
[CL 2493778 by Nick Darnell in Main branch]
2015-03-27 10:34:08 -04:00
Max Preussner
adc5266199 Slate: Added missing override keywords
[CL 2492771 by Max Preussner in Main branch]
2015-03-26 18:31:07 -04:00
Chris Gagnon
ac5f2e0fc1 Fix for hit test grid not navigating correctly when the primary monitor was to the right of a secondary monitor.
Resulted in an non zero grid offset which wasn't handled properly in navigations clip rect intersection code.
Fixes Jira UE-8052

[CL 2488678 by Chris Gagnon in Main branch]
2015-03-23 19:33:56 -04:00
Dan Oconnor
06806b2237 PR #946: Fixing PVS-Studio warning (Contributed by PaulEremeeff)
https://github.com/EpicGames/UnrealEngine/pull/946

I have gone through these changes and verified that whatever behavior change they cause could only be an improvement (generally they just prevent possible access to nullptrs, but there are also some style corrections). A separate changelist is being prepared that includes changes that could unintentionally caues behavior change for the worse.

[CL 2486801 by Dan Oconnor in Main branch]
2015-03-20 17:18:31 -04:00