Commit Graph

167 Commits

Author SHA1 Message Date
Thomas Sarkanen
9aeed01b0f Fix perf regression introduced by tutorials
The tutorial overlay was traversing the widget hierarchy even if it had nothing to do.

[CL 2302426 by Thomas Sarkanen in Main branch]
2014-09-18 09:27:57 -04:00
Thomas Sarkanen
526414cc16 Added completion 'Tick' displayed in the browser
Shows when a tutorial has been completed.
Also added tooltips explaining what the icon means & a tooltip for the restart button.

[CL 2302400 by Thomas Sarkanen in Main branch]
2014-09-18 09:02:51 -04:00
Thomas Sarkanen
b9940a88f4 Tutorial button now provides more context menu options
You can access all context-sensitive options via the right-click menu.

Also exposed the ability to refresh available tutorials (as they may have bene reloaded since).

[CL 2302373 by Thomas Sarkanen in Main branch]
2014-09-18 08:32:42 -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
f16191a679 CIS fix
[CL 2302316 by Thomas Sarkanen in Main branch]
2014-09-18 08:10:41 -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
6f1d963577 Adding image support to tutorial rich text
Improved text layout support when inserting runs/text or splitting lines on runs that were non-text (images or widgets). The text layout now inserts an extra text run when splitting a non-text run, which avoids issues where text was either being inserted into a non-text run (and vanishing), or an image run was being cloned (and appearing twice).

This also fixes the cursor movement in the multiline editable text when selecting over images or widgets (the cursor would jump to the start of the document as GetTextIndexAt hadn't been implemented. Additionally, it also fixes an issue where Measure was always trying to place the cursor at the end of an image run (ignoring the values of BeginIndex and EndIndex) which made the cursor offset draw in the wrong place.

These changes required the text layout to be able to create a default text run, which involved refactoring the text marshallers as the Slate text run now knows about the default text style, taking that responsibility away from the marshallers

Added tutorial-specific image decorator that accepts a content-relative or engine relative image path.

Added button to tutorial rich text editor to add new images.

All previously-imported images should still 'work'.

reviewed by Jamie.Dale,Nick.Atamas,Justin.Sargent

[CL 2302278 by Thomas Sarkanen in Main branch]
2014-09-18 08:09:29 -04:00
Thomas Sarkanen
5ac251775a CIS fix - non-unity build
[CL 2300834 by Thomas Sarkanen in Main branch]
2014-09-17 08:30:32 -04:00
Thomas Sarkanen
7f790bb5a0 Tutorial factories now import in the standard way
Added new factory for import.
Removed old import dialog - importing is now done via the import button or reimport... in the asset editor.
Added path that the file was imported from to UEditorTutorial.

[CL 2300765 by Thomas Sarkanen in Main branch]
2014-09-17 06:20:05 -04:00
Thomas Sarkanen
cae9246a71 Tutorials can now open an asset when started
The tutorial system will then attach non-widget-bound content to the asset editor window.
Also, assets can now be opened from a tutorial blueprint.

[CL 2300747 by Thomas Sarkanen in Main branch]
2014-09-17 05:44:56 -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
Dan Hertzka
8cd8b64e5f - Updated FText property editor customization to default to multiline
- Use "meta=(SingleLine=true)" in the UPROPERTY declaration to restrict the field to single line entry

[CL 2300083 by Dan Hertzka in Main branch]
2014-09-16 17:02:12 -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
e2c6561a7e Asset links in tutorials now open correctly.
Previously they were only opening if the asset had been previously loaded.

[CL 2299446 by Thomas Sarkanen in Main branch]
2014-09-16 10:26:12 -04:00
Thomas Sarkanen
db1697046c Made tutorial title AssetRegistrySearchable.
[CL 2297919 by Thomas Sarkanen in Main branch]
2014-09-15 06:09:59 -04:00
Thomas Sarkanen
692f471915 New tutorials are now enabled by default
Removed command-line option and older tutorials

[CL 2295096 by Thomas Sarkanen in Main branch]
2014-09-12 09:54:43 -04:00
Thomas Sarkanen
465d6fef0c Cleaned up hyperlink tooltip API a little
Post-code review, removed accessors & moved delegates into constructor.

[CL 2294987 by Thomas Sarkanen in Main branch]
2014-09-12 06:48:53 -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
10a75d18a2 CIS fix - Fixed non-unity build
[CL 2294915 by Thomas Sarkanen in Main branch]
2014-09-12 05:38:38 -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
Matt Kuhlenschmidt
fb76f6393e Fix constant FName initialization in places that execute often
[CL 2294154 by Matt Kuhlenschmidt in Main branch]
2014-09-11 16:48:17 -04:00
bruce nesbit
d27db9cd36 Added metadata for materialgraph nodes
[CL 2293642 by bruce nesbit in Main branch]
2014-09-11 08:13:08 -04:00
Thomas Sarkanen
12a32f87f4 Fixed crash when zero-length tutorials are run
TTP# 345094 - CRASH: Selecting the arrow keys in the tutorial will cause an immediate crash with the new Tutorial system

[CL 2293498 by Thomas Sarkanen in Main branch]
2014-09-11 03:56:58 -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
ce37be1d4d Always display the tutorial button. Button action is context sensitive.
Tutorial button launches the tutorial browser if no tutorial exists (or the tutorial has already been taken & completed).

[CL 2292329 by Thomas Sarkanen in Main branch]
2014-09-10 08:09:10 -04:00