Optimize some WB_GameWidget codes

This commit is contained in:
martinluckyrobots
2025-04-03 15:10:44 +08:00
parent 019d7980fa
commit 0a4ec92d9a
22 changed files with 14 additions and 6 deletions

View File

@ -14,14 +14,14 @@ void ULuckyRobotsGameInstance::DoSendMessage(FString 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)
{
GameUserWidget->DoLogItemAdd(Topic, MsgText, Type);
GameUserWidget->DoLogItemAdd(Topic, MsgText, Type, LogItemType);
}
}