| static FDelayedAutoRegisterHelper | MenuExtension_AtomSoundClass::DelayedAutoRegister (EDelayedRegisterRunPhase::EndOfEngineInit, [] { UToolMenus::RegisterStartupCallback(FSimpleMulticastDelegate::FDelegate::CreateLambda([]() { FToolMenuOwnerScoped OwnerScoped(UE_MODULE_NAME);UToolMenu *Menu=UE::ContentBrowser::ExtendToolMenu_AssetContextMenu(UAtomSoundClass::StaticClass());FToolMenuSection &Section=Menu->FindOrAddSection("GetAssetActions");Section.AddDynamicEntry(NAME_None, FNewToolMenuSectionDelegate::CreateLambda([](FToolMenuSection &InSection) { { const TAttribute< FText > Label=LOCTEXT("AtomSound_MuteSoundClass", "Mute");const TAttribute< FText > ToolTip=LOCTEXT("AtomSound_MuteSoundClassSoundTooltip", "Mutes anything using this AtomClass.");const FSlateIcon Icon=FSlateIcon(FAppStyle::Get().GetStyleSetName(), "MediaAsset.AssetActions.Mute.Small");FToolUIAction UIAction;UIAction.ExecuteAction=FToolMenuExecuteAction::CreateStatic(&ExecuteMute);UIAction.CanExecuteAction=FToolMenuCanExecuteAction::CreateStatic(&CanExecuteMuteCommand);UIAction.GetActionCheckState=FToolMenuGetActionCheckState::CreateStatic(&IsActionCheckedMute);} { const TAttribute< FText > Label=LOCTEXT("AtomSound_SoloSoundClass", "Solo");const TAttribute< FText > ToolTip=LOCTEXT("AtomSound_SoloSoundClassSoundTooltip", "Mutes anything except sounds using this AtomClass.");const FSlateIcon Icon=FSlateIcon(FAppStyle::Get().GetStyleSetName(), "MediaAsset.AssetActions.Solo.Small");FToolUIAction UIAction;UIAction.ExecuteAction=FToolMenuExecuteAction::CreateStatic(&ExecuteSolo);UIAction.CanExecuteAction=FToolMenuCanExecuteAction::CreateStatic(&CanExecuteSoloCommand);UIAction.GetActionCheckState=FToolMenuGetActionCheckState::CreateStatic(&IsActionCheckedSolo);InSection.AddMenuEntry("AtomSound_SoloSoundClass", Label, ToolTip, Icon, UIAction, EUserInterfaceActionType::ToggleButton);} }));}));}) |