UGCProjects/SoldierWar/Script/UI/InTest/Log/WB_TestLogItem.lua
2025-01-04 23:00:19 +08:00

32 lines
661 B
Lua

---@class WB_TestLogItem_C:UUserWidget
---@field TextBlock_Log UTextBlock
--Edit Below--
local WB_TestLogItem = { bInitDoOnce = false; };
WB_TestLogItem.InUse = false;
--[==[ Construct
function WB_TestLogItem:Construct()
end
-- Construct ]==]
function WB_TestLogItem:LuaInit()
if self.bInitDoOnce then return ; end
self.bInitDoOnce = true;
end
function WB_TestLogItem:SetInfo(Info)
self.TextBlock_Log:SetColorAndOpacity(UITool.MakeSlateColor(LogColorConfig[Info.Color]));
self.TextBlock_Log:SetText(Info.Str);
end
-- function WB_TestLogItem:Tick(MyGeometry, InDeltaTime)
-- end
-- function WB_TestLogItem:Destruct()
-- end
return WB_TestLogItem;