Updated TurnBaseCombat for Comabat Log
This commit is contained in:
parent
e5af4538ea
commit
bb544d2f35
@ -5,7 +5,7 @@
|
|||||||
#include "Dialogs/Dialogs.h"
|
#include "Dialogs/Dialogs.h"
|
||||||
#include "Engine/GameViewportClient.h"
|
#include "Engine/GameViewportClient.h"
|
||||||
#include "Blueprint/UserWidget.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"
|
#include "the_twilight_abyss/MerchantInteraction/Interaction.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -186,3 +186,11 @@ void ATurnBaseCombat::UpdateActionPoints() const
|
|||||||
{
|
{
|
||||||
ActionPointsTextBlock->SetText(FText::FromString(FString::FromInt(ActiveActionPoints)));
|
ActionPointsTextBlock->SetText(FText::FromString(FString::FromInt(ActiveActionPoints)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ATurnBaseCombat::AddBattleLogMessage(FString Message)
|
||||||
|
{
|
||||||
|
FString* tempTextBlock;
|
||||||
|
BattleLog.Enqueue(Message);
|
||||||
|
tempTextBlock = BattleLog.Peek();
|
||||||
|
|
||||||
|
}
|
||||||
|
@ -48,6 +48,9 @@ public:
|
|||||||
{"FW", 20}
|
{"FW", 20}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
UPROPERTY(EditAnywhere)
|
||||||
|
TQueue<FString> BattleLog;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void BeginPlay() override;
|
virtual void BeginPlay() override;
|
||||||
void ExecuteCast(FString Combo);
|
void ExecuteCast(FString Combo);
|
||||||
@ -110,4 +113,6 @@ private:
|
|||||||
|
|
||||||
void UpdateComboString(FString NewCombo) const;
|
void UpdateComboString(FString NewCombo) const;
|
||||||
void UpdateActionPoints() const;
|
void UpdateActionPoints() const;
|
||||||
|
|
||||||
|
void AddBattleLogMessage(FString Message);
|
||||||
};
|
};
|
Loading…
Reference in New Issue
Block a user