+49
-2
@@ -2324,6 +2324,53 @@
|
||||
|
||||
do
|
||||
|
||||
-- Create configuration panel
|
||||
local QuestPanel = LeaPlusLC:CreatePanel("Automate quests", "QuestPanel")
|
||||
|
||||
LeaPlusLC:MakeTx(QuestPanel, "Settings", 16, -72)
|
||||
LeaPlusLC:MakeCB(QuestPanel, "AutoQuestAvailable", "Accept available quests automatically", 16, -92, false, "If checked, available quests will be accepted automatically.")
|
||||
LeaPlusLC:MakeCB(QuestPanel, "AutoQuestCompleted", "Turn-in completed quests automatically", 16, -112, false, "If checked, completed quests will be turned-in automatically.")
|
||||
LeaPlusLC:MakeCB(QuestPanel, "AutoQuestShift", "Require override key for quest automation", 16, -132, false, "If checked, you will need to hold the override key down for quests to be automated.|n|nIf unchecked, holding the override key will prevent quests from being automated.")
|
||||
|
||||
LeaPlusLC:CreateDropDown("AutoQuestKeyMenu", "Override key", QuestPanel, 146, "TOPLEFT", 356, -115, {L["SHIFT"], L["ALT"], L["CONTROL"], L["CMD (MAC)"]}, "")
|
||||
|
||||
-- Help button hidden
|
||||
QuestPanel.h:Hide()
|
||||
|
||||
-- Back button handler
|
||||
QuestPanel.b:SetScript("OnClick", function()
|
||||
QuestPanel:Hide(); LeaPlusLC["PageF"]:Show(); LeaPlusLC["Page1"]:Show();
|
||||
return
|
||||
end)
|
||||
|
||||
-- Reset button handler
|
||||
QuestPanel.r:SetScript("OnClick", function()
|
||||
|
||||
-- Reset checkboxes
|
||||
LeaPlusLC["AutoQuestShift"] = "Off"
|
||||
LeaPlusLC["AutoQuestAvailable"] = "On"
|
||||
LeaPlusLC["AutoQuestCompleted"] = "On"
|
||||
LeaPlusLC["AutoQuestKeyMenu"] = 1
|
||||
|
||||
-- Refresh panel
|
||||
QuestPanel:Hide(); QuestPanel:Show()
|
||||
|
||||
end)
|
||||
|
||||
-- Show panal when options panel button is clicked
|
||||
LeaPlusCB["AutomateQuestsBtn"]:SetScript("OnClick", function()
|
||||
if IsShiftKeyDown() and IsControlKeyDown() then
|
||||
-- Preset profile
|
||||
LeaPlusLC["AutoQuestShift"] = "Off"
|
||||
LeaPlusLC["AutoQuestAvailable"] = "On"
|
||||
LeaPlusLC["AutoQuestCompleted"] = "On"
|
||||
LeaPlusLC["AutoQuestKeyMenu"] = 1
|
||||
else
|
||||
QuestPanel:Show()
|
||||
LeaPlusLC:HideFrames()
|
||||
end
|
||||
end)
|
||||
|
||||
local addon = CreateFrame('Frame')
|
||||
addon.completed_quests = {}
|
||||
addon.uncompleted_quests = {}
|
||||
@@ -2462,7 +2509,7 @@
|
||||
end
|
||||
|
||||
----------------------------------------------------------------------
|
||||
-- Sort game options addon list
|
||||
-- Sort game options addon list - not present in 3.3.5
|
||||
----------------------------------------------------------------------
|
||||
|
||||
--if LeaPlusLC["CharAddonList"] == "On" then
|
||||
@@ -2475,7 +2522,7 @@
|
||||
|
||||
----------------------------------------------------------------------
|
||||
-- Sell junk automatically (no reload required)
|
||||
-- Not 2.4.3 compatible
|
||||
-- Not 2.4.3 compatible - kek
|
||||
----------------------------------------------------------------------
|
||||
|
||||
do
|
||||
|
||||
Reference in New Issue
Block a user