Files
UnrealEngineUWP/Engine/Source/Editor/UnrealEd/Private/AssetNotifications.cpp
Ben Marsh 149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00

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