vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | --[[ Startup ]]-- |
2 | local function addFrameToBar(frame, bar) |
||
3 | frame:ClearAllPoints() |
||
4 | frame:SetPoint("TOPLEFT", bar); |
||
5 | frame:SetParent(bar); |
||
6 | frame:SetAlpha(bar:GetAlpha()); |
||
7 | frame:SetFrameLevel(0); |
||
8 | end |
||
9 | |||
10 | BScript.AddStartupAction(function() |
||
11 | --create the quest watcher bar |
||
12 | local bar = BBar.Create("questwatch", "BQWatchBar", "BQWatchBarSets", nil, 1); |
||
13 | if not bar:IsUserPlaced() then |
||
14 | local x, y = QuestWatchFrame:GetLeft() / UIParent:GetScale(), QuestWatchFrame:GetTop() / UIParent:GetScale(); |
||
15 | bar:SetPoint("TOPLEFT", UIParent, "BOTTOMLEFT", x, y); |
||
16 | end |
||
17 | bar:SetWidth(QuestWatchFrame:GetWidth()); |
||
18 | bar:SetHeight(QuestWatchFrame:GetHeight()); |
||
19 | addFrameToBar(QuestWatchFrame, bar); |
||
20 | |||
21 | --create the quest timer bar |
||
22 | bar = BBar.Create("questtimer", "BQTimerBar", "BQTimerBarSets", nil, 1); |
||
23 | if not bar:IsUserPlaced() then |
||
24 | local x, y = QuestTimerFrame:GetLeft() * UIParent:GetScale(), QuestTimerFrame:GetTop() * UIParent:GetScale(); |
||
25 | bar:SetPoint("TOPLEFT", UIParent, "BOTTOMLEFT", x, y); |
||
26 | end |
||
27 | bar:SetWidth(QuestTimerFrame:GetWidth()); |
||
28 | bar:SetHeight(QuestTimerFrame:GetHeight()); |
||
29 | addFrameToBar(QuestTimerFrame, bar); |
||
30 | end) |
||
31 | |||
32 | local oQuestWatch_Update = QuestWatch_Update; |
||
33 | QuestWatch_Update = function() |
||
34 | oQuestWatch_Update(); |
||
35 | |||
36 | BQWatchBar:SetWidth(QuestWatchFrame:GetWidth()); |
||
37 | BQWatchBar:SetHeight(QuestWatchFrame:GetHeight()); |
||
38 | end |
||
39 | |||
40 | local oQuestTimerFrame_Update = QuestTimerFrame_Update; |
||
41 | QuestTimerFrame_Update = function() |
||
42 | oQuestTimerFrame_Update(); |
||
43 | |||
44 | BQTimerBar:SetWidth(QuestTimerFrame:GetWidth()); |
||
45 | BQTimerBar:SetHeight(QuestTimerFrame:GetHeight()); |
||
46 | end |