almost finished

This commit is contained in:
FerrDev 2026-05-28 21:37:51 +02:00
parent 519f7966b7
commit de988131a4

View File

@ -68,7 +68,7 @@ end
function _cleanUpItems() function _cleanUpItems()
for _, v in pairs(ScrollingFrame:GetChildren()) do for _, v in pairs(ScrollingFrame:GetChildren()) do
if v:IsA("ImageButton") then if v:IsA("Frame") then
v:Destroy() v:Destroy()
end end
end end
@ -94,7 +94,7 @@ function GarageUIHandler.SetItems(items, currentTab)
for _, itemModel in items do for _, itemModel in items do
local ui = _newTemplate(itemModel) local ui = _newTemplate(itemModel)
ui.Activated:Connect(function() ui.ITEM_BUTTON.Activated:Connect(function()
GarageUIHandler.Events.OnItemClicked:Fire(itemModel) GarageUIHandler.Events.OnItemClicked:Fire(itemModel)
end) end)
end end