martin #12
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -14,14 +14,14 @@ void ULuckyRobotsGameInstance::DoSendMessage(FString SendValue)
|
|||||||
LuckyRobotsGameState->DoSendMessage(SendValue);
|
LuckyRobotsGameState->DoSendMessage(SendValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
DoLogItemAdd("Receive", SendValue, 0);
|
DoLogItemAdd("Receive", SendValue, 0, ELogItemType::Debug);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ULuckyRobotsGameInstance::DoLogItemAdd(FString Topic, FString MsgText, int Type)
|
void ULuckyRobotsGameInstance::DoLogItemAdd(FString Topic, FString MsgText, int Type, ELogItemType LogItemType)
|
||||||
{
|
{
|
||||||
if (GameUserWidget)
|
if (GameUserWidget)
|
||||||
{
|
{
|
||||||
GameUserWidget->DoLogItemAdd(Topic, MsgText, Type);
|
GameUserWidget->DoLogItemAdd(Topic, MsgText, Type, LogItemType);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
#include "CoreMinimal.h"
|
#include "CoreMinimal.h"
|
||||||
#include "Blueprint/UserWidget.h"
|
#include "Blueprint/UserWidget.h"
|
||||||
|
#include "SharedDef.h"
|
||||||
#include "GameUserWidget.generated.h"
|
#include "GameUserWidget.generated.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -19,7 +20,7 @@ protected:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
UFUNCTION(BlueprintImplementableEvent)
|
UFUNCTION(BlueprintImplementableEvent)
|
||||||
void DoLogItemAdd(const FString& Topic, const FString& MsgText,int Type);
|
void DoLogItemAdd(const FString& Topic, const FString& MsgText,int Type, ELogItemType LogItemType);
|
||||||
|
|
||||||
UFUNCTION(BlueprintImplementableEvent)
|
UFUNCTION(BlueprintImplementableEvent)
|
||||||
void DoRefreshListView();
|
void DoRefreshListView();
|
||||||
|
@ -51,7 +51,7 @@ public:
|
|||||||
void DoSendMessage(FString SendValue);
|
void DoSendMessage(FString SendValue);
|
||||||
|
|
||||||
UFUNCTION(BlueprintCallable)
|
UFUNCTION(BlueprintCallable)
|
||||||
void DoLogItemAdd(FString Topic, FString MsgText, int Type);
|
void DoLogItemAdd(FString Topic, FString MsgText, int Type, ELogItemType LogItemType);
|
||||||
|
|
||||||
UFUNCTION(BlueprintCallable)
|
UFUNCTION(BlueprintCallable)
|
||||||
void SwitchGamePaused();
|
void SwitchGamePaused();
|
||||||
|
@ -108,7 +108,14 @@ enum class ESaveDataType : uint8
|
|||||||
none UMETA(DisplayName = "none")
|
none UMETA(DisplayName = "none")
|
||||||
};
|
};
|
||||||
|
|
||||||
|
UENUM(BlueprintType)
|
||||||
|
enum class ELogItemType : uint8
|
||||||
|
{
|
||||||
|
Debug UMETA(DisplayName = "Debug"),
|
||||||
|
War UMETA(DisplayName = "War"),
|
||||||
|
Error UMETA(DisplayName = "Error"),
|
||||||
|
Consol UMETA(DisplayName = "Consol")
|
||||||
|
};
|
||||||
USTRUCT(BlueprintType)
|
USTRUCT(BlueprintType)
|
||||||
struct FRobotData : public FTableRowBase
|
struct FRobotData : public FTableRowBase
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user