You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
26 lines
1.2 KiB
C++
26 lines
1.2 KiB
C++
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "Framework/Commands/Commands.h"
|
|
#include "Styling/ISlateStyle.h"
|
|
|
|
#define LOC_DEFINE_REGION
|
|
|
|
void UI_COMMAND_Function( FBindingContext* This, TSharedPtr< FUICommandInfo >& OutCommand, const TCHAR* OutSubNamespace, const TCHAR* OutCommandName, const TCHAR* OutCommandNameUnderscoreTooltip, const ANSICHAR* DotOutCommandName, const TCHAR* FriendlyName, const TCHAR* InDescription, const EUserInterfaceActionType::Type CommandType, const FInputChord& InDefaultChord )
|
|
{
|
|
static const FString UICommandsStr(TEXT("UICommands"));
|
|
const FString Namespace = OutSubNamespace && FCString::Strlen(OutSubNamespace) > 0 ? UICommandsStr + TEXT(".") + OutSubNamespace : UICommandsStr;
|
|
|
|
FUICommandInfo::MakeCommandInfo(
|
|
This->AsShared(),
|
|
OutCommand,
|
|
OutCommandName,
|
|
FInternationalization::ForUseOnlyByLocMacroAndGraphNodeTextLiterals_CreateText( FriendlyName, *Namespace, OutCommandName ),
|
|
FInternationalization::ForUseOnlyByLocMacroAndGraphNodeTextLiterals_CreateText( InDescription, *Namespace, OutCommandNameUnderscoreTooltip ),
|
|
FSlateIcon( This->GetStyleSetName(), ISlateStyle::Join( This->GetContextName(), DotOutCommandName ) ),
|
|
CommandType,
|
|
InDefaultChord
|
|
);
|
|
}
|
|
|
|
#undef LOC_DEFINE_REGION
|