FrameButton:SetScript("OnClick", function() local index = GetCraftSelectionIndex() DoCraft(index) end)