Mercurial > wow > cyborg-mmo7
diff RatPageController.lua @ 25:b7074b47cfc7
Simplified the object system of the WowObject-s.
author | madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09 |
---|---|
date | Thu, 25 Apr 2013 01:30:46 +0000 |
parents | cccc7661a2e6 |
children | 6ce173840e68 |
line wrap: on
line diff
--- a/RatPageController.lua Thu Apr 25 01:30:41 2013 +0000 +++ b/RatPageController.lua Thu Apr 25 01:30:46 2013 +0000 @@ -36,7 +36,7 @@ CyborgMMO_RatPageModel:SetObjectOnButton(slot.Id, CyborgMMO_RatPageModel:GetMode(), self:GetCursorObject()) if slotObject then - slotObject.Pickup() + slotObject:Pickup() end end @@ -48,8 +48,7 @@ function RatPageController_methods:GetCursorObject() local cursorObject = nil if GetCursorInfo() then - local type,detail,subdetail = GetCursorInfo() - cursorObject = CyborgMMO_WowObject.Create(type, detail, subdetail) + cursorObject = CyborgMMO_CreateWowObject(GetCursorInfo()) ClearCursor() end return cursorObject