30 lines
797 B
C++
30 lines
797 B
C++
|
|
// Copyright Echo Devgroup
|
||
|
|
|
||
|
|
|
||
|
|
#include "UI/WidgetController/AttributeMenuWidgetController.h"
|
||
|
|
#include "AbilitySystem/Data/AttributeInfo.h"
|
||
|
|
#include "AuraGameplayTags.h"
|
||
|
|
#include "AbilitySystem/AuraAttributeSet.h"
|
||
|
|
|
||
|
|
void UAttributeMenuWidgetController::BindCallbacksToDependencies()
|
||
|
|
{
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
void UAttributeMenuWidgetController::BroadcastInitialValues()
|
||
|
|
{
|
||
|
|
UAuraAttributeSet* AS = CastChecked<UAuraAttributeSet>(AttributeSet);
|
||
|
|
|
||
|
|
check(AttributeInfo);
|
||
|
|
|
||
|
|
FAuraAttributeInfo Info = AttributeInfo->FindAttributeInfoForTag(FAuraGameplayTags::Get().Attributes_Primary_Strength);
|
||
|
|
Info.AttributeValue = AS->GetStrength();
|
||
|
|
AttributeInfoDelegate.Broadcast(Info);
|
||
|
|
}
|
||
|
|
|
||
|
|
void UAttributeMenuWidgetController::BroadcastAttributeInfo(const FGameplayTag& AttributeTag,
|
||
|
|
const FGameplayAttribute& Attribute) const
|
||
|
|
{
|
||
|
|
|
||
|
|
}
|