diff 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
line wrap: on
line diff
--- a/Core.lua	Thu Jan 06 11:04:55 2011 +0100
+++ b/Core.lua	Thu Jan 06 20:05:30 2011 +0100
@@ -191,13 +191,6 @@
 	end
 end
 
-function addon:GetItemId(itemLink)
-	itemLink = itemLink and itemLink:match("|Hitem:([-0-9]+):"); -- if itemLink is nil, it won't execute the second part
-	itemLink = itemLink and tonumber(itemLink);
-	
-	return itemLink;
-end
-
 function addon:GetOptionByKey(groupName, optionName, noDefault)
 	if groupName and addon.db.profile.groups[groupName] and addon.db.profile.groups[groupName][optionName] ~= nil then
 		-- If this option exists within the settings of this group
@@ -447,6 +440,13 @@
 	DEFAULT_CHAT_FRAME:AddMessage(text or "", red, green, blue, nil, 5);
 end
 
+function addon:GetItemID(itemLink)
+	itemLink = itemLink and itemLink:match("|Hitem:([-0-9]+):"); -- if itemLink is nil, it won't execute the second part
+	itemLink = itemLink and tonumber(itemLink);
+	
+	return itemLink;
+end
+
 -- Debug
 
 function addon:Debug(t)