Skip to content

Commit

Permalink
10.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaliborc committed Oct 16, 2023
1 parent f6caed0 commit e7cb93d
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 19 deletions.
14 changes: 14 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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).
8 changes: 4 additions & 4 deletions Scrap_Broker.lua
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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

Expand Down
13 changes: 0 additions & 13 deletions Scrap_Broker.toc

This file was deleted.

13 changes: 13 additions & 0 deletions Scrap_Broker_Mainline.toc
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions Scrap_Broker_Vanilla.toc
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions Scrap_Broker_Wrath.toc
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e7cb93d

Please sign in to comment.