Commit Graph

35 Commits

Author SHA1 Message Date
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
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
Richard Hinckley
4ba3b8b2f1 [UE-9586] The "Back" button in tutorials can be linked to a different tutorial, like the "Next" button. Tutorials assigned to the "Previous Tutorial" field (new) will be used for this, and will activate the button for this purpose on stage 0. Tutorials started in this way will begin on their final stage. The Launch Tutorial functionality (in code) now uses an enum for startup instead of a bool, so we can force a restart, continue from where we left off (default), or start at the final stage.
[CL 2500370 by Richard Hinckley in Main branch]
2015-04-02 16:56:18 -04:00
Matthew Griffin
9c215d176a [INTEGRATE] Change 2442157 by bruce.nesbit@bnesbit_release_port_edit on 2015/02/11 15:08:41
Tweaked tutorial back button size and color

[CL 2448708 by Matthew Griffin in Main branch]
2015-02-17 10:17:20 -05:00
Matthew Griffin
6aee4b8bfd [INTEGRATE] Change 2441350 by bruce.nesbit@bnesbit_Releases on 2015/02/11 05:55:27
Added back button to tutorials.
	(Also fixed overridable text on next button and provided same for back button)

[CL 2448653 by Matthew Griffin in Main branch]
2015-02-17 09:56:06 -05:00
Ben Marsh
3325eabc5a [INTEGRATE] Change 2411506 by Mike.Fricker@MFRICKER_G3686_Alpha on 2015/01/19 17:55:43
Tutorial polish
	- Tweaked bubble animation speed and bounce effect
	- Increased padding between text and Next button (was too cramped)
	- Tweaked timing of pulsing green rectangle highlights

[CL 2419343 by Ben Marsh in Main branch]
2015-01-26 17:51:59 -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
Ben Marsh
149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00
Thomas Sarkanen
819d171331 Restructured tutorial analytics events
Where dynamic event names were being constructed from tutorial assets, now reworked events to add a dynamic parameter.

UE-4978 - Restructure Tutorial Analytic Events

[CL 2377327 by Thomas Sarkanen in Main branch]
2014-12-05 05:33:09 -05:00
Thomas Sarkanen
3014bfc0df Moving tutorial browser to an editor nomad tab
Tweaked styles and layout to better suit a tab.
Also fixed browser not showing some tutorials if all assets are not yet loaded.
Progress is now updated periodically as the browser can be now open while a tutorial is in progress.

TTP# 347956 - TUTORIALS: Selecting More Tutorials can hide Tutorial Browser

[CL 2327011 by Thomas Sarkanen in Main branch]
2014-10-13 06:46:06 -04:00
Thomas Sarkanen
8011ba0c1b Adding external link indicator to tutorial hyperlinks
Slate changes:
Allowed hyperlink decorator and hyperlink run to be more easily derived from by moving some functions/variables to protected.

Added new run & decorator for hyperlinks in tutorials that add an icon to the end of the run if required.
Only use icon-style run if in display mode (not in edit mode).

reviewed by Jamie.Dale

[CL 2322460 by Thomas Sarkanen in Main branch]
2014-10-08 06:07:52 -04:00
Thomas Sarkanen
d9ba2d3606 Tutorial content 'Next' button is now green, has text and is customizable
Rearranged layout/padding a little to compensate for larger apparent button size.
Kept larger button hitbox, which required some custom border handling for the button.

TTP# 348109 - EDITOR: TUTORIALS: Add green buttons to tutorials

[CL 2314257 by Thomas Sarkanen in Main branch]
2014-09-30 11:37:26 -04:00
Thomas Sarkanen
877102f64c Added support for Back and Forward mouse buttons to Tutorials
As with the content browser, these buttons only function as back and forward when they are clicked within the bounds of the widget.

TTP# 347536 - TUTORIALS: Add Forward/Back web browser controls

[CL 2312859 by Thomas Sarkanen in Main branch]
2014-09-29 10:05:13 -04:00
Thomas Sarkanen
fe407d11d4 Searching tutorials now recursively searches all categories and sub-categories
If we have a search string we should search all categories starting at the current context, rather than just one level deep as before.
Also fixed search text highlighting to be consistently coloured and to show up for rich text content.

