comparison OpenButtonPage.xml @ 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
57 <OnLoad> 57 <OnLoad>
58 self:RegisterForDrag("LeftButton","RightButton") 58 self:RegisterForDrag("LeftButton","RightButton")
59 </OnLoad> 59 </OnLoad>
60 <OnClick> 60 <OnClick>
61 CyborgMMO_Toggle(); 61 CyborgMMO_Toggle();
62
63 </OnClick> 62 </OnClick>
64 <OnDragStart> 63 <OnDragStart>
65 self:StartMoving(); 64 self:StartMoving();
66 self.isMoving = true; 65 self.isMoving = true;
67 </OnDragStart> 66 </OnDragStart>
68 <OnDragStop> 67 <OnDragStop>
69 self:StopMovingOrSizing(); 68 self:StopMovingOrSizing();
70 self.isMoving = false; 69 self.isMoving = false;
71 </OnDragStop> 70 </OnDragStop>
71 <OnEnter>
72 CyborgMMO_ShowProfileTooltip(self:GetNormalTexture())
73 </OnEnter>
74 <OnLeave>
75 CyborgMMO_HideProfileTooltip()
76 </OnLeave>
72 </Scripts> 77 </Scripts>
73 78
74 <NormalTexture file="Interface\AddOns\CyborgMMO7\Graphics\Cyborg.tga"> 79 <NormalTexture file="Interface\AddOns\CyborgMMO7\Graphics\Cyborg.tga">
75 <Color r="0.0" g="0.0" b="0.0" a="1" /> 80 <Color r="0.0" g="0.0" b="0.0" a="1" />
76 </NormalTexture> 81 </NormalTexture>
167 </OnMouseUp> 172 </OnMouseUp>
168 <OnEnter> 173 <OnEnter>
169 if(false == CyborgMMO_IsOpen()) then 174 if(false == CyborgMMO_IsOpen()) then
170 CyborgMMO_RatQuickPage:Show(); 175 CyborgMMO_RatQuickPage:Show();
171 end 176 end
177 CyborgMMO_ShowProfileTooltip(getglobal(self:GetName().."_Icon"))
172 </OnEnter> 178 </OnEnter>
173 <OnLeave> 179 <OnLeave>
174 CyborgMMO_RatQuickPage:Hide(); 180 CyborgMMO_RatQuickPage:Hide()
181 CyborgMMO_HideProfileTooltip()
175 </OnLeave> 182 </OnLeave>
176 <OnUpdate> 183 <OnUpdate>
177 if(self:IsDragging()) then 184 if(self:IsDragging()) then
178 CyborgMMO_MiniMapButtonOnUpdate(); 185 CyborgMMO_MiniMapButtonOnUpdate();
179 end 186 end