Mercurial > wow > cyborg-mmo7
comparison RatPageView.lua @ 5:8428fa7cf0e4
Updated the profile to use macros and rename all the variables and functions with the prefix CyborgMMO. Added a tooltip to inform the user to assign the profile.
author | madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09 |
---|---|
date | Tue, 29 May 2012 10:26:40 +0000 |
parents | d186f8cd5000 |
children | 6cb9a2936580 |
comparison
equal
deleted
inserted
replaced
4:d186f8cd5000 | 5:8428fa7cf0e4 |
---|---|
62 | 62 |
63 -- Slot Class -- | 63 -- Slot Class -- |
64 CyborgMMO_SlotView = { | 64 CyborgMMO_SlotView = { |
65 new = function(self, parent) | 65 new = function(self, parent) |
66 self._assignedWowObject = nil; | 66 self._assignedWowObject = nil; |
67 self.UnCheckedTexture = self:GetNormalTexture(); | |
68 self:RegisterForClicks("LeftButtonUp", "RightButtonUp"); | 67 self:RegisterForClicks("LeftButtonUp", "RightButtonUp"); |
69 self.Id = self:GetID(); | 68 self.Id = self:GetID(); |
70 CyborgMMO_RatPageModel.Instance().AddObserver(self); | 69 CyborgMMO_RatPageModel.Instance().AddObserver(self); |
70 self.UnCheckedTexture = self:GetNormalTexture(); | |
71 | |
71 -- Object Method -- | 72 -- Object Method -- |
72 self.Clicked = function() | 73 self.Clicked = function() |
73 self:GetParent().SlotClicked(self) | 74 self:GetParent().SlotClicked(self) |
74 | 75 |
75 GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); | 76 GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); |
111 icon:SetTexture(nil); | 112 icon:SetTexture(nil); |
112 self:SetChecked(false); | 113 self:SetChecked(false); |
113 end | 114 end |
114 end | 115 end |
115 | 116 |
116 return self; | 117 return self; |
117 end | 118 end |
118 } | 119 } |
119 | 120 |
120 | 121 |
121 -- ModeButton -- | 122 -- ModeButton -- |