Mercurial > wow > inventory
comparison Core.lua @ 84:3bec0ea44607
Cleaned the Inventorium folder; moved all classes to classes directory, modules to modules directory and support addons to plugins directory. In addition support addons are now references within XML files rather than inside the TOC.
Fixed the default local item count setting, you can now exclude bag and AH data from it.
Fixed some mover algorithm bugs. Mover can no longer freeze the game but instead will terminate the process after a 1000 passes.
Now reversing the moves table after making it, rather than every single time it is used.
Fixed guild bank support.
Now displaying the amount of items moved.
Scanner now scans all guild bank tabs rather than only the current.
Fixed a bug with local item data not being retrieved properly.
Disabled ?enterClicksFirstButton? within dialogs as this causes the dialog to consume all keypress.
Events are now at the addon object rather than local.
author | Zerotorescue |
---|---|
date | Thu, 06 Jan 2011 20:05:30 +0100 |
parents | f885805da5d6 |
children | a12d22ef3f39 |
comparison
equal
deleted
inserted
replaced
83:6b60f7a1410c | 84:3bec0ea44607 |
---|---|
189 -- Remember the version of our database | 189 -- Remember the version of our database |
190 self.db.global.version = addonRevision; | 190 self.db.global.version = addonRevision; |
191 end | 191 end |
192 end | 192 end |
193 | 193 |
194 function addon:GetItemId(itemLink) | |
195 itemLink = itemLink and itemLink:match("|Hitem:([-0-9]+):"); -- if itemLink is nil, it won't execute the second part | |
196 itemLink = itemLink and tonumber(itemLink); | |
197 | |
198 return itemLink; | |
199 end | |
200 | |
201 function addon:GetOptionByKey(groupName, optionName, noDefault) | 194 function addon:GetOptionByKey(groupName, optionName, noDefault) |
202 if groupName and addon.db.profile.groups[groupName] and addon.db.profile.groups[groupName][optionName] ~= nil then | 195 if groupName and addon.db.profile.groups[groupName] and addon.db.profile.groups[groupName][optionName] ~= nil then |
203 -- If this option exists within the settings of this group | 196 -- If this option exists within the settings of this group |
204 | 197 |
205 return addon.db.profile.groups[groupName][optionName]; | 198 return addon.db.profile.groups[groupName][optionName]; |
445 end | 438 end |
446 | 439 |
447 DEFAULT_CHAT_FRAME:AddMessage(text or "", red, green, blue, nil, 5); | 440 DEFAULT_CHAT_FRAME:AddMessage(text or "", red, green, blue, nil, 5); |
448 end | 441 end |
449 | 442 |
443 function addon:GetItemID(itemLink) | |
444 itemLink = itemLink and itemLink:match("|Hitem:([-0-9]+):"); -- if itemLink is nil, it won't execute the second part | |
445 itemLink = itemLink and tonumber(itemLink); | |
446 | |
447 return itemLink; | |
448 end | |
449 | |
450 -- Debug | 450 -- Debug |
451 | 451 |
452 function addon:Debug(t) | 452 function addon:Debug(t) |
453 if not self.debugChannel and self.debugChannel ~= false then | 453 if not self.debugChannel and self.debugChannel ~= false then |
454 -- We want to check just once, so if you add a debug channel later just do a /reload (registering an event for this is wasted resources) | 454 -- We want to check just once, so if you add a debug channel later just do a /reload (registering an event for this is wasted resources) |