Commit Graph

59 Commits

Author SHA1 Message Date
Frank Fella
9f84960098 Sequencer - Add support for byte properties, and by extension enum properties. This enables visibility keying in UMG
[CL 2519199 by Frank Fella in Main branch]
2015-04-21 10:08:36 -04:00
Michael Schoell
75200e5a0d Cached node titles can now be forced to refresh without iteration over every node.
This will occur with every structural modification to any BP, node titles refresh only when visible.

[CL 2499923 by Michael Schoell in Main branch]
2015-04-02 11:16:23 -04:00
Jaroslaw Palczynski
f23f29257b Back out changelist 2481333
Rob asked me to back out GENERATED_*_BODY -> GENERATED_BODY change for now until the "_Validate and _Implementation auto-generation" discussion is over.

#codereview Robert.Manuszewski

[CL 2481343 by Jaroslaw Palczynski in Main branch]
2015-03-17 05:38:32 -04:00
Jaroslaw Palczynski
fa31560e2d Enabled UHT to digest GENERATED_BODY instead of GENERATED_UCLASS_BODY, GENERATED_USTRUCT_BODY, GENERATED_UINTERFACE_BODY or GENERATED_IINTERFACE_BODY, changed every occurence to the new syntax and fixed every warning that have fallen out of this change.
#codereview Robert.Manuszewski

[CL 2481333 by Jaroslaw Palczynski in Main branch]
2015-03-17 05:19:11 -04:00
Aaron McLeran
d2729ee628 Supporting multiple audio devices for multiple PIE and other potential use-cases.
- Created audio device manager which manages weak ref handles to audio devices
- Audio device handles are created with WorldContexts and accessed through UWorld objects
- All access to audio devices are now through audio device handles
- There is a main/default audio device for GEngine for use with the Editor and single worldcontext games

#codereview marc.audy, matthew.griffin

[CL 2477046 by Aaron McLeran in Main branch]
2015-03-12 12:59:33 -04:00
Saul Abreu
a2401dfada Fixed sequencer data structures that were persisting FTexts instead of FStrings as UProperties, causing them to be gathered for localization. Ultimately they are turned into FText, but that is done at the appropriate time.
[CL 2449360 by Saul Abreu in Main branch]
2015-02-17 17:48:38 -05:00
Frank Fella
a68ec2ab9b Sequencer - Add a view to sequencer which uses a curve editor to show keyframes.
[CL 2447276 by Frank Fella in Main branch]
2015-02-16 11:59:08 -05:00
Mikolaj Sieluzycki
52c71176ab Rename StaticConstructObject to StaticConstructObject_Internal and use it only in CoreUObject module. Change rest of usages to NewObject.
#codereview Robert.Manuszewski

[CL 2437731 by Mikolaj Sieluzycki in Main branch]
2015-02-09 05:43:45 -05:00
Mikolaj Sieluzycki
fa01cacb6c Trim down the amount of UObject constructors.
#codereview Robert.Manuszewski

[CL 2429641 by Mikolaj Sieluzycki in Main branch]
2015-02-03 05:40:57 -05:00
Steve Robb
0756ef15b9 Delegate comparisons deprecated, lots of other associated code deprecated, and lots of warning fixups:
* Multicast delegate Add* calls now return FDelegateHandles, and Remove* calls are now all deprecated, except for a new Remove function which takes a FDelegateHandle.
* New FConsoleManager::RegisterConsoleVariableSink_Handle and UnregisterConsoleVariableSink_Handle functions which work in terms of FConsoleVariableSinkHandle.
* Timer calls which don't take FTimerHandles are deprecated.
* FTicker::AddTicker now returns an FDelegateHandle and is removed by an overloaded Remove function.
* DEFINE_ONLINE_DELEGATE* macros now define _Handle variants of the Add/Remove functions which return/take handles.
* Various other handle-based registration changes.
* Some unity build fixes.
* Some simplification of delegate code.
* Fixes for lots of existing code to use handle-based registration and unregistration.

#codereview robert.manuszewski

[CL 2400883 by Steve Robb in Main branch]
2015-01-08 09:29:27 -05:00
Dan Hertzka
27c2559898 Updated editor viewports & editor viewport clients to allow for inertial movement and animated/lerped transitions when Slate is asleep
- SEditorViewportClient now has an additional optional parameter in its constructor for the SEditorViewport that the client is attached to
- SBasePoseViewport, SDestructibleMeshEditorViewport, and SPhATPreviewViewport were all updated to inherit from SEditorViewport (previously just inherited from SCompoundWidget)

[CL 2398765 by Dan Hertzka in Main branch]
2015-01-06 11:09:55 -05:00
Zak Middleton
e95939ba24 #ue4 - Convert all engine uses of GetComponents() to use TInlineComponentArray.
[CL 2393060 by Zak Middleton in Main branch]
2014-12-18 17:02:31 -05:00
Dan Hertzka
c042ddcb94 ---- Merging with SlateDev branch ----
Introduces the concept of "Active Ticking" to allow Slate to go to sleep when there is no need to update the UI.

While asleep, Slate will skip the Tick & Paint pass for that frame entirely.
- There are TWO ways to "wake" Slate and cause a Tick/Paint pass:
    1. Provide some sort of input (mouse movement, clicks, and key presses). Slate will always tick when the user is active.
        - Therefore, if the logic in a given widget's Tick is only relevant in response to user action, there is no need to register an active tick.
    2. Register an Active Tick. Currently this is an all-or-nothing situation, so if a single active tick needs to execute, all of Slate will be ticked.

