AkWwiseObjectDetailsStructCustomization.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*******************************************************************************
  2. The content of this file includes portions of the proprietary AUDIOKINETIC Wwise
  3. Technology released in source code form as part of the game integration package.
  4. The content of this file may not be used without valid licenses to the
  5. AUDIOKINETIC Wwise Technology.
  6. Note that the use of the game engine is subject to the Unreal(R) Engine End User
  7. License Agreement at https://www.unrealengine.com/en-US/eula/unreal
  8. License Usage
  9. Licensees holding valid licenses to the AUDIOKINETIC Wwise Technology may use
  10. this file in accordance with the end user license agreement provided with the
  11. software or, alternatively, in accordance with the terms contained
  12. in a written agreement between you and Audiokinetic Inc.
  13. Copyright (c) 2023 Audiokinetic Inc.
  14. *******************************************************************************/
  15. #pragma once
  16. #if WITH_EDITOR
  17. #include "CoreMinimal.h"
  18. #include "Input/Reply.h"
  19. #include "IPropertyTypeCustomization.h"
  20. #include "PropertyHandle.h"
  21. #include "WaapiPicker/SWaapiPicker.h"
  22. class SButton;
  23. class SComboButton;
  24. class IMenu;
  25. class AKAUDIO_API FAkWwiseObjectDetailsStructCustomization : public IPropertyTypeCustomization
  26. {
  27. public:
  28. static TSharedRef<IPropertyTypeCustomization> MakeInstance();
  29. /** IPropertyTypeCustomization interface */
  30. virtual void CustomizeHeader( TSharedRef<class IPropertyHandle> StructPropertyHandle, class FDetailWidgetRow& HeaderRow, IPropertyTypeCustomizationUtils& StructCustomizationUtils ) override;
  31. virtual void CustomizeChildren( TSharedRef<class IPropertyHandle> StructPropertyHandle, class IDetailChildrenBuilder& StructBuilder, IPropertyTypeCustomizationUtils& StructCustomizationUtils ) override;
  32. private:
  33. /** Delegate used to display the Waapi Picker */
  34. FReply OnPickContent(TSharedRef<IPropertyHandle> PropertyHandle) ;
  35. /** Handler for tree view selection changes */
  36. void TreeSelectionChanged(TSharedPtr< FWwiseTreeItem > TreeItem, ESelectInfo::Type SelectInfo);
  37. private:
  38. /** The pick button widget */
  39. TSharedPtr<SButton> PickerButton;
  40. TSharedPtr<IPropertyHandle> ItemNameProperty;
  41. TSharedPtr<IPropertyHandle> ItemPathProperty;
  42. TSharedPtr<IPropertyHandle> ItemIdProperty;
  43. TSharedPtr<SWaapiPicker> WaapiPicker;
  44. };
  45. #endif//WITH_EDITOR