forked from Roeshambo/MonolithDKP
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathXMLFunctions.lua
43 lines (38 loc) · 2.08 KB
/
XMLFunctions.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
function CommunityDKPButton_OnLoad(self)
if ( not self:IsEnabled() ) then
self.Left:SetTexture("Interface\\Buttons\\UI-Panel-Button-Disabled");
self.Middle:SetTexture("Interface\\Buttons\\UI-Panel-Button-Disabled");
self.Right:SetTexture("Interface\\Buttons\\UI-Panel-Button-Disabled");
end
end
function CommunityDKPButton_OnMouseDown(self)
if ( self:IsEnabled() ) then
self.Left:SetTexture("Interface\\AddOns\\CommunityDKP\\Media\\Textures\\CommunityDKP-Button-Down");
self.Middle:SetTexture("Interface\\AddOns\\CommunityDKP\\Media\\Textures\\CommunityDKP-Button-Down");
self.Right:SetTexture("Interface\\AddOns\\CommunityDKP\\Media\\Textures\\CommunityDKP-Button-Down");
end
end
function CommunityDKPButton_OnMouseUp(self)
if ( self:IsEnabled() ) then
self.Left:SetTexture("Interface\\AddOns\\CommunityDKP\\Media\\Textures\\CommunityDKP-Button-Up");
self.Middle:SetTexture("Interface\\AddOns\\CommunityDKP\\Media\\Textures\\CommunityDKP-Button-Up");
self.Right:SetTexture("Interface\\AddOns\\CommunityDKP\\Media\\Textures\\CommunityDKP-Button-Up");
end
end
function CommunityDKPButton_OnShow(self)
if ( self:IsEnabled() ) then
self.Left:SetTexture("Interface\\AddOns\\CommunityDKP\\Media\\Textures\\CommunityDKP-Button-Up");
self.Middle:SetTexture("Interface\\AddOns\\CommunityDKP\\Media\\Textures\\CommunityDKP-Button-Up");
self.Right:SetTexture("Interface\\AddOns\\CommunityDKP\\Media\\Textures\\CommunityDKP-Button-Up");
end
end
function CommunityDKPButton_OnDisable(self)
self.Left:SetTexture("Interface\\Buttons\\UI-Panel-Button-Disabled");
self.Middle:SetTexture("Interface\\Buttons\\UI-Panel-Button-Disabled");
self.Right:SetTexture("Interface\\Buttons\\UI-Panel-Button-Disabled");
end
function CommunityDKPButton_OnEnable(self)
self.Left:SetTexture("Interface\\AddOns\\CommunityDKP\\Media\\Textures\\CommunityDKP-Button-Up");
self.Middle:SetTexture("Interface\\AddOns\\CommunityDKP\\Media\\Textures\\CommunityDKP-Button-Up");
self.Right:SetTexture("Interface\\AddOns\\CommunityDKP\\Media\\Textures\\CommunityDKP-Button-Up");
end