---@class WB_Backpack_OtherItem_C:UUserWidget ---@field Image_PartIcon UImage ---@field TextBlock_Count UTextBlock --Edit Below-- ---@type WB_Backpack_OtherItem_C local WB_Backpack_OtherItem = { bInitDoOnce = false; }; --[==[ Construct function WB_Backpack_OtherItem:Construct() end -- Construct ]==] -- function WB_Backpack_OtherItem:Tick(MyGeometry, InDeltaTime) -- end -- function WB_Backpack_OtherItem:Destruct() -- end --- @param InType EMedicationType 类型 ---@param InCount int 数量 function WB_Backpack_OtherItem:SetOtherItemType(InType, InCount) local Info = UGCItemSystem.GetItemData(InType); UE.AsyncLoadObject(Info.ItemSmallIcon_n, function(TargetObject) self.Image_PartIcon:SetBrushFromTexture(TargetObject); end) self.TextBlock_Count:SetText(tostring(InCount)); end return WB_Backpack_OtherItem;