{text=L["In Teams First"],check=qm.IsActiveSort,var="QueueSortInTeamsFirst",sort=C.QUEUE_SORT_TEAMS,isChecked=qm.IsFirstChecked,func=qm.SetFirstSort,icon="Interface\\AddOns\\Rematch\\textures\\badges-borders",iconCoords={0.5,0.625,0.125,0.25}},
{text=L["Active Sort"],check=true,isChecked=qm.IsActiveSort,func=qm.ToggleActiveSort,tooltipBody=L["The queue will automatically order pets by the sort criteria in the menu options above. The order of pets may automatically change as they gain xp or get added/removed from the queue.\n\nYou cannot manually change the order of pets and still keep the queue actively sorted."]},
{text=L["Pause Preferences"],check=true,isChecked=qm.IsPreferencesPaused,func=qm.TogglePreferencesPaused,tooltipBody=L["Suspend all criteria from default, team and group preferences.\n\nWhile preferences are paused, the top-most pet in the queue will be chosen if it can be loaded."]},
{spacer=true},
{text=L["Fill Queue"],func=qm.FillQueue,tooltipBody=L["Fill the leveling queue with one of each version of a pet that can level from the filtered pet list, that you don't have a level 25 copy or one in the queue already."]},
{text=L["Fill Queue More"],hidden=qm.NotShowFillQueueMore,fillMore=true,func=qm.FillQueue,tooltipBody=L["Fill the leveling queue with one of each version of a pet that can level from the filtered pet list, regardless whether you have any at level 25 or one in the queue already."]},
{text=L["Empty Queue"],isDisabled=qm.IsQueueEmpty,func=qm.EmptyQueue,tooltipBody=L["Remove all pets from the leveling queue."]},
{spacer=true},
{text=L["Export Queue"],isDisabled=qm.IsQueueEmpty,func=qm.ExportQueue,tooltipBody=format(L["Export all pets in the leveling queue for later importing.\n\n%sNote\124r: Rematch will make a best guess what to import, but there's no guarantee the exact same pets will import, especially after they've leveled. This works best without many duplicates."],C.HEX_WHITE)},
{text=L["Import Queue"],func=qm.ImportQueue,tooltipBody=format(L["Import pets to the queue that have been previously exported.\n\n%sNote\124r: Rematch will make a best guess what to import, but there's no guarantee the exact same pets will import, especially after they've leveled. This works best without many duplicates."],C.HEX_WHITE)},
{text=L["Help"],icon="Interface\\Common\\help-i",isHelp=true,hidden=function()returnsettings.HideMenuHelpend,iconCoords={0.15,0.85,0.15,0.85},tooltipBody=L["This is the leveling queue. Drag pets you want to level here.\n\nRight click any of the three battle pet slots and choose 'Put Leveling Pet Here' to mark it as a leveling slot you want controlled by the queue.\n\nWhile a leveling slot is active, the queue will fill the slot with the top-most pet in the queue. When this pet reaches level 25 (gratz!) it will leave the queue and the next pet in the queue will take its place.\n\nTeams saved with a leveling slot will reserve that slot for future leveling pets."]},
{text=BATTLE_PET_RELEASE,hidden=pm.PetNotReleasable,isDisabled=pm.PetIsSlotted,disabledTooltip=L["Slotted pets can't be released."],func=pm.ReleasePetFunc},
self.Feedback:Set("warning",format(L["%s is already in the queue and Active Sort is enabled."],rematch.petInfo:Fetch(subject.petID).formattedName))
self.Text:SetText(format(L["The queue controls the order of pets while it's actively sorted.\n\nTo move this pet within the queue, Active Sort needs to be turned off."],rematch.petInfo:Fetch(subject.petID).formattedName))
self.CheckButton:SetText(L["Don't Ask To Stop Active Sort"])
end,
acceptFunc=function(self,info,subject)
ifself.CheckButton:GetChecked()then
settings.DontConfirmActiveSort=true
end
settings.QueueActiveSort=false-- if active sort and in the queue, turn off active sort and move to new position