public
Description: WoW Addon - Crowd control assistance
Homepage: http://www.tekkub.net
Clone URL: git://github.com/tekkub/controlfreak.git
Click here to lend your support to: controlfreak and make a donation at www.pledgie.com !
Embed update
tekkub (author)
Sat Aug 23 11:40:40 -0700 2008
commit  90d67772f13162ccf2b896f7435174843fa14d8e
tree    8231184f7f6ecefcad17f8c9aa7a1a20b6e421de
parent  7491fee286d3e91fc2ed075b3967474d3d653ef1
...
1
2
 
3
4
5
6
7
8
 
9
10
11
 
12
13
14
...
69
70
71
72
 
73
74
75
...
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
 
132
...
1
 
2
3
4
5
6
7
 
8
9
10
11
12
13
14
15
...
70
71
72
 
73
74
75
76
...
111
112
113
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
115
0
@@ -1,14 +1,15 @@
0
 
0
-local lib, oldminor = LibStub:NewLibrary("tekKonfig-AboutPanel", 1)
0
+local lib, oldminor = LibStub:NewLibrary("tekKonfig-AboutPanel", 4)
0
 if not lib then return end
0
 
0
 
0
 function lib.new(parent, addonname)
0
   local frame = CreateFrame("Frame", nil, UIParent)
0
- frame.name, frame.parent, frame.addonname = "About", parent, addonname
0
+ frame.name, frame.parent, frame.addonname = parent and "About" or addonname, parent, addonname
0
   frame:Hide()
0
   frame:SetScript("OnShow", lib.OnShow)
0
   InterfaceOptions_AddCategory(frame)
0
+ return frame
0
 end
0
 
0
 
0
@@ -69,7 +70,7 @@ function lib.OnShow(frame)
0
 
0
   local title = frame:CreateFontString(nil, "ARTWORK", "GameFontNormalLarge")
0
   title:SetPoint("TOPLEFT", 16, -16)
0
- title:SetText(frame.parent.." - About")
0
+ title:SetText((frame.parent or frame.addonname).." - About")
0
 
0
   local subtitle = frame:CreateFontString(nil, "ARTWORK", "GameFontHighlightSmall")
0
   subtitle:SetHeight(32)
0
@@ -110,23 +111,5 @@ function lib.OnShow(frame)
0
     end
0
   end
0
 
0
- frame:SetScript("OnShow", lib.FadeIn)
0
- lib.FadeIn(frame)
0
-end
0
-
0
-
0
-local elapsed = 0
0
-local starttimes, endtimes = {}, {}
0
-local function OnUpdate(frame, elap)
0
- elapsed = elapsed + elap
0
- if elapsed > 0.5 then
0
- frame:SetScript("OnUpdate", nil)
0
- frame:SetAlpha(1)
0
- else frame:SetAlpha(elapsed/0.5) end
0
-end
0
-
0
-function lib.FadeIn(frame)
0
- elapsed = 0
0
- frame:SetAlpha(0)
0
- frame:SetScript("OnUpdate", OnUpdate)
0
+ frame:SetScript("OnShow", nil)
0
 end

Comments

    No one has commented yet.