vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 local Tablet = AceLibrary("Tablet-2.0")
2 local L = AceLibrary("AceLocale-2.0"):new("OneView")
3  
4 OneViewFu = AceLibrary("AceAddon-2.0"):new("AceDB-2.0", "FuBarPlugin-2.0")
5 OneViewFu:RegisterDB("OneViewButtonDB")
6  
7 function OneViewFu:OnInitialize()
8 self.hasIcon = true
9 self:SetIcon(true)
10 end
11  
12 function OneViewFu:OnEnable()
13 end
14  
15 function OneViewFu:OnTextUpdate()
16 if self:IsTextShown() then
17 self:SetText("OneView")
18 end
19 if not self:IsIconShown() then
20 self:HideIcon()
21 end
22 end
23  
24 function OneViewFu:OnClick()
25 if OneViewFrame:IsVisible() then
26 OneViewFrame:Hide()
27 else
28 OneViewFrame:Show()
29 end
30 end
31  
32 function OneViewFu:OnTooltipUpdate()
33 local cat = Tablet:AddCategory(
34 'columns', 1,
35 'child_textR', 1,
36 'child_textG', 1,
37 'child_textB', 1
38 )
39 cat:AddLine(
40 'text', L"Show the OneView Frame"
41 )
42 end