8 Commits

Author SHA1 Message Date
9c84784542 line endings again 2014-10-21 18:12:30 +02:00
5775870bcd line endings 2014-10-21 18:11:43 +02:00
00683de69b TOC update 2014-10-21 18:10:14 +02:00
2b8a6af9e2 Core fixes for 6.0.2 2014-10-21 18:07:13 +02:00
232f424a6f Fix for bankslot purchase error 2014-02-13 11:34:24 +01:00
8ccff635a0 Try to avoid StaticPopupDialogs taint 2014-02-12 13:26:56 +01:00
2298e37175 Code cleanup 2014-02-12 13:16:53 +01:00
191ee4dd73 toc cleanup, add some more OptionalDeps 2014-02-12 13:16:08 +01:00
3 changed files with 343 additions and 148 deletions

View File

@ -1,9 +1,8 @@
## Interface: 50400
## Interface: 60200
## 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

File diff suppressed because it is too large Load Diff

View File

@ -399,6 +399,7 @@ function MyBank:OnEnable()
MyBankFrameBag4:SetID(9)
MyBankFrameBag5:SetID(10)
MyBankFrameBag6:SetID(11)
if self.GetOpt("Replace") then
BankFrame:UnregisterEvent("BANKFRAME_OPENED")
BankFrame:UnregisterEvent("BANKFRAME_CLOSED")
@ -406,18 +407,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,