1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- #pragma once
- #include "CoreMinimal.h"
- #include "InputCoreTypes.h"
- #include "AkAudioStyle.h"
- #include "Framework/Commands/InputChord.h"
- #include "Framework/Commands/Commands.h"
- #define LOCTEXT_NAMESPACE "WaapiPickerViewCommands"
-
- class AKAUDIO_API FWaapiPickerViewCommands : public TCommands<FWaapiPickerViewCommands>
- {
- public:
-
- FWaapiPickerViewCommands() : TCommands<FWaapiPickerViewCommands>
- (
- "WaapiPickerViewCommand",
- NSLOCTEXT("Contexts", "WaapiPickerViewCommand", "Waapi Picker Command"),
- NAME_None,
- FAkAudioStyle::GetStyleSetName()
- )
- {
- }
-
-
- virtual void RegisterCommands() override
- {
- UI_COMMAND(RequestRenameWwiseItem, "Rename", "Renames the selected item.", EUserInterfaceActionType::Button, FInputChord(EKeys::F2));
- UI_COMMAND(RequestPlayWwiseItem, "Play/Stop", "Plays or stops the selected item.", EUserInterfaceActionType::Button, FInputChord(EKeys::SpaceBar));
- UI_COMMAND(RequestStopAllWwiseItem, "Stop All", "Stop all playing events", EUserInterfaceActionType::Button, FInputChord());
- UI_COMMAND(RequestDeleteWwiseItem, "Delete", "Deletes the selected item(s).", EUserInterfaceActionType::Button, FInputChord(EKeys::Delete));
- UI_COMMAND(RequestExploreWwiseItem, "Show in Folder", "Finds this item on disk.", EUserInterfaceActionType::Button, FInputChord());
- UI_COMMAND(RequestFindInProjectExplorerWwisetem, "Find in the Project Explorer", "Finds the specified object in the Project Explorer (Sync Group 1).", EUserInterfaceActionType::Button, FInputChord(EModifierKey::Control | EModifierKey::Shift, EKeys::One));
- UI_COMMAND(RequestRefreshWaapiPicker, "Refresh All", "Populates the Waapi Picker.", EUserInterfaceActionType::Button, FInputChord(EKeys::F5));
- UI_COMMAND(RequestImportWwiseItem, "Import Selected Assets", "Imports the selected assets from the Waapi Picker.", EUserInterfaceActionType::Button, FInputChord());
- }
- public:
-
- TSharedPtr< FUICommandInfo > RequestRenameWwiseItem;
-
-
- TSharedPtr< FUICommandInfo > RequestPlayWwiseItem;
-
- TSharedPtr< FUICommandInfo > RequestStopAllWwiseItem;
-
-
- TSharedPtr< FUICommandInfo > RequestDeleteWwiseItem;
-
-
- TSharedPtr< FUICommandInfo > RequestExploreWwiseItem;
-
-
- TSharedPtr< FUICommandInfo > RequestFindInProjectExplorerWwisetem;
-
-
- TSharedPtr< FUICommandInfo > RequestRefreshWaapiPicker;
-
- TSharedPtr< FUICommandInfo > RequestImportWwiseItem;
- };
- #undef LOCTEXT_NAMESPACE
|