You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
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]
56 lines
1.5 KiB
C++
56 lines
1.5 KiB
C++
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
/**
|
|
* The widget which displays floating navigation controls
|
|
*/
|
|
class STutorialNavigation : public SCompoundWidget
|
|
{
|
|
SLATE_BEGIN_ARGS(STutorialNavigation) {}
|
|
|
|
SLATE_ARGUMENT(FSimpleDelegate, OnBackClicked)
|
|
SLATE_ARGUMENT(FSimpleDelegate, OnHomeClicked)
|
|
SLATE_ARGUMENT(FSimpleDelegate, OnNextClicked)
|
|
SLATE_ATTRIBUTE(bool, IsBackEnabled)
|
|
SLATE_ATTRIBUTE(bool, IsHomeEnabled)
|
|
SLATE_ATTRIBUTE(bool, IsNextEnabled)
|
|
SLATE_ATTRIBUTE(float, OnGetProgress)
|
|
SLATE_ARGUMENT(TWeakPtr<SWindow>, ParentWindow)
|
|
|
|
SLATE_END_ARGS()
|
|
|
|
void Construct(const FArguments& InArgs);
|
|
|
|
protected:
|
|
/** Handle back button being clicked */
|
|
FReply OnBackButtonClicked();
|
|
|
|
/** Handle back button color - used to dim the button when disabled */
|
|
FSlateColor GetBackButtonColor() const;
|
|
|
|
/** Handle home button being clicked */
|
|
FReply OnHomeButtonClicked();
|
|
|
|
/** Handle home button color - used to dim the button when disabled */
|
|
FSlateColor GetHomeButtonColor() const;
|
|
|
|
/** Handle next button being clicked */
|
|
FReply OnNextButtonClicked();
|
|
|
|
/** Handle next button color - used to dim the button when disabled */
|
|
FSlateColor GetNextButtonColor() const;
|
|
|
|
/** Handle display of the progress bar */
|
|
TOptional<float> GetPercentComplete() const;
|
|
|
|
private:
|
|
|
|
FSimpleDelegate OnBackClicked;
|
|
FSimpleDelegate OnHomeClicked;
|
|
FSimpleDelegate OnNextClicked;
|
|
TAttribute<bool> IsBackEnabled;
|
|
TAttribute<bool> IsHomeEnabled;
|
|
TAttribute<bool> IsNextEnabled;
|
|
TAttribute<float> OnGetProgress;
|
|
}; |