-- LibDropDownMenu is not compatible with classic. -- This file will act as a slug to polyfill using WoW globals. local buildNumber = select(4, _G.GetBuildInfo()) local isDragonflight = buildNumber >= 100000; if (not isDragonflight) then local DDM = LibStub:GetLibrary("LibDropDownMenu"); local k, v for k,v in pairs (DDM) do if (_G[k]) then DDM[k] = _G[k] end end function DDM.Create_DropDownMenuButton (name, parent, options) return CreateFrame("Frame", name, parent, "UIDropDownMenuButtonTemplate"); end function DDM.Create_DropDownMenuList (name, parent, options) return CreateFrame("Frame", name, parent, "UIDropDownListTemplate "); end function DDM.Create_DropDownMenu (name, parent, options) return CreateFrame("Frame", name, parent, "UIDropDownMenuTemplate"); end end