5 Commits

Author SHA1 Message Date
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
0ab9c6cff0 Fix the glowing newitem bug 2014-02-11 22:40:45 +01:00
3 changed files with 302 additions and 141 deletions

View File

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

File diff suppressed because it is too large Load Diff

View File

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