almost finished
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user