Updated TurnBaseCombat for Comabat Log

This commit is contained in:
Philip W 2022-11-14 11:31:51 +00:00
parent e5af4538ea
commit bb544d2f35
3 changed files with 14 additions and 1 deletions

View File

@ -5,7 +5,7 @@
#include "Dialogs/Dialogs.h"
#include "Engine/GameViewportClient.h"
#include "Blueprint/UserWidget.h"
#include "../../../Plugins/Developer/RiderLink/Source/RD/thirdparty/clsocket/src/ActiveSocket.h"
//#include "../../../Plugins/Developer/RiderLink/Source/RD/thirdparty/clsocket/src/ActiveSocket.h"
#include "the_twilight_abyss/MerchantInteraction/Interaction.h"

View File

@ -186,3 +186,11 @@ void ATurnBaseCombat::UpdateActionPoints() const
{
ActionPointsTextBlock->SetText(FText::FromString(FString::FromInt(ActiveActionPoints)));
}
void ATurnBaseCombat::AddBattleLogMessage(FString Message)
{
FString* tempTextBlock;
BattleLog.Enqueue(Message);
tempTextBlock = BattleLog.Peek();
}

View File

@ -48,6 +48,9 @@ public:
{"FW", 20}
};
UPROPERTY(EditAnywhere)
TQueue<FString> BattleLog;
protected:
virtual void BeginPlay() override;
void ExecuteCast(FString Combo);
@ -110,4 +113,6 @@ private:
void UpdateComboString(FString NewCombo) const;
void UpdateActionPoints() const;
void AddBattleLogMessage(FString Message);
};