TTP# 347534 - CRITICAL: TUTORIALS: Search bar only shows results for currently displayed tutorials

[CL 2312725 by Thomas Sarkanen in Main branch]
2014-09-29 06:54:17 -04:00
Thomas Sarkanen
dfc9addd05 Tearing off a highlighted widget no longer results in duplicate content being displayed
Tutorials browser now always appears on the mainframe. This avoids the browser appearing on small torn-off windows if content is torn off while a tutorial is in progress.
Also fixed crash when opening a browser from a widget that used to be docked to anotehr tab (weak window pointer was invalid at this point).

TTP# 347014 - EDITOR: TUTORIAL: If a tab is undocked while being referenced in the "welcome to the unreal editor" tutorial, there will be two instances of the tutorial text

[CL 2305366 by Thomas Sarkanen in Main branch]
2014-09-22 09:42:52 -04:00
Thomas Sarkanen
86292b26f8 Fixed 'fallback' overlays appearing in multiple windows
Dont present the 'fallback' overlays unless in the primary ('navigation') window.

[CL 2302563 by Thomas Sarkanen in Main branch]
2014-09-18 13:30:40 -04:00
Thomas Sarkanen
7acd43b140 Fixed tutorials border blocking mouse input to widgets below
[CL 2302510 by Thomas Sarkanen in Main branch]
2014-09-18 10:43:35 -04:00
Thomas Sarkanen
e6e5825caf Widget-bound content that is no visible now falls back to rendering centred.
Previously it would just disappear, whihc was very confusing for users if they had not read the previous stage.

[CL 2302352 by Thomas Sarkanen in Main branch]
2014-09-18 08:11:35 -04:00
Thomas Sarkanen
304d700746 Added/edited extra tutorial contexts & added analytics
Tutorial contexts for IOS/Android/Whatever are now hooked up (console setup ones are still missing).

Analytics added for tutorial usage in various places.

Added ability to reset tutorial state with -ResetTutorials command-line flag.

Cleaned up some unused code (still a lot more to come here!).

[CL 2302314 by Thomas Sarkanen in Main branch]
2014-09-18 08:10:29 -04:00
Thomas Sarkanen
ae4dc6337b Fixed navigation visibility
Navigation widgets no longer appear hovering over windows that do not use them

[CL 2300718 by Thomas Sarkanen in Main branch]
2014-09-17 04:54:45 -04:00
Thomas Sarkanen
dd996369d7 Reworking navigation into content
Disabled floating navigation widget (but have not removed it yet).
Built navigation controls into the content widget.

[CL 2299461 by Thomas Sarkanen in Main branch]
2014-09-16 10:26:36 -04:00
Thomas Sarkanen
27f424cfa3 Fixed visibility of FX widget & tag for tutorial button
Prevented empty tabs launching when tutorial button anchored-tutorials are run.
Prevented empty tutorials from blocking input.

[CL 2294961 by Thomas Sarkanen in Main branch]
2014-09-12 06:18:47 -04:00
Thomas Sarkanen
a37b84b8c8 Rich tooltips for tutorial hyperlinks
Refactored handling of decorators into new utility class FTutorialText.
Added tooltip (and rich tooltip) support to hyperlink runs.

#codereview Jamie.Dale

[CL 2294907 by Thomas Sarkanen in Main branch]
2014-09-12 05:28:34 -04:00
Thomas Sarkanen
918ef98415 Tidied up Tutorials Browser
Tweaked padding and button styles so the layout is more consistent.
Add ability to display textures as icons in the browser (for categories and tutorials).

[CL 2292442 by Thomas Sarkanen in Main branch]
2014-09-10 12:30:30 -04:00
Thomas Sarkanen
d303ca0e26 Added intro animation to tutorials
Intro 'bounce' is driven by a float curve asset.
Because of rich text not working very well when zoomed at the moment, only the border is zoomed when animating. The content has the inverse zoom applied to it to counter this.

[CL 2290861 by Thomas Sarkanen in Main branch]
2014-09-09 12:19:28 -04:00