32 lines
767 B
Lua
32 lines
767 B
Lua
---@class WB_WeaponPartItem_C:UUserWidget
|
|
---@field Image_PartIcon UImage
|
|
--Edit Below--
|
|
local WB_WeaponPartItem = { bInitDoOnce = false; };
|
|
|
|
--[==[ Construct
|
|
function WB_WeaponPartItem:Construct()
|
|
|
|
end
|
|
-- Construct ]==]
|
|
|
|
-- function WB_WeaponPartItem:Tick(MyGeometry, InDeltaTime)
|
|
|
|
-- end
|
|
|
|
-- function WB_WeaponPartItem:Destruct()
|
|
|
|
-- end
|
|
|
|
function WB_WeaponPartItem:SetItemID(InID)
|
|
local ItemInfo = UGCItemSystem.GetItemData(InID);
|
|
if ItemInfo then
|
|
UE.AsyncLoadAsset_New(ItemInfo.ItemSmallIcon_n,
|
|
function(Tex) self.Image_PartIcon:SetBrushFromTexture(Tex);
|
|
end, nil,
|
|
true)
|
|
else
|
|
UGCLogSystem.LogError("[WB_WeaponPartItem_SetItemID] ItemInfo is nil")
|
|
end
|
|
end
|
|
|
|
return WB_WeaponPartItem; |