Let’s say I have a set of DCollapsibleCategories - does anyone know of a way of making only one of them be maximised at a time? My attempt is shown below, but it doesn’t work. Basically, a way of causing clicking any of the categories to make them all minimised, except for that one.
for k,v in pairs( ModelCollapsibleCategories ) do v.OnMousePressed = function() for m,n in pairs(ModelCollapsibleCategories) do n:SetExpanded( 0 ) end v:SetExpanded( 1 ) ActiveCategory = k end end
v/n are the Collapsible Category objects.