Example #1
0
void FPropertyEditor::OnCustomResetToDefault( FSimpleDelegate OnCustomResetToDefaultDelegate )
{
	if(OnCustomResetToDefaultDelegate.IsBound())
	{
		PropertyNode->NotifyPreChange( PropertyNode->GetProperty(), PropertyUtilities->GetNotifyHook() );

		OnCustomResetToDefaultDelegate.Execute();

		// Call PostEditchange on all the objects
		FPropertyChangedEvent ChangeEvent( PropertyNode->GetProperty() );
		PropertyNode->NotifyPostChange( ChangeEvent, PropertyUtilities->GetNotifyHook() );
	}
}
void SFlareConfirmationOverlay::Confirm(FText Title, FText Text, FSimpleDelegate OnConfirmed, FSimpleDelegate OnCancel, FSimpleDelegate OnIgnore)
{
	InfoText = Text;
	InfoTitle = Title;
	OnConfirmedCB = OnConfirmed;
	OnCancelCB = OnCancel;
	OnIgnoreCB = OnIgnore;

	if (OnIgnore.IsBound())
	{
		IgnoreButton->SetVisibility(EVisibility::Visible);
	}
	else
	{
		IgnoreButton->SetVisibility(EVisibility::Collapsed);
	}
	SetVisibility(EVisibility::Visible);

	MenuManager->GetPC()->ClientPlaySound(MenuManager->GetPC()->GetSoundManager()->BellSound);
}