-
Notifications
You must be signed in to change notification settings - Fork 71
/
XMLFunctions.lua
43 lines (38 loc) · 2.04 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 MonolithDKPButton_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 MonolithDKPButton_OnMouseDown(self)
if ( self:IsEnabled() ) then
self.Left:SetTexture("Interface\\AddOns\\MonolithDKP\\Media\\Textures\\MonolithDKP-Button-Down");
self.Middle:SetTexture("Interface\\AddOns\\MonolithDKP\\Media\\Textures\\MonolithDKP-Button-Down");
self.Right:SetTexture("Interface\\AddOns\\MonolithDKP\\Media\\Textures\\MonolithDKP-Button-Down");
end
end
function MonolithDKPButton_OnMouseUp(self)
if ( self:IsEnabled() ) then
self.Left:SetTexture("Interface\\AddOns\\MonolithDKP\\Media\\Textures\\MonolithDKP-Button-Up");
self.Middle:SetTexture("Interface\\AddOns\\MonolithDKP\\Media\\Textures\\MonolithDKP-Button-Up");
self.Right:SetTexture("Interface\\AddOns\\MonolithDKP\\Media\\Textures\\MonolithDKP-Button-Up");
end
end
function MonolithDKPButton_OnShow(self)
if ( self:IsEnabled() ) then
self.Left:SetTexture("Interface\\AddOns\\MonolithDKP\\Media\\Textures\\MonolithDKP-Button-Up");
self.Middle:SetTexture("Interface\\AddOns\\MonolithDKP\\Media\\Textures\\MonolithDKP-Button-Up");
self.Right:SetTexture("Interface\\AddOns\\MonolithDKP\\Media\\Textures\\MonolithDKP-Button-Up");
end
end
function MonolithDKPButton_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 MonolithDKPButton_OnEnable(self)
self.Left:SetTexture("Interface\\AddOns\\MonolithDKP\\Media\\Textures\\MonolithDKP-Button-Up");
self.Middle:SetTexture("Interface\\AddOns\\MonolithDKP\\Media\\Textures\\MonolithDKP-Button-Up");
self.Right:SetTexture("Interface\\AddOns\\MonolithDKP\\Media\\Textures\\MonolithDKP-Button-Up");
end