// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "Styling/SlateBrush.h" // Insights #include "Insights/ViewModels/StatsNode.h" #include "Insights/ViewModels/StatsGroupingAndSorting.h" //////////////////////////////////////////////////////////////////////////////////////////////////// /** Helper struct that contains helper functions and classes for EStatsNodeType enum. */ struct StatsNodeTypeHelper { /** * @param Type - The value to get the text for. * * @return text representation of the specified EStatsNodeType value. */ static FText ToText(const EStatsNodeType Type); /** * @param Type - The value to get the text for. * * @return text representation with more detailed explanation of the specified EStatsNodeType value. */ static FText ToDescription(const EStatsNodeType Type); /** * @param Type - The value to get the brush name for. * * @return brush name of the specified EStatsNodeType value. */ static FName ToBrushName(const EStatsNodeType Type); static const FSlateBrush* GetIconForGroup(); static const FSlateBrush* GetIcon(const EStatsNodeType Type); }; //////////////////////////////////////////////////////////////////////////////////////////////////// /** Helper struct that contains helper functions and classes for EStatsNodeDataType enum. */ struct StatsNodeDataTypeHelper { /** * @param Type - The value to get the text for. * * @return text representation of the specified EStatsNodeDataType value. */ static FText ToText(const EStatsNodeDataType Type); /** * @param Type - The value to get the text for. * * @return text representation with more detailed explanation of the specified EStatsNodeDataType value. */ static FText ToDescription(const EStatsNodeDataType Type); /** * @param Type - The value to get the brush name for. * * @return brush name of the specified EStatsNodeDataType value. */ static FName ToBrushName(const EStatsNodeDataType Type); static const FSlateBrush* GetIcon(const EStatsNodeDataType Type); }; //////////////////////////////////////////////////////////////////////////////////////////////////// /** Helper struct that contains grouping static functions and classes. */ struct StatsNodeGroupingHelper { /** * @param StatsGroupingMode - The value to get the text for. * * @return text representation of the specified EStatsGroupingMode value. */ static FText ToText(const EStatsGroupingMode StatsGroupingMode); /** * @param StatsGroupingMode - The value to get the text for. * * @return text representation with more detailed explanation of the specified EStatsGroupingMode value. */ static FText ToDescription(const EStatsGroupingMode StatsGroupingMode); /** * @param StatsGroupingMode - The value to get the brush name for. * * @return brush name of the specified EStatsGroupingMode value. */ static FName ToBrushName(const EStatsGroupingMode StatsGroupingMode); }; ////////////////////////////////////////////////////////////////////////////////////////////////////