31 lines
753 B
C++
31 lines
753 B
C++
// Copyright 2025 https://yuewu.dev/en All Rights Reserved.
|
|
|
|
|
|
#include "UI/Foundation/GUIS_TabButtonBase.h"
|
|
|
|
#include "CommonLazyImage.h"
|
|
|
|
|
|
// void UGUIS_TabButtonBase::SetIconFromLazyObject(TSoftObjectPtr<UObject> LazyObject)
|
|
// {
|
|
// if (LazyImage_Icon)
|
|
// {
|
|
// LazyImage_Icon->SetBrushFromLazyDisplayAsset(LazyObject);
|
|
// }
|
|
// }
|
|
//
|
|
// void UGUIS_TabButtonBase::SetIconBrush(const FSlateBrush& Brush)
|
|
// {
|
|
// if (LazyImage_Icon)
|
|
// {
|
|
// LazyImage_Icon->SetBrush(Brush);
|
|
// LazyImage_Icon->SetVisibility(ESlateVisibility::Visible);
|
|
// }
|
|
// }
|
|
|
|
// void UGUIS_TabButtonBase::SetTabLabelInfo_Implementation(const FGUIS_TabDescriptor& TabLabelInfo)
|
|
// {
|
|
// SetButtonText(TabLabelInfo.TabText);
|
|
// SetIconBrush(TabLabelInfo.IconBrush);
|
|
// }
|