--Sets the current frame.

function ControllerGroups:SetSelectedFrame(NewFrame)
	if LastActiveGroup and ControllerConnected() and LastActiveGroup:FrameInGroup(NewFrame) then
		LastFrame = NewFrame
		GuiService.SelectedObject = NewFrame
		UpdateActiveButton()
	end
end


