Download LyraStarterGame/Source/LyraGame/UI/Common/LyraTabButtonBase.cpp from Alexhas2/unitysamples: direct link, hf CLI and curl.
- Browser
- Download file 774 Bytes
-
https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/UI/Common/LyraTabButtonBase.cpp
- Command line
-
hf download hf://datasets/Alexhas2/unitysamples/LyraStarterGame/Source/LyraGame/UI/Common/LyraTabButtonBase.cpp
-
curl -L -o LyraTabButtonBase.cpp https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/UI/Common/LyraTabButtonBase.cpp
774 Bytes
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| class UObject; | |
| struct FSlateBrush; | |
| void ULyraTabButtonBase::SetIconFromLazyObject(TSoftObjectPtr<UObject> LazyObject) | |
| { | |
| if (LazyImage_Icon) | |
| { | |
| LazyImage_Icon->SetBrushFromLazyDisplayAsset(LazyObject); | |
| } | |
| } | |
| void ULyraTabButtonBase::SetIconBrush(const FSlateBrush& Brush) | |
| { | |
| if (LazyImage_Icon) | |
| { | |
| LazyImage_Icon->SetBrush(Brush); | |
| } | |
| } | |
| void ULyraTabButtonBase::SetTabLabelInfo_Implementation(const FLyraTabDescriptor& TabLabelInfo) | |
| { | |
| SetButtonText(TabLabelInfo.TabText); | |
| SetIconBrush(TabLabelInfo.IconBrush); | |
| } | |