diff --git a/Changelog.md b/Changelog.md index 02d7791..452896a 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,3 +1,17 @@ +##### 10.0.2 +* Wrath TOC update. + +##### 10.0.1 +* Updated for latest Scrap version. +* Updated for new recommended style for Scrap plugins in the addon list (must update Scrap to look correct). + +#### 10.0.0 +* Updated for Dragonflight. +* Now destroys cheapest item on retail servers, as destroy all junk is now blocked by blizzard. + +#### 9.1.0 +* Updated for Chains of Domination. + #### 8.3.0 * Updated for Visions of Nzoth. diff --git a/README.md b/README.md index e2c6b17..42bd828 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Scrap Broker :moneybag: -[![Install](http://img.shields.io/badge/install-twitch-blueviolet)](https://www.curseforge.com/wow/addons/scrap-broker/files) -[![Patreon](http://img.shields.io/badge/donate-patreon-orange)](https://www.patreon.com/jaliborc) +[![Install](http://img.shields.io/badge/install-curseforge-484266)](https://www.curseforge.com/wow/addons/scrap-broker/files) +[![Patreon](http://img.shields.io/badge/donate-patreon-ff4d42)](https://www.patreon.com/jaliborc) Adds a DataBroker _launcher_ for [Scrap](https://github.com/Jaliborc/Scrap). diff --git a/Scrap_Broker.lua b/Scrap_Broker.lua index 98e5d7e..ce4b9f0 100644 --- a/Scrap_Broker.lua +++ b/Scrap_Broker.lua @@ -1,5 +1,5 @@ --[[ -Copyright 2010-2020 João Cardoso +Copyright 2010-2023 João Cardoso Scrap Broker is distributed under the terms of the GNU General Public License (Version 3). As a special exception, the copyright holders of this addon do not give permission to redistribute and/or modify it. @@ -34,15 +34,15 @@ end function Broker:OnUpdate() local value = self:GetReport() - self.icon = format('Interface/Addons/Scrap/art/%s-icon', value > 0 and 'enabled' or 'disabled') + self.icon = 'interface/addons/scrap/art/scrap-' .. (value > 0 and 'enabled' or 'disabled') self.text = GetMoneyString(value, true) end function Broker:OnClick(button) - if MerchantFrame:IsShown() and button ~= 'RightButton' then + if Scrap.Merchant:IsVisible() or button == 'RightButton' then Scrap.Merchant.OnClick(Broker, button) else - Scrap:DestroyJunk() + Scrap:DestroyCheapest() end end diff --git a/Scrap_Broker.toc b/Scrap_Broker.toc deleted file mode 100644 index 72abccb..0000000 --- a/Scrap_Broker.toc +++ /dev/null @@ -1,13 +0,0 @@ -## Interface: 11303 -## Title: |cffFFDE73Scrap Broker|r -## Notes: A DataBroker launcher for Scrap - -## Author: Jaliborc (João Cardoso) -## X-License: GNU General Public License Version 3 -## X-Category: Inventory -## Version: 8.3.0 - -## Dependencies: Scrap_Merchant - -libs\LibDataBroker-1.1\LibDataBroker-1.1.lua -Scrap_Broker.lua diff --git a/Scrap_Broker_Mainline.toc b/Scrap_Broker_Mainline.toc new file mode 100644 index 0000000..f026842 --- /dev/null +++ b/Scrap_Broker_Mainline.toc @@ -0,0 +1,13 @@ +## Title: Scrap |cff20ff20Broker|r +## IconTexture: Interface/Addons/Scrap/art/scrap-plugin +## Notes: A DataBroker launcher for Scrap.|n|cffbbbbbbBy João Cardoso|r|n|n|TInterface/Addons/Scrap/art/patreon:12:12|t |cff82c5ffpatreon.com/jaliborc|r|n|TInterface/Addons/Scrap/art/paypal:12:12|t |cff82c5ffpaypal.me/jaliborc|r|n|TInterface/Addons/Scrap/art/discord:12:12:0:-2|t |cff82c5ffbit.ly/discord-jaliborc|r|n|n +## Author: Jaliborc (João Cardoso) +## X-License: All Rights Reserved +## X-Category: Bags & Inventory + +## Dependencies: Scrap_Merchant +## Interface: 100107 +## Version: 10.0.2 + +libs\LibDataBroker-1.1\LibDataBroker-1.1.lua +Scrap_Broker.lua diff --git a/Scrap_Broker_Vanilla.toc b/Scrap_Broker_Vanilla.toc new file mode 100644 index 0000000..16114de --- /dev/null +++ b/Scrap_Broker_Vanilla.toc @@ -0,0 +1,12 @@ +## Title: |TInterface/Addons/Scrap/art/scrap-plugin:16:16|t Scrap |cff20ff20DataBroker|r +## Notes: A DataBroker launcher for Scrap.|n|cffbbbbbbBy João Cardoso|r|n|n|TInterface/Addons/Scrap/art/patreon:12:12|t |cff82c5ffpatreon.com/jaliborc|r|n|TInterface/Addons/Scrap/art/paypal:12:12|t |cff82c5ffpaypal.me/jaliborc|r|n|TInterface/Addons/Scrap/art/discord:12:12:0:-2|t |cff82c5ffbit.ly/discord-jaliborc|r|n|n +## Author: Jaliborc (João Cardoso) +## X-License: All Rights Reserved +## X-Category: Bags & Inventory + +## Dependencies: Scrap_Merchant +## Interface: 11404 +## Version: 10.0.2 + +libs\LibDataBroker-1.1\LibDataBroker-1.1.lua +Scrap_Broker.lua \ No newline at end of file diff --git a/Scrap_Broker_Wrath.toc b/Scrap_Broker_Wrath.toc new file mode 100644 index 0000000..4a85f8c --- /dev/null +++ b/Scrap_Broker_Wrath.toc @@ -0,0 +1,12 @@ +## Title: |TInterface/Addons/Scrap/art/scrap-plugin:16:16|t Scrap |cff20ff20DataBroker|r +## Notes: A DataBroker launcher for Scrap.|n|cffbbbbbbBy João Cardoso|r|n|n|TInterface/Addons/Scrap/art/patreon:12:12|t |cff82c5ffpatreon.com/jaliborc|r|n|TInterface/Addons/Scrap/art/paypal:12:12|t |cff82c5ffpaypal.me/jaliborc|r|n|TInterface/Addons/Scrap/art/discord:12:12:0:-2|t |cff82c5ffbit.ly/discord-jaliborc|r|n|n +## Author: Jaliborc (João Cardoso) +## X-License: All Rights Reserved +## X-Category: Bags & Inventory + +## Dependencies: Scrap_Merchant +## Interface: 30403 +## Version: 10.0.2 + +libs\LibDataBroker-1.1\LibDataBroker-1.1.lua +Scrap_Broker.lua \ No newline at end of file