Commit Graph

31 Commits

Author SHA1 Message Date
Lauren Ridge
507a99c452 Fix for OnMouseButtonUp not resetting SButton Brush state from Pressed to Hovered.
#rb Matt.Kuhlenschmidt

[CL 3144154 by Lauren Ridge in Dev-VREditor branch]
2016-09-28 17:53:04 -04:00
Nick Darnell
64b266a431 Slate - Changed a massive amount of things attempting to improve the Slate and VR intermingling. Popup layers should now function on widget components, lots of changes to make focus work better. Added hacks to the tab manager to allow us to steal tabs as they open, alternative plan in the works, probably going to undo some portion of these changes later. The 3DWidget renderer now handles child windows and properly draws those nested windows onto the render target. In the same way tooltips can have a visualize tooltip, all widgets now have the option to Visualize Popup. Assorted hacks in various locations to make slate handle virtual windows better and not explode just because there's no native window associated with something.
#codereview Mike.Fricker

[CL 2893139 by Nick Darnell in Dev-VREditor branch]
2016-03-03 17:34:29 -05:00
Matthew Griffin
bb70b349ce Merging CL 2804086 from //UE4/Release-4.11 to Dev-Main (//UE4/Dev-Main) to isolate copyright update
#lockdown Nick.Penwarden

[CL 2819020 by Matthew Griffin in Main branch]
2016-01-07 08:17:16 -05:00
Nick Darnell
b98c648c14 Copying //UE4/Dev-Editor to //UE4/Main
==========================
MAJOR FEATURES + CHANGES
==========================

Change 2756103 on 2015/11/05 by Jamie.Dale

	Implemented UFont::GetResourceSize to work correctly with the Size Map tool

Change 2756104 on 2015/11/05 by Jamie.Dale

	Changed the font used when a font is missing or invalid to be the last resort font, rather than the localized fallback font

	The localized fallback font could cause different results based on your culture, and the last resort font makes it clearer that something is set-up incorrectly as it just draws invalid glyph markers for all of the text.

Change 2756105 on 2015/11/05 by Jamie.Dale

	Fixed a crash when using an empty FKey property with a Data Table

	FKeyStructCustomization was asserting because there were no objects being edited, due to a newly added Data Table containing zero rows.

	I've removed this assert, and also updated SKeySelector to no longer require a separate argument to say whether multiple keys with different values are selected (this is now calculated from the call to get the current key, which will return an empty TOptional for multiple values).

	#jira UE-22897

Change 2757015 on 2015/11/06 by Joe.Tidmarsh

	SSProgressBar marquee tint. Accounts for widget color and opacity.

	PR #1698

Change 2757156 on 2015/11/06 by Joe.Tidmarsh

	Implemented "Go to Variable" functionality for widgets in Widget Blueprint Editor.

	When we switch modes in UMG from Designer to Graph. We select the variable (In "My Blueprint"), if one exists, for the currently selected widget. Additionally we update the details panel.

	* Added SelectGraphActionItemByName to FBlueprintEditor. This selects an item in My Blueprint and also displays it in the details panel of graph mode. SMyBlueprint is not available to FWidgetBlueprintEditor in UMGEditor module as it's privately implemented within Kismet.

	#rb Ben.Cosh
	#jira UE-20170

Change 2757181 on 2015/11/06 by Jamie.Dale

	Cleaned up some duplication in UMG text widgets, and exposed the text shaping options

	The common properties used by all text widgets that are text layout based have been moved into a UTextLayoutWidget base class, and all text layout based widgets now derive from this.

	The options needed to control the text shaping method used by a text based widget have been exposed via the FShapedTextOptions struct. This contains a way to manage these optional (and advanced) overrides. You typically wouldn't change these from the default unless you knew exactly what you were doing (eg, you have a text block containing only numbers).

	This change also updates SRichTextBlock to work with an invalidation panel in the same way that STextBlock does

Change 2757734 on 2015/11/06 by David.Nikdel

	#UE4 #Editor
	- Added support for meta=(TitleProperty="StructPropertyNameHere") on properties of type TArray<FSomeStruct>.
	- This changes the editor rolled-up display of these values from "{0} members" to a stringified version of the specified property (if found).
	#CodeReview: Matt.Kuhlenschmidt

Change 2758786 on 2015/11/09 by Joe.Tidmarsh

	Border widget now correctly synchronizes padding property
	#jira UE-23070

Change 2758791 on 2015/11/09 by Joe.Tidmarsh

	Shadow of FCanvasTextItem should be drawn before the outline color. Consulted with Bruce.N who believes this is not the intended behavior and was an oversight when refactoring FCanvas (CL 1695138)

	#jira UE-21623
	#1608

	#rb Simon.Tovey, Bruce.Nesbit

Change 2758813 on 2015/11/09 by Joe.Tidmarsh

	UMG: Attempting to parent multiple widgets (in Hierarchy tree)  to a widget that can't have multiple children will notify the user and ignore the operation.
	[UE-22921] [CrashReport] Parenting multiple actors under border crashes editor
	#jira UE-22921

