You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
UETOOL-213 - Minimize Slate FString -> FText conversion (remove SLATE_TEXT_ATTRIBUTE) This fixes any editor/engine specific code that was passing text to Slate as FString rather than FText. [CL 2399803 by Jamie Dale in Main branch]
82 lines
1.9 KiB
C++
82 lines
1.9 KiB
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
/**
|
|
* Implements the project loading area for the session launcher wizard.
|
|
*/
|
|
class SProjectLauncherProjectPicker
|
|
: public SCompoundWidget
|
|
{
|
|
public:
|
|
|
|
SLATE_BEGIN_ARGS(SProjectLauncherProjectPicker) { }
|
|
SLATE_ATTRIBUTE(ILauncherProfilePtr, LaunchProfile)
|
|
SLATE_END_ARGS()
|
|
|
|
public:
|
|
|
|
/**
|
|
* Destructor.
|
|
*/
|
|
~SProjectLauncherProjectPicker( );
|
|
|
|
public:
|
|
|
|
/**
|
|
* Constructs the widget.
|
|
*
|
|
* @param InArgs The Slate argument list.
|
|
* @param InModel The data model.
|
|
*/
|
|
void Construct(const FArguments& InArgs, const FProjectLauncherModelRef& InModel);
|
|
|
|
protected:
|
|
|
|
/**
|
|
* Creates the widget for the project menu.
|
|
*
|
|
* @return The widget.
|
|
*/
|
|
TSharedRef<SWidget> MakeProjectMenuWidget( );
|
|
|
|
/**
|
|
* Creates the widget for the project selection.
|
|
*
|
|
* @return The widget.
|
|
*/
|
|
TSharedRef<SWidget> MakeProjectWidget( );
|
|
|
|
private:
|
|
|
|
// Handles getting the text for the project combo button.
|
|
FText HandleProjectComboButtonText( ) const;
|
|
|
|
// Handles getting the tooltip for the project combo button.
|
|
FText HandleProjectComboButtonToolTip( ) const;
|
|
|
|
// Handles clicking the "any project" option.
|
|
void HandleAnyProjectClicked(FString ProjectPath);
|
|
|
|
// Handles clicking a project menu entry.
|
|
void HandleProjectMenuEntryClicked( FString ProjectPath );
|
|
|
|
// Handles determining the visibility of a validation error icon.
|
|
EVisibility HandleValidationErrorIconVisibility( ELauncherProfileValidationErrors::Type Error ) const;
|
|
|
|
// Sets the project in the appropriate place (profile if provided otherwise on the model)
|
|
void SetProjectPath(FString ProjectPath);
|
|
|
|
private:
|
|
|
|
// Attribute for the launch profile this widget edits, if null it edits the project in the launcher model
|
|
TAttribute<ILauncherProfilePtr> LaunchProfileAttr;
|
|
|
|
// Holds the list of available projects.
|
|
TArray<TSharedPtr<FString>> ProjectList;
|
|
|
|
// Holds a pointer to the data model.
|
|
FProjectLauncherModelPtr Model;
|
|
|
|
};
|