/trunk
-- BuyEmAll - By Cogwheel. |
BuyEmAll = {} |
local L = BUYEMALL_LOCALS |
local IS_WRATH = tonumber(select(4, GetBuildInfo())) >= 30000 |
-- These are used for the text on the Max and Stack buttons. See BuyEmAll.xml. |
BUYEMALL_MAX = L.MAX |
BUYEMALL_STACK = L.STACK |
--[[ |
It's ALIVE!!! Muahahahahhahahaa!!!!!! |
]] |
} |
self.OrigMerchantItemButton_OnModifiedClick = MerchantItemButton_OnModifiedClick |
MerchantItemButton_OnModifiedClick = function(button, ...) |
return self:MerchantItemButton_OnModifiedClick(button, ...) |
MerchantItemButton_OnModifiedClick = function(...) |
if IS_WRATH then |
return self:MerchantItemButton_OnModifiedClick(...) |
else |
self:MerchantItemButton_OnModifiedClick(this, ...) |
end |
end |
self.OrigMerchantFrame_OnHide = MerchantFrame:GetScript("OnHide") |
collapse = 1, |
} |
BuyEmAllMoneyFrame.small = 1 |
MoneyFrame_SetType(frame, "BUYEMALL") |
if IS_WRATH then |
MoneyFrame_SetType(frame, "BUYEMALL") |
else |
MoneyFrame_SetType("BUYEMALL") |
end |
end |