Change 2759234 on 2015/11/09 by Nick.Darnell

	Slate - Improving the way we track references to materials in slate to better keep things alive until they're no longer needed for rendering.  Additionally, making it so the we use the material and texture free list when possible when cleaning up things as to not allocate new memory if not required.  Concidentually this can help with problems with corrupted memory on destruct as well, because it means the memory isn't really going to become garbage any more.

	#codereview Matt.Kuhlenschmidt, Bob.Tellez

Change 2760954 on 2015/11/10 by Nick.Darnell

	Slate - A bug in the introduction of custom rendered elements accidentally broke filling out the texture coordinates for standard material usage.  Materials should once again tile correctly just like images do.

	#jira UE-23118

Change 2761129 on 2015/11/10 by Nick.Darnell

	Slate - Removing the Pre-Multiply alpha path the way it was added, introducing it in a way that doesn't require changes inside the shader.  Continuing to improve the SRetainerWidget to no longer have a frame delay between resizes and painting, also working on getting it handle clipping correctly but still not there yet.

Change 2761391 on 2015/11/10 by Alexis.Matte

	jira UE-20281 and UE-22259
	Fbx scene Re-import workflow
	- First draft of the reimport workflow using a reimport asset in the content browser

	#codereview nick.darnell

Change 2762323 on 2015/11/11 by Alexis.Matte

	fix build compilation

Change 2762407 on 2015/11/11 by Jamie.Dale

	UDataTable::SaveStructData now writes out dummy data when RowStruct is null

	This didn't used to happen, which would cause a miss-match between what UDataTable::LoadStructData was expecting, and would result in a Data Table that could never be loaded again.

	This change also improves the error message when editing a Data Table with a null row struct, and adds the editor-only RowStructName property to cache the name of the last used struct (for error reporting).

	#jira UE-22789

Change 2762508 on 2015/11/11 by Nick.Darnell

	UMG - Making it more obvious what keys do special stuff with anchors in UMG.  Fixing the way snapping to anchors works with Control, it now only zeros out the side you're dragging instead of the entire widget, which was silly.  Enhancing the designer message system to no longer be based on an enum and instead let arbitrary systems push and pop FText messages.  Fixing animations in the anchor drop down to properly animate, broke when we introduced active timers.

Change 2763241 on 2015/11/11 by Nick.Darnell

	Slate - We no longer allow popup windows to be larger than the primary display window for windows where max width/height is unspecified.  This is to prevent accidential creation of tooltip windows that are larger than the driver allows causing crashes.

	#jira UE-20336
2015-12-12 08:54:23 -05:00
Richard TalbotWatkin
01ab04b117 Fix to SSubMenuButton to correct its visual appearance when its submenu is opened.
#jira UE-21114 - Text remains black after highlight moves in editor menus
#codereview Chris.Gagnon

[CL 2701292 by Richard TalbotWatkin in Main branch]
2015-09-22 15:55:23 -04:00
Richard TalbotWatkin
add83f9943 Fixed rendering issue with submenu button entries.
#jira UE-21114 - Text remains black after highlight moves in editor menus

Since the introduction of SButton::OnPaint, we can just use the default foreground color; no need to make a special case when hovered.

[CL 2700616 by Richard TalbotWatkin in Main branch]
2015-09-22 10:53:50 -04:00
Timothy Reynolds
b57de31277 New UI popup (SMultiBoxWidget) searching system.
-Adds searching widget to display current search and other search feedback
-Hides/shows searched widgets
-Adds highlighting to searches
-Backspace/delete for reducing/removing the search.
-Added support for unique widget elements

UE-809

#codereview Matt.Kuhlenschmidt

[CL 2669222 by Timothy Reynolds in Main branch]
2015-08-26 10:33:13 -04:00
Chris Wood
d2e06e66f1 Fixed "LMB hold, drag, release" usage style on menus. Also, fixes pop-under when menus can be clicked accidentally after appearing.
[UE-18721] - 4.9 Regression: Slate Menus: Can no longer LMB hold on menu bar, drag down to a menu-entry and release LMB to select
[UE-18606] - Fix pop-under menus in editor causing menus to activate automatically

#change Changed menu entries to use new button class SMenuEntryButton that allows mouse-up clicking without mouse-down in certain circustances.
#fix Blocks mouse-up click handling on menu items that are under the cursor when they are created.

[CL 2624490 by Chris Wood in Main branch]
2015-07-17 13:14:18 -04:00
Terence Burns
bb15af7373 VS2015 - Fixing a host of compiler issues when using VS2015 toolset
Lots of shadow variable issues in header files
Type narrowing mismatches between integer types.
Fixed some variable names which conflicted with private members, this works around a bug in VC14

Commiting some of Jeff's code changes from 2605975

#platformnotify Josh.Adams

#CodeReview Jeff.Campeau

