Save and save often
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
// 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
|
||||
{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user