You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
25 lines
828 B
C++
25 lines
828 B
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "UnrealEd.h"
|
|
#include "AssetNotifications.h"
|
|
#include "SNotificationList.h"
|
|
#include "NotificationManager.h"
|
|
|
|
#define LOCTEXT_NAMESPACE "AssetNotifications"
|
|
|
|
void FAssetNotifications::SkeletonNeedsToBeSaved(USkeleton* Skeleton)
|
|
{
|
|
FFormatNamedArguments Args;
|
|
Args.Add( TEXT("SkeletonName"), FText::FromString( Skeleton->GetName() ) );
|
|
FNotificationInfo Info( FText::Format( LOCTEXT("SkeletonNeedsToBeSaved", "Skeleton {SkeletonName} needs to be saved"), Args ) );
|
|
Info.ExpireDuration = 5.0f;
|
|
Info.bUseLargeFont = false;
|
|
TSharedPtr<SNotificationItem> Notification = FSlateNotificationManager::Get().AddNotification(Info);
|
|
if ( Notification.IsValid() )
|
|
{
|
|
Notification->SetCompletionState( SNotificationItem::CS_None );
|
|
}
|
|
}
|
|
|
|
#undef LOCTEXT_NAMESPACE
|