LabelColor
LabelColor
#Overview
name: LabelColor
The value of this variable can be defined or overridden in .ini config files. 1
.ini config file referencing this setting variable.
It is referenced in 61
C++ source files.
#Summary
#Usage in the C++ source code
The purpose of LabelColor is to define the color of text labels in various user interface elements within Unreal Engine 5. This variable is used across multiple subsystems and modules to maintain consistency in the visual appearance of labels throughout the engine’s user interface.
LabelColor is primarily used in the rendering system, specifically for UI elements in the editor and in-game debugging tools. It’s also utilized in various editor plugins and customization modules.
The value of this variable is typically set through constructor arguments, style definitions, or editor preferences. In some cases, it’s bound to dynamic attributes that can change at runtime.
LabelColor often interacts with other UI-related variables such as background colors, font styles, and visibility settings. It’s frequently used in conjunction with STextBlock, SBorder, and other Slate UI widgets.
Developers should be aware that:
- Changing LabelColor can affect the readability of UI elements, so it should be used thoughtfully.
- In some cases, LabelColor is part of a broader color scheme, so changing it in isolation might lead to inconsistent UI appearance.
Best practices when using this variable include:
- Maintaining consistency with the overall UI color scheme.
- Ensuring sufficient contrast between the label color and its background for readability.
- Using predefined color constants or style definitions when possible, rather than hardcoding color values.
- Considering accessibility guidelines when choosing label colors.
#Setting Variables
#References In INI files
Location: <Workspace>/Engine/Config/BaseEditorPerProjectUserSettings.ini:531, section: [/Script/UnrealEd.CurveEdOptions]
- INI Section:
/Script/UnrealEd.CurveEdOptions
- Raw value:
(R=0.4,G=0.4,B=0.4,A=1.0)
- Is Array:
False
#References in C++ code
#Callsites
This variable is referenced in the following C++ source code:
#Loc: <Workspace>/Engine/Plugins/Animation/ControlRig/Source/ControlRigEditor/Private/EditMode/ControlsProxyDetailCustomization.cpp:714
Scope (from outer to inner):
file
function TSharedRef<SWidget> FAnimDetailValueCustomization::MakeIntegerWidget
Source code excerpt:
TSharedRef<IPropertyHandle>& StructurePropertyHandle,
TSharedRef<IPropertyHandle>& PropertyHandle,
const FLinearColor& LabelColor)
{
UControlRigControlsProxy* Proxy = GetProxy(StructurePropertyHandle);
TWeakPtr<IPropertyHandle> WeakHandlePtr = PropertyHandle;
#Loc: <Workspace>/Engine/Plugins/Animation/ControlRig/Source/ControlRigEditor/Private/EditMode/ControlsProxyDetailCustomization.cpp:761
Scope (from outer to inner):
file
function TSharedRef<SWidget> FAnimDetailValueCustomization::MakeIntegerWidget
Source code excerpt:
.Label()
[
SNumericEntryBox<int64>::BuildNarrowColorLabel(LabelColor)
];
}
TSharedRef<SWidget> FAnimDetailValueCustomization::MakeBoolWidget(
TSharedRef<IPropertyHandle>& StructurePropertyHandle,
TSharedRef<IPropertyHandle>& PropertyHandle,
const FLinearColor& LabelColor)
{
UControlRigControlsProxy* Proxy = GetProxy(StructurePropertyHandle);
TWeakPtr<IPropertyHandle> WeakHandlePtr = PropertyHandle;
return
SNew(SCheckBox)
.Type(ESlateCheckBoxType::CheckBox)
#Loc: <Workspace>/Engine/Plugins/Animation/ControlRig/Source/ControlRigEditor/Private/EditMode/ControlsProxyDetailCustomization.cpp:797
Scope (from outer to inner):
file
function TSharedRef<SWidget> FAnimDetailValueCustomization::MakeDoubleWidget
Source code excerpt:
TSharedRef<IPropertyHandle>& StructurePropertyHandle,
TSharedRef<IPropertyHandle>& PropertyHandle,
const FLinearColor &LabelColor)
{
TOptional<double> MinValue, MaxValue, SliderMinValue, SliderMaxValue;
double SliderExponent, Delta;
float ShiftMultiplier = 10.f;
float CtrlMultiplier = 0.1f;
bool SupportDynamicSliderMaxValue = false;
#Loc: <Workspace>/Engine/Plugins/Animation/ControlRig/Source/ControlRigEditor/Private/EditMode/ControlsProxyDetailCustomization.cpp:880
Scope (from outer to inner):
file
function TSharedRef<SWidget> FAnimDetailValueCustomization::MakeDoubleWidget
Source code excerpt:
.Label()
[
SNumericEntryBox<double>::BuildNarrowColorLabel(LabelColor)
];
}
// The following code is just a plain copy of FMathStructCustomization which
// would need changes to be able to serve as a base class for this customization.
void FAnimDetailValueCustomization::ExtractDoubleMetadata(TSharedRef<IPropertyHandle>& PropertyHandle, TOptional<double>& MinValue, TOptional<double>& MaxValue, TOptional<double>& SliderMinValue, TOptional<double>& SliderMaxValue, double& SliderExponent, double& Delta, float& ShiftMultiplier, float& CtrlMultiplier, bool& SupportDynamicSliderMaxValue, bool& SupportDynamicSliderMinValue)
#Loc: <Workspace>/Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Private/MLDeformerEditorActor.cpp:15
Scope (from outer to inner):
file
namespace UE::MLDeformer
function FMLDeformerEditorActor::FMLDeformerEditorActor
Source code excerpt:
TypeID = Settings.TypeID;
Actor = Settings.Actor;
LabelComponent = CreateLabelComponent(Settings.Actor, Settings.LabelColor, Settings.LabelText);
bIsTrainingActor = Settings.bIsTrainingActor;
ActorTypeInstanceIndex = Settings.ActorTypeInstanceIndex;
}
FMLDeformerEditorActor::~FMLDeformerEditorActor()
{
#Loc: <Workspace>/Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Private/MLDeformerEditorModel.cpp:211
Scope (from outer to inner):
file
namespace UE::MLDeformer
function void FMLDeformerEditorModel::CreateTrainingLinearSkinnedActor
Source code excerpt:
// Register the editor actor.
const FLinearColor LabelColor = FMLDeformerEditorStyle::Get().GetColor("MLDeformer.BaseMesh.LabelColor");
FMLDeformerEditorActor::FConstructSettings Settings;
Settings.Actor = Actor;
Settings.TypeID = ActorID_Train_Base;
Settings.LabelColor = LabelColor;
Settings.LabelText = LOCTEXT("TrainBaseActorLabelText", "Training Base");
Settings.bIsTrainingActor = true;
FMLDeformerEditorActor* EditorActor = CreateEditorActor(Settings);
EditorActor->SetSkeletalMeshComponent(SkelMeshComponent);
EditorActor->SetMeshOffsetFactor(0.0f);
EditorActors.Add(EditorActor);
#Loc: <Workspace>/Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Private/MLDeformerEditorModel.cpp:245
Scope (from outer to inner):
file
namespace UE::MLDeformer
function void FMLDeformerEditorModel::CreateTestLinearSkinnedActor
Source code excerpt:
// Register the editor actor.
const FLinearColor LabelColor = FMLDeformerEditorStyle::Get().GetColor("MLDeformer.BaseMesh.LabelColor");
FMLDeformerEditorActor::FConstructSettings Settings;
Settings.Actor = Actor;
Settings.TypeID = ActorID_Test_Base;
Settings.LabelColor = LabelColor;
Settings.LabelText = LOCTEXT("TestBaseActorLabelText", "Linear Skinned");
Settings.bIsTrainingActor = false;
FMLDeformerEditorActor* EditorActor = CreateEditorActor(Settings);
EditorActor->SetSkeletalMeshComponent(SkelMeshComponent);
EditorActor->SetMeshOffsetFactor(0.0f);
EditorActors.Add(EditorActor);
#Loc: <Workspace>/Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Private/MLDeformerEditorModel.cpp:289
Scope (from outer to inner):
file
namespace UE::MLDeformer
function void FMLDeformerEditorModel::CreateTestMLDeformedActor
Source code excerpt:
// Create the editor actor.
const FLinearColor LabelColor = FMLDeformerEditorStyle::Get().GetColor("MLDeformer.MLDeformedMesh.LabelColor");
FMLDeformerEditorActor::FConstructSettings Settings;
Settings.Actor = Actor;
Settings.TypeID = ActorID_Test_MLDeformed;
Settings.LabelColor = LabelColor;
Settings.LabelText = LOCTEXT("TestMLDeformedActorLabelText", "ML Deformed");
Settings.bIsTrainingActor = false;
FMLDeformerEditorActor* EditorActor = CreateEditorActor(Settings);
EditorActor->SetSkeletalMeshComponent(SkelMeshComponent);
EditorActor->SetMLDeformerComponent(MLDeformerComponent);
EditorActor->SetMeshOffsetFactor(1.0f);
#Loc: <Workspace>/Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Private/MLDeformerEditorModel.cpp:342
Scope (from outer to inner):
file
namespace UE::MLDeformer
function void FMLDeformerEditorModel::CreateTestCompareActors
Source code excerpt:
// Create the editor actor.
const FLinearColor LabelColor = FMLDeformerEditorStyle::Get().GetColor("MLDeformer.MLCompareMesh.LabelColor");
FMLDeformerEditorActor::FConstructSettings Settings;
Settings.Actor = Actor;
Settings.TypeID = ActorID_Test_Compare;
Settings.LabelColor = LabelColor;
Settings.LabelText = LOCTEXT("TestCompareActorLabelText", "ML Compare");
Settings.bIsTrainingActor = false;
Settings.ActorTypeInstanceIndex = ActorIndex;
FMLDeformerEditorActor* EditorActor = CreateEditorActor(Settings);
EditorActor->SetSkeletalMeshComponent(SkelMeshComponent);
EditorActor->SetMLDeformerComponent(MLDeformerComponent);
#Loc: <Workspace>/Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Private/MLDeformerEditorModel.cpp:2847
Scope (from outer to inner):
file
namespace UE::MLDeformer
function void FMLDeformerEditorModel::AddCompareActor
Source code excerpt:
// Create the editor actor.
const FLinearColor LabelColor = FMLDeformerEditorStyle::Get().GetColor("MLDeformer.MLCompareMesh.LabelColor");
FMLDeformerEditorActor::FConstructSettings Settings;
Settings.Actor = Actor;
Settings.TypeID = ActorID_Test_Compare;
Settings.LabelColor = LabelColor;
Settings.LabelText = LOCTEXT("TestCompareActorLabelText", "ML Compare");
Settings.bIsTrainingActor = false;
Settings.ActorTypeInstanceIndex = ArrayIndex;
FMLDeformerEditorActor* EditorActor = CreateEditorActor(Settings);
EditorActor->SetSkeletalMeshComponent(SkelMeshComponent);
EditorActor->SetMLDeformerComponent(MLDeformerComponent);
#Loc: <Workspace>/Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Private/MLDeformerEditorModel.cpp:2949
Scope (from outer to inner):
file
namespace UE::MLDeformer
function void FMLDeformerEditorModel::UpdateCompareActorLabels
Source code excerpt:
LabelText = DeformerAsset ? FText::FromString(DeformerAsset->GetName()) : FText::Format(LOCTEXT("DefaultCompareActorDeformerName", "ML Compare #{0}"), InstanceIndex);
}
const FLinearColor LabelColor = FMLDeformerEditorStyle::Get().GetColor("MLDeformer.MLCompareMesh.LabelColor");
LabelComponent->SetText(LabelText);
LabelComponent->SetTextRenderColor(LabelColor.ToFColor(true));
}
}
}
}
int32 FMLDeformerEditorModel::GetActiveTrainingInputAnimIndex() const
#Loc: <Workspace>/Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Private/MLDeformerGeomCacheEditorModel.cpp:152
Scope (from outer to inner):
file
namespace UE::MLDeformer
function void FMLDeformerGeomCacheEditorModel::CreateTrainingGroundTruthActor
Source code excerpt:
}
const FLinearColor LabelColor = FMLDeformerEditorStyle::Get().GetColor("MLDeformer.TargetMesh.LabelColor");
const FLinearColor WireframeColor = FMLDeformerEditorStyle::Get().GetColor("MLDeformer.TargetMesh.WireframeColor");
CreateGeomCacheActor(
World,
ActorID_Train_GroundTruth,
"Train GroundTruth",
GeomCache,
LabelColor,
WireframeColor,
LOCTEXT("TrainGroundTruthActorLabelText", "Target Mesh"),
true);
}
void FMLDeformerGeomCacheEditorModel::CreateTestGroundTruthActor(UWorld* World)
{
UGeometryCache* GeomCache = GetGeomCacheVizSettings()->GetTestGroundTruth();
const FLinearColor LabelColor = FMLDeformerEditorStyle::Get().GetColor("MLDeformer.GroundTruth.LabelColor");
const FLinearColor WireframeColor = FMLDeformerEditorStyle::Get().GetColor("MLDeformer.GroundTruth.WireframeColor");
CreateGeomCacheActor(
World,
ActorID_Test_GroundTruth,
"Test GroundTruth",
GeomCache,
LabelColor,
WireframeColor,
LOCTEXT("TestGroundTruthActorLabelText", "Ground Truth"),
false);
}
void FMLDeformerGeomCacheEditorModel::CreateGeomCacheActor(UWorld* World, int32 ActorID, const FName& Name, UGeometryCache* GeomCache, FLinearColor LabelColor, FLinearColor WireframeColor, const FText& LabelText, bool bIsTrainingActor)
{
FActorSpawnParameters SpawnParams;
SpawnParams.Name = MakeUniqueObjectName(World, AActor::StaticClass(), Name);
AActor* Actor = World->SpawnActor<AActor>(SpawnParams);
Actor->SetFlags(RF_Transient);
#Loc: <Workspace>/Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Private/MLDeformerGeomCacheEditorModel.cpp:202
Scope (from outer to inner):
file
namespace UE::MLDeformer
function void FMLDeformerGeomCacheEditorModel::CreateGeomCacheActor
Source code excerpt:
Settings.Actor = Actor;
Settings.TypeID = ActorID;
Settings.LabelColor = LabelColor;
Settings.LabelText = LabelText;
Settings.bIsTrainingActor = bIsTrainingActor;
FMLDeformerGeomCacheActor* EditorActor = static_cast<FMLDeformerGeomCacheActor*>(CreateEditorActor(Settings));
EditorActor->SetGeometryCacheComponent(GeomCacheComponent);
EditorActors.Add(EditorActor);
}
#Loc: <Workspace>/Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Public/MLDeformerEditorActor.h:65
Scope (from outer to inner):
file
namespace UE::MLDeformer
class class FMLDeformerEditorActor
Source code excerpt:
/** The color of the label text. */
FLinearColor LabelColor = FLinearColor(1.0f, 0.0f, 0.0f);
/** The label text, which should be something like "Linear Skinned" or "Ground Truth", basically describing the actor. This will appear inside the render viewport. */
FText LabelText;
/** Is this an actor used during training? Set to false if it is a testing mode actor. */
bool bIsTrainingActor = false;
#Loc: <Workspace>/Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Public/MLDeformerGeomCacheEditorModel.h:60
Scope (from outer to inner):
file
namespace UE::MLDeformer
Source code excerpt:
* @param Name The name of the actor in the scene.
* @param GeomCache The geometry cache to use on this actor.
* @param LabelColor The color of the label that is rendered with the editor actor inside the editor viewport.
* @param WireframeColor The color of this actor when wireframe rendering is enabled.
* @param LabelText The text of the label.
* @param bIsTrainingActor Set this to true when the actor is an actor to be used in training mode, or set to false when it is to be used in testing mode.
*/
void CreateGeomCacheActor(UWorld* World, int32 ActorID, const FName& Name, UGeometryCache* GeomCache, FLinearColor LabelColor, FLinearColor WireframeColor, const FText& LabelText, bool bIsTrainingActor);
};
} // namespace UE::MLDeformer
#Loc: <Workspace>/Engine/Plugins/Animation/MLDeformer/NearestNeighborModel/Source/NearestNeighborModelEditor/Private/NearestNeighborEditorModel.cpp:400
Scope (from outer to inner):
file
namespace UE::NearestNeighborModel
function FNearestNeighborEditorModelActor* FNearestNeighborEditorModel::CreateNearestNeighborActor
Source code excerpt:
FNearestNeighborEditorModelActor* FNearestNeighborEditorModel::CreateNearestNeighborActor(UWorld* World) const
{
static FLinearColor LabelColor = FNearestNeighborModelEditorStyle::Get().GetColor("NearestNeighborModel.NearestNeighborActors.LabelColor");
static FLinearColor WireframeColor = FNearestNeighborModelEditorStyle::Get().GetColor("NearestNeighborModel.NearestNeighborActors.WireframeColor");
static FName ActorName = FName("NearestNeighborActor");
static FText LabelText = LOCTEXT("NearestNeighborLabelText", "Nearest Neighbor");
static int32 ActorID = ActorID_NearestNeighborActors;
FActorSpawnParameters SpawnParams;
#Loc: <Workspace>/Engine/Plugins/Animation/MLDeformer/NearestNeighborModel/Source/NearestNeighborModelEditor/Private/NearestNeighborEditorModel.cpp:424
Scope (from outer to inner):
file
namespace UE::NearestNeighborModel
function FNearestNeighborEditorModelActor* FNearestNeighborEditorModel::CreateNearestNeighborActor
Source code excerpt:
Settings.Actor = Actor;
Settings.TypeID = ActorID;
Settings.LabelColor = LabelColor;
Settings.LabelText = LabelText;
Settings.bIsTrainingActor = false;
FNearestNeighborEditorModelActor* NewActor = new FNearestNeighborEditorModelActor(Settings);
NewActor->SetGeometryCacheComponent(GeomCacheComponent);
return NewActor;
#Loc: <Workspace>/Engine/Plugins/Editor/CurveEditorTools/Source/CurveEditorTools/Private/Tools/CurveEditorRetimeTool.cpp:250
Scope (from outer to inner):
file
function void FCurveEditorRetimeTool::OnPaint
Source code excerpt:
const FText NoAnchorsText = LOCTEXT("RetimeToolNoAnchors", "Double click to create a Retime Anchor.");
const FSlateFontInfo FontInfo = FCoreStyle::Get().GetFontStyle("ToolTip.LargerFont");
const FLinearColor LabelColor = FLinearColor::White;
// We have to measure the string so we can draw it centered on the window.
const TSharedRef<FSlateFontMeasure> FontMeasure = FSlateApplication::Get().GetRenderer()->GetFontMeasureService();
const FVector2D TextLabelSize = FontMeasure->Measure(NoAnchorsText, FontInfo);
const FPaintGeometry LabelGeometry = AllottedGeometry.ToPaintGeometry(
#Loc: <Workspace>/Engine/Plugins/Editor/CurveEditorTools/Source/CurveEditorTools/Private/Tools/CurveEditorRetimeTool.cpp:269
Scope (from outer to inner):
file
function void FCurveEditorRetimeTool::OnPaint
Source code excerpt:
FontInfo,
ESlateDrawEffect::None,
LabelColor
);
return;
}
// Draw the Anchors and segments between them.
for (int32 AnchorIndex = 0; AnchorIndex < RetimeData->RetimingAnchors.Num(); AnchorIndex++)
#Loc: <Workspace>/Engine/Plugins/Experimental/Mutable/Source/CustomizableObjectEditor/Private/MuCOE/SMutableCodeViewer.cpp:166
Scope (from outer to inner):
file
class class SMutableCodeTreeRow final : public SMultiColumnTableRow<TSharedPtr<FMutableCodeTreeElement>>
function virtual TSharedRef<SWidget> GenerateWidgetForColumn
Source code excerpt:
SNew(STextBlock)
.Text(FText::FromString(RowItem->MainLabel))
.ColorAndOpacity(RowItem->LabelColor)
]
]
];
return RowContainer;
}
#Loc: <Workspace>/Engine/Plugins/Experimental/Mutable/Source/CustomizableObjectEditor/Private/MuCOE/SMutableCodeViewer.cpp:1381
Scope (from outer to inner):
file
function void SMutableCodeViewer::GenerateAllTreeElements
Source code excerpt:
FString Caption = FString::Printf( TEXT("state [%s]"), *State.Name );
const FSlateColor LabelColor = ColorPerComputationalCost[StaticCast<uint8>(GetOperationTypeComputationalCost(
ModelPrivate->m_program.GetOpType(State.m_root)))];
RootNodes.Add(MakeShareable(new FMutableCodeTreeElement(ItemCache.Num(),StateIndex, MutableModel, State.m_root, Caption,LabelColor)));
// Iterate over each root node and generate all the elements in a human readable pattern (Z Pattern)
constexpr mu::OP::ADDRESS CommonParent = 0;
const FItemCacheKey Key = { CommonParent, State.m_root, StateIndex };
#Loc: <Workspace>/Engine/Plugins/Experimental/Mutable/Source/CustomizableObjectEditor/Private/MuCOE/SMutableCodeViewer.cpp:1417
Scope (from outer to inner):
file
function void SMutableCodeViewer::GenerateElementRecursive
lambda-function
Source code excerpt:
const TSharedPtr<FMutableCodeTreeElement>* MainItemPtr = MainItemPerOp.Find(ChildAddress);
const FSlateColor LabelColor = ColorPerComputationalCost[StaticCast<uint8>(GetOperationTypeComputationalCost(InProgram.GetOpType(ChildAddress)))];
const TSharedPtr<FMutableCodeTreeElement> Item = MakeShareable(new FMutableCodeTreeElement(ItemCache.Num(),InStateIndex, MutableModel, ChildAddress, Caption, LabelColor, MainItemPtr));
// Cache this element for later access
ItemCache.Add(Key, Item);
// It is not a duplicated of another one, then we can continue searching
if (!MainItemPtr)
#Loc: <Workspace>/Engine/Plugins/Experimental/Mutable/Source/CustomizableObjectEditor/Private/MuCOE/SMutableCodeViewer.cpp:2931
Scope (from outer to inner):
file
function FMutableCodeTreeElement::FMutableCodeTreeElement
Source code excerpt:
MutableOperation = InOperation;
Caption = InCaption;
LabelColor = InLabelColor;
IndexOnTree = InIndexOnTree;
if (InDuplicatedOf)
{
DuplicatedOf = *InDuplicatedOf;
}
#Loc: <Workspace>/Engine/Plugins/Experimental/Mutable/Source/CustomizableObjectEditor/Private/MuCOE/SMutableCodeViewer.h:866
Scope (from outer to inner):
file
class class FMutableCodeTreeElement : public TSharedFromThis<FMutableCodeTreeElement>
Source code excerpt:
/** The color to be used by the row representing this object */
FSlateColor LabelColor;
/** Label to be used to represent this operation in the tree */
FString MainLabel;
/*
* Navigation metadata
#Loc: <Workspace>/Engine/Plugins/Runtime/nDisplay/Source/DisplayClusterConfigurator/Private/Views/Details/Policies/DisplayClusterConfiguratorPolicyParameterCustomization.cpp:495
Scope (from outer to inner):
file
function TSharedRef<SWidget> FPolicyParameterInfoFloatReference::MakeFloatInputWidget
Source code excerpt:
TSharedRef<SWidget> FPolicyParameterInfoFloatReference::MakeFloatInputWidget(TSharedRef<TOptional<float>>& ProxyValue, const FText& Label,
bool bRotationInDegrees,
const FLinearColor& LabelColor,
const FLinearColor& LabelBackgroundColor)
{
return
SNew(SNumericEntryBox<float>)
.Value(this, &FPolicyParameterInfoFloatReference::OnGetValue, ProxyValue)
.Font(IDetailLayoutBuilder::GetDetailFont())
#Loc: <Workspace>/Engine/Plugins/Runtime/nDisplay/Source/DisplayClusterConfigurator/Private/Views/Details/Policies/DisplayClusterConfiguratorPolicyParameterCustomization.cpp:511
Scope (from outer to inner):
file
function TSharedRef<SWidget> FPolicyParameterInfoFloatReference::MakeFloatInputWidget
Source code excerpt:
.Label()
[
SNumericEntryBox<float>::BuildLabel(Label, LabelColor, LabelBackgroundColor)
];
}
void FPolicyParameterInfoFloatReference::OnValueCommitted(float NewValue, ETextCommit::Type CommitType, TSharedRef<TOptional<float>> Value)
{
*Value = NewValue;
#Loc: <Workspace>/Engine/Plugins/Runtime/nDisplay/Source/DisplayClusterConfigurator/Private/Views/Details/Policies/DisplayClusterConfiguratorPolicyParameterCustomization.h:347
Scope (from outer to inner):
file
class class FPolicyParameterInfoFloatReference : public FPolicyParameterInfo
Source code excerpt:
TSharedRef<SWidget> MakeFloatInputWidget(TSharedRef<TOptional<float>>& ProxyValue, const FText& Label, bool bRotationInDegrees,
const FLinearColor& LabelColor, const FLinearColor& LabelBackgroundColor);
TOptional<float> OnGetValue(TSharedRef<TOptional<float>> Value) const
{
return Value.Get();
}
#Loc: <Workspace>/Engine/Source/Editor/AnimationEditorWidgets/Public/SchematicGraphPanel/SchematicGraphTag.h:22
Scope (from outer to inner):
file
class class FSchematicGraphTag : public TSharedFromThis<FSchematicGraphTag>
function virtual FLinearColor GetLabelColor
Source code excerpt:
virtual FLinearColor GetForegroundColor() const { return ForegroundColor; }
virtual void SetForegroundColor(const FLinearColor& InForegroundColor) { ForegroundColor = InForegroundColor; }
virtual FLinearColor GetLabelColor() const { return LabelColor; }
virtual void SetLabelColor(const FLinearColor& InLabelColor) { LabelColor = InLabelColor; }
virtual const FSlateBrush* GetBackgroundBrush() const { return BackgroundBrush; }
virtual void SetBackgroundBrush(const FSlateBrush* InBackgroundBrush) { BackgroundBrush = InBackgroundBrush; }
virtual const FSlateBrush* GetForegroundBrush() const { return ForegroundBrush; }
virtual void SetForegroundBrush(const FSlateBrush* InForegroundBrush) { ForegroundBrush = InForegroundBrush; }
virtual FText GetLabel() const { return Label; }
virtual void SetLabel(const FText& InLabel) { Label = InLabel; }
#Loc: <Workspace>/Engine/Source/Editor/AnimationEditorWidgets/Public/SchematicGraphPanel/SchematicGraphTag.h:43
Scope (from outer to inner):
file
class class FSchematicGraphTag : public TSharedFromThis<FSchematicGraphTag>
Source code excerpt:
FLinearColor BackgroundColor = FLinearColor(FColor(0, 112, 224));
FLinearColor ForegroundColor = FLinearColor::White;
FLinearColor LabelColor = FLinearColor::White;
const FSlateBrush* BackgroundBrush = nullptr;
const FSlateBrush* ForegroundBrush = nullptr;
FText Label = FText();
FText ToolTip = FText();
float PlacementAngle = -45.f;
ESchematicGraphVisibility::Type Visibility = ESchematicGraphVisibility::Visible;
#Loc: <Workspace>/Engine/Source/Editor/CurveEditor/Private/Views/SInteractiveCurveEditorView.cpp:291
Scope (from outer to inner):
file
function void SInteractiveCurveEditorView::DrawGridLines
Source code excerpt:
const FLinearColor MinorGridColor = MajorGridColor.CopyWithNewOpacity(MajorGridColor.A * .5f);
const FPaintGeometry PaintGeometry = AllottedGeometry.ToPaintGeometry();
const FLinearColor LabelColor = FLinearColor::White.CopyWithNewOpacity(0.65f);
const FSlateFontInfo FontInfo = FCoreStyle::Get().GetFontStyle("ToolTip.LargerFont");
// Get our viewing range bounds. We go through the GetBounds() interface on the curve editor because it's more aware of what our range is than the original widget is.
double InputValueMin, InputValueMax;
GetInputBounds(InputValueMin, InputValueMax);
#Loc: <Workspace>/Engine/Source/Editor/CurveEditor/Private/Views/SInteractiveCurveEditorView.cpp:339
Scope (from outer to inner):
file
function void SInteractiveCurveEditorView::DrawGridLines
Source code excerpt:
FontInfo,
DrawEffects,
LabelColor
);
}
else
{
LinePoints[0].Y = 0.f;
}
#Loc: <Workspace>/Engine/Source/Editor/CurveEditor/Private/Views/SInteractiveCurveEditorView.cpp:418
Scope (from outer to inner):
file
function void SInteractiveCurveEditorView::DrawGridLines
Source code excerpt:
FontInfo,
DrawEffects,
LabelColor
);
}
else
{
LinePoints[0].X = 0.f;
}
#Loc: <Workspace>/Engine/Source/Editor/DetailCustomizations/Public/Customizations/MathStructProxyCustomizations.h:190
Scope (from outer to inner):
file
class class FMathStructProxyCustomization : public FMathStructCustomization
Source code excerpt:
*/
template<typename ProxyType, typename NumericType>
TSharedRef<SWidget> MakeNumericProxyWidget(TSharedRef<IPropertyHandle>& StructPropertyHandle, TSharedRef< TProxyProperty<ProxyType, NumericType> >& ProxyValue, const FText& Label, bool bRotationInDegrees = false, const FLinearColor& LabelColor = FCoreStyle::Get().GetColor("DefaultForeground"));
template <typename ProxyType, typename NumericType>
FText OnGetValueToolTip(TWeakPtr<IPropertyHandle> WeakHandlePtr, TSharedRef<TProxyProperty<ProxyType, NumericType>> ProxyValue, FText Label) const;
private:
/**
* Gets the value as a float for the provided property handle
#Loc: <Workspace>/Engine/Source/Editor/DistCurveEditor/Private/CurveEditorViewportClient.cpp:79
Scope (from outer to inner):
file
function FCurveEditorViewportClient::FCurveEditorViewportClient
Source code excerpt:
BackgroundColor = SharedData->EditorOptions->BackgroundColor;
LabelColor = SharedData->EditorOptions->LabelColor;
SelectedLabelColor = SharedData->EditorOptions->SelectedLabelColor;
GridColor = SharedData->EditorOptions->GridColor;
GridTextColor = SharedData->EditorOptions->GridTextColor;
LabelBlockBkgColor = SharedData->EditorOptions->LabelBlockBkgColor;
SelectedKeyColor = SharedData->EditorOptions->SelectedKeyColor;
#Loc: <Workspace>/Engine/Source/Editor/DistCurveEditor/Private/CurveEditorViewportClient.cpp:193
Scope (from outer to inner):
file
function void FCurveEditorViewportClient::Draw
Source code excerpt:
else
{
Canvas->DrawTile( 0, CurrentKeyY, LabelWidth, SharedData->LabelEntryHeight, 0.f, 0.f, 1.f, 1.f, LabelColor);
}
Canvas->DrawTile( 0, CurrentKeyY, ColorKeyWidth, SharedData->LabelEntryHeight, 0.f, 0.f, 1.f, 1.f, Entry.CurveColor);
Canvas->DrawShadowedString( ColorKeyWidth+3, CurrentKeyY+4, *(Entry.CurveName), GEngine->GetSmallFont(), FLinearColor::White);
if (Canvas->IsHitTesting())
{
#Loc: <Workspace>/Engine/Source/Editor/DistCurveEditor/Private/CurveEditorViewportClient.h:150
Scope (from outer to inner):
file
class class FCurveEditorViewportClient : public FCommonViewportClient
Source code excerpt:
float PixelsPerOut;
FLinearColor BackgroundColor;
FLinearColor LabelColor;
FLinearColor SelectedLabelColor;
FLinearColor GridColor;
FLinearColor GridTextColor;
FLinearColor LabelBlockBkgColor;
FLinearColor SelectedKeyColor;
#Loc: <Workspace>/Engine/Source/Editor/Persona/Private/AnimTimeline/AnimTimelineTrack_Curve.cpp:84
Scope (from outer to inner):
file
class class SCurveBoundsOverlay : public SLeafWidget
function virtual int32 OnPaint
lambda-function
Source code excerpt:
auto DrawLabel = [&AllottedGeometry, &LayerId, &OutDrawElements, &FontInfo, DrawEffects](const FText& InText, const FPaintGeometry& InLabelGeometry)
{
const FLinearColor LabelColor = FLinearColor::White.CopyWithNewOpacity(0.65f);
FSlateDrawElement::MakeText(
OutDrawElements,
LayerId,
InLabelGeometry,
InText,
FontInfo,
DrawEffects,
LabelColor
);
};
DrawLabel(TopLeftLabel, AllottedGeometry.ToPaintGeometry(FSlateLayoutTransform(FVector2D(LabelOffsetPx, LabelOffsetPx))));
FVector2D LabelSize = FontMeasureService->Measure(TopRightLabel, FontInfo);
#Loc: <Workspace>/Engine/Source/Editor/UnrealEd/Classes/Preferences/CurveEdOptions.h:29
Scope (from outer to inner):
file
class class UCurveEdOptions : public UObject
Source code excerpt:
UPROPERTY(EditAnywhere, config, Category=Options)
FLinearColor LabelColor;
UPROPERTY(EditAnywhere, config, Category=Options)
FLinearColor SelectedLabelColor;
UPROPERTY(EditAnywhere, config, Category=Options)
FLinearColor GridColor;
#Loc: <Workspace>/Engine/Source/Editor/WorldPartitionEditor/Private/WorldPartition/SWorldPartitionEditorGrid2D.cpp:1606
Scope (from outer to inner):
file
function uint32 SWorldPartitionEditorGrid2D::PaintActors
Source code excerpt:
{
const FString ActorLabel = *LoaderAdapter->GetLabel();
const FLinearColor LabelColor = USlateThemeManager::Get().GetColor(EStyleColor::White).CopyWithNewOpacity(LoaderColorGradient * FullScreenColorGradient);
DrawActorLabel(ActorLabel, ActorViewBox.GetCenter(), ActorGeometry, LabelColor, SmallLayoutFont, false);
}
}
}
}
}
}
#Loc: <Workspace>/Engine/Source/Editor/WorldPartitionEditor/Private/WorldPartition/SWorldPartitionEditorGrid2D.cpp:1659
Scope (from outer to inner):
file
function uint32 SWorldPartitionEditorGrid2D::PaintActors
lambda-function
Source code excerpt:
if (!ActorLabel.IsNone())
{
const FLinearColor LabelColor = USlateThemeManager::Get().GetColor(EStyleColor::AccentOrange).CopyWithNewOpacity(ActorColorGradient);
DrawActorLabel(ActorLabel.ToString(), !bIsSelected ? MouseCursorPos : ActorViewBox.GetCenter(), ActorGeometry, LabelColor, SmallLayoutFont, true);
}
ActorColor = USlateThemeManager::Get().GetColor(EStyleColor::AccentOrange).CopyWithNewOpacity(ActorColor.A);
}
else if ((SelectBoxGridSnapped.GetVolume() > 0) && SelectBoxGridSnapped.Intersect(ActorBounds))
{
#Loc: <Workspace>/Engine/Source/Runtime/AppFramework/Private/Framework/Testing/SStarshipGallery.cpp:267
Scope (from outer to inner):
file
function TSharedRef<SWidget> ConstructColorsGallery
Source code excerpt:
};
FSlateColor LabelColor = FAppStyle::Get().GetSlateColor("Colors.White50");
return SNew(SBorder)
[
SNew(SScrollBox)
+ SScrollBox::Slot()
#Loc: <Workspace>/Engine/Source/Runtime/AppFramework/Private/Framework/Testing/SStarshipGallery.cpp:284
Scope (from outer to inner):
file
function TSharedRef<SWidget> ConstructColorsGallery
Source code excerpt:
.Padding(8.f, 24.f, 8.f, 8.f)
[
SNew(STextBlock).ColorAndOpacity(LabelColor).Text(NSLOCTEXT("StarshipGallery", "BaseColors", "BASE COLORS"))
]
+SVerticalBox::Slot()
.AutoHeight()
[
SNew(SUniformWrapPanel)
#Loc: <Workspace>/Engine/Source/Runtime/AppFramework/Private/Framework/Testing/SStarshipGallery.cpp:323
Scope (from outer to inner):
file
function TSharedRef<SWidget> ConstructColorsGallery
Source code excerpt:
.AutoHeight()
[
SNew(STextBlock).ColorAndOpacity(LabelColor).Text(NSLOCTEXT("StarshipGallery", "TextIconColors", "FOREGROUND COLORS"))
]
+SVerticalBox::Slot()
.AutoHeight()
[
#Loc: <Workspace>/Engine/Source/Runtime/AppFramework/Private/Framework/Testing/SStarshipGallery.cpp:355
Scope (from outer to inner):
file
function TSharedRef<SWidget> ConstructColorsGallery
Source code excerpt:
.AutoHeight()
[
SNew(STextBlock).ColorAndOpacity(LabelColor).Text(NSLOCTEXT("StarshipGallery", "AccentColors", "ACCENT COLORS"))
]
+SVerticalBox::Slot()
.AutoHeight()
[
SNew(SUniformWrapPanel)
#Loc: <Workspace>/Engine/Source/Runtime/AppFramework/Private/Framework/Testing/SStarshipGallery.cpp:519
Scope (from outer to inner):
file
function TSharedRef<SWidget> ConstructTextGallery
Source code excerpt:
{
FSlateColor LabelColor = FAppStyle::Get().GetSlateColor("Colors.White50");
return SNew(SBorder)
.Padding(48.f)
[
SNew(SHorizontalBox)
#Loc: <Workspace>/Engine/Source/Runtime/AppFramework/Private/Framework/Testing/SStarshipGallery.cpp:534
Scope (from outer to inner):
file
function TSharedRef<SWidget> ConstructTextGallery
Source code excerpt:
// Normal
+SVerticalBox::Slot().Padding(0.f, 64.f, 0.f, 4.f).AutoHeight() [ SNew(STextBlock).ColorAndOpacity(LabelColor).Text( NSLOCTEXT("StarshipGallery", "NormalBodyTextDesc", "ROBOTO 10 SLATE [ ROBOTO 13 FIGMA ]") ) ]
+SVerticalBox::Slot().Padding(0.f, 4.f).AutoHeight() [
SNew(STextBlock)
.Text(NSLOCTEXT("StarshipGallery", "NormalBodyText", "Normal Text\n\nThe quick brown fox jumps over the lazy dog.\n\nNORMAL TEXT CAPITAL") )
]
// Small
+SVerticalBox::Slot().Padding(0.f, 64.f, 0.f, 4.f).AutoHeight()[ SNew(STextBlock).ColorAndOpacity(LabelColor).Text(NSLOCTEXT("StarshipGallery", "SmallBodyTextDesc", "ROBOTO 8 SLATE [ ROBOTO 11 FIGMA ]" ) ) ]
+SVerticalBox::Slot().Padding(0.f, 4.f).AutoHeight()[
SNew(STextBlock)
.Font(FAppStyle::Get().GetFontStyle("SmallFont"))
.Text(NSLOCTEXT("StarshipGallery", "SmallBodyText", "Small Text\n\nThe quick brown fox jumps over the lazy dog.\n\nSMALL TEXT CAPITAL") )
]
]
#Loc: <Workspace>/Engine/Source/Runtime/AppFramework/Private/Framework/Testing/SStarshipGallery.cpp:551
Scope (from outer to inner):
file
function TSharedRef<SWidget> ConstructTextGallery
Source code excerpt:
/*
// Extra Large
+SVerticalBox::Slot().Padding(0.f, 32.f, 0.f, 4.f).AutoHeight()[ SNew(STextBlock).ColorAndOpacity(LabelColor).Text(NSLOCTEXT("StarshipGallery", "ExtraLargeBodyTextDesc", "ROBOTO 14") ) ]
+SVerticalBox::Slot().Padding(0.f, 4.f).AutoHeight()[
SNew(STextBlock)
.Font(FAppStyle::Get().GetFontStyle("ExtraLargeFont"))
.Text(NSLOCTEXT("StarshipGallery", "ExtraLargeBodyText", "Extra Large Body Text\n\nThe quick brown fox jumps over the lazy dog.\n\nEXTRA LARGE TEXT CAPITAL") )
]
// Large
+SVerticalBox::Slot().Padding(0.f, 32.f, 0.f, 4.f).AutoHeight()[ SNew(STextBlock).ColorAndOpacity(LabelColor).Text(NSLOCTEXT("StarshipGallery", "LargeBodyTextDesc", "ROBOTO 11") ) ]
+SVerticalBox::Slot().Padding(0.f, 4.f).AutoHeight()[
SNew(STextBlock)
.Font(FAppStyle::Get().GetFontStyle("LargeFont"))
.Text(NSLOCTEXT("StarshipGallery", "LargeBodyText", "Large Text\n\nThe quick brown fox jumps over the lazy dog.\n\nLARGE TEXT CAPITAL") )
]
*/
+SHorizontalBox::Slot()
.AutoWidth()
.Padding(64.f, 0.0f)
[
SNew(SVerticalBox)
// Normal Bold
+SVerticalBox::Slot().Padding(0.f, 64.f, 0.f, 4.f).AutoHeight() [ SNew(STextBlock).ColorAndOpacity(LabelColor).Text( NSLOCTEXT("StarshipGallery", "NormalBoldTextDesc", "ROBOTO BOLD 10 SLATE [ ROBOTO 13 FIGMA ]") ) ]
+SVerticalBox::Slot().Padding(0.f, 4.f).AutoHeight() [
SNew(STextBlock)
.Font(FAppStyle::Get().GetFontStyle("NormalFontBold"))
.Text(NSLOCTEXT("StarshipGallery", "NormalBodyBoldText", "Normal Text Bold \n\nThe quick brown fox jumps over the lazy dog.\n\nNORMAL TEXT BOLD CAPITAL") )
]
// Small Bold
+SVerticalBox::Slot().Padding(0.f, 64.f, 0.f, 4.f).AutoHeight()[ SNew(STextBlock).ColorAndOpacity(LabelColor).Text(NSLOCTEXT("StarshipGallery", "SmallBoldTextDesc", "ROBOTO BOLD 8 SLATE [ ROBOTO 11 FIGMA ]") ) ]
+SVerticalBox::Slot().Padding(0.f, 4.f).AutoHeight()[
SNew(STextBlock)
.Font(FAppStyle::Get().GetFontStyle("SmallFontBold"))
.Text(NSLOCTEXT("StarshipGallery", "SmallBodyBoldText", "Small Text Bold \n\nThe quick brown fox jumps over the lazy dog.\n\nSMALL TEXT BOLD CAPITAL") )
]
]
#Loc: <Workspace>/Engine/Source/Runtime/AppFramework/Private/Framework/Testing/SStarshipGallery.cpp:597
Scope (from outer to inner):
file
function TSharedRef<SWidget> ConstructTextGallery
Source code excerpt:
SNew(SVerticalBox)
+ SVerticalBox::Slot().Padding(0.f, 64.f, 0.f, 4.f).AutoHeight()[SNew(STextBlock).ColorAndOpacity(LabelColor).Text(NSLOCTEXT("StarshipGallery", "SubMathTextDesc", "SUB-TYPEFACES - MATH"))]
+ SVerticalBox::Slot().Padding(0.f, 4.f).AutoHeight()
[
SNew(STextBlock)
.Text(NSLOCTEXT("StarshipGallery", "MathematicalTextSpecimen", "Mathematical Alphanumeric Symbols, U+1D400 - U+1D7FF\n\U0001D400\U0001D401\U0001D402 \U0001D434\U0001D435\U0001D436 \U0001D4D0\U0001D4D1\U0001D4D2"))
]
+ SVerticalBox::Slot().Padding(0.f, 64.f, 0.f, 4.f).AutoHeight()[SNew(STextBlock).ColorAndOpacity(LabelColor).Text(NSLOCTEXT("StarshipGallery", "SubEmojiTextDesc", "SUB-TYPEFACES - EMOJI"))]
+ SVerticalBox::Slot().Padding(0.f, 4.f).AutoHeight()
[
SNew(STextBlock)
.Text(NSLOCTEXT("StarshipGallery", "EmoticonsTextSpecimen", "Emoticons, U+1F600 - U+1F64F\n\U0001F60E\U0001F643\U0001F648"))
]
+ SVerticalBox::Slot().Padding(0.f, 4.f).AutoHeight()
#Loc: <Workspace>/Engine/Source/Runtime/Renderer/Private/Lumen/LumenVisualize.cpp:914
Scope (from outer to inner):
file
function FScreenPassTexture AddVisualizeLumenScenePass
lambda-function
Source code excerpt:
Canvas.SetBaseTransform(FMatrix(FScaleMatrix(DPIScale)* Canvas.CalcBaseTransform2D(Canvas.GetViewRect().Width(), Canvas.GetViewRect().Height())));
const FLinearColor LabelColor(1, 1, 0);
for (int32 TileIndex = 0; TileIndex < LumenVisualize::NumOverviewTilesPerRow; ++TileIndex)
{
FIntPoint OutputViewSize;
FIntPoint OutputViewOffset;
GetVisualizeTileOutputView(ViewRect, TileIndex, OutputViewOffset, OutputViewSize);
FIntPoint LabelLocation(OutputViewOffset.X + 2 * LumenVisualize::OverviewTileMargin, OutputViewOffset.Y + OutputViewSize.Y - 20);
Canvas.DrawShadowedString(LabelLocation.X / DPIScale, LabelLocation.Y / DPIScale, VisualizeTiles[TileIndex].Name, GetStatsFont(), LabelColor);
}
});
}
else if (VisualizeMode == VISUALIZE_MODE_PERFORMANCE_OVERVIEW)
{
struct FVisualizeTile
#Loc: <Workspace>/Engine/Source/Runtime/Renderer/Private/Lumen/LumenVisualize.cpp:958
Scope (from outer to inner):
file
function FScreenPassTexture AddVisualizeLumenScenePass
lambda-function
Source code excerpt:
Canvas.SetBaseTransform(FMatrix(FScaleMatrix(DPIScale) * Canvas.CalcBaseTransform2D(Canvas.GetViewRect().Width(), Canvas.GetViewRect().Height())));
const FLinearColor LabelColor(1, 1, 0);
for (int32 TileIndex = 0; TileIndex < UE_ARRAY_COUNT(VisualizeTiles); ++TileIndex)
{
FIntPoint OutputViewSize;
FIntPoint OutputViewOffset;
GetVisualizeTileOutputView(ViewRect, TileIndex, OutputViewOffset, OutputViewSize);
FIntPoint LabelLocation(OutputViewOffset.X + 2 * LumenVisualize::OverviewTileMargin, OutputViewOffset.Y + OutputViewSize.Y - 46);
Canvas.DrawShadowedString(LabelLocation.X / DPIScale, LabelLocation.Y / DPIScale, *VisualizeTiles[TileIndex].Name, GetStatsFont(), LabelColor);
}
});
}
else
{
VisualizeLumenScene(Scene, GraphBuilder, ViewFamily.EngineShowFlags, View, FrameTemporaries, Output, Inputs.ColorGradingTexture, Inputs.EyeAdaptationBuffer, Inputs.SceneTextures, VisualizeMode, /*VisualizeTileIndex*/ -1, bLumenGIEnabled);
#Loc: <Workspace>/Engine/Source/Runtime/Renderer/Private/PostProcess/PostProcessBufferInspector.cpp:328
Scope (from outer to inner):
file
lambda-function
Source code excerpt:
[](FCanvas& Canvas)
{
FLinearColor LabelColor(1, 1, 1);
Canvas.DrawShadowedString(100, 50, TEXT("Pixel Inspector On"), GetStatsFont(), LabelColor);
});
return MoveTemp(Output);
}
#endif
#Loc: <Workspace>/Engine/Source/Runtime/Renderer/Private/PostProcess/PostProcessVisualizeBuffer.cpp:114
Scope (from outer to inner):
file
function BEGIN_SHADER_PARAMETER_STRUCT
lambda-function
Source code excerpt:
Canvas.SetBaseTransform(FMatrix(FScaleMatrix(Canvas.GetDPIScale()) * Canvas.CalcBaseTransform2D(Canvas.GetViewRect().Width(), Canvas.GetViewRect().Height())));
const FLinearColor LabelColor(1, 1, 0);
for (const FTileLabel& TileLabel : LocalTileLabels)
{
const float DPIScale = Canvas.GetDPIScale();
Canvas.DrawShadowedString(TileLabel.Location.X / DPIScale, TileLabel.Location.Y / DPIScale, *TileLabel.Label, GetStatsFont(), LabelColor);
}
});
return MoveTemp(Output);
}
#Loc: <Workspace>/Engine/Source/Runtime/Renderer/Private/PostProcess/PostProcessVisualizeNanite.cpp:139
Scope (from outer to inner):
file
class class FVisualizeNanitePS : public FGlobalShader
lambda-function
Source code excerpt:
Canvas.SetBaseTransform(FMatrix(FScaleMatrix(DPIScale)* Canvas.CalcBaseTransform2D(Canvas.GetViewRect().Width(), Canvas.GetViewRect().Height())));
const FLinearColor LabelColor(1, 1, 0);
for (const FTileLabel& TileLabel : LocalTileLabels)
{
FIntPoint ScreenPos(TileLabel.Location.X, TileLabel.Location.Y);
Canvas.DrawShadowedString(ScreenPos.X / DPIScale, ScreenPos.Y / DPIScale, *TileLabel.Label, GetStatsFont(), LabelColor);
}
});
}
}
}
#Loc: <Workspace>/Engine/Source/Runtime/Renderer/Private/VirtualShadowMaps/VirtualShadowMapArray.cpp:3456
Scope (from outer to inner):
file
function void FVirtualShadowMapArray::AddVisualizePass
lambda-function
Source code excerpt:
[&VisualizeLight=VisualizeLight[ViewIndex], &OutputViewport=OutputViewport](FCanvas& Canvas)
{
const FLinearColor LabelColor(1, 1, 0);
Canvas.DrawShadowedString(
OutputViewport.Rect.Min.X + 8,
OutputViewport.Rect.Max.Y - 19,
*VisualizeLight.GetLightName(),
GetStatsFont(),
LabelColor);
});
}
}
#endif
}
#Loc: <Workspace>/Engine/Source/Runtime/Slate/Public/Widgets/Input/SNumericEntryBox.h:445
Scope (from outer to inner):
file
function static TSharedRef<SWidget> BuildNarrowColorLabel
Source code excerpt:
static TSharedRef<SWidget> BuildNarrowColorLabel(FLinearColor LabelColor)
{
return
SNew(SBorder)
.Visibility(EVisibility::HitTestInvisible)
.BorderImage(FAppStyle::Get().GetBrush("NumericEntrySpinBox.NarrowDecorator"))
.BorderBackgroundColor(LabelColor)
.HAlign(HAlign_Left)
.Padding(FMargin(2.0f, 0.0f, 0.0f, 0.0f));
}
/** Return the internally created SpinBox if bAllowSpin is true */
#Loc: <Workspace>/Engine/Source/Runtime/Slate/Public/Widgets/Input/SVectorInputBox.h:406
Scope (from outer to inner):
file
function void ConstructComponent
Source code excerpt:
void ConstructComponent(int32 ComponentIndex,
const FArguments& InArgs,
const FLinearColor& LabelColor,
const FText& TooltipText,
TSharedRef<SHorizontalBox>& HorizontalBox,
const TAttribute<TOptional<NumericType>>& Component,
const FOnNumericValueChanged& OnComponentChanged,
const FOnNumericValueCommitted& OnComponentCommitted,
const TAttribute<ECheckBoxState> ToggleChecked,
#Loc: <Workspace>/Engine/Source/Runtime/Slate/Public/Widgets/Input/SVectorInputBox.h:421
Scope (from outer to inner):
file
function void ConstructComponent
Source code excerpt:
if (InArgs._bColorAxisLabels)
{
LabelWidget = SNumericEntryBox<NumericType>::BuildNarrowColorLabel(LabelColor);
}
TAttribute<TOptional<NumericType>> Value = CreatePerComponentGetter(ComponentIndex, Component, VectorAttribute);
// any other getter below can use the vector
TGuardValue<bool> UseVectorGetterGuard(bUseVectorGetter, true);
#Loc: <Workspace>/Engine/Source/Runtime/TimeManagement/Private/Widgets/STimecode.cpp:36
Scope (from outer to inner):
file
function void STimecode::Construct
Source code excerpt:
bDisplayLabel = InArgs._DisplayLabel;
LabelFont = InArgs._LabelFont;
LabelColor = InArgs._LabelColor;
}
int32 STimecode::OnPaint(const FPaintArgs& Args, const FGeometry& AllottedGeometry, const FSlateRect& MyCullingRect, FSlateWindowElementList& OutDrawElements, int32 LayerId, const FWidgetStyle& InWidgetStyle, bool bParentEnabled) const
{
const ESlateDrawEffect DrawEffects = ESlateDrawEffect::None;
#Loc: <Workspace>/Engine/Source/Runtime/TimeManagement/Private/Widgets/STimecode.cpp:54
Scope (from outer to inner):
file
function int32 STimecode::OnPaint
Source code excerpt:
if (bDisplayLabel.Get())
{
const FLinearColor& LabelLinearColor = LabelColor.Get().GetColor(InWidgetStyle);
const FSlateFontInfo& LabelFontInfo = LabelFont.Get();
const TSharedRef< FSlateFontMeasure >& FontMeasureService = FSlateApplication::Get().GetRenderer()->GetFontMeasureService();
const TCHAR SeparatorToken = TimecodeToPaint.bDropFrameFormat ? TEXT(';') : TEXT(':');
const FVector2D TimecodeSizeSize = FontMeasureService->Measure(TimecodeToPaintString, TimecodeFontInfo);
#Loc: <Workspace>/Engine/Source/Runtime/TimeManagement/Private/Widgets/STimecode.cpp:133
Scope (from outer to inner):
file
function bool STimecode::ComputeVolatility
Source code excerpt:
|| bDisplayLabel.IsBound()
|| LabelFont.IsBound()
|| LabelColor.IsBound();
}
#undef LOCTEXT_NAMESPACE
#Loc: <Workspace>/Engine/Source/Runtime/TimeManagement/Public/Widgets/STimecode.h:62
Scope (from outer to inner):
file
class class STimecode : public SLeafWidget
Source code excerpt:
TAttribute<bool> bDisplayLabel;
TAttribute<FSlateFontInfo> LabelFont;
TAttribute<FSlateColor> LabelColor;
};