almost finished
This commit is contained in:
parent
519f7966b7
commit
de988131a4
@ -68,7 +68,7 @@ end
|
||||
|
||||
function _cleanUpItems()
|
||||
for _, v in pairs(ScrollingFrame:GetChildren()) do
|
||||
if v:IsA("ImageButton") then
|
||||
if v:IsA("Frame") then
|
||||
v:Destroy()
|
||||
end
|
||||
end
|
||||
@ -94,7 +94,7 @@ function GarageUIHandler.SetItems(items, currentTab)
|
||||
for _, itemModel in items do
|
||||
local ui = _newTemplate(itemModel)
|
||||
|
||||
ui.Activated:Connect(function()
|
||||
ui.ITEM_BUTTON.Activated:Connect(function()
|
||||
GarageUIHandler.Events.OnItemClicked:Fire(itemModel)
|
||||
end)
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user