Optimize some WB_GameWidget codes and Gameinstance codes

This commit is contained in:
martinluckyrobots
2025-04-04 10:21:44 +08:00
parent 0a4ec92d9a
commit 3eb18f4d20
25 changed files with 62 additions and 6 deletions

View File

@ -14,14 +14,14 @@ void ULuckyRobotsGameInstance::DoSendMessage(FString SendValue)
LuckyRobotsGameState->DoSendMessage(SendValue);
}
DoLogItemAdd("Receive", SendValue, 0, ELogItemType::Debug);
DoLogItemAdd("Receive", SendValue, ELogItemType::Debug);
}
void ULuckyRobotsGameInstance::DoLogItemAdd(FString Topic, FString MsgText, int Type, ELogItemType LogItemType)
void ULuckyRobotsGameInstance::DoLogItemAdd(FString Topic, FString MsgText, ELogItemType LogItemType)
{
if (GameUserWidget)
{
GameUserWidget->DoLogItemAdd(Topic, MsgText, Type, LogItemType);
GameUserWidget->DoLogItemAdd(Topic, MsgText, LogItemType);
}
}