You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rnx #rb none #ROBOMERGE-SOURCE: CL 10869241 via CL 10869527 via CL 10869904 #ROBOMERGE-BOT: (v613-10869866) [CL 10870586 by ryan durand in Main branch]
48 lines
1.8 KiB
C++
48 lines
1.8 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "CollectionManagerTypes.h"
|
|
|
|
namespace CollectionViewUtils
|
|
{
|
|
/**
|
|
* Resolve the color of the collection, falling back to the default if no custom color is set
|
|
*
|
|
* @param InCollectionName - The name of the collection to resolve the color for
|
|
* @param InCollectionType - The type of the collection to resolve the color for
|
|
* @return The color the collection should appear as
|
|
*/
|
|
FLinearColor ResolveColor(const FName InCollectionName, const ECollectionShareType::Type& InCollectionType);
|
|
|
|
/**
|
|
* Gets the color of the collection
|
|
*
|
|
* @param InCollectionName - The name of the collection to get the color for
|
|
* @param InCollectionType - The type of the collection to get the color for
|
|
* @return The color the collection should appear as, will be empty if not customized
|
|
*/
|
|
TOptional<FLinearColor> GetCustomColor(const FName InCollectionName, const ECollectionShareType::Type& InCollectionType);
|
|
|
|
/**
|
|
* Sets the color of the collection
|
|
*
|
|
* @param InCollectionName - The name of the collection to set the color for
|
|
* @param InCollectionType - The type of the collection to set the color for
|
|
* @param CollectionColor - The color the collection should appear as, or an empty color to clear it
|
|
*/
|
|
void SetCustomColor(const FName InCollectionName, const ECollectionShareType::Type& InCollectionType, const TOptional<FLinearColor>& CollectionColor);
|
|
|
|
/**
|
|
* Checks to see if any collection has a custom color, optionally outputs them to a list
|
|
*
|
|
* @param OutColors - If specified, returns all the custom colors being used
|
|
* @return true, if custom colors are present
|
|
*/
|
|
bool HasCustomColors(TArray<FLinearColor>* OutColors = nullptr);
|
|
|
|
/** Gets the default color the collection should appear as */
|
|
FLinearColor GetDefaultColor();
|
|
}
|