AkAudioStyle.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. #include "WaapiPicker/WwiseTreeItem.h"
  17. #include "Materials/Material.h"
  18. /**
  19. * Implements the visual style of Wwise Browser.
  20. */
  21. class AKAUDIO_API FAkAudioStyle
  22. {
  23. public:
  24. static const ISlateStyle& Get();
  25. static void Initialize();
  26. static void Shutdown();
  27. static void DisplayEditorMessage(const FText& messageText, EWwiseItemType::Type wwiseItemType = EWwiseItemType::Type::None, float duration = 1.5f);
  28. static FName GetStyleSetName();
  29. static const FSlateBrush* GetWwiseIcon();
  30. static const FSlateBrush* GetBrush(EWwiseItemType::Type ItemType);
  31. static const FSlateBrush* GetBrush(FName PropertyName, const ANSICHAR* Specifier = NULL);
  32. static const FSlateFontInfo GetFontStyle(FName PropertyName, const ANSICHAR* Specifier = NULL);
  33. static UMaterial* GetAkForegroundTextMaterial();
  34. /** returns a color from the WwiseUnrealColorPalette (taken from the dark theme in the Wwise Authoring tool). Use a colorIndex of -1 to use the 'default' color. */
  35. static FLinearColor GetWwiseObjectColor(int colorIndex);
  36. private:
  37. static TSharedPtr< class FSlateStyleSet > StyleInstance;
  38. static UMaterial* TextMaterial;
  39. };