Update 2.0

- Added a new feature which allows syncing between multiple accounts (in beta)
- Added new consumes to the itemlist
- Added materials or objectives needed to make the consumes in the tooltips
- Fixed some wrong ID's in the itemlist
- Increased Performance in item scanning
- Added class color codes to the preset lists and ordered the items better
This commit is contained in:
Cinecom
2024-12-23 15:55:18 +01:00
parent 92f1e26688
commit 9a9ec8b77d
+22 -18
View File
@@ -2294,8 +2294,13 @@ function ConsumesManager_CreateSettingsContent(parentFrame)
enableCategoriesCheckbox:SetChecked(ConsumesManager_Options.enableCategories) enableCategoriesCheckbox:SetChecked(ConsumesManager_Options.enableCategories)
enableCategoriesCheckbox:SetScript("OnClick", function() enableCategoriesCheckbox:SetScript("OnClick", function()
ConsumesManager_Options.enableCategories = enableCategoriesCheckbox:GetChecked() if enableCategoriesCheckbox:GetChecked() then
ConsumesManager_UpdateAllContent() ConsumesManager_Options.enableCategories = true
else
ConsumesManager_Options.enableCategories = false
end
ConsumesManager_UpdateManagerContent()
ConsumesManager_UpdatePresetsConsumables()
end) end)
local enableCategoriesLabel = enableCategoriesFrame:CreateFontString(nil, "OVERLAY", "GameFontNormal") local enableCategoriesLabel = enableCategoriesFrame:CreateFontString(nil, "OVERLAY", "GameFontNormal")
@@ -2326,8 +2331,13 @@ function ConsumesManager_CreateSettingsContent(parentFrame)
showUseButtonCheckbox:SetChecked(ConsumesManager_Options.showUseButton) showUseButtonCheckbox:SetChecked(ConsumesManager_Options.showUseButton)
showUseButtonCheckbox:SetScript("OnClick", function() showUseButtonCheckbox:SetScript("OnClick", function()
ConsumesManager_Options.showUseButton = showUseButtonCheckbox:GetChecked() if showUseButtonCheckbox:GetChecked() then
ConsumesManager_UpdateAllContent() ConsumesManager_Options.showUseButton = true
else
ConsumesManager_Options.showUseButton = false
end
ConsumesManager_UpdateManagerContent()
ConsumesManager_UpdatePresetsConsumables()
end) end)
local showUseButtonLabel = showUseButtonFrame:CreateFontString(nil, "OVERLAY", "GameFontNormal") local showUseButtonLabel = showUseButtonFrame:CreateFontString(nil, "OVERLAY", "GameFontNormal")
@@ -2620,13 +2630,13 @@ function ConsumesManager_CreateSettingsContent(parentFrame)
if noticeType == "WRONG_PASSWORD" and channelName == inputChannelName then if noticeType == "WRONG_PASSWORD" and channelName == inputChannelName then
channelmsg = "WRONG_PASSWORD" channelmsg = "WRONG_PASSWORD"
--DEFAULT_CHAT_FRAME:AddMessage(noticeType) DEFAULT_CHAT_FRAME:AddMessage(noticeType)
elseif noticeType == "NOT_MODERATOR" and channelName == inputChannelName then elseif noticeType == "NOT_MODERATOR" and channelName == inputChannelName then
channelmsg = "NOT_MODERATOR" channelmsg = "NOT_MODERATOR"
--DEFAULT_CHAT_FRAME:AddMessage(noticeType) DEFAULT_CHAT_FRAME:AddMessage(noticeType)
elseif noticeType == "YOU_JOINED" and channelName == inputChannelName then elseif noticeType == "YOU_JOINED" and channelName == inputChannelName then
channelmsg = "YOU_JOINED" channelmsg = "YOU_JOINED"
--DEFAULT_CHAT_FRAME:AddMessage(noticeType) DEFAULT_CHAT_FRAME:AddMessage(noticeType)
end end
end) end)
@@ -2673,11 +2683,12 @@ function ConsumesManager_CreateSettingsContent(parentFrame)
if one_attempt == 0 then if one_attempt == 0 then
--DEFAULT_CHAT_FRAME:AddMessage("message: " .. channelmsg) DEFAULT_CHAT_FRAME:AddMessage("message: " .. channelmsg)
if channelmsg == "WRONG_PASSWORD" then if channelmsg == "WRONG_PASSWORD" then
final_result = "WRONG_PASSWORD" final_result = "WRONG_PASSWORD"
elseif channelmsg == "YOU_JOINED" then elseif channelmsg == "YOU_JOINED" then
DEFAULT_CHAT_FRAME:AddMessage("setting password")
SetChannelPassword(ctext, ptext) SetChannelPassword(ctext, ptext)
end end
end end
@@ -2691,7 +2702,7 @@ function ConsumesManager_CreateSettingsContent(parentFrame)
if one_attempt == 1 then if one_attempt == 1 then
--DEFAULT_CHAT_FRAME:AddMessage("message: " .. channelmsg) DEFAULT_CHAT_FRAME:AddMessage("message: " .. channelmsg)
if channelmsg == "YOU_JOINED" then if channelmsg == "YOU_JOINED" then
final_result = "SUCCESS" final_result = "SUCCESS"
@@ -2710,7 +2721,7 @@ function ConsumesManager_CreateSettingsContent(parentFrame)
if one_attempt == 2 then if one_attempt == 2 then
--DEFAULT_CHAT_FRAME:AddMessage("message: " .. channelmsg) DEFAULT_CHAT_FRAME:AddMessage("message: " .. channelmsg)
if try_again == true then if try_again == true then
@@ -2726,7 +2737,7 @@ function ConsumesManager_CreateSettingsContent(parentFrame)
if one_attempt == 3 then if one_attempt == 3 then
--DEFAULT_CHAT_FRAME:AddMessage("message: " .. channelmsg) DEFAULT_CHAT_FRAME:AddMessage("message: " .. channelmsg)
if try_again == true then if try_again == true then
@@ -2799,13 +2810,6 @@ function ConsumesManager_CreateSettingsContent(parentFrame)
delayFrame:Show() delayFrame:Show()
end) end)
end) end)
end end
function ConsumesManager_UpdateSettingsContent() function ConsumesManager_UpdateSettingsContent()