Commit Graph

57 Commits

Author SHA1 Message Date
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
bruce nesbit
cf94655d51 Changed source folder thumb/screen shot used by templates so it can share the asset with feature packs
revised code pack insert (now replaces feature pack header name on import instead of using %MODULE_INCLUDE_PATH%

[CL 2388691 by bruce nesbit in Main branch]
2014-12-15 11:36:33 -05:00
Ben Marsh
4d275b2721 Immediately compile and open new code projects (rather than opening the IDE and requiring the user do it themselves).
#codereview lauren.ridge

[CL 2386116 by Ben Marsh in Main branch]
2014-12-11 16:39:39 -05:00
Frank Fella
29057592b6 NewProjectWizard - Fix text flicker on tab switch.
[CL 2385978 by Frank Fella in Main branch]
2014-12-11 15:09:40 -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
bruce nesbit
473df14d28 Revised starter content to use asset pack
Moved starter content assets
Added mobile starter content assets
Starter content uses mobile starter content based on target platform

[CL 2372343 by bruce nesbit in Main branch]
2014-12-01 08:44:00 -05:00
bruce nesbit
bfac007770 Tweaked new project dialog so it can show class and asset types used by a template.
Revised template descriptions to provide more details.

[CL 2344912 by bruce nesbit in Main branch]
2014-10-30 10:23:07 -04:00
Wes Hunt
31e2bb00ac Removed a bunch of stuff from Slate standard include, created SlateBasics.h
* Moved Slate.h into SlateBasics.h and began shifting less commonly used headers into SlateExtras.h.
* Slate.h now simply includes SlateBasics.h and SlateExtras.h.
* Slate.h includes a deprecated warning now to indicate that SlateBasics.h + specific includes should be used instead.
* Moved dozens of inlined functions using Slate widgets into .cpp files to avoid header dependencies.
* All code samples now include SlateBasics.h and SlateExtras.h so future shifts will not break most those projects, but not trigger the deprecation warning of including Slate.h.
#BUN

[CL 2329610 by Wes Hunt in Main branch]
2014-10-14 22:50:06 -04:00
Andrew Rodham
59859b54a1 Added line break iterator to text display on template project tiles
This addresses TTP#347914 - Project Browser: TP_VehicleAdv: Display name is cut off

[CL 2315698 by Andrew Rodham in Main branch]
2014-10-01 06:08:05 -04:00
Andrew Rodham
c3e6568441 Made starter content button on New Project dialog a real drop down.
This is more consistent with the other combos, and addresses TTP#347917 - PROJECT BROWSER: Starter Content buttons has a dropdown arrow, but no list.

[CL 2315697 by Andrew Rodham in Main branch]
2014-10-01 06:07:53 -04:00
Michael Noland
b7f7292606 Editor: Improve the 'starter content' button in the new project dialog
- Add warning bubble to starter content button when Mobile/Tablet is picked
- Add a fake down arrow to make the button look more interactive

[CL 2310662 by Michael Noland in Main branch]
2014-09-25 22:44:16 -04:00
Michael Noland
ec1aa13008 Editor: Add tooltips to New Project Wizard sections, clarified Target Hardware choices / where you can edit them in the future, and added an explicit prompt for the destination picker to separate it out from the settings choices
[CL 2304575 by Michael Noland in Main branch]
2014-09-19 18:16:03 -04:00
Andrew Rodham
058e21069d Asset labels in the content browser can now fill beyond the width of the thumbnails.
The font has also been reduced in size to reduce the amount of wrapping on asset labels at small sizes.

Also polished the asset borders and shadows.

This addresses TTP 345457 and 345452.

[CL 2297910 by Andrew Rodham in Main branch]
2014-09-15 05:59:46 -04:00
Andrew Rodham
85b61bda9e Added HardwareTargeting module and tidied up project browser dialogs
Also removed tabs from the project browser dialogs when they're not necessary. Fixed up some incorrect icon sizes to work with the new layout.

[CL 2290664 by Andrew Rodham in Main branch]
2014-09-09 12:16:36 -04:00
Ben Marsh
7e47a9d047 Remove virtual function to return .uproject extension from IProjectManager.
[CL 2289650 by Ben Marsh in Main branch]
2014-09-08 13:51:36 -04:00
Ben Marsh
bb17aef300 Move functionality to invoke UBT into DesktopPlatform.
[CL 2286483 by Ben Marsh in Main branch]
2014-09-05 13:31:22 -04:00
Andrew Brown
90265639c0 Seperated out the New Project icon and overlay images into seperate brushes so they could easily be replaced
[CL 2275974 by Andrew Brown in Main branch]
2014-08-28 06:52:46 -04:00
Max Preussner
9a5e9a0610 Slate: Moved SWizard into AppFramework module
[CL 2275535 by Max Preussner in Main branch]
2014-08-27 21:25:34 -04:00
Ben Marsh
fddcde2522 Use DesktopPlatform functions to generate project files, and include the log in error messages if it fails.
[CL 2267315 by Ben Marsh in Main branch]
2014-08-22 08:33:51 -04:00
Matthew Griffin
9a2090960f Adding audio setting to restrict the amount of streaming sounds that can play concurrently
Changed audio streaming manager add sound source function so that sources are ordered by priority and those that go over the stream limit are stopped
Added a function to FWaveInstance to check both whether streaming is supported and if it's using a streaming wave
Added a new function to the audio streaming manager to check whether a sound source should be created for a wave instance to avoid initialising sources that will not play
Set default amount of streams to 2 in the base engine ini
Added detail customization for AudioSettings so that maximum stream count setting is only shown to those using the experimental streaming switch
Fixed some unsafe sections of the Opus decompression code
Non-Unity build include fix

[CL 2262334 by Matthew Griffin in Main branch]
2014-08-19 06:33:39 -04:00
Andrew Rodham
af2b0dab05 Removed default template parameter from function to fix VS2012
[CL 2262309 by Andrew Rodham in Main branch]
2014-08-19 06:13:33 -04:00
Mark Satterthwaite
6aad7b90f8 Clang requires full template specification.
#codereview andrew.rodham

[CL 2260713 by Mark Satterthwaite in Main branch]
2014-08-18 08:48:43 -04:00
Andrew Rodham
1a1cc8ee53 Reworked the new project dialog
* Categorized templates into Blueprint/C++ templates and organized them into tabs
 * New categories can be specified in the templatedefs.ini file of a template project using a Category tag:
         Category=NewCategory
 * New category types can be registered with a proper description and icon in code through FGameProjectGenerationModule::RegisterTemplateCategory.
 * Added preview images to templates
 * Generally tidied the UI

This addresses TTP#321302 - EDITOR: Project Browser: Reduce Thumbnail size of Templates
Reviewed by Matt.Kuhlenschmidt

[CL 2260660 by Andrew Rodham in Main branch]
2014-08-18 06:48:04 -04:00
Ben Marsh
b57c79c540 Allow C++ plugins to hook game project generation. Contributed by solid-angle, https://github.com/EpicGames/UnrealEngine/pull/336.
[CL 2251943 by Ben Marsh in Main branch]
2014-08-11 17:14:26 -04:00