add a message dialog and instruct the user to use the context menu in order to save the skeleton asset

This commit is contained in:
Mamadou Babaei
2023-03-28 10:39:14 +02:00
parent 15a3d01617
commit e007c9e7f2
@@ -35,6 +35,9 @@
#include "SGEditor/SGSkeletonEditorCommands.h"
#include "Framework/Notifications/NotificationManager.h"
#include "Widgets/Notifications/SNotificationList.h"
#define LOCTEXT_NAMESPACE "SkeletonEditorCommands"
FSGSkeletonEditorCommands::FSGSkeletonEditorCommands()
@@ -73,6 +76,13 @@ void FSGSkeletonEditorCommands::RegisterCommands()
CommandList->MapAction(UpdateSkeletonReferencePose,
FExecuteAction::CreateLambda([&]()-> void
{
FMessageDialog::Open(EAppMsgType::Ok, FText::FromString(
FString(
"In order to apply the current skeleton pose as the default"
" reference pose permanently, first right click on the Skeleton asset in"
" the content browser, then choose Update Skeleton Reference Pose from"
" the context menu. Finally, if you wish the changes to persist, save"
" the asset.")));
}
),
FCanExecuteAction::CreateLambda([&]()-> bool