Mercurial > wow > inventory
comparison Core.lua @ 40:abc824800387
Fixed some typos and cleaned up some files.
| author | Zerotorescue |
|---|---|
| date | Sun, 12 Dec 2010 16:37:33 +0100 |
| parents | 58fb38f0b447 |
| children | 87d68ccf0a8f |
comparison
equal
deleted
inserted
replaced
| 39:7451a8b85e1d | 40:abc824800387 |
|---|---|
| 19 | 19 |
| 20 -- SAVED VARIABLES | 20 -- SAVED VARIABLES |
| 21 | 21 |
| 22 local defaults = { | 22 local defaults = { |
| 23 global = { | 23 global = { |
| 24 groups = {}, | 24 groups = { |
| 25 }, | |
| 25 defaults = { | 26 defaults = { |
| 26 auctionPricingAddon = "Auctioneer", | 27 auctionPricingAddon = "Auctioneer", |
| 27 itemCountAddon = "Altoholic", | 28 itemCountAddon = "Altoholic", |
| 28 craftingAddon = "AdvancedTradeSkillWindow", | 29 craftingAddon = "AdvancedTradeSkillWindow", |
| 29 minimumStock = 60, | 30 minimumStock = 60, |
| 32 restockTarget = 60, | 33 restockTarget = 60, |
| 33 minCraftingQueue = 0.05, | 34 minCraftingQueue = 0.05, |
| 34 bonusQueue = 0.1, | 35 bonusQueue = 0.1, |
| 35 priceThreshold = 0, | 36 priceThreshold = 0, |
| 36 summaryHidePriceThreshold = false, | 37 summaryHidePriceThreshold = false, |
| 37 trackAtCharacters = {}, | 38 trackAtCharacters = { |
| 39 }, | |
| 38 localItemData = { | 40 localItemData = { |
| 39 ["Bag"] = true, | 41 ["Bag"] = true, |
| 40 ["Auction House"] = true, | 42 ["Auction House"] = true, |
| 41 }, | 43 }, |
| 42 summary = { | 44 summary = { |
| 51 green = 0.95, | 53 green = 0.95, |
| 52 }, | 54 }, |
| 53 }, | 55 }, |
| 54 }, | 56 }, |
| 55 factionrealm = { | 57 factionrealm = { |
| 56 characters = {}, | 58 characters = { |
| 59 }, | |
| 57 }, | 60 }, |
| 58 }; | 61 }; |
| 59 | 62 |
| 60 -- Register our saved variables database | 63 -- Register our saved variables database |
| 61 self.db = LibStub("AceDB-3.0"):New("InventoriumDB", defaults, true); | 64 self.db = LibStub("AceDB-3.0"):New("InventoriumDB", defaults, true); |
| 126 InterfaceOptions_AddCategory(frame); | 129 InterfaceOptions_AddCategory(frame); |
| 127 | 130 |
| 128 self:MakeItemLinkButtonWidget(); | 131 self:MakeItemLinkButtonWidget(); |
| 129 self:MakeConfigItemLinkButtonWidget(); | 132 self:MakeConfigItemLinkButtonWidget(); |
| 130 | 133 |
| 131 -- Remember this character is mine | 134 -- Remember this character is on this account |
| 132 local playerName = UnitName("player"); | 135 local playerName = UnitName("player"); |
| 133 if not self.db.factionrealm.characters[playerName] then | 136 if not self.db.factionrealm.characters[playerName] then |
| 134 self.db.factionrealm.characters[playerName] = true; | 137 self.db.factionrealm.characters[playerName] = true; |
| 135 | 138 |
| 136 -- Default to tracking on all chars, untracking is a convenience, not tracking by default would probably get multiple issue reports. | 139 -- Default to tracking on all chars, untracking is a convenience, not tracking by default would probably get multiple issue reports. |
| 384 | 387 |
| 385 AceGUI:RegisterWidgetType(widgetType, GetItemLinkButton, widgetVersion); | 388 AceGUI:RegisterWidgetType(widgetType, GetItemLinkButton, widgetVersion); |
| 386 end | 389 end |
| 387 | 390 |
| 388 local slashArgs = {}; | 391 local slashArgs = {}; |
| 389 local slashError = "Wrong arguement, the following arguements are available:"; | 392 local slashError = "Wrong argument, the following arguements are available:"; |
| 390 | 393 |
| 391 function addon:RegisterSlash(func, args, description) | 394 function addon:RegisterSlash(func, args, description) |
| 392 for _, arg in pairs(args) do | 395 for _, arg in pairs(args) do |
| 393 slashArgs[arg] = func; | 396 slashArgs[arg] = func; |
| 394 end | 397 end |
