2014-12-07 19:09:38 -05:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
#include "UnrealEd.h"
|
|
|
|
|
#include "AssetNotifications.h"
|
2014-10-14 22:50:06 -04:00
|
|
|
#include "SNotificationList.h"
|
|
|
|
|
#include "NotificationManager.h"
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
#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
|