- The purpose of an Active Tick is to allow a widget to "drive" Slate and guarantee a Tick/Paint pass in the absence of any user action.
    - Examples include animation, async operations that update periodically, progress updates, loading bars, etc.

- An empty active tick is registered for viewports when they are real-time, so game project widgets are unaffected by this change and should continue to work as before.

- An Active Tick is registered by creating an FWidgetActiveTickDelegate and passing it to SWidget::RegisterActiveTick()
    - There are THREE ways to unregister an active tick:
        1. Return EActiveTickReturnType::StopTicking from the active tick function
        2. Pass the FActiveTickHandle returned by RegisterActiveTick() to SWidget::UnregisterActiveTick()
        3. Destroy the widget responsible for the active tick

- Sleeping is currently disabled, can be enabled with Slate.AllowSlateToSleep cvar
- There is currently a little buffer time during which Slate continues to tick following any input. Long-term, this is planned to be removed.
    - The duration of the buffer can be adjusted using Slate.SleepBufferPostInput cvar (defaults to 1.0f)

- The FCurveSequence API has been updated to work with the active tick system
    - Playing a curve sequence now requires that you pass the widget being animated by the sequence
    - The active tick will automatically be registered on behalf of the widget and unregister when the sequence is complete
    - GetLerpLooping() has been removed. Instead, pass true as the second param to Play() to indicate that the animation will loop. This causes the active tick to be registered indefinitely until paused or jumped to the start/end.

[CL 2391669 by Dan Hertzka in Main branch]
2014-12-17 16:07:57 -05:00
Frank Fella
52672926bb Sequencer - Snap fixes.
+ Tweak the MaxPixelsPerInput value to work better when snapping is turned on.
+ When the snap interval is set to 0, don't try to snap.

[CL 2385436 by Frank Fella in Main branch]
2014-12-11 09:09:11 -05:00
Michael Trepka
fe4392fae7 Fixed Clang compile error
#codereview Bart.Bressler
#lockdown Ben.Marsh

[CL 2380740 by Michael Trepka in Main branch]
2014-12-08 13:40:47 -05:00
Bart Bressler
5d816f9ed2 Fix non-unity build error - static definition of variable in header file would cause redefinition linker errors
#lockdown ben.marsh

[CL 2380544 by Bart Bressler in Main branch]
2014-12-08 11:50:45 -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
Frank Fella
5640653bc1 Sequencer - Specifiy a maximum value for PixelsForInput in FTimeToPixel, so that zero sized view ranges work predictably.
+ Fixes an issue where making a section too small would make it infinitely large and fixes an issue where zero sized sections could no longer be resized.

[CL 2377931 by Frank Fella in Main branch]
2014-12-05 14:03:35 -05:00
Mikolaj Sieluzycki
462bb3edc1 Prepare cpp files for header cleanup.
#codereview Robert.Manuszewski

[CL 2356890 by Mikolaj Sieluzycki in Main branch]
2014-11-12 05:28:51 -05:00
Matt Kuhlenschmidt
6a14e259b5 Fix compile error
[CL 2340209 by Matt Kuhlenschmidt in Main branch]
2014-10-24 15:21:57 -04:00
Matt Kuhlenschmidt
9b41a79f3b Added ability for the sequencer color track to animate Slate colors
[CL 2340070 by Matt Kuhlenschmidt in Main branch]
2014-10-24 13:51:35 -04:00
Robert Manuszewski
af80979bb7 First phase of deprecating TSubobjectPtr<> replacing TSubobjectPtr properties in the Engine with normal pointers and adding subobject accessors for derived classes/client code.
[CL 2331521 by Robert Manuszewski in Main branch]
2014-10-16 09:02:30 -04:00
Jaroslaw Palczynski
7c41927cf4 Rename FPostConstructInitializeProperties to something simpler
Changed it with FObjectInitializer.

UECORE-7

[CL 2328384 by Jaroslaw Palczynski in Main branch]
2014-10-14 10:29:11 -04:00
Dan Hertzka
7d053de086 Asset context menu refactor & polish
- Duplicate now works properly in the asset view.

- Consolidated common asset actions into the asset context menu and removed the duplicate code from all asset type actions that had implemented them. The affected actions are Edit, Reimport, Find in Explorer, and Open in External Editor. The latter three actions are only visible for imported assets.

- Added IsImportedAsset() and GetSourceFilePaths() to IAssetTypeActions for use by the context menu.

- Compressed the bottom matter on the context menu by removing section headers and compressing Source Control options into a sub-menu (when connected, otherwise there's just a "connect" menu entry).

- Added lots of icons! (The missing ones are TTP'd)

- Fixed FAssetEditorManager::OpenEditorForAssets to work in a useful fashion. IAssetTypeActions::OpenAssetEditor() already took in a UObject array, so it is up to the class's asset type actions to decide how to handle editing multiple assets. (It appeared to be before, but wasn't really).

- Removed the "Details" option from the context menu (since it's redundant when there's a guaranteed "Edit" option)

- Consolidated all skeleton-related actions into AnimationEditorUtils and removed the duplicate code from FAssetTypeActions_SkeletalMesh and FAssetTypeActions_Skeleton

- Compressed the Paper2D sprite options for textures into a submenu

- Renamed "New" to "Create" in content browser

[CL 2324288 by Dan Hertzka in Main branch]
2014-10-09 12:35:10 -04:00
Mike Beach
7b8425fc04 Reverting some perf optimizations that were resulting in stale node text (have to figure out when to clear the cached text).
TTP #346788

[CL 2308590 by Mike Beach in Main branch]
2014-09-24 14:15:13 -04:00