[CL 2613285 by Terence Burns in Main branch]
2015-07-08 04:48:54 -04:00
Nick Atamas
d659f8afa8 #slate Submenu arrows and check marks now properly invert when highlighted.
[CL 2611802 by Nick Atamas in Main branch]
2015-07-06 18:40:13 -04:00
Jamie Dale
400871d534 Rolled back a change from CL# 2570717.
All menu builder icons are once again a fixed 16x16 size.

[CL 2591819 by Jamie Dale in Main branch]
2015-06-18 07:57:00 -04:00
Chris Wood
8a112d6140 PushMenu() now respects QueryPopupMethod(). All menus now support reusing windows.
UE-14641 - Fix PushMenu() to use QueryPopupMethod()

Pretty big refactor
Adds IMenu as way to identify menus. Replaces referring to menus as SWindows.
Lots of uses of PushMenu() fixed up to match new API

#codereview Nick.Atamas

[CL 2579277 by Chris Wood in Main branch]
2015-06-05 20:19:33 -04:00
Jamie Dale
23592d149c Converted FUIAction to use ECheckBoxState when reporting its check state
There are now overloads to FUIAction that take a FGetActionCheckState delegate which is able to return any of the entries from ECheckBoxState. FIsActionChecked still exists for backwards compatibility, and converts the returned bool into a ECheckBoxState via a passthrough function.

#codereview Matt.Kuhlenschmidt

[CL 2570717 by Jamie Dale in Main branch]
2015-05-29 12:57:25 -04:00
Matthew Griffin
b22135c57e [INTEGRATE] Change 2436564 by Michael.Noland@mnoland-T2784-Reference on 2015/02/06 22:19:45
Backing out menu padding change CL# 2434737 for now, as not all items get padded appropriately

[CL 2446852 by Matthew Griffin in Main branch]
2015-02-16 06:38:54 -05:00
Matthew Griffin
037ecd8953 [INTEGRATE] Change 2434737 by Michael.Noland@mnoland-T2784-Reference on 2015/02/05 22:21:32
Editor: Enable automatic indentation for multibox menu items missing icons in sections where at least one item contains an icon

[CL 2446712 by Matthew Griffin in Main branch]
2015-02-16 04:14:10 -05:00
Dan Hertzka
1ce19a5ffa Full rename of the Slate "active tick" system to "active timer"
[CL 2394301 by Dan Hertzka in Main branch]
2014-12-19 17:44:49 -05:00
Dan Hertzka
1a9fb601d8 Fixes to work with new active ticking
[CL 2391671 by Dan Hertzka in Main branch]
2014-12-17 16:08:20 -05:00
Nick Darnell
90e793745c Slate - ESlateCheckBoxState has been renamed to ECheckBoxState.
[CL 2384008 by Nick Darnell in Main branch]
2014-12-10 14:24:09 -05:00
Ben Marsh
149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00
Michael Noland
989026607b Slate: Add support to multibox for identifying when a menu section contains one or more icons
- Currently this is used to display a magenta warning square with informative tooltip when 'Display multibox hooks' is enabled

Misc. Multibox cleanup: Moved some code from header to cpp and added override where appropriate

#codereview nick.atamas

[CL 2367057 by Michael Noland in Main branch]
2014-11-20 19:21:21 -05:00
Matt Kuhlenschmidt
d647c8f5ed Fix cases of constant FName recreation in the editor which is affecting performance
[CL 2363352 by Matt Kuhlenschmidt in Main branch]
2014-11-18 09:57:20 -05:00
Chris Gagnon
0e6d657c3d Refactor to unify keyboard and controller input and focus.
Native controller navigation support.

[CL 2345039 by Chris Gagnon in Main branch]
2014-10-30 12:29:36 -04:00
bruce nesbit
d60a5de509 Converted widget .Tag instances for tutorials to use MetaData
[CL 2286138 by bruce nesbit in Main branch]
2014-09-05 07:39:52 -04:00
Thomas Sarkanen
a27980dcf0 Tutorials 2.0 - Initial version
NOTE: Old tutorials not deprecated (yet), but widget highlights in old tutorials will stop working with this change!

Added new Blueprintable UEditorTutorial object.
Added suite of widgets and details customizations to display tutorials.
New system is available on command line switch -NewTutorials.

Slate changes:
Tag names are now stored in SWidgets, rather than simply being discarded.
Removed STutorialWrapper in favour of using Tags.
Added Tags to more multibox widgets, so virtually all can now be picked.
Added SWindow::HasOverlay so we dont attempt to add overlays to widows that cannot have them.

[CL 2244216 by Thomas Sarkanen in Main branch]
2014-08-05 09:04:35 -04:00
Max Preussner
172fba9ab6 Slate: Removed file header comments
Also:
- NULL to nullptr
- removed redundant documentation
- consistent line spacing
- added/fixed comments

[CL 2239470 by Max Preussner in Main branch]
2014-08-01 02:25:53 -04:00