9 Commits

4 changed files with 402 additions and 175 deletions

View File

@ -1,9 +1,8 @@
## Interface: 50400
## Author: Ramble (modified by Isharra) (updated by thegabbert) (converted to Ace3 by Takika)
## Version: 51
## Title: MyBags |cff007FFF -Ace3-|r
## Notes: Complete Replacement for Inventory and Bank Bags.
## OptionalDeps: MyBagsCache, DataStore_Containers
## OptionalDeps: MyBagsCache, DataStore, DataStore_Containers, DataStore_Characters
## SavedVariables: MyInventoryDB, MyBankDB, MyEquipmentDB
Embeds.xml
@ -14,4 +13,3 @@ MyBagsCore\MyBags.xml
MyInventory\MyInventory.xml
MyBank\MyBank.xml
MyEquipment\MyEquipment.xml

View File

@ -11,7 +11,10 @@ local function GetItemInfoFromLink(l)
if (not l) then
return
end
local c, id, il, n = select(3, strfind(l, "|cff(%x+)|Hitem:(%-?%d+)([^|]+)|h%[(.-)%]|h|r"))
local c, t, id, il, n = select(3, strfind(l, "|cff(%x+)|H(%l+):(%-?%d+)([^|]+)|h%[(.-)%]|h|r"))
-- return n, c, id .. il, id, t
return n, c, id .. il, id
end

File diff suppressed because it is too large Load Diff

View File

@ -406,18 +406,19 @@ function MyBank:OnEnable()
end
MyBankFramePortrait:SetTexture("Interface\\Addons\\MyBags\\Skin\\MyBankPortrait")
StaticPopupDialogs["PURCHASE_BANKBAG"] = {
preferredIndex = STATICPOPUPS_NUMDIALOGS,
text = TEXT(CONFIRM_BUY_BANK_SLOT),
button1 = TEXT(YES),
button2 = TEXT(NO),
OnAccept = function()
OnAccept = function(self)
if CT_oldPurchaseSlot then
CT_oldPurchaseSlot()
else
PurchaseSlot()
end;
end,
OnShow = function()
MoneyFrame_Update(this:GetName().."MoneyFrame", GetBankSlotCost());
OnShow = function(self)
MoneyFrame_Update(self:GetName() .. "MoneyFrame", GetBankSlotCost());
end,
showAlert = 1,
hasMoneyFrame = 1,