Interface 4.2.2.14545 vs 4.3.0.14809
Produced: 11.11.2011 17:02:33
   
Mode:  Differences, Ignoring Unimportant  
Left base folder: Interface_4.2.2.14545  
Right base folder: Interface_4.3.0.14809  
   
File: AddOns\Blizzard_AchievementUI\Blizzard_AchievementUI.lua  
  23 ACHIEVEMENTUI_CRITERIACHECKWIDTH = 20;
 
  1393         AchievementFrameAchievementsObjectives.repCriteria:Hide();
 
1630           objectivesFrame.repCriteria:Hide();
 
  1654         end
 
  1656         -- text check width
  1657         if ( not objectivesFrame.textCheckWidth ) then
  1658                 local criteria = AchievementButton_GetCriteria(1);
  1659                 criteria.name:SetText("- ");
  1660                 objectivesFrame.textCheckWidth = criteria.name:GetStringWidth();
 
  1770                         local stringWidth = 0;
 
  1776                                 stringWidth = criteria.name:GetStringWidth();
 
  1782                                 stringWidth = criteria.name:GetStringWidth() - objectivesFrame.textCheckWidth;  -- don't want the "- " to be included in the width
 
1776                           local stringWidth = criteria.name:GetStringWidth()
1777                           criteria:SetWidth(stringWidth + criteria.check:GetWidth());
1778                           maxCriteriaWidth = max(maxCriteriaWidth, stringWidth + criteria.check:GetWidth());
  1786                         criteria:SetWidth(stringWidth + ACHIEVEMENTUI_CRITERIACHECKWIDTH);
  1787                         maxCriteriaWidth = max(maxCriteriaWidth, stringWidth + ACHIEVEMENTUI_CRITERIACHECKWIDTH);
   
File: AddOns\Blizzard_AchievementUI\Blizzard_AchievementUI.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_ArchaeologyUI\Blizzard_ArchaeologyUI.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_ArenaUI\Blizzard_ArenaUI.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_AuctionUI\Blizzard_AuctionDressUp.lua  
2   local DressUpItemLink_orig = DressUpItemLink;
 
4   function DressUpItemLink(link)
5           if ( not link ) then
6                   return;
7           end
8           if ( AuctionFrame:IsShown() ) then
9                   if ( not AuctionDressUpFrame:IsShown() ) then
10                           ShowUIPanel(AuctionDressUpFrame);
11                           AuctionDressUpModel:SetUnit("player");
12                   end
13                   AuctionDressUpModel:TryOn(link);
14           else
15                   DressUpItemLink_orig(link);
16           end
17   end
 
19   function SetAuctionDressUpBackground()
20           local race, raceFileName = UnitRace("player");
21           local texture = DressUpTexturePath(raceFileName);
22           AuctionDressUpBackgroundTop:SetTexture(texture..1);
23           AuctionDressUpBackgroundBot:SetTexture(texture..3);
24   end
 
26   function AuctionDressUpFrame_OnShow()
27           SetUIPanelAttribute(AuctionFrame, "width", 1020);
28           UpdateUIPanelPositions(AuctionFrame);
29           PlaySound("igCharacterInfoOpen");
30   end
 
32   function AuctionDressUpFrame_OnHide()
33           SetUIPanelAttribute(AuctionFrame, "width", 840);
34           UpdateUIPanelPositions();
35           PlaySound("igCharacterInfoClose");
36   end
   
File: AddOns\Blizzard_AuctionUI\Blizzard_AuctionDressUp.xml  
1   <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
2   ..\..\FrameXML\UI.xsd">
3   <Script file="Blizzard_AuctionDressUp.lua"/>
4   <Frame name="AuctionDressUpFrame" toplevel="true" parent="UIParent" enableMouse="true" hidden="true">
5           <Size>
6                   <AbsDimension x="187" y="389"/>
7           </Size>
8           <Anchors>
9                   <Anchor point="TOPLEFT" relativeTo="AuctionFrame" relativePoint="TOPRIGHT">
10                           <Offset>
11                                   <AbsDimension x="-2" y="-28"/>
12                           </Offset>
13                   </Anchor>
14           </Anchors>
15           <Layers>
16                   <Layer level="BACKGROUND">
17                           <Texture name="AuctionDressUpFrameTop" file="Interface\AuctionFrame\AuctionHouseDressUpFrame-Top">
18                                   <Size>
19                                           <AbsDimension x="256" y="256"/>
20                                   </Size>
21                                   <Anchors>
22                                           <Anchor point="TOPLEFT"/>
23                                   </Anchors>
24                           </Texture>
25                           <Texture file="Interface\AuctionFrame\AuctionHouseDressUpFrame-Bottom">
26                                   <Size>
27                                           <AbsDimension x="256" y="256"/>
28                                   </Size>
29                                   <Anchors>
30                                           <Anchor point="TOPLEFT" relativeTo="AuctionDressUpFrameTop" relativePoint="BOTTOMLEFT"/>
31                                   </Anchors>
32                           </Texture>
33                   </Layer>
34                   <Layer level="ARTWORK">
35                           <Texture name="AuctionDressUpBackgroundTop">
36                                   <Size>
37                                           <AbsDimension x="171" y="282"/>
38                                   </Size>
39                                   <Anchors>
40                                           <Anchor point="TOPLEFT">
41                                                   <Offset>
42                                                           <AbsDimension x="5" y="-14"/>
43                                                   </Offset>
44                                           </Anchor>
45                                   </Anchors>
46                                   <TexCoords left="0" right="0.61" top="0" bottom="1.0"/>
47                           </Texture>
48                           <Texture name="AuctionDressUpBackgroundBot">
49                                   <Size>
50                                           <AbsDimension x="171" y="83"/>
51                                   </Size>
52                                   <Anchors>
53                                           <Anchor point="TOPLEFT" relativeTo="AuctionDressUpBackgroundTop" relativePoint="BOTTOMLEFT"/>
54                                   </Anchors>
55                                   <TexCoords left="0" right="0.61" top="0" bottom="0.588"/>
56                           </Texture>
57                   </Layer>
58           </Layers>
59           <Frames>
60                   <DressUpModel name="AuctionDressUpModel" scale="1.0">
61                           <Size>
62                                   <AbsDimension x="172" y="400"/>
63                           </Size>
64                           <Anchors>
65                                   <Anchor point="TOPLEFT" x="5" y="-13"/>
66                                   <Anchor point="BOTTOMRIGHT" x="-11" y="11"/>
67                           </Anchors>
68                           <Scripts>
69                   <OnLoad function="Model_OnLoad"/>
70                                   <OnEvent function="Model_OnEvent"/>
71                                   <OnMouseUp function="Model_OnMouseUp"/>
72                                   <OnMouseDown function="Model_OnMouseDown"/>
73                   <OnUpdate function="Model_OnUpdate"/>
74                                   <OnMouseWheel>
75                                           Model_OnMouseWheel(self, delta, MODELFRAME_MAX_PLAYER_ZOOM);
76                                   </OnMouseWheel>
77               </Scripts>
78                           <Frames>
79                                   <Button name="AuctionDressUpModelRotateLeftButton">
80                                           <Size>
81                                                   <AbsDimension x="35" y="35"/>
82                                           </Size>
83                                           <Anchors>
84                                                   <Anchor point="TOPLEFT" relativeTo="AuctionDressUpFrame">
85                                                           <Offset>
86                                                                   <AbsDimension x="3" y="-15"/>
87                                                           </Offset>
88                                                   </Anchor>
89                                           </Anchors>
90                                           <Scripts>
91                                                   <OnLoad>
92                                                           self:RegisterForClicks("LeftButtonDown", "LeftButtonUp");
93                                                   </OnLoad>
94                                                   <OnClick>
95                                                           Model_RotateLeft(self:GetParent());
96                                                   </OnClick>
97                                           </Scripts>
98                                           <NormalTexture file="Interface\Buttons\UI-RotationLeft-Button-Up"/>
99                                           <PushedTexture file="Interface\Buttons\UI-RotationLeft-Button-Down"/>
100                                           <HighlightTexture file="Interface\Buttons\ButtonHilight-Round" alphaMode="ADD"/>
101                                   </Button>
102                                   <Button name="AuctionDressUpModelRotateRightButton">
103                                           <Size>
104                                                   <AbsDimension x="35" y="35"/>
105                                           </Size>
106                                           <Anchors>
107                                                   <Anchor point="TOPLEFT" relativeTo="AuctionDressUpModelRotateLeftButton" relativePoint="TOPRIGHT"/>
108                                           </Anchors>
109                                           <Scripts>
110                                                   <OnLoad>
111                                                           self:RegisterForClicks("LeftButtonDown", "LeftButtonUp");
112                                                   </OnLoad>
113                                                   <OnClick>
114                                                           Model_RotateRight(self:GetParent());
115                                                   </OnClick>
116                                           </Scripts>
117                                           <NormalTexture file="Interface\Buttons\UI-RotationRight-Button-Up"/>
118                                           <PushedTexture file="Interface\Buttons\UI-RotationRight-Button-Down"/>
119                                           <HighlightTexture file="Interface\Buttons\ButtonHilight-Round" alphaMode="ADD"/>
120                                   </Button>
121                                   <Button name="AuctionDressUpFrameResetButton" inherits="UIPanelButtonTemplate" text="RESET">
122                                           <Size>
123                                                   <AbsDimension x="80" y="22"/>
124                                           </Size>
125                                           <Anchors>
126                                                   <Anchor point="BOTTOM">
127                                                           <Offset>
128                                                                   <AbsDimension x="0" y="40"/>
129                                                           </Offset>
130                                                   </Anchor>
131                                           </Anchors>
132                                           <Scripts>
133                                                   <OnClick>
134                                                           AuctionDressUpModel:Dress();
135                                                           PlaySound("gsTitleOptionOK");
136                                                   </OnClick>
137                                           </Scripts>
138                                   </Button>
139                                   <Button name="AuctionDressUpFrameCloseButton" inherits="UIPanelCloseButton">
140                                           <Anchors>
141                                                   <Anchor point="CENTER" relativeTo="AuctionDressUpFrame" relativePoint="TOPRIGHT">
142                                                           <Offset>
143                                                                   <AbsDimension x="-15" y="-16"/>
144                                                           </Offset>
145                                                   </Anchor>
146                                           </Anchors>
147                                           <Layers>
148                                                   <Layer level="BACKGROUND">
149                                                           <Texture file="Interface\AuctionFrame\AuctionHouseDressUpFrame-Corner">
150                                                                   <Size>
151                                                                           <AbsDimension x="32" y="32"/>
152                                                                   </Size>
153                                                                   <Anchors>
154                                                                           <Anchor point="TOPRIGHT" relativeTo="AuctionDressUpFrame">
155                                                                                   <Offset>
156                                                                                           <AbsDimension x="-5" y="-5"/>
157                                                                                   </Offset>
158                                                                           </Anchor>
159                                                                   </Anchors>
160                                                           </Texture>
161                                                   </Layer>
162                                           </Layers>
163                                           <Scripts>
164                                                   <OnClick>
165                                                           HideUIPanel(self:GetParent():GetParent());
166                                                   </OnClick>
167                                           </Scripts>
168                                   </Button>
169                           </Frames>
170                   </DressUpModel>
171           </Frames>
172           <Scripts>
173                   <OnLoad function="SetAuctionDressUpBackground"/>
174                   <OnShow function="AuctionDressUpFrame_OnShow"/>
175                   <OnHide function="AuctionDressUpFrame_OnHide"/>
176           </Scripts>
177   </Frame>
178   </Ui>
   
File: AddOns\Blizzard_AuctionUI\Blizzard_AuctionUI.lua  
  331         SetUpSideDressUpFrame(self, 840, 1020, "TOPLEFT", "TOPRIGHT", -2, -28);
 
  470         BrowseLevelSort:SetText(_G[GetDetailColumnString(AuctionFrameBrowse.selectedClassIndex, AuctionFrameBrowse.selectedSubclassIndex)]);
 
  761         BrowseLevelSort:SetText(_G[GetDetailColumnString(AuctionFrameBrowse.selectedClassIndex, AuctionFrameBrowse.selectedSubclassIndex)]);
 
767           local name, texture, count, quality, canUse, level, minBid, minIncrement, buyoutPrice, duration, bidAmount, highBidder, owner;
  771         local name, texture, count, quality, canUse, level, levelColHeader, minBid, minIncrement, buyoutPrice, duration, bidAmount, highBidder, owner;
 
795                           name, texture, count, quality, canUse, level, minBid, minIncrement, buyoutPrice, bidAmount, highBidder, owner, saleStatus, itemId, hasAllInfo =  GetAuctionItemInfo("list", offset + i);
  799                         name, texture, count, quality, canUse, level, levelColHeader, minBid, minIncrement, buyoutPrice, bidAmount, highBidder, owner, saleStatus, itemId, hasAllInfo =  GetAuctionItemInfo("list", offset + i);
 
824                           if ( level > UnitLevel("player") ) then
  828                         if ( levelColHeader == "REQ_LEVEL_ABBR" and level > UnitLevel("player") ) then
 
974           local name, texture, count, quality, canUse, level, minBid, minIncrement, buyoutPrice, duration, bidAmount, highBidder, owner;
  978         local name, texture, count, quality, canUse, level, levelColHeader, minBid, minIncrement, buyoutPrice, duration, bidAmount, highBidder, owner;
 
996                           name, texture, count, quality, canUse, level, minBid, minIncrement, buyoutPrice, bidAmount, highBidder, owner =  GetAuctionItemInfo("bidder", index);
  1000                         name, texture, count, quality, canUse, level, levelColHeader, minBid, minIncrement, buyoutPrice, bidAmount, highBidder, owner =  GetAuctionItemInfo("bidder", index);
 
1020                           if ( level > UnitLevel("player") ) then
  1024                         if ( levelColHeader == "REQ_LEVEL_ABBR" and level > UnitLevel("player") ) then
 
1198           local name, texture, count, quality, canUse, level, minBid, minIncrement, buyoutPrice, duration, bidAmount, highBidder, owner, saleStatus;
  1202         local name, texture, count, quality, canUse, level, levelColHeader, minBid, minIncrement, buyoutPrice, duration, bidAmount, highBidder, owner, saleStatus;
 
1218                           name, texture, count, quality, canUse, level, minBid, minIncrement, buyoutPrice, bidAmount, highBidder, owner, saleStatus = GetAuctionItemInfo("owner", offset + i);
  1222                         name, texture, count, quality, canUse, level, levelColHeader, minBid, minIncrement, buyoutPrice, bidAmount, highBidder, owner, saleStatus = GetAuctionItemInfo("owner", offset + i);
 
  1692         local stackSize = AuctionsStackSizeEntry:GetNumber();
  1693         if ( stackSize == 0 ) then
  1694                 AuctionsStackSizeMaxButton:Enable();
  1695                 AuctionsNumStacksMaxButton:Enable();
  1696                 return;
  1697         end
 
1690           local stackSize = AuctionsStackSizeEntry:GetNumber();
   
File: AddOns\Blizzard_AuctionUI\Blizzard_AuctionUI.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
 
6   Blizzard_AuctionDressUp.xml
   
File: AddOns\Blizzard_AuctionUI\Blizzard_AuctionUI.xml  
357                                                           <AbsDimension x="465" y="306"/>
  357                                                         <AbsDimension x="610" y="306"/>
 
419                                           <Button name="BrowseLevelSort" inherits="AuctionSortButtonTemplate" text="LEVEL_ABBR">
  419                                         <Button name="BrowseLevelSort" inherits="AuctionSortButtonTemplate" text="REQ_LEVEL_ABBR">
 
959                                           <Button name="BidLevelSort" inherits="AuctionSortButtonTemplate" text="LEVEL_ABBR">
  959                                         <Button name="BidLevelSort" inherits="AuctionSortButtonTemplate" text="REQ_LEVEL_ABBR">
 
1046                                                           <AbsDimension x="625" y="335"/>
  1046                                                         <AbsDimension x="775" y="335"/>
 
1337                                                   <Size x="435" y="339"/>
  1337                                                 <Size x="575" y="339"/>
 
1853                                   HideUIPanel(AuctionDressUpFrame);
  1853                                 CloseSideDressUpFrame(self);
   
File: AddOns\Blizzard_BarbershopUI\Blizzard_BarberShopUI.lua  
75           if ( name ) then
  75         if ( name and name ~= "" ) then
   
File: AddOns\Blizzard_BarbershopUI\Blizzard_BarberShopUI.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_BarbershopUI\Blizzard_BarberShopUI.xml  
245                           <PlayerModel name="BarberShopAltFormFrame" hidden="true">
  245                         <PlayerModel name="BarberShopAltFormFrame" hidden="true" inherits="ModelTemplate">
 
278                                   <Scripts>
279                                           <OnLoad>
280                                                   Model_OnLoad(self);
281                                           </OnLoad>
282                                           <OnEvent function="Model_OnEvent"/>
283                                           <OnUpdate function="Model_OnUpdate"/>
284                                           <OnMouseUp function="Model_OnMouseUp"/>
285                                           <OnMouseDown function="Model_OnMouseDown"/>
286                                   </Scripts>
   
File: AddOns\Blizzard_BattlefieldMinimap\Blizzard_BattlefieldMinimap.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_BindingUI\Blizzard_BindingUI.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_Calendar\Blizzard_Calendar.lua  
3310           local numInvites = CalendarEventGetNumInvites();
  3310         local numInvites, namesReady = CalendarEventGetNumInvites();
 
  3319         end
 
  3321         if ( namesReady ) then
  3322                 CalendarViewEventFrameRetrievingFrame:Hide();
  3323         else
  3324                 CalendarViewEventFrameRetrievingFrame:Show();
 
3330                   if ( name ) then
  3336                 if ( namesReady and name ) then
 
4067           local numInvites = CalendarEventGetNumInvites();
  4073         local numInvites, namesReady = CalendarEventGetNumInvites();
 
  4080         end
 
  4082         if ( namesReady ) then
  4083                 CalendarCreateEventFrameRetrievingFrame:Hide();
  4084         else
  4085                 CalendarCreateEventFrameRetrievingFrame:Show();
 
4089                   if ( name ) then
  4101                 if ( namesReady and name ) then
 
  5445 function CalendarEventRetrievingFrame_OnUpdate(self, elapsed)
  5446         if ( not self.timer ) then
  5447                 self.timer = 0.3;
  5448         elseif ( self.timer < 0 ) then
  5449                 local dotCount = self.dotCount or 0;
  5450                 dotCount = dotCount + 1;
  5451                 if ( dotCount > 3 ) then
  5452                         dotCount = 0;
  5453                 end
  5454                 self.dots:SetText(string.rep(".", dotCount));
  5455                 self.dotCount = dotCount;
  5456                 self.timer = 0.3;
  5457         else
  5458                 self.timer = self.timer - elapsed;
  5459         end
  5460 end
   
File: AddOns\Blizzard_Calendar\Blizzard_Calendar.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_Calendar\Blizzard_Calendar.xml  
  914                         <Frame name="$parentRetrievingFrame" enableMouse="true" hidden="true">
  915                                 <Size x="296" y="256"/>
  916                                 <Anchors>
  917                                         <Anchor point="TOPLEFT" relativeTo="CalendarViewEventInviteListSection" x="12" y="-64"/>
  918                                 </Anchors>
  919                                 <Layers>
  920                                         <Layer level="BACKGROUND">
  921                                                 <Texture setAllPoints="true">
  922                                                         <Color r="0" g="0" b="0" a="0.75"/>
  923                                                 </Texture>
  924                                         </Layer>
  925                                         <Layer level="ARTWORK">
  926                                                 <FontString name="$parentText" inherits="GameFontNormal" text="RETRIEVING_INVITE_LIST">
  927                                                         <Anchors>
  928                                                                 <Anchor point="CENTER"/>
  929                                                         </Anchors>
  930                                                 </FontString>
  931                                                 <FontString name="$parentDots" inherits="GameFontNormal" text="." parentKey="dots">
  932                                                         <Anchors>
  933                                                                 <Anchor point="LEFT" relativeTo="$parentText" relativePoint="RIGHT"/>
  934                                                         </Anchors>
  935                                                 </FontString>
  936                                         </Layer>
  937                                 </Layers>
  938                                 <Scripts>
  939                                         <OnShow>
  940                                                 self:SetFrameLevel(CalendarViewEventInviteListSection:GetFrameLevel() + 10);
  941                                         </OnShow>
  942                                         <OnUpdate function="CalendarEventRetrievingFrame_OnUpdate"/>
  943                                 </Scripts>
  944                         </Frame>
 
  1395                         <Frame name="$parentRetrievingFrame" enableMouse="true" hidden="true">
  1396                                 <Size x="296" y="300"/>
  1397                                 <Anchors>
  1398                                         <Anchor point="TOPLEFT" relativeTo="CalendarCreateEventInviteListSection" x="12" y="-34"/>
  1399                                 </Anchors>
  1400                                 <Layers>
  1401                                         <Layer level="BACKGROUND">
  1402                                                 <Texture setAllPoints="true">
  1403                                                         <Color r="0" g="0" b="0" a="0.75"/>
  1404                                                 </Texture>
  1405                                         </Layer>
  1406                                         <Layer level="ARTWORK">
  1407                                                 <FontString name="$parentText" inherits="GameFontNormal" text="RETRIEVING_INVITE_LIST">
  1408                                                         <Anchors>
  1409                                                                 <Anchor point="CENTER"/>
  1410                                                         </Anchors>
  1411                                                 </FontString>
  1412                                                 <FontString name="$parentDots" inherits="GameFontNormal" text="." parentKey="dots">
  1413                                                         <Anchors>
  1414                                                                 <Anchor point="LEFT" relativeTo="$parentText" relativePoint="RIGHT"/>
  1415                                                         </Anchors>
  1416                                                 </FontString>
  1417                                         </Layer>
  1418                                 </Layers>
  1419                                 <Scripts>
  1420                                         <OnShow>
  1421                                                 self:SetFrameLevel(CalendarCreateEventInviteListSection:GetFrameLevel() + 10);
  1422                                         </OnShow>
  1423                                         <OnUpdate function="CalendarEventRetrievingFrame_OnUpdate"/>
  1424                                 </Scripts>
  1425                         </Frame>
   
File: AddOns\Blizzard_ClientSavedVariables\Blizzard_ClientSavedVariables.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_CombatLog\Blizzard_CombatLog.lua  
  339 local SPELL_POWER_ALTERNATE_POWER = SPELL_POWER_ALTERNATE_POWER;
 
1870   local function CombatLog_String_PowerType(powerType, amount)
  1871 local function CombatLog_String_PowerType(powerType, amount, alternatePowerType)
 
  1896         elseif ( powerType == SPELL_POWER_ALTERNATE_POWER and alternatePowerType ) then
  1897                 local costName = select(12, GetAlternatePowerInfoByID(alternatePowerType));
  1898                 return costName;        --costName could be nil if we didn't get the alternatePowerType for some reason (e.g. target out of AOI)
 
  2215         local withPoints = false;
 
2234           local missType, amountMissed;
  2239         local missType, isOffHand, amountMissed;
 
  2250         local alternatePowerType; -- Used for energizes, drains and leeches
 
2286                   missType, amountMissed = ...;
  2292                 missType, isOffHand, amountMissed = ...;
 
2324                           missType,  amountMissed = select(4, ...);
  2330                         missType,  isOffHand, amountMissed = select(4, ...);
 
2369                           amount, powerType = select(4, ...);
  2375                         amount, powerType, alternatePowerType = select(4, ...);
 
2438                                   amount, powerType, extraAmount = select(4, ...);
  2444                                 amount, powerType, extraAmount, alternatePowerType = select(4, ...);
 
2455                                   amount, powerType, extraAmount = select(4, ...);
  2461                                 amount, powerType, extraAmount, alternatePowerType = select(4, ...);
 
2461                                   resultStr = format(_G["ACTION_SPELL_PERIODIC_LEECH_RESULT"], nil, nil, nil, nil, nil, nil, nil, CombatLog_String_PowerType(powerType), nil, extraAmount) --"($extraAmount $powerType Gained)"
  2467                                 resultStr = format(_G["ACTION_SPELL_PERIODIC_LEECH_RESULT"], nil, nil, nil, nil, nil, nil, nil, CombatLog_String_PowerType(powerType, amount, alternatePowerType), nil, extraAmount) --"($extraAmount $powerType Gained)"
 
2474                                   amount, powerType = select(4, ...);
  2480                                 amount, powerType, alternatePowerType = select(4, ...);
 
2534                           amount, powerType, extraAmount = select(4, ...);
  2540                         amount, powerType, extraAmount, alternatePowerType = select(4, ...);
 
2547                           amount, powerType, extraAmount = select(4, ...);
  2553                         amount, powerType, extraAmount, alternatePowerType = select(4, ...);
 
2553                           resultStr = format(_G["ACTION_SPELL_LEECH_RESULT"], nil, nil, nil, nil, nil, nil, nil, CombatLog_String_PowerType(powerType), nil, extraAmount)
  2559                         resultStr = format(_G["ACTION_SPELL_LEECH_RESULT"], nil, nil, nil, nil, nil, nil, nil, CombatLog_String_PowerType(powerType, amount, alternatePowerType), nil, extraAmount)
 
2688                                   event = event.."_WITH_POINTS"
  2694                                 withPoints = true;
 
2741                           missType, amountMissed = select(4,...);
  2747                         missType, isOffHand, amountMissed = select(4,...);
 
2871                   local formatStringEvent = format("ACTION_%s_FULL_TEXT", event);
  2877                 local formatStringEvent;
  2878                 if (withPoints) then
  2879                         formatStringEvent = format("ACTION_%s_WITH_POINTS_FULL_TEXT", event);
  2880                 else
  2881                         formatStringEvent = format("ACTION_%s_FULL_TEXT", event);
  2882                 end
 
3002                           elseif ( ( settings.lineColorPriority == 2 and destName ) or not sourceName ) then
  3013                         elseif ( ( settings.lineColorPriority == 2 and destName ) ) then
 
3012                   powerTypeString =  CombatLog_String_PowerType(powerType, amount);
  3023                 powerTypeString =  CombatLog_String_PowerType(powerType, amount, alternatePowerType);
   
File: AddOns\Blizzard_CombatLog\Blizzard_CombatLog.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_CombatText\Blizzard_CombatText.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_CompactRaidFrames\Blizzard_CompactRaidFrameManager.lua  
  31         CompactRaidFrameManager_AttachPartyFrames(self);
 
  35         --Set up the options flow container
  36         FlowContainer_Initialize(self.displayFrame.optionsFlowContainer);
 
  47                 CompactRaidFrameManager_UpdateContainerLockVisibility(self);
 
48                   CompactRaidFrameManager_UpdateLeaderButtonsShown(self);
  53                 CompactRaidFrameManager_UpdateOptionsFlowContainer(self);
 
51                   CompactRaidFrameManager_UpdateLeaderButtonsShown(self);
  56                 CompactRaidFrameManager_UpdateOptionsFlowContainer(self);
 
83           if ( GetDisplayedAllyFrames() == "raid" ) then
  88         if ( GetDisplayedAllyFrames() ) then
 
  93         CompactRaidFrameManager_UpdateOptionsFlowContainer(self);
  94         CompactRaidFrameManager_UpdateContainerVisibility();
 
120   function CompactRaidFrameManager_UpdateLeaderButtonsShown(self)
121           --First, we'll update the overall height as well as which panels are showing.
122           local height = 84;
  127 function CompactRaidFrameManager_UpdateOptionsFlowContainer(self)
  128         local container = self.displayFrame.optionsFlowContainer;
  129        
  130         FlowContainer_RemoveAllObjects(container);
  131         FlowContainer_PauseUpdates(container);
 
  133         if ( GetDisplayedAllyFrames() == "raid" ) then
  134                 FlowContainer_AddObject(container, self.displayFrame.profileSelector);
  135                 self.displayFrame.profileSelector:Show();
  136         else
  137                 self.displayFrame.profileSelector:Hide();
  138         end
 
124                   height = height + self.displayFrame.filterOptions:GetHeight();
  141                 FlowContainer_AddObject(container, self.displayFrame.filterOptions);
 
  148                 FlowContainer_AddObject(container, self.displayFrame.raidMarkers);
  149                 self.displayFrame.raidMarkers:Show();
  150         else
  151                 self.displayFrame.raidMarkers:Hide();
  152         end
 
131                   height = height + self.displayFrame.leaderOptions:GetHeight();
  154         if ( GetNumRaidMembers() == 0 or IsPartyLeader() or IsRaidLeader() or IsRaidOfficer() ) then
  155                 FlowContainer_AddObject(container, self.displayFrame.leaderOptions);
 
  161         if ( GetNumRaidMembers() == 0 and IsPartyLeader() and not HasLFGRestrictions() ) then
  162                 FlowContainer_AddLineBreak(container);
  163                 FlowContainer_AddSpacer(container, 20);
  164                 FlowContainer_AddObject(container, self.displayFrame.convertToRaid);
  165                 self.displayFrame.convertToRaid:Show();
  166         else
  167                 self.displayFrame.convertToRaid:Hide();
  168         end
 
  170         if ( GetDisplayedAllyFrames() == "raid" ) then
  171                 FlowContainer_AddLineBreak(container);
  172                 FlowContainer_AddSpacer(container, 20);
  173                 FlowContainer_AddObject(container, self.displayFrame.lockedModeToggle);
  174                 FlowContainer_AddObject(container, self.displayFrame.hiddenModeToggle);
  175                 self.displayFrame.lockedModeToggle:Show();
  176                 self.displayFrame.hiddenModeToggle:Show();
  177         else
  178                 self.displayFrame.lockedModeToggle:Hide();
  179                 self.displayFrame.hiddenModeToggle:Hide();
  180         end
 
  182         if ( GetNumRaidMembers() ~= 0 and IsRaidLeader() ) then
  183                 FlowContainer_AddLineBreak(container);
  184                 FlowContainer_AddSpacer(container, 20);
  185                 FlowContainer_AddObject(container, self.displayFrame.everyoneIsAssistButton);
  186                 self.displayFrame.everyoneIsAssistButton:Show();
  187         else
  188                 self.displayFrame.everyoneIsAssistButton:Hide();
  189         end
 
  191         FlowContainer_ResumeUpdates(container);
 
136           self:SetHeight(height);
  193         local usedX, usedY = FlowContainer_GetUsedBounds(container);
  194         self:SetHeight(usedY + 40);
 
269                   local button = _G["CompactRaidFrameManagerDisplayFrameLeaderOptionsRaidMarker"..i];     --.... /cry
  327                 local button = _G["CompactRaidFrameManagerDisplayFrameRaidMarkersRaidMarker"..i];       --.... /cry
 
281           local removeButton = CompactRaidFrameManagerDisplayFrameLeaderOptionsRaidMarkerRemove;
  339         local removeButton = CompactRaidFrameManagerDisplayFrameRaidMarkersRaidMarkerRemove;
 
335                           CompactRaidFrameManager_LockContainer(manager);
 
  395                         CompactRaidFrameManager_UpdateContainerLockVisibility(manager);
 
339                           CompactRaidFrameManager_UnlockContainer(manager);
 
  399                         CompactRaidFrameManager_UpdateContainerLockVisibility(manager);
 
395                           manager.container:Show();
  453                         manager.container.enabled = true;
 
399                           manager.container:Hide();
  457                         manager.container.enabled = false;
 
  461                 CompactRaidFrameManager_UpdateContainerVisibility();
 
  511 function CompactRaidFrameManager_UpdateContainerVisibility()
  512         local manager = CompactRaidFrameManager;
  513         if ( GetDisplayedAllyFrames() == "raid" and manager.container.enabled ) then
  514                 manager.container:Show();
  515         else
  516                 manager.container:Hide();
  517         end
  518 end
 
  520 function CompactRaidFrameManager_AttachPartyFrames(manager)
  521         PartyMemberFrame1:ClearAllPoints();
  522         PartyMemberFrame1:SetPoint("TOPLEFT", manager, "TOPRIGHT", 0, -20);
  523 end
 
  548         end
  549 end
 
  551 function CompactRaidFrameManager_UpdateContainerLockVisibility(self)
  552         if ( GetDisplayedAllyFrames() ~= "raid" or not CompactRaidFrameManagerDisplayFrameLockedModeToggle.lockMode ) then
  553                 CompactRaidFrameManager_LockContainer(self);
  554         else
  555                 CompactRaidFrameManager_UnlockContainer(self);
   
File: AddOns\Blizzard_CompactRaidFrames\Blizzard_CompactRaidFrameManager.xml  
326                                                                   --ToggleFriendsFrame(4);
  326                                                                 --ToggleRaidFrame();
 
330                                           <Frame name="$parentProfileSelector" inherits="UIDropDownMenuTemplate" parentKey="profileSelector">
  330                                         <Frame name="$parentOptionFlowContainer" parentKey="optionsFlowContainer">
  331                                                 <Size x="200" y="300"/>
 
  335                                         </Frame>
  336                                         <Frame name="$parentProfileSelector" inherits="UIDropDownMenuTemplate" parentKey="profileSelector">
 
340                                                   <Anchors>
341                                                           <Anchor point="TOPLEFT" relativeTo="$parentProfileSelector" relativePoint="BOTTOMLEFT" x="10" y="4"/>
342                                                   </Anchors>
 
349                                                                                   <Anchor point="BOTTOMRIGHT" x="-9" y="0"/>
  349                                                                                 <Anchor point="BOTTOMRIGHT" x="2" y="0"/>
 
357                                                                           <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="9" y="0"/>
  357                                                                         <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="19" y="4"/>
 
430                                           <Button name="$parentLockedModeToggle" inherits="UIMenuButtonStretchTemplate">
431                                                   <Size x="83" y="20"/>
432                                                   <Anchors>
433                                                           <Anchor point="BOTTOMLEFT" x="10" y="10"/>
434                                                   </Anchors>
  430                                         <Button name="$parentLockedModeToggle" parentKey="lockedModeToggle" inherits="UIMenuButtonStretchTemplate">
  431                                                 <Size x="85" y="20"/>
 
442                                           <Button name="$parentHiddenModeToggle" inherits="UIMenuButtonStretchTemplate">
443                                                   <Size x="83" y="20"/>
444                                                   <Anchors>
445                                                           <Anchor point="LEFT" relativeTo="$parentLockedModeToggle" relativePoint="RIGHT" x="3" y="0"/>
446                                                   </Anchors>
  439                                         <Button name="$parentHiddenModeToggle" parentKey="hiddenModeToggle" inherits="UIMenuButtonStretchTemplate">
  440                                                 <Size x="85" y="20"/>
 
454                                           <Frame name="$parentLeaderOptions" parentKey="leaderOptions" hidden="true">
455                                                   <Size x="0" y="95"/>
  448                                         <Button name="$parentConvertToRaid" parentKey="convertToRaid" inherits="UIMenuButtonStretchTemplate" text="CONVERT_TO_RAID" hidden="true">
  449                                                 <Size x="169" y="20"/>
  450                                                 <Scripts>
  451                                                         <OnClick>
  452                                                                 ConvertToRaid();
  453                                                         </OnClick>
  454                                                 </Scripts>
  455                                         </Button>
  456                                         <Frame name="$parentRaidMarkers" parentKey="raidMarkers" hidden="true">
  457                                                 <Size x="200" y="50"/>
  458                                                 <Frames>
  459                                                         <Button name="$parentRaidMarker1" inherits="CRFManagerRaidIconButtonTemplate" id="1">
 
457                                                           <Anchor point="BOTTOMLEFT" relativeTo="$parentLockedModeToggle" relativePoint="TOPLEFT"/>
458                                                           <Anchor point="BOTTOMRIGHT" relativeTo="$parentHiddenModeToggle" relativePoint="TOPRIGHT"/>
  461                                                                         <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="25" y="0"/>
  462                                                                 </Anchors>
  463                                                         </Button>
  464                                                         <Button name="$parentRaidMarker2" inherits="CRFManagerRaidIconButtonTemplate" id="2">
  465                                                                 <Anchors>
  466                                                                         <Anchor point="LEFT" relativeTo="$parentRaidMarker1" relativePoint="RIGHT" x="8" y="0"/>
  467                                                                 </Anchors>
  468                                                         </Button>
  469                                                         <Button name="$parentRaidMarker3" inherits="CRFManagerRaidIconButtonTemplate" id="3">
  470                                                                 <Anchors>
  471                                                                         <Anchor point="LEFT" relativeTo="$parentRaidMarker2" relativePoint="RIGHT" x="8" y="0"/>
  472                                                                 </Anchors>
  473                                                         </Button>
  474                                                         <Button name="$parentRaidMarker4" inherits="CRFManagerRaidIconButtonTemplate" id="4">
  475                                                                 <Anchors>
  476                                                                         <Anchor point="LEFT" relativeTo="$parentRaidMarker3" relativePoint="RIGHT" x="8" y="0"/>
  477                                                                 </Anchors>
  478                                                         </Button>
  479                                                         <Button name="$parentRaidMarker5" inherits="CRFManagerRaidIconButtonTemplate" id="5">
  480                                                                 <Anchors>
  481                                                                         <Anchor point="LEFT" relativeTo="$parentRaidMarker4" relativePoint="RIGHT" x="8" y="0"/>
  482                                                                 </Anchors>
  483                                                         </Button>
  484                                                         <Button name="$parentRaidMarker6" inherits="CRFManagerRaidIconButtonTemplate" id="6">
  485                                                                 <Anchors>
  486                                                                         <Anchor point="TOPLEFT" relativeTo="$parentRaidMarker1" relativePoint="BOTTOMLEFT" x="0" y="-2"/>
  487                                                                 </Anchors>
  488                                                         </Button>
  489                                                         <Button name="$parentRaidMarker7" inherits="CRFManagerRaidIconButtonTemplate" id="7">
  490                                                                 <Anchors>
  491                                                                         <Anchor point="LEFT" relativeTo="$parentRaidMarker6" relativePoint="RIGHT" x="8" y="0"/>
 
  493                                                         </Button>
  494                                                         <Button name="$parentRaidMarker8" inherits="CRFManagerRaidIconButtonTemplate" id="8">
  495                                                                 <Anchors>
  496                                                                         <Anchor point="LEFT" relativeTo="$parentRaidMarker7" relativePoint="RIGHT" x="8" y="0"/>
  497                                                                 </Anchors>
  498                                                         </Button>
  499                                                         <Button name="$parentRaidMarkerRemove" inherits="CRFManagerRaidIconButtonTemplate" id="0">
  500                                                                 <Anchors>
  501                                                                         <Anchor point="LEFT" relativeTo="$parentRaidMarker8" relativePoint="RIGHT" x="40" y="0"/>
  502                                                                 </Anchors>
  503                                                                 <Scripts>
  504                                                                         <OnLoad>
  505                                                                                 local tex = self:GetNormalTexture();
  506                                                                                 tex:ClearAllPoints();
  507                                                                                 tex:SetSize(self:GetSize());
  508                                                                                 tex:SetPoint("CENTER", self, "CENTER", 0, 0);
  509                                                                         </OnLoad>
  510                                                                 </Scripts>
  511                                                                 <NormalTexture file="Interface\Buttons\UI-GroupLoot-Pass-Up"/>
  512                                                         </Button>
  513                                                 </Frames>
  514                                         </Frame>
  515                                         <Frame name="$parentLeaderOptions" parentKey="leaderOptions" hidden="true">
  516                                                 <Size x="200" y="45"/>
 
  518                                                         <Button name="$parentInitiateRolePoll" inherits="UIMenuButtonStretchTemplate" text="ROLE_POLL" parentKey="rolePollButton">
  519                                                                 <Size x="169" y="20"/>
  520                                                                 <Anchors>
  521                                                                         <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="20" y="-5"/>
  522                                                                 </Anchors>
  523                                                                 <Scripts>
  524                                                                         <OnClick>
  525                                                                                 InitiateRolePoll();
  526                                                                         </OnClick>
  527                                                                 </Scripts>
  528                                                         </Button>
  529                                                         <Button name="$parentInitiateReadyCheck" inherits="UIMenuButtonStretchTemplate" text="READY_CHECK" parentKey="readyCheckButton">
  530                                                                 <Size x="129" y="20"/>
  531                                                                 <Anchors>
  532                                                                         <Anchor point="TOPLEFT" relativeTo="$parentInitiateRolePoll" relativePoint="BOTTOMLEFT" x="0" y="0"/>
  533                                                                 </Anchors>
  534                                                                 <Scripts>
  535                                                                         <OnClick>
  536                                                                                 DoReadyCheck();
  537                                                                         </OnClick>
  538                                                                 </Scripts>
  539                                                         </Button>
 
464                                                                           <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
  543                                                                         <Anchor point="TOPLEFT" relativeTo="$parentInitiateReadyCheck" relativePoint="TOPRIGHT" x="0" y="0"/>
 
505                                                           <Button name="$parentInitiateReadyCheck" inherits="UIMenuButtonStretchTemplate" text="READY_CHECK" parentKey="readyCheckButton">
506                                                                   <Size x="0" y="20"/>
507                                                                   <Anchors>
508                                                                           <Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT" x="0" y="0"/>
509                                                                           <Anchor point="RIGHT" relativeTo="$parentRaidWorldMarkerButton" relativePoint="LEFT" x="-2" y="0"/>
510                                                                   </Anchors>
  584                                                 </Frames>
  585                                         </Frame>
  586                                         <CheckButton name="$parentEveryoneIsAssistButton" parentKey="everyoneIsAssistButton" hidden="true" inherits="UICheckButtonTemplate">
  587                                                 <Size x="24" y="24"/>
  588                                                 <HitRectInsets>
  589                                                         <AbsInset left="0" right="-140" top="0" bottom="0"/>
  590                                                 </HitRectInsets>
 
512                                                                           <OnClick>
513                                                                                   DoReadyCheck();
514                                                                           </OnClick>
515                                                                   </Scripts>
516                                                           </Button>
517                                                           <Button name="$parentInitiateRolePoll" inherits="UIMenuButtonStretchTemplate" text="ROLE_POLL" parentKey="rolePollButton">
518                                                                   <Size x="0" y="20"/>
519                                                                   <Anchors>
520                                                                           <Anchor point="BOTTOMLEFT" relativeTo="$parentInitiateReadyCheck" relativePoint="TOPLEFT" x="0" y="0"/>
521                                                                           <Anchor point="BOTTOMRIGHT" relativeTo="$parentRaidWorldMarkerButton" relativePoint="TOPRIGHT" x="0" y="0"/>
522                                                                   </Anchors>
523                                                                   <Scripts>
  592                                                         <OnLoad>
  593                                                                 _G[self:GetName().."Text"]:SetText(ALL_ASSIST_LABEL_LONG);
  594                                                                 self:RegisterEvent("RAID_ROSTER_UPDATE");
  595                                                                 self:RegisterEvent("PARTY_LEADER_CHANGED");
  596                                                         </OnLoad>
  597                                                         <OnEvent>
  598                                                                 self:SetChecked(IsEveryoneAssistant());
  599                                                                 if ( IsRaidLeader() ) then
  600                                                                         self:Enable();
  601                                                                         self.text:SetFontObject(GameFontNormalSmall);
  602                                                                 else
  603                                                                         self:Disable();
  604                                                                         self.text:SetFontObject(GameFontDisableSmall);
  605                                                                 end
  606                                                         </OnEvent>
 
525                                                                                   InitiateRolePoll();
  608                                                                 SetEveryoneIsAssistant(self:GetChecked());     
 
527                                                                   </Scripts>
528                                                           </Button>
529                                                           <Button name="$parentRaidMarker6" inherits="CRFManagerRaidIconButtonTemplate" id="6">
530                                                                   <Anchors>
531                                                                           <Anchor point="BOTTOMLEFT" relativeTo="$parentInitiateRolePoll" relativePoint="TOPLEFT" x="5" y="4"/>
532                                                                   </Anchors>
533                                                           </Button>
534                                                           <Button name="$parentRaidMarker7" inherits="CRFManagerRaidIconButtonTemplate" id="7">
535                                                                   <Anchors>
536                                                                           <Anchor point="LEFT" relativeTo="$parentRaidMarker6" relativePoint="RIGHT" x="8" y="0"/>
537                                                                   </Anchors>
538                                                           </Button>
539                                                           <Button name="$parentRaidMarker8" inherits="CRFManagerRaidIconButtonTemplate" id="8">
540                                                                   <Anchors>
541                                                                           <Anchor point="LEFT" relativeTo="$parentRaidMarker7" relativePoint="RIGHT" x="8" y="0"/>
542                                                                   </Anchors>
543                                                           </Button>
544                                                           <Button name="$parentRaidMarkerRemove" inherits="CRFManagerRaidIconButtonTemplate" id="0">
545                                                                   <Anchors>
546                                                                           <Anchor point="LEFT" relativeTo="$parentRaidMarker8" relativePoint="RIGHT" x="40" y="0"/>
547                                                                   </Anchors>
548                                                                   <Scripts>
549                                                                           <OnLoad>
550                                                                                   local tex = self:GetNormalTexture();
551                                                                                   tex:ClearAllPoints();
552                                                                                   tex:SetSize(self:GetSize());
553                                                                                   tex:SetPoint("CENTER", self, "CENTER", 0, 0);
554                                                                           </OnLoad>
  610                                                         <OnEnter>
  611                                                                 GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
  612                                                                 GameTooltip:SetText(ALL_ASSIST_DESCRIPTION, nil, nil, nil, nil, true);
  613                                                                 if ( not self:IsEnabled() ) then
  614                                                                         GameTooltip:AddLine(ALL_ASSIST_NOT_LEADER_ERROR, RED_FONT_COLOR.r, RED_FONT_COLOR.g, RED_FONT_COLOR.b, 1);
  615                                                                 end
  616                                                                 GameTooltip:Show();
  617                                                         </OnEnter>
  618                                                         <OnLeave function="GameTooltip_Hide"/>
 
556                                                                   <NormalTexture file="Interface\Buttons\UI-GroupLoot-Pass-Up"/>
557                                                           </Button>
558                                                           <Button name="$parentRaidMarker1" inherits="CRFManagerRaidIconButtonTemplate" id="1">
559                                                                   <Anchors>
560                                                                           <Anchor point="BOTTOMLEFT" relativeTo="$parentRaidMarker6" relativePoint="TOPLEFT" x="0" y="2"/>
561                                                                   </Anchors>
562                                                           </Button>
563                                                           <Button name="$parentRaidMarker2" inherits="CRFManagerRaidIconButtonTemplate" id="2">
564                                                                   <Anchors>
565                                                                           <Anchor point="LEFT" relativeTo="$parentRaidMarker1" relativePoint="RIGHT" x="8" y="0"/>
566                                                                   </Anchors>
567                                                           </Button>
568                                                           <Button name="$parentRaidMarker3" inherits="CRFManagerRaidIconButtonTemplate" id="3">
569                                                                   <Anchors>
570                                                                           <Anchor point="LEFT" relativeTo="$parentRaidMarker2" relativePoint="RIGHT" x="8" y="0"/>
571                                                                   </Anchors>
572                                                           </Button>
573                                                           <Button name="$parentRaidMarker4" inherits="CRFManagerRaidIconButtonTemplate" id="4">
574                                                                   <Anchors>
575                                                                           <Anchor point="LEFT" relativeTo="$parentRaidMarker3" relativePoint="RIGHT" x="8" y="0"/>
576                                                                   </Anchors>
577                                                           </Button>
578                                                           <Button name="$parentRaidMarker5" inherits="CRFManagerRaidIconButtonTemplate" id="5">
579                                                                   <Anchors>
580                                                                           <Anchor point="LEFT" relativeTo="$parentRaidMarker4" relativePoint="RIGHT" x="8" y="0"/>
581                                                                   </Anchors>
582                                                           </Button>
583                                                   </Frames>
584                                           </Frame>
  620                                         </CheckButton>
   
File: AddOns\Blizzard_CompactRaidFrames\Blizzard_CompactRaidFrames.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_CUFProfiles\Blizzard_CompactUnitFrameProfiles.lua  
22                   self.profilesLoaded = true;
  22                 --HasLoadedCUFProfiles will now return true.
 
37           if ( self.profilesLoaded and self.variablesLoaded ) then
  37         if ( HasLoadedCUFProfiles() and self.variablesLoaded ) then
 
193           if ( text == "" or RaidProfileExists(text) ) then
  193         if ( text == "" or RaidProfileExists(text) or strlower(text) == strlower(DEFAULTS) ) then
   
File: AddOns\Blizzard_CUFProfiles\Blizzard_CUFProfiles.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_DebugTools\Blizzard_DebugTools.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_EncounterJournal\Blizzard_EncounterJournal.lua  
  1 BOSS_INFO_STRING = "Boss: %s"
  2 --LOCALIZED CONSTANTS
  3 EJ_MIN_CHARACTER_SEARCH = 3;
 
  6 --FILE CONSTANTS
  7 local HEADER_INDENT = 15;
  8 local MAX_CREATURES_PER_ENCOUNTER = 6;
 
  10 local SECTION_BUTTON_OFFSET = 6;
  11 local SECTION_DESCRIPTION_OFFSET = 27;
 
  14 local EJ_STYPE_ITEM = 0;
  15 local EJ_STYPE_ENCOUNTER = 1;
  16 local EJ_STYPE_CREATURE = 2;
  17 local EJ_STYPE_SECTION = 3;
  18 local EJ_STYPE_INSTANCE = 4;
 
  21 local EJ_NUM_INSTANCE_PER_ROW = 4;
 
  23 local EJ_LORE_MAX_HEIGHT = 97;
  24 local EJ_MAX_SECTION_MOVE = 320;
 
  27 local EJ_Tabs = {};
  28 EJ_Tabs[1] = {frame="detailsScroll", button="bossTab"};
  29 EJ_Tabs[2] = {frame="lootScroll", button="lootTab"};
 
  32 local EJ_section_openTable = {};
 
  35 local EJ_LINK_INSTANCE          = 0;
  36 local EJ_LINK_ENCOUNTER         = 1;
  37 local EJ_LINK_SECTION           = 3;
 
  41 local BOSS_LOOT_BUTTON_HEIGHT = 45;
  42 local INSTANCE_LOOT_BUTTON_HEIGHT = 64;
 
  46 function EncounterJournal_OnLoad(self)
  47         EncounterJournalTitleText:SetText(ENCOUNTER_JOURNAL);
  48         SetPortraitToTexture(EncounterJournalPortrait,"Interface\\EncounterJournal\\UI-EJ-PortraitIcon");
  49         self:RegisterEvent("EJ_LOOT_DATA_RECIEVED");
  50         self:RegisterEvent("UNIT_PORTRAIT_UPDATE");
  51         self:RegisterEvent("EJ_DIFFICULTY_UPDATE");
 
  53         self.encounter.freeHeaders = {};
  54         self.encounter.usedHeaders = {};
 
  56         self.encounter.infoFrame = self.encounter.info.detailsScroll.child;
  57         self.encounter.info.detailsScroll.ScrollBar.scrollStep = 30;
 
  60         -- UIDropDownMenu_SetWidth(self.instanceSelect.tierDropDown, 170);
  61         -- UIDropDownMenu_SetText(self.instanceSelect.tierDropDown, "Pick A Dungeon");
  62         -- UIDropDownMenu_JustifyText(self.instanceSelect.tierDropDown, "LEFT");
  63         -- UIDropDownMenu_Initialize(self.instanceSelect.tierDropDown, EncounterJournal_TierDropDown_Init);
 
  66         self.encounter.info.bossTab:Click();
 
  68         self.encounter.info.lootScroll.update = EncounterJournal_LootUpdate;
  69         self.encounter.info.lootScroll.scrollBar.doNotHide = true;
  70         self.encounter.info.lootScroll.dynamic = EncounterJournal_LootCalcScroll;
  71         HybridScrollFrame_CreateButtons(self.encounter.info.lootScroll, "EncounterItemTemplate", 0, 0);
 
  74         self.searchResults.scrollFrame.update = EncounterJournal_SearchUpdate;
  75         self.searchResults.scrollFrame.scrollBar.doNotHide = true;
  76         HybridScrollFrame_CreateButtons(self.searchResults.scrollFrame, "EncounterSearchLGTemplate", 0, 0);
 
  78         EncounterJournal.isHeroic = false;
  79         EncounterJournal.is10Man = true;
  80         EJ_SetDifficulty(EncounterJournal.isHeroic, EncounterJournal.is10Man);
 
  82         EncounterJournal.searchBox.oldEditLost = EncounterJournal.searchBox:GetScript("OnEditFocusLost");
  83         EncounterJournal.searchBox:SetScript("OnEditFocusLost", function(self) self:oldEditLost(); EncounterJournal_HideSearchPreview(); end);
  84         EncounterJournal.searchBox.clearFunc = EncounterJournal_ClearSearch;
 
  87         local homeData = {
  88                 name = HOME,
  89                 OnClick = EncounterJournal_ListInstances,
  90                 listFunc = EJNAV_ListInstance,
  91         }
  92         NavBar_Initialize(self.navBar, "NavButtonTemplate", homeData, self.navBar.home, self.navBar.overflow);
  93         EncounterJournal_ListInstances();
 
  95         EncounterJournal.instanceSelect.dungeonsTab:Disable();
  96         EncounterJournal.instanceSelect.dungeonsTab.selectedGlow:Show();
  97         EncounterJournal.instanceSelect.raidsTab:GetFontString():SetTextColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b);
  98 end
 
  101 function EncounterJournal_OnShow(self)
  102         UpdateMicroButtons();
  103         PlaySound("igCharacterInfoOpen");
 
  105         --automatically navigate to the current dungeon if you are in one;
  106         local instanceID = EJ_GetCurrentInstance();
  107         if instanceID ~= 0 and instanceID ~= EncounterJournal.lastInstance then
  108                 EncounterJournal_ListInstances();
  109                 EncounterJournal_DisplayInstance(instanceID);
  110                 EncounterJournal.lastInstance = instanceID;
  111         end
 
  114         local classFilter, classFilterName = EJ_GetClassFilter();
  115         EncounterJournal_SetClassFilter(classFilter, classFilterName);
  116 end
 
  119 function EncounterJournal_OnHide(self)
  120         UpdateMicroButtons();
  121         PlaySound("igCharacterInfoClose");
  122         if self.searchBox.clearButton then
  123                 self.searchBox.clearButton:Click();
  124                 EJ_ClearSearch();
  125         end
  126 end
 
  129 function EncounterJournal_OnEvent(self, event, ...)
  130         if  event == "EJ_LOOT_DATA_RECIEVED" then
  131                 local itemID = ...
  132                 if itemID then
  133                         EncounterJournal_LootCallback(itemID);
  134                         EncounterJournal_SearchUpdate();
  135                 else
  136                         EncounterJournal_LootUpdate();
  137                 end
  138         elseif event == "EJ_DIFFICULTY_UPDATE" then
  139                 --fix the difficulty buttons
  140                 local isHeroic, is10man = ...;
  141                 if is10man then
  142                         EncounterJournal.is10Man = true;
  143                         EncounterJournal.encounter.info.diff10man.selected:Show();
  144                         EncounterJournal.encounter.info.diff25man.selected:Hide();
  145                 else
  146                         EncounterJournal.is10Man = false;
  147                         EncounterJournal.encounter.info.diff10man.selected:Hide();
  148                         EncounterJournal.encounter.info.diff25man.selected:Show();
  149                 end
 
  151                 EncounterJournal.isHeroic = isHeroic;
  152                 if isHeroic then
  153                         EncounterJournal.encounter.info.heroButton.selected:Show();
  154                 else
  155                         EncounterJournal.encounter.info.heroButton.selected:Hide();
  156                 end
  157         elseif event == "UNIT_PORTRAIT_UPDATE" then
  158                 local unit = ...;
  159                 if not unit then
  160                         EncounterJournal_UpdatePortraits();
  161                 end
  162         end
  163 end
 
  166 function EncounterJournal_UpdatePortraits()
  167         if ( EncounterJournal:IsShown() ) then
  168                 local self = EncounterJournal.encounter;
  169                 for i = 1, MAX_CREATURES_PER_ENCOUNTER do
  170                         local button = self["creatureButton"..i];
  171                         if ( button and button:IsShown() ) then
  172                                 SetPortraitTexture(button.creature, button.displayInfo);
  173                         else
  174                                 break;
  175                         end
  176                 end
  177                 local usedHeaders = EncounterJournal.encounter.usedHeaders;
  178                 for _, header in pairs(usedHeaders) do
  179                         if ( header.button.portrait.displayInfo ) then
  180                                 SetPortraitTexture(header.button.portrait.icon, header.button.portrait.displayInfo);
  181                         end
  182                 end
  183         end
  184         if ( WorldMapFrame:IsShown() ) then
  185                 local index = 1;
  186                 local bossButton = _G["EJMapButton"..index];
  187                 while ( bossButton and bossButton:IsShown() ) do
  188                         SetPortraitTexture(bossButton.bgImage, bossButton.displayInfo);
  189                         index = index + 1;
  190                         bossButton = _G["EJMapButton"..index];
  191                 end
  192         end
  193 end
 
  196 function EncounterJournal_ListInstances()
  197         NavBar_Reset(EncounterJournal.navBar);
  198         EncounterJournal.encounter:Hide();
  199         EncounterJournal.instanceSelect:Show();
  200         local showRaid = EncounterJournal.instanceSelect.raidsTab:IsEnabled() == nil;
 
  203         local self = EncounterJournal.instanceSelect.scroll.child;
  204         local index = 1;
  205         local instanceID, name, description, _, buttonImage, _, _, link = EJ_GetInstanceByIndex(index, showRaid);
  206         local instanceButton;
  207         while instanceID do
  208                 instanceButton = self["instance"..index];
  209                 if not instanceButton then -- create button
  210                         instanceButton = CreateFrame("BUTTON", self:GetParent():GetName().."instance"..index, self, "EncounterInstanceButtonTemplate");
  211                         if ( EncounterJournal.localizeInstanceButton ) then
  212                                 EncounterJournal.localizeInstanceButton(instanceButton);
  213                         end
  214                         self["instance"..index] = instanceButton;
  215                         if mod(index-1, EJ_NUM_INSTANCE_PER_ROW) == 0 then
  216                                 instanceButton:SetPoint("TOP", self["instance"..(index-EJ_NUM_INSTANCE_PER_ROW)], "BOTTOM", 0, -15);
  217                         else
  218                                 instanceButton:SetPoint("LEFT", self["instance"..(index-1)], "RIGHT", 15, 0);
  219                         end
  220                 end
 
  222                 instanceButton.name:SetText(name);
  223                 instanceButton.bgImage:SetTexture(buttonImage);
  224                 instanceButton.instanceID = instanceID;
  225                 instanceButton.tooltipTitle = name;
  226                 instanceButton.tooltipText = description;
  227                 instanceButton.link = link;
  228                 instanceButton:Show();
 
  230                 index = index + 1;
  231                 instanceID, name, description, _, buttonImage, _, _, link = EJ_GetInstanceByIndex(index, showRaid);
  232         end
 
  234         --Hide old buttons needed.
  235         instanceButton = self["instance"..index];
  236         while instanceButton do
  237                 instanceButton:Hide();
  238                 index = index + 1;
  239                 instanceButton = self["instance"..index];
  240         end
  241 end
 
  244 function EncounterJournal_DisplayInstance(instanceID, noButton)
  245         local self = EncounterJournal.encounter;
  246         EncounterJournal.encounter.model:Hide();
  247         EncounterJournal.instanceSelect:Hide();
  248         EncounterJournal.encounter:Show();
  249         EncounterJournal.ceatureDisplayID = 0;
 
  251         EncounterJournal.instanceID = instanceID;
  252         EncounterJournal.encounterID = nil;
  253         EJ_SelectInstance(instanceID);
  254         EncounterJournal_LootUpdate();
  255         EncounterJournal_ClearDetails()
 
  257         if EJ_InstanceIsRaid() then
  258                 self.info.diff10man:Show();
  259                 self.info.diff25man:Show();
  260                 self.info.encounterTitle:SetPoint("RIGHT",self.info.diff10man, "LEFT", -20, 0);
  261         else
  262                 self.info.diff10man:Hide();
  263                 self.info.diff25man:Hide();
  264                 self.info.encounterTitle:SetPoint("RIGHT", self.info.heroButton, "LEFT", -20, 0);
  265         end
 
  267         local iname, description, bgImage, _, loreImage = EJ_GetInstanceInfo();
  268         self.instance.title:SetText(iname);
  269         self.instance.loreBG:SetTexture(loreImage);
  270         self.info.encounterTitle:SetText(iname);
 
  272         self.instance.loreScroll.child.lore:SetText(description);
  273         local loreHeight = self.instance.loreScroll.child.lore:GetHeight();
  274         self.instance.loreScroll.ScrollBar:SetValue(0);
  275         if loreHeight <= EJ_LORE_MAX_HEIGHT then
  276                 self.instance.loreScroll.ScrollBar:Hide();
  277         else
  278                 self.instance.loreScroll.ScrollBar:Show();
  279         end
 
  281         self.info.dungeonBG:SetTexture(bgImage);
  282         self.info.dungeonBG:Hide();
 
  284         local bossIndex = 1;
  285         local name, description, bossID, _, link = EJ_GetEncounterInfoByIndex(bossIndex);
  286         local bossButton;
  287         while bossID do
  288                 bossButton = _G["EncounterJournalBossButton"..bossIndex];
  289                 if not bossButton then -- create a new header;
  290                         bossButton = CreateFrame("BUTTON", "EncounterJournalBossButton"..bossIndex, EncounterJournal.encounter.infoFrame, "EncounterBossButtonTemplate");
  291                         if bossIndex > 1 then
  292                                 bossButton:SetPoint("TOPLEFT", _G["EncounterJournalBossButton"..(bossIndex-1)], "BOTTOMLEFT", 0, -15);
  293                         else
  294                                 bossButton:SetPoint("TOPLEFT", EncounterJournal.encounter.infoFrame, "TOPLEFT", 0, -10);
  295                         end
  296                 end
 
  298                 bossButton.link = link;
  299                 bossButton:SetText(name);
  300                 bossButton:Show();
  301                 bossButton.encounterID = bossID;
  302                 --Use the boss' first creature as the button icon
  303                 local _, _, _, _, bossImage = EJ_GetCreatureInfo(1, bossID);
  304                 bossImage = bossImage or "Interface\\EncounterJournal\\UI-EJ-BOSS-Default";
  305                 bossButton.creature:SetTexture(bossImage);
 
  307                 bossIndex = bossIndex + 1;
  308                 name, description, bossID, _, link = EJ_GetEncounterInfoByIndex(bossIndex);
  309         end
 
  311         --handle typeHeader
 
  313         self.instance:Show();
 
  315         if not noButton then
  316                 local buttonData = {
  317                         name = iname,
  318                         OnClick = EJNAV_RefreshInstance,
  319                         listFunc = EJNAV_ListEncounter
  320                 }
  321                 NavBar_AddButton(EncounterJournal.navBar, buttonData);
  322         end
  323 end
 
  326 function EncounterJournal_DisplayEncounter(encounterID, noButton)
  327         local self = EncounterJournal.encounter;
  328         EncounterJournal.encounter.model:Show();
 
  330         local ename, description, _, rootSectionID = EJ_GetEncounterInfo(encounterID);
  331         EncounterJournal.encounterID = encounterID;
  332         EJ_SelectEncounter(encounterID);
  333         EncounterJournal_LootUpdate();
  334         EncounterJournal_ClearDetails();
 
  336         self.info.encounterTitle:SetText(ename);
 
  338         self.infoFrame.description:SetText(description);
  339         self.infoFrame.description:SetWidth(self.infoFrame:GetWidth() -5);
  340         self.infoFrame.encounterID = encounterID;
  341         self.infoFrame.rootSectionID = rootSectionID;
  342         self.infoFrame.expanded = false;
 
  344         self.info.dungeonBG:Show();
 
  346         -- Setup Creatures
  347         local id, displayInfo, iconImage;
  348         for i=1,MAX_CREATURES_PER_ENCOUNTER do
  349                 id, name, description, displayInfo, iconImage = EJ_GetCreatureInfo(i);
 
  351                 local button = self["creatureButton"..i];
  352                 if id then
  353                         SetPortraitTexture(button.creature, displayInfo);
  354                         button.name = name;
  355                         button.id = id;
  356                         button.description = description;
  357                         button.displayInfo = displayInfo;
  358                         button:Show();
  359                 end
 
  361                 if i == 1 then
  362                         EncounterJournal_DisplayCreature(button);
  363                 end
  364         end
 
  366         EncounterJournal_ToggleHeaders(self.infoFrame)
  367         self:Show();
 
  369         if not noButton then
  370                 local buttonData = {
  371                         name = ename,
  372                         OnClick = EJNAV_RefreshEncounter,
  373                 }
  374                 NavBar_AddButton(EncounterJournal.navBar, buttonData);
  375         end
  376 end
 
  379 function EncounterJournal_DisplayCreature(self)
  380         if EncounterJournal.encounter.shownCreatureButton then
  381                 EncounterJournal.encounter.shownCreatureButton:Enable();
  382         end
 
  384         if EncounterJournal.ceatureDisplayID == self.displayInfo then
  385                 --Don't refresh the same model
  386         elseif self.displayInfo then
  387                 EncounterJournal.encounter.model.imageTitle:SetText(self.name);
  388                 EncounterJournal.encounter.model:SetDisplayInfo(self.displayInfo);
  389                 EncounterJournal.ceatureDisplayID = self.displayInfo;
  390         end
 
  392         self:Disable();
  393         EncounterJournal.encounter.shownCreatureButton = self;
  394 end
 
  397 local toggleTempList = {};
  398 local headerCount = 0;
  399 function EncounterJournal_ToggleHeaders(self, doNotShift)
  400         local numAdded = 0
  401         local infoHeader, parentID, _;
  402         local hWidth = self:GetWidth();
  403         local nextSectionID;
  404         local topLevelSection = false;
  405         if self.myID then  -- this is from a button click
  406                 _, _, _, _, _, _, nextSectionID =  EJ_GetSectionInfo(self.myID)
  407                 parentID = self.myID;
  408                 self.description:SetWidth(self:GetWidth() -20);
  409                 hWidth = hWidth - HEADER_INDENT;
  410         else
  411                 --This sets the base encounter header
  412                 parentID = self.encounterID;
  413                 nextSectionID = self.rootSectionID;
  414                 topLevelSection = true;
  415         end
 
  418         local freeHeaders = EncounterJournal.encounter.freeHeaders;
  419         local usedHeaders = EncounterJournal.encounter.usedHeaders;
 
  421         self.expanded = not self.expanded;
  422         local hideHeaders = not self.expanded;
  423         if hideHeaders then
  424                 -- This can only happen for buttons
  425                 self.button.expandedIcon:SetText("+");
  426                 self.description:Hide();
  427                 self.descriptionBG:Hide();
  428                 self.descriptionBGBottom:Hide();
 
  430                 EncounterJournal_ClearChildHeaders(self);
  431         else
  432                 if strlen(self.description:GetText() or "") > 0 then
  433                         self.description:Show();
  434                         if self.button then
  435                                 self.descriptionBG:Show();
  436                                 self.descriptionBGBottom:Show();
  437                                 self.button.expandedIcon:SetText("-");
  438                         end
  439                 elseif self.button then
  440                         self.description:Hide();
  441                         self.descriptionBG:Hide();
  442                         self.descriptionBGBottom:Hide();
  443                         self.button.expandedIcon:SetText("-");
  444                 end
 
  446                 -- Get Section Info
  447                 local listEnd  = #usedHeaders;
  448                 while nextSectionID do
  449                         local title, description, headerType, abilityIcon, displayInfo, siblingID, _, fileredByDifficulty, link, startsOpen, flag1, flag2, flag3, flag4 = EJ_GetSectionInfo(nextSectionID);
  450                         if not title then
  451                                 break;
  452                         elseif not fileredByDifficulty then --ignore all sections that should not be shown with our current difficulty settings        
  453                                 if #freeHeaders == 0 then -- create a new header;
  454                                         headerCount = headerCount + 1; -- the is a file local
  455                                         infoHeader = CreateFrame("FRAME", "EncounterJournalInfoHeader"..headerCount, EncounterJournal.encounter.infoFrame, "EncounterInfoTemplate");
  456                                         infoHeader:Hide();
  457                                 else
  458                                         infoHeader = freeHeaders[#freeHeaders];
  459                                         freeHeaders[#freeHeaders] = nil;
  460                                 end
 
  462                                 numAdded = numAdded + 1;
  463                                 toggleTempList[#toggleTempList+1] = infoHeader;
 
  465                                 infoHeader.button.link = link;
  466                                 infoHeader.parentID = parentID;
  467                                 infoHeader.myID = nextSectionID;
  468                                 infoHeader.description:SetText(description);
  469                                 infoHeader.button.title:SetText(title);
  470                                 if topLevelSection then
  471                                         infoHeader.button.title:SetFontObject("GameFontNormalMed3");
  472                                 else
  473                                         infoHeader.button.title:SetFontObject("GameFontNormal");
  474                                 end
 
  476                                 --All headers start collapsed
  477                                 infoHeader.expanded = false
  478                                 infoHeader.description:Hide();
  479                                 infoHeader.descriptionBG:Hide();
  480                                 infoHeader.descriptionBGBottom:Hide();
  481                                 infoHeader.button.expandedIcon:SetText("+");
 
  484                                 local textLeftAnchor = infoHeader.button.expandedIcon;
  485                                 --Show ability Icon
  486                                 if abilityIcon ~= "" then
  487                                         infoHeader.button.abilityIcon:SetTexture(abilityIcon);
  488                                         infoHeader.button.abilityIcon:Show();
  489                                         textLeftAnchor = infoHeader.button.abilityIcon;
  490                                 else
  491                                         infoHeader.button.abilityIcon:Hide();
  492                                 end
 
  494                                 --Show Creature Portrait
  495                                 if displayInfo ~= 0 then
  496                                         SetPortraitTexture(infoHeader.button.portrait.icon, displayInfo);
  497                                         infoHeader.button.portrait.name = title;
  498                                         infoHeader.button.portrait.displayInfo = displayInfo;
  499                                         infoHeader.button.portrait:Show();
  500                                         textLeftAnchor = infoHeader.button.portrait;
  501                                         infoHeader.button.abilityIcon:Hide();
  502                                 else
  503                                         infoHeader.button.portrait:Hide();
  504                                         infoHeader.button.portrait.name = nil;
  505                                         infoHeader.button.portrait.displayInfo = nil;
  506                                 end
  507                                 infoHeader.button.title:SetPoint("LEFT", textLeftAnchor, "RIGHT", 5, 0);
 
  510                                 --Set flag Icons
  511                                 local textRightAnchor = nil;
  512                                 infoHeader.button.icon1:Hide();
  513                                 infoHeader.button.icon2:Hide();
  514                                 infoHeader.button.icon3:Hide();
  515                                 infoHeader.button.icon4:Hide();
  516                                 if flag1 then
  517                                         textRightAnchor = infoHeader.button.icon1;
  518                                         infoHeader.button.icon1:Show();
  519                                         infoHeader.button.icon1.tooltipTitle = _G["ENCOUNTER_JOURNAL_SECTION_FLAG"..flag1];
  520                                         infoHeader.button.icon1.tooltipText = _G["ENCOUNTER_JOURNAL_SECTION_FLAG_DESCRIPTION"..flag1];
  521                                         EncounterJournal_SetFlagIcon(infoHeader.button.icon1.icon, flag1);
  522                                         if flag2 then
  523                                                 textRightAnchor = infoHeader.button.icon2;
  524                                                 infoHeader.button.icon2:Show();
  525                                                 EncounterJournal_SetFlagIcon(infoHeader.button.icon2.icon, flag2);
  526                                                 infoHeader.button.icon2.tooltipTitle = _G["ENCOUNTER_JOURNAL_SECTION_FLAG"..flag2];
  527                                                 infoHeader.button.icon2.tooltipText = _G["ENCOUNTER_JOURNAL_SECTION_FLAG_DESCRIPTION"..flag2];
  528                                                 if flag3 then
  529                                                         textRightAnchor = infoHeader.button.icon3;
  530                                                         infoHeader.button.icon3:Show();
  531                                                         EncounterJournal_SetFlagIcon(infoHeader.button.icon3.icon, flag3);
  532                                                         infoHeader.button.icon3.tooltipTitle = _G["ENCOUNTER_JOURNAL_SECTION_FLAG"..flag3];
  533                                                         infoHeader.button.icon3.tooltipText = _G["ENCOUNTER_JOURNAL_SECTION_FLAG_DESCRIPTION"..flag3];
  534                                                         if flag4 then
  535                                                                 textRightAnchor = infoHeader.button.icon4;
  536                                                                 infoHeader.button.icon4:Show();
  537                                                                 EncounterJournal_SetFlagIcon(infoHeader.button.icon4.icon, flag4);
  538                                                                 infoHeader.button.icon4.tooltipTitle = _G["ENCOUNTER_JOURNAL_SECTION_FLAG"..flag4];
  539                                                                 infoHeader.button.icon4.tooltipText = _G["ENCOUNTER_JOURNAL_SECTION_FLAG_DESCRIPTION"..flag4];
  540                                                         end
  541                                                 end
  542                                         end
  543                                 end
  544                                 if textRightAnchor then
  545                                         infoHeader.button.title:SetPoint("RIGHT", textRightAnchor, "LEFT", -5, 0);
  546                                 else
  547                                         infoHeader.button.title:SetPoint("RIGHT", infoHeader.button, "RIGHT", -5, 0);
  548                                 end
 
  550                                 infoHeader.index = nil;
  551                                 infoHeader:SetWidth(hWidth);
 
  554                                 -- If this section has not be seen and should start open
  555                                 if EJ_section_openTable[infoHeader.myID] == nil and startsOpen then
  556                                         EJ_section_openTable[infoHeader.myID] = true;
  557                                 end
 
  559                                 --toggleNested?
  560                                 if EJ_section_openTable[infoHeader.myID]  then
  561                                         infoHeader.expanded = false; -- setting false to expand it in EncounterJournal_ToggleHeaders
  562                                         numAdded = numAdded + EncounterJournal_ToggleHeaders(infoHeader, true);
  563                                 end
 
  565                                 infoHeader:Show();
  566                         end -- if not fileredByDifficulty
  567                         nextSectionID = siblingID;
  568                 end
 
  570                 if not doNotShift and numAdded > 0 then
  571                         --fix the usedlist
  572                         local startIndex = self.index or 0;
  573                         for i=listEnd,startIndex+1,-1 do
  574                                 usedHeaders[i+numAdded] = usedHeaders[i];
  575                                 usedHeaders[i+numAdded].index = i + numAdded;
  576                                 usedHeaders[i] = nil
  577                         end
  578                         for i=1,numAdded do
  579                                 usedHeaders[startIndex + i] = toggleTempList[i];
  580                                 usedHeaders[startIndex + i].index = startIndex + i;
  581                                 toggleTempList[i] = nil;
  582                         end
  583                 end
 
  585                 if topLevelSection and usedHeaders[1] then
  586                         usedHeaders[1]:SetPoint("TOPRIGHT", 0 , -8 - self.description:GetHeight() - SECTION_BUTTON_OFFSET);
  587                 end
  588         end
 
  590         if self.myID then
  591                 EJ_section_openTable[self.myID] = self.expanded;
  592         end
 
  594         if not doNotShift then
  595                 EncounterJournal_ShiftHeaders(self.index or 1);
 
  597                 --check to see if it is offscreen
  598                 if self.index then
  599                         local scrollValue = EncounterJournal.encounter.info.detailsScroll.ScrollBar:GetValue();
  600                         local cutoff = EncounterJournal.encounter.info.detailsScroll:GetHeight() + scrollValue;
 
  602                         local _, _, _, _, anchorY = self:GetPoint();
  603                         anchorY = anchorY - self:GetHeight();
  604                         if self.description:IsShown() then
  605                                 anchorY = anchorY - self.description:GetHeight() - SECTION_DESCRIPTION_OFFSET;
  606                         end
 
  608                         if cutoff < abs(anchorY) then
  609                                 self.frameCount = 0;
  610                                 self:SetScript("OnUpdate", EncounterJournal_MoveSectionUpdate);
  611                         end
  612                 end
  613         end
  614         return numAdded;
  615 end
 
  618 function EncounterJournal_ShiftHeaders(index)
  619         local usedHeaders = EncounterJournal.encounter.usedHeaders;
  620         if not usedHeaders[index] then
  621                 return;
  622         end
 
  624         local _, _, _, _, anchorY = usedHeaders[index]:GetPoint();
  625         for i=index,#usedHeaders-1 do
  626                 anchorY = anchorY - usedHeaders[i]:GetHeight();
  627                 if usedHeaders[i].description:IsShown() then
  628                         anchorY = anchorY - usedHeaders[i].description:GetHeight() - SECTION_DESCRIPTION_OFFSET;
  629                 else
  630                         anchorY = anchorY - SECTION_BUTTON_OFFSET;
  631                 end
 
  633                 usedHeaders[i+1]:SetPoint("TOPRIGHT", 0 , anchorY);
  634         end
  635 end
 
  638 function EncounterJournal_ResetHeaders()
  639         for key,_ in pairs(EJ_section_openTable) do
  640                 EJ_section_openTable[key] = nil;
  641         end
 
  643         PlaySound("igMainMenuOptionCheckBoxOn");
  644         EncounterJournal_Refresh(EncounterJournal);
  645 end
 
  648 function EncounterJournal_FocusSection(sectionID)
  649         local usedHeaders = EncounterJournal.encounter.usedHeaders;
  650         for _, section in pairs(usedHeaders) do
  651                 if section.myID == sectionID then
  652                         section.cbCount = 0;
  653                         section.flashAnim:Play();
  654                         section:SetScript("OnUpdate", EncounterJournal_FocusSectionCallback);
  655                         return;
  656                 end
  657         end
  658 end
 
  661 function EncounterJournal_FocusSectionCallback(self)
  662         if self.cbCount > 0 then
  663                 local _, _, _, _, anchorY = self:GetPoint();
  664                 anchorY = abs(anchorY);
  665                 anchorY = anchorY - EncounterJournal.encounter.info.detailsScroll:GetHeight()/2;
  666                 EncounterJournal.encounter.info.detailsScroll.ScrollBar:SetValue(anchorY);
  667                 self:SetScript("OnUpdate", nil);
  668         end
  669         self.cbCount = self.cbCount + 1;
  670 end
 
  673 function EncounterJournal_MoveSectionUpdate(self)
 
  675         if self.frameCount > 0 then
  676                 local _, _, _, _, anchorY = self:GetPoint();
  677                 local height = min(EJ_MAX_SECTION_MOVE, self:GetHeight() + self.description:GetHeight() + SECTION_DESCRIPTION_OFFSET);
  678                 local scrollValue = abs(anchorY) - (EncounterJournal.encounter.info.detailsScroll:GetHeight()-height);
  679                 EncounterJournal.encounter.info.detailsScroll.ScrollBar:SetValue(scrollValue);
  680                 self:SetScript("OnUpdate", nil);
  681         end
  682         self.frameCount = self.frameCount + 1;
  683 end
 
  686 function EncounterJournal_ClearChildHeaders(self, doNotShift)
  687         local usedHeaders = EncounterJournal.encounter.usedHeaders;
  688         local freeHeaders = EncounterJournal.encounter.freeHeaders;
  689         local numCleared = 0
  690         for key,header in pairs(usedHeaders) do
  691                 if header.parentID == self.myID then
  692                         if header.expanded then
  693                                 numCleared = numCleared + EncounterJournal_ClearChildHeaders(header, true)
  694                         end
  695                         header:Hide();
  696                         usedHeaders[key] = nil;
  697                         freeHeaders[#freeHeaders+1] = header;
  698                         numCleared = numCleared + 1;
  699                 end
  700         end
 
  702         if numCleared > 0 and not doNotShift then
  703                 local placeIndex = self.index + 1;
  704                 local shiftHeader = usedHeaders[placeIndex + numCleared];
  705                 while shiftHeader do
  706                         usedHeaders[placeIndex] = shiftHeader;
  707                         usedHeaders[placeIndex].index = placeIndex;
  708                         usedHeaders[placeIndex + numCleared] = nil;
  709                         placeIndex = placeIndex + 1;
  710                         shiftHeader = usedHeaders[placeIndex + numCleared];
  711                 end
  712         end
  713         return numCleared
  714 end
 
  717 function EncounterJournal_ClearDetails()
  718         EncounterJournal.encounter.instance:Hide();
  719         EncounterJournal.encounter.infoFrame.description:SetText("");
 
  721         EncounterJournal.encounter.info.lootScroll.scrollBar:SetValue(0);
  722         EncounterJournal.encounter.info.detailsScroll.ScrollBar:SetValue(0);
 
  724         local freeHeaders = EncounterJournal.encounter.freeHeaders;
  725         local usedHeaders = EncounterJournal.encounter.usedHeaders;
 
  727         for key,used in pairs(usedHeaders) do
  728                 used:Hide();
  729                 usedHeaders[key] = nil;
  730                 freeHeaders[#freeHeaders+1] = used;
  731         end
 
  733         for i=1,MAX_CREATURES_PER_ENCOUNTER do
  734                 EncounterJournal.encounter["creatureButton"..i]:Hide();
  735         end
 
  737         local bossIndex = 1
  738         local bossButton = _G["EncounterJournalBossButton"..bossIndex];
  739         while bossButton do
  740                 bossButton:Hide();
  741                 bossIndex = bossIndex + 1;
  742                 bossButton = _G["EncounterJournalBossButton"..bossIndex];
  743         end
 
  745         EncounterJournal.searchResults:Hide();
  746         EncounterJournal_HideSearchPreview();
  747         EncounterJournal.searchBox:ClearFocus();
  748 end
 
  751 function EncounterJournal_TierDropDown_Select(self, instanceID, name)
  752         EncounterJournal_DisplayInstance(instanceID);
  753         UIDropDownMenu_SetText(EncounterJournal.instanceSelect.tierDropDown, name);
  754 end
 
  757 function EncounterJournal_TabClicked(self, button)
  758         local tabType = self:GetID();
  759         local info = EncounterJournal.encounter.info;
  760         info.tab = tabType;
  761         for key, data in pairs(EJ_Tabs) do
  762                 if key == tabType then
  763                         info[data.frame]:Show();
  764                         info[data.button]:Disable();
  765                 else
  766                         info[data.frame]:Hide();
  767                         info[data.button]:Enable();
  768                 end
  769         end
  770         PlaySound("igAbiliityPageTurn");
  771 end
 
  774 function EncounterJournal_LootCallback(itemID)
  775         local scrollFrame = EncounterJournal.encounter.info.lootScroll;
 
  777         for i,item in pairs(scrollFrame.buttons) do
  778                 if item.itemID == itemID then
  779                         local name, icon, slot, armorType, itemID, _, encounterID = EJ_GetLootInfoByIndex(item.index);
  780                         item.name:SetText(name);
  781                         item.icon:SetTexture(icon);
  782                         item.slot:SetText(slot);
  783                         item.boss:SetFormattedText(BOSS_INFO_STRING, EJ_GetEncounterInfo(encounterID));
  784                         item.armorType:SetText(armorType);
  785                 end
  786         end
  787 end
 
  790 function EncounterJournal_LootUpdate()
  791         local scrollFrame = EncounterJournal.encounter.info.lootScroll;
  792         local offset = HybridScrollFrame_GetOffset(scrollFrame);
  793         local items = scrollFrame.buttons;
  794         local item, index;
 
  796         local numLoot = EJ_GetNumLoot();
  797         local buttonSize = BOSS_LOOT_BUTTON_HEIGHT;
 
  799         for i = 1,#items do
  800                 item = items[i];
  801                 index = offset + i;
  802                 if index <= numLoot then
  803                         if (EncounterJournal.encounterID) then
  804                                 item:SetHeight(BOSS_LOOT_BUTTON_HEIGHT);
  805                                 item.boss:Hide();
  806                                 item.bossTexture:Hide();
  807                                 item.bosslessTexture:Show();
  808                         else
  809                                 buttonSize = INSTANCE_LOOT_BUTTON_HEIGHT;
  810                                 item:SetHeight(INSTANCE_LOOT_BUTTON_HEIGHT);
  811                                 item.boss:Show();
  812                                 item.bossTexture:Show();
  813                                 item.bosslessTexture:Hide();
  814                         end
  815                         local name, icon, slot, armorType, itemID, link, encounterID = EJ_GetLootInfoByIndex(index);
  816                         item.name:SetText(name);
  817                         item.icon:SetTexture(icon);
  818                         item.slot:SetText(slot);
  819                         item.armorType:SetText(armorType);
  820                         item.boss:SetFormattedText(BOSS_INFO_STRING, EJ_GetEncounterInfo(encounterID));
  821                         item.encounterID = encounterID;
  822                         item.itemID = itemID;
  823                         item.index = index;
  824                         item.link = link;
  825                         item:Show();
 
  827                         if item.showingTooltip then
  828                                 GameTooltip:SetItemByID(itemID);
  829                         end
  830                 else
  831                         item:Hide();
  832                 end
  833         end
 
  835         local totalHeight = numLoot * buttonSize;
  836         HybridScrollFrame_Update(scrollFrame, totalHeight, scrollFrame:GetHeight());
  837 end
 
  840 function EncounterJournal_LootCalcScroll(offset)
  841         local buttonHeight = BOSS_LOOT_BUTTON_HEIGHT;
  842         local numLoot = EJ_GetNumLoot();
 
  844         if (not EncounterJournal.encounterID) then
  845                 buttonHeight = INSTANCE_LOOT_BUTTON_HEIGHT;
  846         end    
 
  848         local index = floor(offset/buttonHeight)
  849         return index, offset - (index*buttonHeight);
  850 end
 
  853 function EncounterJournal_Loot_OnUpdate(self)
  854         if GameTooltip:IsOwned(self) then
  855                 if IsModifiedClick("COMPAREITEMS") or
  856                                  (GetCVarBool("alwaysCompareItems") and not self:IsEquippedItem()) then
  857                         GameTooltip_ShowCompareItem();
  858                 else
  859                         ShoppingTooltip1:Hide();
  860                         ShoppingTooltip2:Hide();
  861                         ShoppingTooltip3:Hide();
  862                 end
 
  864                 if IsModifiedClick("DRESSUP") then
  865                         ShowInspectCursor();
  866                 else
  867                         ResetCursor();
  868                 end
  869         end
  870 end
 
  873 function EncounterJournal_Loot_OnClick(self)
  874         if (EncounterJournal.encounterID ~= self.encounterID) then
  875                 EncounterJournal_DisplayEncounter(self.encounterID);
  876         end
  877 end
 
  880 function EncounterJournal_SetFlagIcon(texture, index)
  881         local iconSize = 32;
  882         local columns = 256/iconSize;
  883         local rows = 64/iconSize;
 
  885         l = mod(index, columns) / columns;
  886         r = l + (1/columns);
  887         t = floor(index/columns) / rows;
  888         b = t + (1/rows);
  889         texture:SetTexCoord(l,r,t,b);
  890 end
 
  893 function EncounterJournal_Refresh(self)
  894         EJ_SetDifficulty(EncounterJournal.isHeroic, EncounterJournal.is10Man);
  895         EncounterJournal_LootUpdate();
 
  897         if EncounterJournal.encounterID then
  898                 EncounterJournal_DisplayEncounter(EncounterJournal.encounterID, true)
  899         elseif EncounterJournal.instanceID then
  900                 EncounterJournal_DisplayInstance(EncounterJournal.instanceID, true);
  901         end
  902 end
 
  905 function EncounterJournal_GetSearchDisplay(index)
  906         local name, icon, path, typeText, displayInfo, itemID, _;
  907         local id, stype, _, instanceID, encounterID  = EJ_GetSearchResult(index);
  908         if stype == EJ_STYPE_INSTANCE then
  909                 name, _, _, icon = EJ_GetInstanceInfo(id);
  910                 typeText = ENCOUNTER_JOURNAL_INSTANCE;
  911         elseif stype == EJ_STYPE_ENCOUNTER then
  912                 name = EJ_GetEncounterInfo(id);
  913                 typeText = ENCOUNTER_JOURNAL_ENCOUNTER;
  914                 path = EJ_GetInstanceInfo(instanceID);
  915                 icon = "Interface\\EncounterJournal\\UI-EJ-GenericSearchCreature"
  916                 --_, _, _, displayInfo = EJ_GetCreatureInfo(1, encounterID);
  917         elseif stype == EJ_STYPE_SECTION then
  918                 name, _, _, icon, displayInfo = EJ_GetSectionInfo(id)
  919                 if displayInfo and displayInfo > 0 then
  920                         typeText = ENCOUNTER_JOURNAL_ENCOUNTER_ADD;
  921                         displayInfo = nil;
  922                         icon = "Interface\\EncounterJournal\\UI-EJ-GenericSearchCreature"
  923                 else
  924                         typeText = ENCOUNTER_JOURNAL_ABILITY;
  925                 end
  926                 path = EJ_GetInstanceInfo(instanceID).." | "..EJ_GetEncounterInfo(encounterID);
  927         elseif stype == EJ_STYPE_ITEM then
  928                 name, icon, _, _, itemID = EJ_GetLootInfo(id)
  929                 typeText = ENCOUNTER_JOURNAL_ITEM;
  930                 path = EJ_GetInstanceInfo(instanceID).." | "..EJ_GetEncounterInfo(encounterID);
  931         elseif stype == EJ_STYPE_CREATURE then
  932                 for i=1,MAX_CREATURES_PER_ENCOUNTER do
  933                         local cId, cName, _, cDisplayInfo = EJ_GetCreatureInfo(i, encounterID);
  934                         if cId == id then
  935                                 name = cName
  936                                 --displayInfo = cDisplayInfo;
  937                                 break;
  938                         end
  939                 end
  940                 icon = "Interface\\EncounterJournal\\UI-EJ-GenericSearchCreature"
  941                 typeText = ENCOUNTER_JOURNAL_ENCOUNTER
  942                 path = EJ_GetInstanceInfo(instanceID).." | "..EJ_GetEncounterInfo(encounterID);
  943         end
  944         return name, icon, path, typeText, displayInfo, itemID, stype;
  945 end
 
  948 function EncounterJournal_SelectSearch(index)
  949         local _;
  950         local id, stype, mask, instanceID, encounterID = EJ_GetSearchResult(index);
  951         local sectionID, creatureID, itemID;
  952         if stype == EJ_STYPE_INSTANCE then
  953                 instanceID = id;
  954         elseif stype == EJ_STYPE_SECTION then
  955                 sectionID = id;
  956         elseif stype == EJ_STYPE_ITEM then
  957                 itemID = id;
  958         elseif stype == EJ_STYPE_CREATURE then
  959                 creatureID = id;
  960         end
 
  962         EncounterJournal_OpenJournal(mask, instanceID, encounterID, sectionID, creatureID, itemID);
  963         EncounterJournal.searchResults:Hide();
  964 end
 
  967 function EncounterJournal_SearchUpdate()
  968         local scrollFrame = EncounterJournal.searchResults.scrollFrame;
  969         local offset = HybridScrollFrame_GetOffset(scrollFrame);
  970         local results = scrollFrame.buttons;
  971         local result, index;
 
  973         local numResults = EJ_GetNumSearchResults();
 
  975         for i = 1,#results do
  976                 result = results[i];
  977                 index = offset + i;
  978                 if index <= numResults then
  979                         local name, icon, path, typeText, displayInfo, itemID, stype = EncounterJournal_GetSearchDisplay(index);
  980                         if stype == EJ_STYPE_INSTANCE then
  981                                 result.icon:SetTexCoord(0.16796875, 0.51171875, 0.03125, 0.71875);
  982                         else
  983                                 result.icon:SetTexCoord(0, 1, 0, 1);
  984                         end
 
  986                         result.name:SetText(name);
  987                         result.resultType:SetText(typeText);
  988                         result.path:SetText(path);
  989                         result.icon:SetTexture(icon);
  990                         result.itemID = itemID;
  991                         if displayInfo and displayInfo > 0 then
  992                                 SetPortraitTexture(result.icon, displayInfo);
  993                         end
  994                         result:SetID(index);
  995                         result:Show();
 
  997                         if result.showingTooltip then
  998                                 if itemID then
  999                                         GameTooltip:SetOwner(result, "ANCHOR_RIGHT");
  1000                                         GameTooltip:SetItemByID(itemID);
  1001                                 else
  1002                                         GameTooltip:Hide();
  1003                                 end
  1004                         end
  1005                 else
  1006                         result:Hide();
  1007                 end
  1008         end
 
  1010         local totalHeight = numResults * 49;
  1011         HybridScrollFrame_Update(scrollFrame, totalHeight, 370);
  1012 end
 
  1015 function EncounterJournal_ShowFullSearch()
  1016         local numResults = EJ_GetNumSearchResults();
  1017         if numResults == 0 then
  1018                 EncounterJournal.searchResults:Hide();
  1019                 return;
  1020         end
 
  1022         EncounterJournal.searchResults.TitleText:SetText(string.format(ENCOUNTER_JOURNAL_SEARCH_RESULTS, EncounterJournal.searchBox:GetText(), numResults));
  1023         EncounterJournal.searchResults:Show();
  1024         EncounterJournal_SearchUpdate();
  1025         EncounterJournal.searchResults.scrollFrame.scrollBar:SetValue(0);
  1026         EncounterJournal_HideSearchPreview();
  1027 end
 
  1030 function EncounterJournal_HideSearchPreview()
  1031         EncounterJournal.searchBox.showAllResults:Hide();
  1032         local index = 1;
  1033         local unusedButton = EncounterJournal.searchBox["sbutton"..index];
  1034         while unusedButton do
  1035                 unusedButton:Hide();
  1036                 index = index + 1;
  1037                 unusedButton = EncounterJournal.searchBox["sbutton"..index]
  1038         end
  1039 end
 
  1042 function EncounterJournal_ClearSearch(editbox)
  1043         EncounterJournal.searchResults:Hide();
  1044         EncounterJournal_HideSearchPreview();
  1045 end
 
  1048 function EncounterJournal_OnSearchTextChanged(self)
  1049         local text = self:GetText();
  1050         EncounterJournal_HideSearchPreview();
 
  1052         if strlen(text) < EJ_MIN_CHARACTER_SEARCH or text == SEARCH then
  1053                 EJ_ClearSearch();
  1054                 EncounterJournal.searchResults:Hide();
  1055                 return;
  1056         end
  1057         EJ_SetSearch(text);
 
  1059         if not self:HasFocus() then
  1060                 return;
  1061         end
 
  1063         if EncounterJournal.searchResults:IsShown() then
  1064                 EncounterJournal_ShowFullSearch();
  1065         else
  1066                 local numResults = EJ_GetNumSearchResults();
  1067                 local index = 1;
  1068                 local button;
  1069                 while index <= numResults do
  1070                         button = EncounterJournal.searchBox["sbutton"..index];
  1071                         if button then
  1072                                 local name, icon, path, typeText, displayInfo, itemID = EncounterJournal_GetSearchDisplay(index);
  1073                                 button.name:SetText(name);
  1074                                 button.icon:SetTexture(icon);
  1075                                 button.itemID = itemID;
  1076                                 if displayInfo and displayInfo > 0 then
  1077                                         SetPortraitTexture(button.icon, displayInfo);
  1078                                 end
  1079                                 button:SetID(index);
  1080                                 button:Show();
  1081                         else
  1082                                 button = EncounterJournal.searchBox.showAllResults;
  1083                                 button.text:SetText(string.format(ENCOUNTER_JOURNAL_SHOW_SEARCH_RESULTS, numResults));
  1084                                 EncounterJournal.searchBox.showAllResults:Show();
  1085                                 break;
  1086                         end
  1087                         index = index + 1;
  1088                 end
 
  1090                 EncounterJournal.searchBox.sbutton1.boarderAnchor:SetPoint("BOTTOM", button, "BOTTOM", 0, -5);
  1091         end
  1092 end
 
  1095 function EncounterJournal_SetClassFilter(classID, className)
  1096         local index = 1;
  1097         local classButton = EncounterJournal.encounter.info.lootScroll.classFilter["class"..index];
 
  1099         while classButton do
  1100                 if classButton:GetID() == classID then
  1101                         classButton:SetChecked(true);
  1102                 else
  1103                         classButton:SetChecked(false);
  1104                 end
  1105                 index = index + 1;
  1106                 classButton = EncounterJournal.encounter.info.lootScroll.classFilter["class"..index];
  1107         end
 
  1109         if className and classID and classID > 0 then
  1110                 EncounterJournal.encounter.info.lootScroll.classClearFilter.text:SetText(string.format(EJ_CLASS_FILTER, className));
  1111                 EncounterJournal.encounter.info.lootScroll.classClearFilter:Show();
  1112                 EJ_SetClassLootFilter(classID);
  1113                 EncounterJournal.encounter.info.lootScroll:SetHeight(360);
  1114         else
  1115                 EncounterJournal.encounter.info.lootScroll.classClearFilter:Hide();
  1116                 EJ_SetClassLootFilter(0);
  1117                 EncounterJournal.encounter.info.lootScroll:SetHeight(384);
  1118         end
 
  1120         EncounterJournal_LootUpdate();
  1121 end
 
  1124 function EncounterJournal_OpenJournalLink(tag, jtype, id, mask)
  1125         jtype = tonumber(jtype);
  1126         id = tonumber(id);
  1127         mask = tonumber(mask);
  1128         local instanceID, encounterID, sectionID = EJ_HandleLinkPath(jtype, id);
  1129         EncounterJournal_OpenJournal(mask, instanceID, encounterID, sectionID);
  1130 end
 
  1133 function EncounterJournal_OpenJournal(mask, instanceID, encounterID, sectionID, creatureID, itemID)
  1134         ShowUIPanel(EncounterJournal);
  1135         if instanceID then
  1136                 NavBar_Reset(EncounterJournal.navBar);
  1137                 EncounterJournal_DisplayInstance(instanceID);
  1138                 EJ_SetDifficultyByMask(mask);
  1139                 if encounterID then
  1140                         if sectionID then
  1141                                 EncounterJournal.encounter.info.bossTab:Click();
  1142                                 local sectionPath = {EJ_GetSectionPath(sectionID)};
  1143                                 for _, id in pairs(sectionPath) do
  1144                                         EJ_section_openTable[id] = true;
  1145                                 end
  1146                         end
 
  1149                         EncounterJournal_DisplayEncounter(encounterID);
  1150                         if sectionID then
  1151                                 EncounterJournal_FocusSection(sectionID);
  1152                         elseif itemID then
  1153                                 EncounterJournal.encounter.info.lootTab:Click();
  1154                         end
 
  1157                         if creatureID then
  1158                                 for i=1,MAX_CREATURES_PER_ENCOUNTER do
  1159                                         local button = EncounterJournal.encounter["creatureButton"..i];
  1160                                         if button and button:IsShown() and button.id == creatureID then
  1161                                                 EncounterJournal_DisplayCreature(button);
  1162                                         end
  1163                                 end
  1164                         end
  1165                 end
  1166         else
  1167                 EncounterJournal_ListInstances()
  1168         end
  1169 end
 
  1172 ----------------------------------------
  1173 --------------Nav Bar Func--------------
  1174 ----------------------------------------
  1175 function EJNAV_RefreshInstance()
  1176         EncounterJournal_DisplayInstance(EncounterJournal.instanceID, true);
  1177 end
 
  1179 function EJNAV_SelectInstance(self, index, navBar)
  1180         local showRaid = EncounterJournal.instanceSelect.raidsTab:IsEnabled() == nil;
  1181         local instanceID = EJ_GetInstanceByIndex(index, showRaid);
  1182         EncounterJournal_DisplayInstance(instanceID);
  1183 end
 
  1186 function EJNAV_ListInstance(self, index)
  1187         --local navBar = self:GetParent();
  1188         local showRaid = EncounterJournal.instanceSelect.raidsTab:IsEnabled() == nil;
  1189         local _, name = EJ_GetInstanceByIndex(index, showRaid);
  1190         return name, EJNAV_SelectInstance;
  1191 end
 
  1194 function EJNAV_RefreshEncounter()
  1195         EncounterJournal_DisplayInstance(EncounterJournal.encounterID);
  1196 end
 
  1199 function EJNAV_SelectEncounter(self, index, navBar)
  1200         local _, _, bossID = EJ_GetEncounterInfoByIndex(index);
  1201         EncounterJournal_DisplayEncounter(bossID);
  1202 end
 
  1205 function EJNAV_ListEncounter(self, index)
  1206         --local navBar = self:GetParent();
  1207         local name = EJ_GetEncounterInfoByIndex(index);
  1208         return name, EJNAV_SelectEncounter;
  1209 end
   
File: AddOns\Blizzard_EncounterJournal\Blizzard_EncounterJournal.toc  
  1 ## Interface: 40300
  2 ## Title: Blizzard Dungeon Journal
  3 ## Notes:  Show Boss Info
  4 ## Secure: 1
  5 ## Author: Blizzard Entertainment
  6 ## Version: 1.0
  7 ## LoadOnDemand: 1
  8 Blizzard_EncounterJournal.xml
  9 Localization.lua
   
File: AddOns\Blizzard_EncounterJournal\Blizzard_EncounterJournal.xml  
  1 <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
  2 ..\FrameXML\UI.xsd">
  3         <Script file="Blizzard_EncounterJournal.lua"/>
 
  6         <Texture name="_FilterButtonUp-Mid" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
  7                 <Size x="64" y="26"/>  
  8                 <TexCoords left="0.00000000" right="1.00000000" top="0.00195313" bottom="0.05273438"/> 
  9         </Texture>
  10         <Texture name="_FilterButtonDown-Mid" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
  11                 <Size x="64" y="26"/>  
  12                 <TexCoords left="0.00000000" right="1.00000000" top="0.05664063" bottom="0.10742188"/> 
  13         </Texture>
  14         <Texture name="_FilterButtonHighlight-Mid" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
  15                 <Size x="64" y="26"/>  
  16                 <TexCoords left="0.00000000" right="1.00000000" top="0.11132813" bottom="0.16210938"/> 
  17         </Texture>
  18         <Texture name="_SearchBarSm" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
  19                 <Size x="64" y="27"/>  
  20                 <TexCoords left="0.00000000" right="1.00000000" top="0.16601563" bottom="0.21875000"/> 
  21         </Texture>
  22         <Texture name="_PaperHeader-SelectUp-Mid" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
  23                 <Size x="64" y="29"/>  
  24                 <TexCoords left="0.00000000" right="1.00000000" top="0.22265625" bottom="0.27929688"/> 
  25         </Texture>
  26         <Texture name="_PaperHeader-UnSelectDown-Mid" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
  27                 <Size x="64" y="29"/>  
  28                 <TexCoords left="0.00000000" right="1.00000000" top="0.28320313" bottom="0.33984375"/> 
  29         </Texture>
  30         <Texture name="_PaperHeader-UnSelectUp-Mid" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
  31                 <Size x="64" y="29"/>  
  32                 <TexCoords left="0.00000000" right="1.00000000" top="0.34375000" bottom="0.40039063"/> 
  33         </Texture>
  34         <Texture name="_PaperHeader-SelectDown-Mid" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
  35                 <Size x="64" y="29"/>  
  36                 <TexCoords left="0.00000000" right="1.00000000" top="0.40429688" bottom="0.46093750"/> 
  37         </Texture>
  38         <Texture name="_PaperHeader-Highlight-Mid" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
  39                 <Size x="64" y="29"/>  
  40                 <TexCoords left="0.00000000" right="1.00000000" top="0.46484375" bottom="0.52148438"/> 
  41         </Texture>
  42         <Texture name="_DungeonGridTab-MidHighlight" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
  43                 <Size x="64" y="36"/>  
  44                 <TexCoords left="0.00000000" right="1.00000000" top="0.52539063" bottom="0.59570313"/> 
  45         </Texture>
  46         <Texture name="_DungeonGridTab-MidSelect" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
  47                 <Size x="64" y="36"/>  
  48                 <TexCoords left="0.00000000" right="1.00000000" top="0.59960938" bottom="0.66992188"/> 
  49         </Texture>
  50         <Texture name="_DungeonGridTab-Mid" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
  51                 <Size x="64" y="36"/>  
  52                 <TexCoords left="0.00000000" right="1.00000000" top="0.67382813" bottom="0.74414063"/> 
  53         </Texture>
  54         <Texture name="_SearchBarLg" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
  55                 <Size x="64" y="49"/>  
  56                 <TexCoords left="0.00000000" right="1.00000000" top="0.74804688" bottom="0.84375000"/> 
  57         </Texture>
 
  61         <Texture name="UI-EJ-AbilityIconBorder" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  62                 <Size x="20" y="20"/>  
  63                 <TexCoords left="0.00195313" right="0.04101563" top="0.00097656" bottom="0.02050781"/> 
  64         </Texture>
  65         <Texture name="UI-EJ-AbilityTextBottomBorder" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  66                 <Size x="243" y="9"/>  
  67                 <TexCoords left="0.04492188" right="0.51953125" top="0.00097656" bottom="0.00976563"/> 
  68         </Texture>
  69         <Texture name="UI-EJ-DungeonGridTab-SelectedGlow" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  70                 <Size x="64" y="15"/>  
  71                 <TexCoords left="0.52343750" right="0.64843750" top="0.00097656" bottom="0.01562500"/> 
  72         </Texture>
  73         <Texture name="UI-EJ-DungeonGridTab-Shadow" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  74                 <Size x="128" y="15"/> 
  75                 <TexCoords left="0.65234375" right="0.90234375" top="0.00097656" bottom="0.01562500"/> 
  76         </Texture>
  77         <Texture name="UI-EJ-ReturnToDefault" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  78                 <Size x="21" y="20"/>  
  79                 <TexCoords left="0.90625000" right="0.94726563" top="0.00097656" bottom="0.02050781"/> 
  80         </Texture>
  81         <Texture name="UI-EJ-AbilityTextBG" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  82                 <Size x="256" y="80"/> 
  83                 <TexCoords left="0.00195313" right="0.50195313" top="0.02246094" bottom="0.10058594"/> 
  84         </Texture>
  85         <Texture name="UI-EJ-BossModelButton" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  86                 <Size x="64" y="61"/>  
  87                 <TexCoords left="0.50585938" right="0.63085938" top="0.02246094" bottom="0.08203125"/> 
  88         </Texture>
  89         <Texture name="UI-EJ-CreatureHeaderFrameSm-bg" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  90                 <Size x="45" y="44"/>  
  91                 <TexCoords left="0.63476563" right="0.72265625" top="0.02246094" bottom="0.06542969"/> 
  92         </Texture>
  93         <Texture name="UI-EJ-FilterButtonDown" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  94                 <Size x="26" y="26"/>  
  95                 <TexCoords left="0.63476563" right="0.68554688" top="0.06738281" bottom="0.09277344"/> 
  96         </Texture>
  97         <Texture name="UI-EJ-CreatureHeaderFrameSm" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  98                 <Size x="45" y="44"/>  
  99                 <TexCoords left="0.72656250" right="0.81445313" top="0.02246094" bottom="0.06542969"/> 
  100         </Texture>
  101         <Texture name="UI-EJ-FilterButtonHighlight" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  102                 <Size x="26" y="26"/>  
  103                 <TexCoords left="0.72656250" right="0.77734375" top="0.06738281" bottom="0.09277344"/> 
  104         </Texture>
  105         <Texture name="UI-EJ-DungeonGridTab-Left" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  106                 <Size x="12" y="36"/>  
  107                 <TexCoords left="0.81835938" right="0.84179688" top="0.02246094" bottom="0.05761719"/> 
  108         </Texture>
  109         <Texture name="UI-EJ-DungeonGridTab-LeftHighlight" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  110                 <Size x="12" y="36"/>  
  111                 <TexCoords left="0.81835938" right="0.84179688" top="0.05957031" bottom="0.09472656"/> 
  112         </Texture>
  113         <Texture name="UI-EJ-DungeonGridTab-LeftSelect" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  114                 <Size x="12" y="36"/>  
  115                 <TexCoords left="0.84570313" right="0.86914063" top="0.02246094" bottom="0.05761719"/> 
  116         </Texture>
  117         <Texture name="UI-EJ-DungeonGridTab-Right" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  118                 <Size x="12" y="36"/>  
  119                 <TexCoords left="0.84570313" right="0.86914063" top="0.05957031" bottom="0.09472656"/> 
  120         </Texture>
  121         <Texture name="UI-EJ-DungeonGridTab-RightHighlight" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  122                 <Size x="12" y="36"/>  
  123                 <TexCoords left="0.87304688" right="0.89648438" top="0.02246094" bottom="0.05761719"/> 
  124         </Texture>
  125         <Texture name="UI-EJ-DungeonGridTab-RightSelect" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  126                 <Size x="12" y="36"/>  
  127                 <TexCoords left="0.87304688" right="0.89648438" top="0.05957031" bottom="0.09472656"/> 
  128         </Texture>
  129         <Texture name="UI-EJ-FilterButtonSelect" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  130                 <Size x="26" y="26"/>  
  131                 <TexCoords left="0.90039063" right="0.95117188" top="0.02246094" bottom="0.04785156"/> 
  132         </Texture>
  133         <Texture name="UI-EJ-SearchIconFrameSm" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  134                 <Size x="22" y="22"/>  
  135                 <TexCoords left="0.95507813" right="0.99804688" top="0.02246094" bottom="0.04394531"/> 
  136         </Texture>
  137         <Texture name="UI-EJ-FilterButtonUp" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  138                 <Size x="26" y="26"/>  
  139                 <TexCoords left="0.90039063" right="0.95117188" top="0.04980469" bottom="0.07519531"/> 
  140         </Texture>
  141         <Texture name="UI-EJ-BossButton-Down" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  142                 <Size x="325" y="55"/> 
  143                 <TexCoords left="0.00195313" right="0.63671875" top="0.10253906" bottom="0.15625000"/> 
  144         </Texture>
  145         <Texture name="UI-EJ-MapButtonSm-Down" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  146                 <Size x="50" y="50"/>  
  147                 <TexCoords left="0.64062500" right="0.73828125" top="0.10253906" bottom="0.15136719"/> 
  148         </Texture>
  149         <Texture name="UI-EJ-MapButtonSm-Highlight" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  150                 <Size x="50" y="50"/>  
  151                 <TexCoords left="0.74218750" right="0.83984375" top="0.10253906" bottom="0.15136719"/> 
  152         </Texture>
  153         <Texture name="UI-EJ-MapButtonSm-Selection" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  154                 <Size x="50" y="50"/>  
  155                 <TexCoords left="0.84375000" right="0.94140625" top="0.10253906" bottom="0.15136719"/> 
  156         </Texture>
  157         <Texture name="UI-EJ-BossButton-Highlight" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  158                 <Size x="325" y="55"/> 
  159                 <TexCoords left="0.00195313" right="0.63671875" top="0.15820313" bottom="0.21191406"/> 
  160         </Texture>
  161         <Texture name="UI-EJ-MapButtonSm-Up" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  162                 <Size x="50" y="50"/>  
  163                 <TexCoords left="0.64062500" right="0.73828125" top="0.15820313" bottom="0.20703125"/> 
  164         </Texture>
  165         <Texture name="UI-EJ-PaperHeader-Highlight-Left" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  166                 <Size x="64" y="29"/>  
  167                 <TexCoords left="0.74218750" right="0.86718750" top="0.15820313" bottom="0.18652344"/> 
  168         </Texture>
  169         <Texture name="UI-EJ-PaperHeader-Highlight-Right" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  170                 <Size x="64" y="29"/>  
  171                 <TexCoords left="0.87109375" right="0.99609375" top="0.15820313" bottom="0.18652344"/> 
  172         </Texture>
  173         <Texture name="UI-EJ-BossButton-Up" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  174                 <Size x="325" y="55"/> 
  175                 <TexCoords left="0.00195313" right="0.63671875" top="0.21386719" bottom="0.26757813"/> 
  176         </Texture>
  177         <Texture name="UI-EJ-PaperHeader-SelectDown-Left" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  178                 <Size x="64" y="29"/>  
  179                 <TexCoords left="0.64062500" right="0.76562500" top="0.21386719" bottom="0.24218750"/> 
  180         </Texture>
  181         <Texture name="UI-EJ-PaperHeader-SelectDown-Right" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  182                 <Size x="64" y="29"/>  
  183                 <TexCoords left="0.76953125" right="0.89453125" top="0.21386719" bottom="0.24218750"/> 
  184         </Texture>
  185         <Texture name="UI-EJ-SearchIconFrameLg" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  186                 <Size x="38" y="38"/>  
  187                 <TexCoords left="0.89843750" right="0.97265625" top="0.21386719" bottom="0.25097656"/> 
  188         </Texture>
  189         <Texture name="UI-EJ-BossNameShadow" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  190                 <Size x="395" y="63"/> 
  191                 <TexCoords left="0.00195313" right="0.77343750" top="0.26953125" bottom="0.33105469"/> 
  192         </Texture>
  193         <Texture name="UI-EJ-MapButtonLg-Down" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  194                 <Size x="62" y="61"/>  
  195                 <TexCoords left="0.77734375" right="0.89843750" top="0.26953125" bottom="0.32910156"/> 
  196         </Texture>
  197         <Texture name="UI-EJ-Tab-BossIcon-Selected" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  198                 <Size x="48" y="43"/>  
  199                 <TexCoords left="0.90234375" right="0.99609375" top="0.26953125" bottom="0.31152344"/> 
  200         </Texture>
  201         <Texture name="UI-EJ-DungeonButton-Down" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  202                 <Size x="174" y="96"/> 
  203                 <TexCoords left="0.00195313" right="0.34179688" top="0.33300781" bottom="0.42675781"/> 
  204         </Texture>
  205         <Texture name="UI-EJ-DungeonButton-Highlight" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  206                 <Size x="174" y="96"/> 
  207                 <TexCoords left="0.34570313" right="0.68554688" top="0.33300781" bottom="0.42675781"/> 
  208         </Texture>
  209         <Texture name="UI-EJ-MapButtonLg-Highlight" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  210                 <Size x="62" y="61"/>  
  211                 <TexCoords left="0.68945313" right="0.81054688" top="0.33300781" bottom="0.39257813"/> 
  212         </Texture>
  213         <Texture name="UI-EJ-MapButtonLg-Select" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  214                 <Size x="62" y="61"/>  
  215                 <TexCoords left="0.81445313" right="0.93554688" top="0.33300781" bottom="0.39257813"/> 
  216         </Texture>
  217         <Texture name="UI-EJ-PaperHeader-SelectUp-Left" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  218                 <Size x="64" y="29"/>  
  219                 <TexCoords left="0.81445313" right="0.93945313" top="0.39453125" bottom="0.42285156"/> 
  220         </Texture>
  221         <Texture name="UI-EJ-DungeonButton-Up" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  222                 <Size x="174" y="96"/> 
  223                 <TexCoords left="0.00195313" right="0.34179688" top="0.42871094" bottom="0.52246094"/> 
  224         </Texture>
  225         <Texture name="UI-EJ-DungeonNameBg" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  226                 <Size x="256" y="64"/> 
  227                 <TexCoords left="0.34570313" right="0.84570313" top="0.42871094" bottom="0.49121094"/> 
  228         </Texture>
  229         <Texture name="UI-EJ-PaperHeader-SelectUp-Right" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  230                 <Size x="64" y="29"/>  
  231                 <TexCoords left="0.34570313" right="0.47070313" top="0.49316406" bottom="0.52148438"/> 
  232         </Texture>
  233         <Texture name="UI-EJ-PaperHeader-UnSelectDown-Left" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  234                 <Size x="64" y="29"/>  
  235                 <TexCoords left="0.47460938" right="0.59960938" top="0.49316406" bottom="0.52148438"/> 
  236         </Texture>
  237         <Texture name="UI-EJ-PaperHeader-UnSelectDown-Right" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  238                 <Size x="64" y="29"/>  
  239                 <TexCoords left="0.60351563" right="0.72851563" top="0.49316406" bottom="0.52148438"/> 
  240         </Texture>
  241         <Texture name="UI-EJ-MapButtonLg-Up" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  242                 <Size x="62" y="61"/>  
  243                 <TexCoords left="0.84960938" right="0.97070313" top="0.42871094" bottom="0.48828125"/> 
  244         </Texture>
  245         <Texture name="UI-EJ-PaperHeader-UnSelectUp-Left" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  246                 <Size x="64" y="29"/>  
  247                 <TexCoords left="0.84960938" right="0.97460938" top="0.49023438" bottom="0.51855469"/> 
  248         </Texture>
  249         <Texture name="UI-EJ-DungeonLootFrame" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  250                 <Size x="369" y="64"/> 
  251                 <TexCoords left="0.00195313" right="0.72265625" top="0.52441406" bottom="0.58691406"/> 
  252         </Texture>
  253         <Texture name="UI-EJ-PaperHeader-UnSelectUp-Right" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  254                 <Size x="64" y="29"/>  
  255                 <TexCoords left="0.72656250" right="0.85156250" top="0.52441406" bottom="0.55273438"/> 
  256         </Texture>
  257         <Texture name="UI-EJ-Tab-BossIcon-UnSelected" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  258                 <Size x="48" y="43"/>  
  259                 <TexCoords left="0.85546875" right="0.94921875" top="0.52441406" bottom="0.56640625"/> 
  260         </Texture>
  261         <Texture name="UI-EJ-FilterBar" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  262                 <Size x="320" y="28"/> 
  263                 <TexCoords left="0.00195313" right="0.62695313" top="0.58886719" bottom="0.61621094"/> 
  264         </Texture>
  265         <Texture name="UI-EJ-SearchBarHighlightSm" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  266                 <Size x="128" y="27"/> 
  267                 <TexCoords left="0.63085938" right="0.88085938" top="0.58886719" bottom="0.61523438"/> 
  268         </Texture>
  269         <Texture name="UI-EJ-LootFrame" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  270                 <Size x="321" y="45"/> 
  271                 <TexCoords left="0.00195313" right="0.62890625" top="0.61816406" bottom="0.66210938"/> 
  272         </Texture>
  273         <Texture name="UI-EJ-Tab-LootIcon-Selected" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  274                 <Size x="48" y="43"/>  
  275                 <TexCoords left="0.63281250" right="0.72656250" top="0.61816406" bottom="0.66015625"/> 
  276         </Texture>
  277         <Texture name="UI-EJ-Tab-LootIcon-UnSelected" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  278                 <Size x="48" y="43"/>  
  279                 <TexCoords left="0.73046875" right="0.82421875" top="0.61816406" bottom="0.66015625"/> 
  280         </Texture>
  281         <Texture name="UI-EJ-LoreTextCover-Bottom" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  282                 <Size x="386" y="29"/> 
  283                 <TexCoords left="0.00195313" right="0.75585938" top="0.66406250" bottom="0.69238281"/> 
  284         </Texture>
  285         <Texture name="UI-EJ-LoreTextCover-Top" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  286                 <Size x="386" y="32"/> 
  287                 <TexCoords left="0.00195313" right="0.75585938" top="0.69433594" bottom="0.72558594"/> 
  288         </Texture>
  289         <Texture name="UI-EJ-MainTextCover-Bottom" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  290                 <Size x="386" y="43"/> 
  291                 <TexCoords left="0.00195313" right="0.75585938" top="0.72753906" bottom="0.76953125"/> 
  292         </Texture>
  293         <Texture name="UI-EJ-MainTextCover-Top" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  294                 <Size x="386" y="13"/> 
  295                 <TexCoords left="0.00195313" right="0.75585938" top="0.77148438" bottom="0.78417969"/> 
  296         </Texture>
  297         <Texture name="UI-EJ-MoreTextBelowHighlight" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  298                 <Size x="259" y="17"/> 
  299                 <TexCoords left="0.00195313" right="0.50781250" top="0.78613281" bottom="0.80273438"/> 
  300         </Texture>
  301         <Texture name="UI-EJ-SearchBarHighlightLg" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  302                 <Size x="256" y="47"/> 
  303                 <TexCoords left="0.00195313" right="0.50195313" top="0.80468750" bottom="0.85058594"/> 
  304         </Texture>
  305         <Texture name="UI-EJ-ShowMapBG" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  306                 <Size x="171" y="50"/> 
  307                 <TexCoords left="0.00195313" right="0.33593750" top="0.85253906" bottom="0.90136719"/> 
  308         </Texture>
  309         <Texture name="UI-EJ-Tab-Highlight" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  310                 <Size x="63" y="57"/>  
  311                 <TexCoords left="0.00195313" right="0.12500000" top="0.90332031" bottom="0.95898438"/> 
  312         </Texture>
  313         <Texture name="UI-EJ-Tab-Selected" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  314                 <Size x="63" y="57"/>  
  315                 <TexCoords left="0.12890625" right="0.25195313" top="0.90332031" bottom="0.95898438"/> 
  316         </Texture>
  317         <Texture name="UI-EJ-Tab-UnSelected" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
  318                 <Size x="63" y="57"/>  
  319                 <TexCoords left="0.25585938" right="0.37890625" top="0.90332031" bottom="0.95898438"/> 
  320         </Texture>
 
  323         <CheckButton name="EncounterClassFilterTemplate" virtual="true" motionScriptsWhileDisabled="true">
  324                 <Size x="50" y="50"/>
  325                 <Layers>
  326                         <Layer level="BACKGROUND">
  327                                 <Texture name="$parentShadow" parentKey="shadow" file="Interface\Glues\CharacterCreate\UI-CharacterCreate-IconShadow">
  328                                         <Size x="70" y="70"/>
  329                                         <Anchors>
  330                                                 <Anchor point="CENTER" x="0" y="0"/>
  331                                         </Anchors>
  332                                         <Color r="1.0" g="1.0" b="1.0" a="0.85"/>
  333                                 </Texture>
  334                         </Layer>
  335                         <Layer level="OVERLAY">
  336                                 <Texture name="$parentBevelEdge" parentKey="bevel" file="Interface\Glues\CharacterCreate\UI-CharacterCreate-Highlights">
  337                                         <Size x="50" y="50"/>
  338                                         <Anchors>
  339                                                 <Anchor point="CENTER" x="0" y="0"/>
  340                                         </Anchors>
  341                                         <TexCoords left="0" right="0.5" top="0.5" bottom="1.0"/>
  342                                 </Texture>
  343                         </Layer>
  344                 </Layers>
  345                 <Scripts>
  346                         <OnMouseDown>
  347                                 if( self:IsEnabled() == 1 ) then
  348                                         self.bevel:Hide();
  349                                         self.shadow:Hide();
  350                                 end
  351                         </OnMouseDown>
  352                         <OnMouseUp>
  353                                 if( self:IsEnabled() == 1 ) then
  354                                         self.bevel:Show();
  355                                         self.shadow:Show();
  356                                 end
  357                         </OnMouseUp>
  358                         <OnClick>
  359                                 EncounterJournal_SetClassFilter(self:GetID(), self.name);
  360                                 self:GetParent():Hide();
  361                                 PlaySound("igMainMenuOptionCheckBoxOn");
  362                         </OnClick>
  363                 </Scripts>
  364                 <HighlightTexture file="Interface\Glues\CharacterCreate\UI-CharacterCreate-Highlights" alphaMode="ADD">
  365                         <TexCoords left="0" right="0.5" top="0" bottom="0.5"/>
  366                 </HighlightTexture>
  367                 <CheckedTexture file="Interface\Glues\CharacterCreate\UI-CharacterCreate-Highlights" alphaMode="ADD">
  368                         <TexCoords left="0.5" right="1" top="0" bottom="0.5"/>
  369                 </CheckedTexture>
  370                 <NormalTexture name="$parentNormalTexture" file="Interface\Glues\CharacterCreate\UI-CharacterCreate-Classes"/>
  371                 <PushedTexture name="$parentPushedTexture" file="Interface\Glues\CharacterCreate\UI-CharacterCreate-Classes">
  372                         <Size x="50" y="50"/>
  373                         <Anchors>
  374                                 <Anchor point="CENTER" x="2" y="-2"/>
  375                         </Anchors>
  376                 </PushedTexture>
  377         </CheckButton>
 
  379         <Button name="EncounterInstanceButtonTemplate" virtual="true">
  380                 <Size x="174" y="96"/>
  381                 <Layers>
  382                         <Layer level="BACKGROUND">
  383                                 <Texture name="$parentbgImage" parentKey="bgImage">
  384                                         <Anchors>
  385                                                 <Anchor point="TOPLEFT" x="0" y="0"/>
  386                                                 <Anchor point="BOTTOMRIGHT" x="0" y="0"/>
  387                                         </Anchors>
  388                                         <TexCoords left="0" right="0.68359375" top="0" bottom="0.7421875"/>    
  389                                 </Texture>
  390                         </Layer>
  391                         <Layer level="OVERLAY">
  392                                 <Texture name="$parentHeroicIcon" file="Interface\EncounterJournal\UI-EJ-HeroicTextIcon" parentKey="heroicIcon" hidden="true">
  393                                         <Anchors>
  394                                                 <Anchor point="BOTTOMRIGHT" x="-7" y="7"/>
  395                                         </Anchors>
  396                                 </Texture>
  397                                 <FontString name="$parentName" inherits="QuestTitleFontBlackShadow" parentKey="name">
  398                                         <Size x="150" y="0"/>
  399                                         <Anchors>
  400                                                 <Anchor point="TOP" x="0" y="-15"/>
  401                                         </Anchors>
  402                                 </FontString>
  403                                 <FontString name="$parentRange" inherits="GameFontNormal" justifyH="LEFT" parentKey="range" text="82-83" hidden="true">
  404                                         <Size x="100" y="12"/>
  405                                         <Anchors>
  406                                                 <Anchor point="BOTTOMLEFT" x="7" y="7"/>
  407                                         </Anchors>
  408                                 </FontString>
  409                         </Layer>
  410                 </Layers>
  411                 <NormalTexture inherits="UI-EJ-DungeonButton-Up">
  412                 </NormalTexture>
  413                 <PushedTexture inherits="UI-EJ-DungeonButton-Down">
  414                 </PushedTexture>
  415                 <HighlightTexture inherits="UI-EJ-DungeonButton-Highlight">
  416                 </HighlightTexture>
  417                 <Scripts>
  418                         <OnEnter>
  419                                 if self.itemID then
  420                                         GameTooltip:SetOwner(self, "ANCHOR_LEFT");
  421                                         GameTooltip:SetItemByID(self.itemID);
  422                                         self.showingTooltip = true;
  423                                 end
  424                         </OnEnter>
  425                         <OnLeave>
  426                                 GameTooltip:Hide();
  427                                 self.showingTooltip = false;
  428                         </OnLeave>
  429                         <OnClick>
  430                                 if IsModifiedClick("CHATLINK") and ChatEdit_GetActiveWindow() then
  431                                         if self.link then
  432                                                 ChatEdit_InsertLink(self.link);
  433                                         end
  434                                         return;
  435                                 end
  436                                 EncounterJournal_DisplayInstance(self.instanceID);
  437                                 PlaySound("igSpellBookOpen");
  438                         </OnClick>
  439                 </Scripts>
  440         </Button>
 
  442         <Button name="EncounterSearchSMTemplate" virtual="true">
  443                 <Size x="275" y="27"/>
  444                 <Layers>
  445                         <Layer level="OVERLAY" textureSubLevel="2">
  446                                 <Texture name="$parentIconFrame" inherits="UI-EJ-SearchIconFrameLg">
  447                                         <Size x="21" y="21"/>
  448                                         <Anchors>
  449                                                 <Anchor point="LEFT" x="5" y="1"/>
  450                                         </Anchors>
  451                                 </Texture>
  452                         </Layer>
  453                         <Layer level="OVERLAY">
  454                                 <Texture name="$parentIcon" file="Interface\Icons\Ability_ThunderClap" parentKey="icon">
  455                                         <Anchors>
  456                                                 <Anchor point="TOPLEFT" relativeTo="$parentIconFrame" x="1" y="-2"/>
  457                                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parentIconFrame" x="-1" y="1"/>
  458                                         </Anchors>
  459                                 </Texture>
  460                                 <FontString name="$parentName" inherits="GameFontNormalSmall" justifyH="LEFT" parentKey="name" text="ENCOUNTER">
  461                                         <Size x="400" y="0"/>
  462                                         <Anchors>
  463                                                 <Anchor point="LEFT" relativeTo="$parentIcon" relativePoint="RIGHT" x="5" y="0"/>
  464                                                 <Anchor point="RIGHT" x="-5" y="0"/>
  465                                         </Anchors>
  466                                         <Color r="0.96875" g="0.8984375" b="0.578125" a="1"/>
  467                                 </FontString>
  468                         </Layer>
  469                 </Layers>
  470                 <NormalTexture inherits="_SearchBarSm">
  471                 </NormalTexture>
  472                 <PushedTexture inherits="_SearchBarSm">
  473                 </PushedTexture>
  474                 <HighlightTexture inherits="UI-EJ-SearchBarHighlightSm">
  475                 </HighlightTexture>
  476                 <Scripts>
  477                         <OnEnter>
  478                                 if self.itemID then
  479                                         GameTooltip:SetOwner(self, "ANCHOR_LEFT");
  480                                         GameTooltip:SetItemByID(self.itemID);
  481                                         self.showingTooltip = true;
  482                                 end
  483                         </OnEnter>
  484                         <OnLeave>
  485                                 GameTooltip:Hide();
  486                                 self.showingTooltip = false;
  487                         </OnLeave>
  488                         <OnShow>
  489                                 self:SetFrameLevel(self:GetParent():GetFrameLevel() + 10);
  490                         </OnShow>
  491                         <OnClick>
  492                                 EncounterJournal_SelectSearch(self:GetID())
  493                                 PlaySound("igSpellBookOpen");
  494                         </OnClick>
  495                 </Scripts>
  496         </Button>
 
  498         <Button name="EncounterSearchLGTemplate" virtual="true">
  499                 <Size x="575" y="49"/>
  500                 <Layers>
  501                         <Layer level="OVERLAY" textureSubLevel="2">
  502                                 <Texture name="$parentIconFrame" inherits="UI-EJ-SearchIconFrameLg">
  503                                         <Anchors>
  504                                                 <Anchor point="LEFT" x="10" y="0"/>
  505                                         </Anchors>
  506                                 </Texture>
  507                         </Layer>
  508                         <Layer level="OVERLAY">
  509                                 <Texture name="$parentIcon" file="Interface\Icons\Ability_ThunderClap" parentKey="icon">
  510                                         <Anchors>
  511                                                 <Anchor point="TOPLEFT" relativeTo="$parentIconFrame" x="1" y="-2"/>
  512                                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parentIconFrame" x="-1" y="1"/>
  513                                         </Anchors>
  514                                 </Texture>
  515                                 <FontString name="$parentName" inherits="GameFontNormalLarge" justifyH="LEFT" parentKey="name" text="ENCOUNTER">
  516                                         <Size x="460" y="12"/>
  517                                         <Anchors>
  518                                                 <Anchor point="TOPLEFT" relativeTo="$parentIcon" relativePoint="TOPRIGHT" x="10" y="0"/>
  519                                         </Anchors>
  520                                         <Color r="0.96875" g="0.8984375" b="0.578125" a="1"/>
  521                                 </FontString>
  522                                 <FontString name="$parentPath" inherits="GameFontNormal" justifyH="LEFT" parentKey="path" text="ENCOUNTER">
  523                                         <Size x="400" y="0"/>
  524                                         <Anchors>
  525                                                 <Anchor point="TOPLEFT" relativeTo="$parentName" relativePoint="BOTTOMLEFT" x="0" y="-7"/>
  526                                         </Anchors>
  527                                         <Color r="0.66796875" g="0.51171875" b="0.3359375" a="1"/>
  528                                 </FontString>
  529                                 <FontString name="$parentType" inherits="GameFontNormal" justifyH="RIGHT" parentKey="resultType" text="ENCOUNTER">
  530                                         <Size x="140" y="0"/>
  531                                         <Anchors>
  532                                                 <Anchor point="RIGHT" x="-14" y="0"/>
  533                                         </Anchors>
  534                                         <Color r="0.66796875" g="0.51171875" b="0.3359375" a="1"/>
  535                                 </FontString>
  536                         </Layer>
  537                 </Layers>
  538                 <NormalTexture inherits="_SearchBarLg">
  539                 </NormalTexture>
  540                 <PushedTexture inherits="_SearchBarLg">
  541                 </PushedTexture>
  542                 <HighlightTexture inherits="UI-EJ-SearchBarHighlightLg">
  543                 </HighlightTexture>
  544                 <Scripts>
  545                         <OnEnter>
  546                                 if self.itemID then
  547                                         GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
  548                                         GameTooltip:SetItemByID(self.itemID);
  549                                 end
  550                                 self.showingTooltip = true;
  551                         </OnEnter>
  552                         <OnLeave>
  553                                 GameTooltip:Hide();
  554                                 self.showingTooltip = false;
  555                         </OnLeave>             
  556                         <OnClick>
  557                                 EncounterJournal_SelectSearch(self:GetID());
  558                                 PlaySound("igSpellBookOpen");
  559                         </OnClick>
  560                 </Scripts>
  561         </Button>
 
  563         <Button name="EncounterCreatureButtonTemplate" motionScriptsWhileDisabled="true" virtual="true" hidden="true">
  564                 <Size x="64" y="61"/>
  565                 <Layers>
  566                         <Layer level="BACKGROUND" TextureSubLevel="6">
  567                                 <Texture name="$parentCreature" parentKey="creature">
  568                                         <Size x="40" y="40"/>
  569                                         <Anchors>
  570                                                 <Anchor point="CENTER" x="0" y="0"/>
  571                                         </Anchors>
  572                                 </Texture>
  573                         </Layer>
  574                 </Layers>
  575                 <NormalTexture inherits="UI-EJ-BossModelButton">
  576                 </NormalTexture>
  577                 <HighlightTexture inherits="UI-EJ-BossModelButton" alphaMode="ADD"/>
  578                 <Scripts>
  579                         <OnShow>
  580                                 self:SetFrameLevel(self:GetParent():GetFrameLevel()+2);
  581                                 self:Disable();
  582                                 self:Enable();
  583                         </OnShow>
  584                         <OnDisable>
  585                                 self:SetSize(64, 61);
  586                                 self.creature:SetSize(40, 40);
  587                         </OnDisable>
  588                         <OnEnable>
  589                                 self:SetSize(50, 49);
  590                                 self.creature:SetSize(30, 30);
  591                         </OnEnable>
  592                         <OnClick>
  593                                 EncounterJournal_DisplayCreature(self);
  594                                 PlaySound("igMainMenuOption");
  595                         </OnClick>
  596                         <OnEnter>
 
  598                                 if self.name then
  599                                         GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
  600                                         GameTooltip:SetText(self.name,1,1,1);
  601                                         if self.description then
  602                                                 GameTooltip:AddLine(self.description, nil, nil, nil, 1);
  603                                         end
  604                                         GameTooltip:Show();
  605                                 end
  606                         </OnEnter>
  607                         <OnLeave>
  608                                 GameTooltip:Hide();
  609                         </OnLeave>
  610                 </Scripts>
  611         </Button>
 
  613         <Button name="EncounterBossButtonTemplate" virtual="true" hidden="true">
  614                 <Size x="325" y="55"/>
  615                 <Frames>
  616                         <Frame>
  617                                 <Size x="1" y="1"/>
  618                                 <Anchors>
  619                                         <Anchor point="TOPLEFT" x="-4" y="13"/>
  620                                 </Anchors>
  621                                 <Layers>
  622                                         <Layer level="OVERLAY" TextureSubLevel="6">
  623                                                 <Texture name="$parentCreature" file="Interface\EncounterJournal\UI-EJ-BOSS-Default" parentKey="creature">
  624                                                         <Size x="128" y="64"/>
  625                                                         <Anchors>
  626                                                                 <Anchor point="TOPLEFT" x="0" y="0"/>
  627                                                         </Anchors>
  628                                                 </Texture>
  629                                         </Layer>
  630                                 </Layers>
  631                                 <Scripts>
  632                                         <OnLoad>
  633                                                 self:GetParent().creature = self.creature;
  634                                         </OnLoad>
  635                                 </Scripts>
  636                         </Frame>
  637                 </Frames>
  638                 <NormalTexture inherits="UI-EJ-BossButton-Up">
  639                 </NormalTexture>
  640                 <PushedTexture inherits="UI-EJ-BossButton-Down">
  641                 </PushedTexture>
  642                 <HighlightTexture inherits="UI-EJ-BossButton-Highlight">
  643                 </HighlightTexture>
  644                 <ButtonText name="$parentText" parentKey="text" justifyH="LEFT"  justifyV="MIDDLE">
  645                         <Size x="160" y="40"/>
  646                         <Anchors>
  647                                 <Anchor point="LEFT">
  648                                         <Offset>
  649                                                 <AbsDimension x="105" y="-3"/>
  650                                         </Offset>
  651                                 </Anchor>
  652                         </Anchors>
  653                         <Color r="0.827" g="0.659" b="0.463"/>
  654                 </ButtonText>
  655                 <NormalFont style="GameFontNormalMed3"/>
  656                 <DisabledFont style="GameFontHighlightMedium"/>
  657                 <Scripts>
  658                         <OnClick>
  659                                 if IsModifiedClick("CHATLINK") and ChatEdit_GetActiveWindow() then
  660                                         if self.link then
  661                                                 ChatEdit_InsertLink(self.link);
  662                                         end
  663                                         return;
  664                                 end
  665                                 EncounterJournal_DisplayEncounter(self.encounterID);
  666                                 PlaySound("igAbiliityPageTurn");
  667                         </OnClick>
  668                         <OnEnter>
  669                                 self.text:SetTextColor(0.973, 0.902, 0.581);
  670                         </OnEnter>
  671                         <OnLeave>
  672                                 self.text:SetTextColor(0.827, 0.659, 0.463);
  673                         </OnLeave>
  674                 </Scripts>
  675         </Button>
 
  677         <Button name="EncounterTabTemplate" virtual="true">
  678                 <Size x="63" y="57"/>  
  679                 <NormalTexture inherits="UI-EJ-Tab-UnSelected"/>
  680                 <PushedTexture inherits="UI-EJ-Tab-Selected"/>
  681                 <DisabledTexture inherits="UI-EJ-Tab-Selected"/>
  682                 <HighlightTexture inherits="UI-EJ-Tab-Highlight" alphaMode="ADD"/>
  683                 <Scripts>
  684                         <OnClick function="EncounterJournal_TabClicked"/>
  685                         <OnDisable>
  686                                 self.selected:Show();
  687                                 self.unselected:Hide();
  688                                 --self:SetFrameLevel(self:GetParent():GetFrameLevel()+3);
  689                         </OnDisable>
  690                         <OnEnable>
  691                                 self.unselected:Show();
  692                                 self.selected:Hide();
  693                                 --self:SetFrameLevel(self:GetParent():GetFrameLevel()+1);
  694                         </OnEnable>
  695                 </Scripts>
  696         </Button>
 
  698         <Button name="EncounterDifficultyTemplate" virtual="true">
  699                 <Size x="26" y="26"/>
  700                 <Layers>
  701                         <Layer level="OVERLAY">
  702                                 <Texture name="$parentSelected" inherits="UI-EJ-FilterButtonSelect" parentKey="selected" alphaMode="ADD" hidden="true">
  703                                         <Anchors>
  704                                                 <Anchor point="CENTER" x="0" y="0"/>
  705                                         </Anchors>
  706                                 </Texture>
  707                         </Layer>
  708                 </Layers>
  709                 <NormalTexture inherits="UI-EJ-FilterButtonUp">
  710                 </NormalTexture>
  711                 <PushedTexture inherits="UI-EJ-FilterButtonDown">
  712                 </PushedTexture>
  713                 <HighlightTexture inherits="UI-EJ-FilterButtonHighlight" alphaMode="ADD">
  714                 </HighlightTexture>
  715                 <NormalFont style="GameFontNormalSmall"/>
  716                 <ButtonText>
  717                         <Anchors>
  718                                 <Anchor point="CENTER" x="0" y="-1"/>
  719                         </Anchors>
  720                         <Color r="0.973" g="0.902" b="0.581"/>
  721                 </ButtonText>
  722         </Button>
 
  724         <Frame name="EncounterSectionIconTemplate" virtual="true">
  725                 <Size x="32" y="32"/>
  726                 <Layers>
  727                         <Layer level="OVERLAY">
  728                                 <Texture name="$parentIcon" file="Interface\EncounterJournal\UI-EJ-Icons" parentKey="icon">
  729                                         <Size x="32" y="32"/>
  730                                         <Anchors>
  731                                                 <Anchor point="CENTER" x="0" y="0"/>
  732                                         </Anchors>
  733                                 </Texture>
  734                         </Layer>
  735                 </Layers>
  736                 <Scripts>
  737                         <OnEnter>
  738                                 if self.tooltipTitle then
  739                                         GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
  740                                         GameTooltip:SetText(self.tooltipTitle,1,1,1);
  741                                         GameTooltip:AddLine(self.tooltipText, nil, nil, nil, 1);
  742                                         GameTooltip:Show();
  743                                 end
  744                         </OnEnter>
  745                         <OnLeave>
  746                                 GameTooltip:Hide();
  747                         </OnLeave>
  748                 </Scripts>
  749         </Frame>
 
  751         <Frame name="EncounterInfoTemplate" virtual="true">
  752                 <Animations>
  753                         <AnimationGroup parentKey="flashAnim">
  754                                 <Alpha target="$parentHeaderButtonGlow" change="1.0" duration="0.6" order="1"/>
  755                                 <Alpha target="$parentHeaderButtonGlow" change="-1.0"  duration="0.6" order="2"/>
  756                                 <Alpha target="$parentHeaderButtonGlow" change="1.0" duration="0.6" order="3"/>
  757                                 <Alpha target="$parentHeaderButtonGlow" change="-1.0"  duration="0.9" order="4"/>
  758                         </AnimationGroup>
  759                 </Animations>
  760                 <Size x="5" y="24"/>
  761                 <Frames>
  762                         <Button name="$parentHeaderButton" parentKey="button">
  763                                 <Size x="5" y="24"/>
  764                                 <Anchors>
  765                                         <Anchor point="TOPLEFT" x="0" y="0"/>
  766                                         <Anchor point="RIGHT" x="0" y="0"/>
  767                                 </Anchors>
  768                                 <Layers>
  769                                         <Layer level="OVERLAY">
  770                                                 <FontString name="$parentExpandedIcon" inherits="GameFontNormalLarge" parentKey="expandedIcon">
  771                                                         <Size x="12" y="12"/>
  772                                                         <Anchors>
  773                                                                 <Anchor point="LEFT" x="5" y="0"/>
  774                                                         </Anchors>
  775                                                 </FontString>
  776                                                 <Texture name="$parentAbilityIcon" parentKey="abilityIcon">
  777                                                         <Size x="18" y="18"/>
  778                                                         <Anchors>
  779                                                                 <Anchor point="LEFT" relativeTo="$parentExpandedIcon" relativePoint="RIGHT" x="5" y="0"/>
  780                                                         </Anchors>
  781                                                 </Texture>
  782                                                 <FontString name="$parentTitle" inherits="GameFontNormal" parentKey="title" justifyH="LEFT">
  783                                                         <Size x="5" y="10"/>
  784                                                         <Anchors>
  785                                                                 <Anchor point="LEFT" relativeTo="$parentAbilityIcon" relativePoint="RIGHT" x="5" y="-1"/>
  786                                                                 <Anchor point="RIGHT" relativeTo="$parentIcon4" relativePoint="LEFT" x="-5" y="0"/>
  787                                                         </Anchors>
  788                                                 </FontString>
  789                                         </Layer>
  790                                         <Layer level="BACKGROUND">
  791                                                 <Texture name="$parentELeftUp" inherits="UI-EJ-PaperHeader-SelectUp-Left" parentKey="eLeftUp" hidden="true">
  792                                                         <Anchors>
  793                                                                 <Anchor point="LEFT" x="-1" y="-1"/>
  794                                                         </Anchors>
  795                                                 </Texture>
  796                                                 <Texture name="$parentERightUp" inherits="UI-EJ-PaperHeader-SelectUp-Right" parentKey="eRightUp" hidden="true">
  797                                                         <Anchors>
  798                                                                 <Anchor point="RIGHT" x="3" y="-1"/>
  799                                                         </Anchors>
  800                                                 </Texture>
  801                                                 <Texture name="$parentELeftDown" inherits="UI-EJ-PaperHeader-SelectDown-Left" parentKey="eLeftDown" hidden="true">
  802                                                         <Anchors>
  803                                                                 <Anchor point="LEFT" relativeTo="$parentELeftUp" x="0" y="0"/>
  804                                                         </Anchors>
  805                                                 </Texture>
  806                                                 <Texture name="$parentERightDown" inherits="UI-EJ-PaperHeader-SelectDown-Right" parentKey="eRightDown" hidden="true">
  807                                                         <Anchors>
  808                                                                 <Anchor point="RIGHT" relativeTo="$parentERightUp" x="0" y="0"/>
  809                                                         </Anchors>
  810                                                 </Texture>
  811                                                 <Texture name="$parentCLeftUp" inherits="UI-EJ-PaperHeader-UnSelectUp-Left" parentKey="cLeftUp">
  812                                                         <Anchors>
  813                                                                 <Anchor point="LEFT" relativeTo="$parentELeftUp" x="0" y="0"/>
  814                                                         </Anchors>
  815                                                 </Texture>
  816                                                 <Texture name="$parentCRightUp" inherits="UI-EJ-PaperHeader-UnSelectUp-Right" parentKey="cRightUp">
  817                                                         <Anchors>
  818                                                                 <Anchor point="RIGHT" relativeTo="$parentERightUp" x="0" y="0"/>
  819                                                         </Anchors>
  820                                                 </Texture>
  821                                                 <Texture name="$parentCLeftDown" inherits="UI-EJ-PaperHeader-UnSelectDown-Left" parentKey="cLeftDown" hidden="true">
  822                                                         <Anchors>
  823                                                                 <Anchor point="LEFT" relativeTo="$parentELeftUp" x="0" y="0"/>
  824                                                         </Anchors>
  825                                                 </Texture>
  826                                                 <Texture name="$parentCRightDown" inherits="UI-EJ-PaperHeader-UnSelectDown-Right" parentKey="cRightDown" hidden="true">
  827                                                         <Anchors>
  828                                                                 <Anchor point="RIGHT" relativeTo="$parentERightUp" x="0" y="0"/>
  829                                                         </Anchors>
  830                                                 </Texture>
  831                                         </Layer>
  832                                         <Layer level="BACKGROUND" textureSubLevel="-2">
  833                                                 <Texture name="$parentEMidUp" inherits="_PaperHeader-SelectUp-Mid" parentKey="eMidUp" hidden="true">
  834                                                         <Anchors>
  835                                                                 <Anchor point="LEFT" relativeTo="$parentELeftUp" relativePoint="RIGHT" x="-32" y="0"/>
  836                                                                 <Anchor point="RIGHT" relativeTo="$parentERightUp" relativePoint="LEFT" x="32" y="0"/>
  837                                                         </Anchors>
  838                                                 </Texture>
  839                                                 <Texture name="$parentEMidDown" inherits="_PaperHeader-SelectDown-Mid" parentKey="eMidDown" hidden="true">
  840                                                         <Anchors>
  841                                                                 <Anchor point="LEFT" relativeTo="$parentELeftDown" relativePoint="RIGHT" x="-32" y="0"/>
  842                                                                 <Anchor point="RIGHT" relativeTo="$parentERightDown" relativePoint="LEFT" x="32" y="0"/>
  843                                                         </Anchors>
  844                                                 </Texture>
  845                                                 <Texture name="$parentCMidUp" inherits="_PaperHeader-UnSelectUp-Mid" parentKey="cMidUp">
  846                                                         <Anchors>
  847                                                                 <Anchor point="LEFT" relativeTo="$parentELeftUp" relativePoint="RIGHT" x="-32" y="0"/>
  848                                                                 <Anchor point="RIGHT" relativeTo="$parentERightUp" relativePoint="LEFT" x="32" y="0"/>
  849                                                         </Anchors>
  850                                                 </Texture>
  851                                                 <Texture name="$parentCMidDown" inherits="_PaperHeader-UnSelectDown-Mid" parentKey="cMidDown" hidden="true">
  852                                                         <Anchors>
  853                                                                 <Anchor point="LEFT" relativeTo="$parentELeftDown" relativePoint="RIGHT" x="-32" y="0"/>
  854                                                                 <Anchor point="RIGHT" relativeTo="$parentERightDown" relativePoint="LEFT" x="32" y="0"/>
  855                                                         </Anchors>
  856                                                 </Texture>
  857                                         </Layer>
  858                                         <Layer level="HIGHLIGHT">
  859                                                 <Texture name="$parentHighlightLeft" inherits="UI-EJ-PaperHeader-Highlight-Left">
  860                                                         <Anchors>
  861                                                                 <Anchor point="LEFT" x="-1" y="-1"/>
  862                                                         </Anchors>
  863                                                 </Texture>
  864                                                 <Texture name="$parentHighlightRight" inherits="UI-EJ-PaperHeader-Highlight-Right">
  865                                                         <Anchors>
  866                                                                 <Anchor point="RIGHT" x="3" y="-1"/>
  867                                                         </Anchors>
  868                                                 </Texture>
  869                                                 <Texture name="$parentHighlightMid" inherits="_PaperHeader-Highlight-Mid">
  870                                                         <Anchors>
  871                                                                 <Anchor point="LEFT" relativeTo="$parentHighlightLeft" relativePoint="RIGHT" x="-32" y="0"/>
  872                                                                 <Anchor point="RIGHT" relativeTo="$parentHighlightRight" relativePoint="LEFT" x="32" y="0"/>
  873                                                         </Anchors>
  874                                                 </Texture>
  875                                         </Layer>
  876                                 </Layers>
  877                                 <Frames>
  878                                         <Frame name="$parentGlow" alpha="0">
  879                                                 <Anchors>
  880                                                         <Anchor point="TOPLEFT" x="0" y="0"/>
  881                                                         <Anchor point="BOTTOMRIGHT" x="0" y="0"/>
  882                                                 </Anchors>
  883                                                 <Layers>
  884                                                         <Layer level="OVERLAY">
  885                                                                 <Texture name="$parentHighlightLeft" inherits="UI-EJ-PaperHeader-Highlight-Left">
  886                                                                         <Anchors>
  887                                                                                 <Anchor point="LEFT" x="-1" y="-1"/>
  888                                                                         </Anchors>
  889                                                                 </Texture>
  890                                                                 <Texture name="$parentHighlightRight" inherits="UI-EJ-PaperHeader-Highlight-Right">
  891                                                                         <Anchors>
  892                                                                                 <Anchor point="RIGHT" x="3" y="-1"/>
  893                                                                         </Anchors>
  894                                                                 </Texture>
  895                                                                 <Texture name="$parentHighlightMid" inherits="_PaperHeader-Highlight-Mid">
  896                                                                         <Anchors>
  897                                                                                 <Anchor point="LEFT" relativeTo="$parentHighlightLeft" relativePoint="RIGHT" x="-32" y="0"/>
  898                                                                                 <Anchor point="RIGHT" relativeTo="$parentHighlightRight" relativePoint="LEFT" x="32" y="0"/>
  899                                                                         </Anchors>
  900                                                                 </Texture>
  901                                                         </Layer>
  902                                                 </Layers>
  903                                         </Frame>
  904                                         <Frame name="$parentIcon1" inherits="EncounterSectionIconTemplate" parentKey="icon1">
  905                                                 <Anchors>
  906                                                         <Anchor point="RIGHT" x="5" y="0"/>
  907                                                 </Anchors>
  908                                         </Frame>
  909                                         <Frame name="$parentIcon2" inherits="EncounterSectionIconTemplate" parentKey="icon2">
  910                                                 <Anchors>
  911                                                         <Anchor point="RIGHT" relativeTo="$parentIcon1" relativePoint="LEFT" x="10" y="0"/>
  912                                                 </Anchors>
  913                                         </Frame>
  914                                         <Frame name="$parentIcon3" inherits="EncounterSectionIconTemplate" parentKey="icon3">
  915                                                 <Anchors>
  916                                                         <Anchor point="RIGHT" relativeTo="$parentIcon2" relativePoint="LEFT" x="10" y="0"/>
  917                                                 </Anchors>
  918                                         </Frame>
  919                                         <Frame name="$parentIcon4" inherits="EncounterSectionIconTemplate" parentKey="icon4">
  920                                                 <Anchors>
  921                                                         <Anchor point="RIGHT" relativeTo="$parentIcon3" relativePoint="LEFT" x="19" y="0"/>
  922                                                 </Anchors>
  923                                         </Frame>
  924                                         <Button name="$parentPortrait" parentKey="portrait">
  925                                                 <Size x="26" y="26"/>
  926                                                 <Anchors>
  927                                                         <Anchor point="CENTER" relativeTo="$parentAbilityIcon" x="0" y="0"/>
  928                                                 </Anchors>
  929                                                 <Layers>
  930                                                         <Layer level="OVERLAY">
  931                                                                 <Texture name="$parentIcon" parentKey="icon">
  932                                                                         <Size x="26" y="26"/>
  933                                                                         <Anchors>
  934                                                                                 <Anchor point="CENTER" x="0" y="0"/>
  935                                                                         </Anchors>
  936                                                                 </Texture>
  937                                                         </Layer>
  938                                                         <Layer level="OVERLAY" textureSubLevel="2">
  939                                                                 <Texture name="$parentFrame" inherits="UI-EJ-CreatureHeaderFrameSm">
  940                                                                         <Anchors>
  941                                                                                 <Anchor point="CENTER" relativeTo="$parentIcon" x="0" y="0"/>
  942                                                                         </Anchors>
  943                                                                 </Texture>     
  944                                                         </Layer>
  945                                                         <Layer level="HIGHLIGHT">
  946                                                                 <Texture name="$parentFrameHighlight" inherits="UI-EJ-CreatureHeaderFrameSm" alphaMode="ADD">
  947                                                                         <Anchors>
  948                                                                                 <Anchor point="CENTER" relativeTo="$parentIcon" x="0" y="0"/>
  949                                                                         </Anchors>
  950                                                                 </Texture>     
  951                                                         </Layer>
  952                                                 </Layers>
  953                                                 <Scripts>
  954                                                         <OnClick>
  955                                                                 if self.displayInfo then
  956                                                                         EncounterJournal_DisplayCreature(self);
  957                                                                 end
  958                                                                 self:Enable();
  959                                                                 PlaySound("igMainMenuOptionCheckBoxOn");
  960                                                         </OnClick>
  961                                                 </Scripts>
  962                                         </Button>
  963                                 </Frames>
  964                                 <Scripts>
  965                                         <OnLoad>
  966                                                 self.textures = {
  967                                                         expanded = {
  968                                                                 up = {self.eLeftUp, self.eMidUp, self.eRightUp},
  969                                                                 down = {self.eLeftDown, self.eMidDown, self.eRightDown}
  970                                                         },
  971                                                         collapsed = {
  972                                                                 up = {self.cLeftUp, self.cMidUp, self.cRightUp},
  973                                                                 down = {self.cLeftDown, self.cMidDown, self.cRightDown}
  974                                                         },
  975                                                 }
  976                                                 self.tex = self.textures.collapsed;
  977                                         </OnLoad>
  978                                         <OnShow>
  979                                                 local oldtex = self.textures.expanded;
  980                                                 if self:GetParent().expanded then
  981                                                         self.tex = self.textures.expanded;
  982                                                         oldtex = self.textures.collapsed;
  983                                                         self.expandedIcon:SetTextColor(0.929, 0.788, 0.620);
  984                                                         self.title:SetTextColor(0.929, 0.788, 0.620);
  985                                                 else
  986                                                         self.tex = self.textures.collapsed;
  987                                                         self.expandedIcon:SetTextColor(0.827, 0.659, 0.463);
  988                                                         self.title:SetTextColor(0.827, 0.659, 0.463);
  989                                                 end
 
  991                                                 oldtex.up[1]:Hide();
  992                                                 oldtex.up[2]:Hide();
  993                                                 oldtex.up[3]:Hide();
  994                                                 oldtex.down[1]:Hide();
  995                                                 oldtex.down[2]:Hide();
  996                                                 oldtex.down[3]:Hide();
 
  999                                                 self.tex.up[1]:Show();
  1000                                                 self.tex.up[2]:Show();
  1001                                                 self.tex.up[3]:Show();
  1002                                                 self.tex.down[1]:Hide();
  1003                                                 self.tex.down[2]:Hide();
  1004                                                 self.tex.down[3]:Hide();
  1005                                         </OnShow>
  1006                                         <OnClick>
  1007                                                 if IsModifiedClick("CHATLINK") and ChatEdit_GetActiveWindow() then
  1008                                                         if self.link then
  1009                                                                 ChatEdit_InsertLink(self.link);
  1010                                                         end
  1011                                                         return;
  1012                                                 end
 
  1014                                                 EncounterJournal_ToggleHeaders(self:GetParent())
  1015                                                 self:GetScript("OnShow")(self);
  1016                                                 PlaySound("igMainMenuOptionCheckBoxOn");
  1017                                         </OnClick>
  1018                                         <OnMouseDown>
  1019                                                 self.tex.up[1]:Hide();
  1020                                                 self.tex.up[2]:Hide();
  1021                                                 self.tex.up[3]:Hide();
 
  1023                                                 self.tex.down[1]:Show();
  1024                                                 self.tex.down[2]:Show();
  1025                                                 self.tex.down[3]:Show();
  1026                                         </OnMouseDown>
  1027                                         <OnMouseUp>
  1028                                                 self.tex.up[1]:Show();
  1029                                                 self.tex.up[2]:Show();
  1030                                                 self.tex.up[3]:Show();
 
  1032                                                 self.tex.down[1]:Hide();
  1033                                                 self.tex.down[2]:Hide();
  1034                                                 self.tex.down[3]:Hide();
  1035                                         </OnMouseUp>
  1036                                         <OnEnter>
  1037                                                 if ( self.title:IsTruncated() ) then
  1038                                                         GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
  1039                                                         GameTooltip:SetText(self.title:GetText(), nil, nil, nil, nil, 1);
  1040                                                 end
  1041                                         </OnEnter>
  1042                                         <OnLeave>
  1043                                                 GameTooltip:Hide();
  1044                                         </OnLeave>
  1045                                 </Scripts>
  1046                         </Button>
  1047                 </Frames>
  1048                 <Layers>
  1049                         <Layer level="ARTWORK">
  1050                                 <FontString name="$parentDescription" inherits="GameFontBlack" justifyH="LEFT" parentKey="description">
  1051                                         <Size x="0" y="0"/>
  1052                                         <Anchors>
  1053                                                 <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentHeaderButton" x="0" y="-9"/>
  1054                                         </Anchors>
  1055                                         <Color r="0.25" g="0.1484375" b=".02" a="1"/>
  1056                                 </FontString>
  1057                         </Layer>
  1058                         <Layer level="BACKGROUND">
  1059                                 <Texture name="$parentDescriptionBG" inherits="UI-EJ-AbilityTextBG" parentKey="descriptionBG">
  1060                                         <Size x="12" y="12"/>
  1061                                         <Anchors>
  1062                                                 <Anchor point="TOPLEFT" relativeTo="$parentDescription" x="-9" y="12"/>
  1063                                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parentDescription" x="9" y="-11"/>
  1064                                         </Anchors>
  1065                                 </Texture>
  1066                                 <Texture inherits="UI-EJ-AbilityTextBottomBorder" parentKey="descriptionBGBottom">
  1067                                         <Anchors>
  1068                                                 <Anchor point="LEFT" relativeTo="$parentDescriptionBG" relativePoint="BOTTOMLEFT" x="0" y="0"/>
  1069                                                 <Anchor point="RIGHT" relativeTo="$parentDescriptionBG" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
  1070                                         </Anchors>
  1071                                 </Texture>
  1072                         </Layer>
  1073                 </Layers>
  1074                 <Scripts>
  1075                         <OnHide>
  1076                                 self:SetScript("OnUpdate", nil);
  1077                         </OnHide>
  1078                 </Scripts>
  1079         </Frame>
 
  1081         <Button name="EncounterItemTemplate" virtual="true">
  1082                 <Size x="321" y="45"/>
  1083                 <Layers>
  1084                         <Layer level="BACKGROUND">
  1085                                 <Texture name="$parentIcon" parentKey="icon">
  1086                                         <Size x="42" y="42"/>
  1087                                         <Anchors>
  1088                                                 <Anchor point="TOPLEFT" x="2" y="-2"/>
  1089                                         </Anchors>
  1090                                 </Texture>
  1091                         </Layer>
  1092                         <Layer level="BORDER">
  1093                                 <Texture inherits="UI-EJ-DungeonLootFrame" parentKey="bossTexture">
  1094                                         <Anchors>
  1095                                                 <Anchor point="CENTER" x="24" y="0"/>
  1096                                         </Anchors>
  1097                                 </Texture>
  1098                                 <Texture inherits="UI-EJ-LootFrame" parentKey="bosslessTexture">
  1099                                         <Anchors>
  1100                                                 <Anchor point="CENTER" x="0" y="0"/>
  1101                                         </Anchors>
  1102                                 </Texture>
  1103                         </Layer>
  1104                         <Layer level="OVERLAY">
  1105                                 <FontString name="$parentName" inherits="GameFontNormalMed3" justifyH="LEFT" parentKey="name">
  1106                                         <Size x="250" y="12"/>
  1107                                         <Anchors>
  1108                                                 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="$parentIcon" x="7" y="-7"/>
  1109                                         </Anchors>
  1110                                 </FontString>
  1111                                 <FontString name="$parentArmorClass" inherits="GameFontBlack" justifyH="RIGHT" parentKey="armorType">
  1112                                         <Size x="0" y="12"/>
  1113                                         <Anchors>
  1114                                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parentName" relativePoint="TOPLEFT" x="264" y="-30"/>
  1115                                         </Anchors>
  1116                                         <Color r="0.25" g="0.1484375" b=".02" a="1"/>
  1117                                 </FontString>
  1118                                 <FontString name="$parentSlot" inherits="GameFontBlack" justifyH="LEFT" parentKey="slot">
  1119                                         <Size x="0" y="12"/>
  1120                                         <Anchors>
  1121                                                 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" relativeTo="$parentIcon" x="7" y="5"/>
  1122                                                 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT" relativeTo="$parentArmorClass" x="-15" y="0"/>
  1123                                         </Anchors>
  1124                                         <Color r="0.25" g="0.1484375" b=".02" a="1"/>
  1125                                 </FontString>
  1126                                 <FontString name="$parentBoss" inherits="GameFontBlack" justifyH="LEFT" parentKey="boss">
  1127                                         <Size x="0" y="12"/>
  1128                                         <Anchors>
  1129                                                 <Anchor point="TOPLEFT" relativeTo="$parentIcon" relativePoint="BOTTOMLEFT" y="-3"/>
  1130                                         </Anchors>
  1131                                         <Color r="0.25" g="0.1484375" b=".02" a="1"/>
  1132                                 </FontString>
  1133                         </Layer>
  1134                 </Layers>
  1135                 <Scripts>
  1136                         <OnClick>
  1137                                 if (not HandleModifiedItemClick(self.link)) then
  1138                                         EncounterJournal_Loot_OnClick(self);
  1139                                 end
  1140                         </OnClick>
  1141                         <OnEnter>
  1142                                 GameTooltip:SetOwner(self, "ANCHOR_LEFT");
  1143                                 GameTooltip:SetItemByID(self.itemID);
  1144                                 self.showingTooltip = true;
  1145                                 self:SetScript("OnUpdate", EncounterJournal_Loot_OnUpdate);
  1146                         </OnEnter>
  1147                         <OnLeave>
  1148                                 GameTooltip:Hide();
  1149                                 self.showingTooltip = false;
  1150                                 self:SetScript("OnUpdate", nil);
  1151                                 ResetCursor();
  1152                         </OnLeave>
  1153                 </Scripts>
  1154         </Button>
 
  1156         <Button name="EncounterTierTabTemplate" virtual="true">
  1157                 <Size x="120" y="36"/> 
  1158                 <HitRectInsets>
  1159                         <AbsInset left="-12" right="-12" top="0" bottom="0"/>
  1160                 </HitRectInsets>
  1161                 <Layers>
  1162                         <Layer level="BACKGROUND">
  1163                                 <Texture name="$parentMid" inherits="_DungeonGridTab-Mid" parentKey="mid" horizTile="true">
  1164                                         <Anchors>
  1165                                                 <Anchor point="TOPLEFT" x="0" y="0"/>
  1166                                                 <Anchor point="BOTTOMRIGHT" x="0" y="0"/>
  1167                                         </Anchors>
  1168                                 </Texture>
  1169                                 <Texture name="$parentLeft" inherits="UI-EJ-DungeonGridTab-Left" parentKey="left">
  1170                                         <Anchors>
  1171                                                 <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" x="0" y="0"/>
  1172                                                 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
  1173                                         </Anchors>
  1174                                 </Texture>
  1175                                 <Texture name="$parentRight" inherits="UI-EJ-DungeonGridTab-Right" parentKey="right">
  1176                                         <Anchors>
  1177                                                 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="0" y="0"/>
  1178                                                 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
  1179                                         </Anchors>
  1180                                 </Texture>
  1181                         </Layer>
  1182                         <Layer level="OVERLAY">
  1183                                 <Texture name="$parentMidSelect" inherits="_DungeonGridTab-MidSelect" parentKey="midSelect" horizTile="true" hidden="true">
  1184                                         <Anchors>
  1185                                                 <Anchor point="TOPLEFT" x="0" y="0"/>
  1186                                                 <Anchor point="BOTTOMRIGHT" x="0" y="0"/>
  1187                                         </Anchors>
  1188                                 </Texture>
  1189                                 <Texture name="$parentLeftSelect" inherits="UI-EJ-DungeonGridTab-LeftSelect" parentKey="leftSelect" hidden="true">
  1190                                         <Anchors>
  1191                                                 <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" x="0" y="0"/>
  1192                                                 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
  1193                                         </Anchors>
  1194                                 </Texture>
  1195                                 <Texture name="$parentRightSelect" inherits="UI-EJ-DungeonGridTab-RightSelect" parentKey="rightSelect" hidden="true">
  1196                                         <Anchors>
  1197                                                 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="0" y="0"/>
  1198                                                 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
  1199                                         </Anchors>
  1200                                 </Texture>
  1201                                 <Texture name="$parentSelectedGlow" inherits="UI-EJ-DungeonGridTab-SelectedGlow" parentKey="selectedGlow" hidden="true">
  1202                                         <Anchors>
  1203                                                 <Anchor point="BOTTOMLEFT" x="-18" y="0"/>
  1204                                                 <Anchor point="BOTTOMRIGHT" x="18" y="0"/>
  1205                                         </Anchors>
  1206                                 </Texture>
  1207                         </Layer>
  1208                         <Layer level="HIGHLIGHT">      
  1209                                 <Texture name="$parentMidHighlight" inherits="_DungeonGridTab-MidHighlight" parentKey="midHighlight" horizTile="true">
  1210                                         <Anchors>
  1211                                                 <Anchor point="TOPLEFT" x="0" y="0"/>
  1212                                                 <Anchor point="BOTTOMRIGHT" x="0" y="0"/>
  1213                                         </Anchors>
  1214                                 </Texture>
  1215                                 <Texture name="$parentLeftHighlight" inherits="UI-EJ-DungeonGridTab-LeftHighlight" parentKey="leftHighlight">
  1216                                         <Anchors>
  1217                                                 <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" x="0" y="0"/>
  1218                                                 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
  1219                                         </Anchors>
  1220                                 </Texture>
  1221                                 <Texture name="$parentRightHighlight" inherits="UI-EJ-DungeonGridTab-RightHighlight" parentKey="rightHighlight">
  1222                                         <Anchors>
  1223                                                 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="0" y="0"/>
  1224                                                 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
  1225                                         </Anchors>
  1226                                 </Texture>
  1227                         </Layer>
  1228                 </Layers>
  1229                 <NormalFont style="GameFontNormalLarge"/>
  1230                 <ButtonText>
  1231                         <Anchors>
  1232                                 <Anchor point="CENTER" x="0" y="-3"/>
  1233                         </Anchors>
  1234                 </ButtonText>
  1235                 <Scripts>
  1236                         <OnLoad>
  1237                                 self.storedHeight = self:GetHeight();
  1238                                 self:SetHeight(self.storedHeight-4);
  1239                         </OnLoad>
  1240                         <OnEnable>
  1241                                 self.leftSelect:Hide();
  1242                                 self.midSelect:Hide();
  1243                                 self.rightSelect:Hide();
  1244                                 self:SetHeight(self.storedHeight-4);
  1245                         </OnEnable>
  1246                         <OnDisable>
  1247                                 self.leftSelect:Show();
  1248                                 self.midSelect:Show();
  1249                                 self.rightSelect:Show();
  1250                                 self:SetHeight(self.storedHeight);
  1251                         </OnDisable>
  1252                 </Scripts>
  1253         </Button>
 
  1257         <Frame name="EncounterJournal" inherits="PortraitFrameTemplate" toplevel="true" enableMouse="true" parent="UIParent" hidden="true">
  1258                 <Size x="800" y="496"/>
  1259                 <Anchors>
  1260                         <Anchor point="CENTER" x="0" y="0"/>
  1261                 </Anchors>
  1262                 <Frames>
  1263                         <EditBox name="$parentSearchBox" inherits="SearchBoxTemplate" parentKey="searchBox" letters="40">
  1264                                 <Size x="210" y="20"/>
  1265                                 <Anchors>
  1266                                         <Anchor point="TOPRIGHT" x="-10" y="-32"/>
  1267                                 </Anchors>
  1268                                 <Frames>
  1269                                         <Button name="$parentSearchButton1" inherits="EncounterSearchSMTemplate" parentKey="sbutton1">
  1270                                                 <Anchors>
  1271                                                         <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" x="0" y="0"/>
  1272                                                         <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" x="-5" y="0"/>
  1273                                                 </Anchors>
  1274                                                 <Layers>
  1275                                                         <Layer level="OVERLAY">
  1276                                                                 <Texture name="$parentBotLeftCorner" inherits="UI-Frame-BotCornerLeft" parentKey="boarderAnchor">
  1277                                                                         <Anchors>
  1278                                                                                 <Anchor point="LEFT" x="-7" y="0"/>
  1279                                                                                 <Anchor point="BOTTOM" x="0" y="-5"/>
  1280                                                                         </Anchors>
  1281                                                                         <Color r="0.5" g="0.5" b="0.5" a="1"/>
  1282                                                                 </Texture>
  1283                                                                 <Texture name="$parentBotRightCorner" inherits="UI-Frame-BotCornerRight">
  1284                                                                         <Anchors>
  1285                                                                                 <Anchor point="BOTTOM" relativeTo="$parentBotLeftCorner" x="0" y="0"/>
  1286                                                                                 <Anchor point="RIGHT" x="4" y="0"/>
  1287                                                                         </Anchors>
  1288                                                                         <Color r="0.5" g="0.5" b="0.5" a="1"/>
  1289                                                                 </Texture>
  1290                                                                 <Texture name="$parentBottomBorder" inherits="_UI-Frame-Bot">
  1291                                                                         <Anchors>
  1292                                                                                 <Anchor point="BOTTOMLEFT" relativeTo="$parentBotLeftCorner" relativePoint="BOTTOMRIGHT" y="0"/>
  1293                                                                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parentBotRightCorner" relativePoint="BOTTOMLEFT" y="0"/>
  1294                                                                         </Anchors>
  1295                                                                         <Color r="0.5" g="0.5" b="0.5" a="1"/>
  1296                                                                 </Texture>
  1297                                                                 <Texture name="$parentLeftBorder" inherits="!UI-Frame-LeftTile" parentKey="leftBorderBar">
  1298                                                                         <Anchors>
  1299                                                                                 <Anchor point="TOP" x="0" y="1" />
  1300                                                                                 <Anchor point="BOTTOMLEFT" relativeTo="$parentBotLeftCorner" relativePoint="TOPLEFT"/>
  1301                                                                         </Anchors>
  1302                                                                         <Color r="0.5" g="0.5" b="0.5" a="1"/>
  1303                                                                 </Texture>
  1304                                                                 <Texture name="$parentRightBorder" inherits="!UI-Frame-RightTile">
  1305                                                                         <Anchors>
  1306                                                                                 <Anchor point="TOP" x="0" y="1" />
  1307                                                                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parentBotRightCorner" relativePoint="TOPRIGHT" x="1" y="0"/>
  1308                                                                         </Anchors>
  1309                                                                         <Color r="0.5" g="0.5" b="0.5" a="1"/>
  1310                                                                 </Texture>
  1311                                                         </Layer>
  1312                                                 </Layers>
  1313                                         </Button>
  1314                                         <Button name="$parentSearchButton2" inherits="EncounterSearchSMTemplate" parentKey="sbutton2">
  1315                                                 <Anchors>
  1316                                                         <Anchor point="TOPLEFT" relativeTo="$parentSearchButton1" relativePoint="BOTTOMLEFT" x="0" y="0"/>
  1317                                                         <Anchor point="TOPRIGHT" relativeTo="$parentSearchButton1" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
  1318                                                 </Anchors>
  1319                                         </Button>
  1320                                         <Button name="$parentSearchButton3" inherits="EncounterSearchSMTemplate" parentKey="sbutton3">
  1321                                                 <Anchors>
  1322                                                         <Anchor point="TOPLEFT" relativeTo="$parentSearchButton2" relativePoint="BOTTOMLEFT" x="0" y="0"/>
  1323                                                         <Anchor point="TOPRIGHT" relativeTo="$parentSearchButton2" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
  1324                                                 </Anchors>
  1325                                         </Button>
  1326                                         <Button name="$parentSearchButton4" inherits="EncounterSearchSMTemplate" parentKey="sbutton4">
  1327                                                 <Anchors>
  1328                                                         <Anchor point="TOPLEFT" relativeTo="$parentSearchButton3" relativePoint="BOTTOMLEFT" x="0" y="0"/>
  1329                                                         <Anchor point="TOPRIGHT" relativeTo="$parentSearchButton3" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
  1330                                                 </Anchors>
  1331                                         </Button>
  1332                                         <Button name="$parentSearchButton5" inherits="EncounterSearchSMTemplate" parentKey="sbutton5">
  1333                                                 <Anchors>
  1334                                                         <Anchor point="TOPLEFT" relativeTo="$parentSearchButton4" relativePoint="BOTTOMLEFT" x="0" y="0"/>
  1335                                                         <Anchor point="TOPRIGHT" relativeTo="$parentSearchButton4" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
  1336                                                 </Anchors>
  1337                                         </Button>
  1338                                         <Button name="$parentShowALL" parentKey="showAllResults">
  1339                                                 <Size x="275" y="24"/>
  1340                                                 <Anchors>
  1341                                                         <Anchor point="LEFT" relativeTo="$parentSearchButton1" x="0" y="0"/>
  1342                                                         <Anchor point="RIGHT" relativeTo="$parentSearchButton1" x="0" y="0"/>
  1343                                                         <Anchor point="TOP" relativeTo="$parentSearchButton5" relativePoint="BOTTOM" x="0" y="0"/>
  1344                                                 </Anchors>
  1345                                                 <Layers>
  1346                                                         <Layer level="OVERLAY">
  1347                                                                 <FontString name="$parentText" inherits="GameFontNormal" justifyH="LEFT" parentKey="text" text="ENCOUNTER">
  1348                                                                         <Size x="0" y="0"/>
  1349                                                                         <Anchors>
  1350                                                                                 <Anchor point="CENTER" x="0" y="0"/>
  1351                                                                         </Anchors>
  1352                                                                 </FontString>
  1353                                                         </Layer>
  1354                                                 </Layers>
  1355                                                 <NormalTexture inherits="_SearchBarSm">
  1356                                                 </NormalTexture>
  1357                                                 <PushedTexture inherits="_SearchBarSm">
  1358                                                 </PushedTexture>
  1359                                                 <HighlightTexture inherits="UI-EJ-SearchBarHighlightSm">
  1360                                                 </HighlightTexture>
  1361                                                 <Scripts>
  1362                                                         <OnShow>
  1363                                                                 self:SetFrameLevel(self:GetParent():GetFrameLevel() + 10);
  1364                                                         </OnShow>
  1365                                                         <OnClick>
  1366                                                                 EncounterJournal_ShowFullSearch()
  1367                                                                 PlaySound("igMainMenuOptionCheckBoxOn");
  1368                                                         </OnClick>
  1369                                                 </Scripts>
  1370                                         </Button>
  1371                                 </Frames>
  1372                                 <Scripts>
  1373                                         <OnEnterPressed function="EncounterJournal_ShowFullSearch"/>
  1374                                         <OnTextChanged function="EncounterJournal_OnSearchTextChanged"/>
  1375                                 </Scripts>
  1376                         </EditBox>
  1377                         <Frame name="$parentSearchResults" parentKey="searchResults" hidden="true">
  1378                                 <Size x="600" y="400"/>
  1379                                 <Anchors>
  1380                                         <Anchor point="BOTTOM" x="0" y="7"/>
  1381                                 </Anchors>
  1382                                 <Layers>
  1383                                         <Layer level="BACKGROUND">
  1384                                                 <Texture name="$parentBg" file="Interface\FrameGeneral\UI-Background-Rock" horizTile="true" vertTile="true">
  1385                                                         <Anchors>
  1386                                                                 <Anchor point="TOPLEFT" x="0" y="0"/>
  1387                                                                 <Anchor point="BOTTOMRIGHT" x="0" y="0"/>
  1388                                                         </Anchors>
  1389                                                         <Color r="0.9" g="0.8" b="0.7" a="1"/>
  1390                                                 </Texture>
  1391                                         </Layer>
  1392                                         <Layer level="BORDER">
  1393                                                 <FontString name="$parentTitleText" inherits="GameFontNormal" text="" parentKey="TitleText">
  1394                                                         <Anchors>
  1395                                                                 <Anchor point="TOP" x="0" y="-7"/>
  1396                                                                 <Anchor point="LEFT" x="60"/>
  1397                                                                 <Anchor point="RIGHT" x="-60"/>
  1398                                                         </Anchors>
  1399                                                 </FontString>
  1400                                                 <Texture name="$parentTopLeftCorner" inherits="UI-Frame-TopCornerLeft" parentKey="boarderAnchor">
  1401                                                         <Anchors>
  1402                                                                 <Anchor point="TOPLEFT" x="-7" y="4"/>
  1403                                                         </Anchors>
  1404                                                         <Color r="0.5" g="0.5" b="0.5" a="1"/>
  1405                                                 </Texture>
  1406                                                 <Texture name="$parentTopRightCorner" inherits="UI-Frame-TopCornerRightSimple">
  1407                                                         <Anchors>
  1408                                                                 <Anchor point="TOPRIGHT" x="4" y="4"/>
  1409                                                         </Anchors>
  1410                                                         <Color r="0.5" g="0.5" b="0.5" a="1"/>
  1411                                                 </Texture>
  1412                                                 <Texture name="$parentTopBorder" inherits="_UI-Frame-Top">
  1413                                                         <Anchors>
  1414                                                                 <Anchor point="TOPLEFT" relativeTo="$parentTopLeftCorner" relativePoint="TOPRIGHT" y="0"/>
  1415                                                                 <Anchor point="TOPRIGHT" relativeTo="$parentTopRightCorner" relativePoint="TOPLEFT" y="0"/>
  1416                                                         </Anchors>
  1417                                                         <Color r="0.5" g="0.5" b="0.5" a="1"/>
  1418                                                 </Texture>
  1419                                                 <Texture name="$parentLeftBorder" inherits="!UI-Frame-LeftTile" parentKey="leftBorderBar">
  1420                                                         <Anchors>
  1421                                                                 <Anchor point="BOTTOM" x="0" y="0" />
  1422                                                                 <Anchor point="TOPLEFT" relativeTo="$parentTopLeftCorner" relativePoint="BOTTOMLEFT"/>
  1423                                                         </Anchors>
  1424                                                         <Color r="0.5" g="0.5" b="0.5" a="1"/>
  1425                                                 </Texture>
  1426                                                 <Texture name="$parentRightBorder" inherits="!UI-Frame-RightTile">
  1427                                                         <Anchors>
  1428                                                                 <Anchor point="BOTTOM" x="0" y="0" />
  1429                                                                 <Anchor point="TOPRIGHT" relativeTo="$parentTopRightCorner" relativePoint="BOTTOMRIGHT" x="1" y="0"/>
  1430                                                         </Anchors>
  1431                                                         <Color r="0.5" g="0.5" b="0.5" a="1"/>
  1432                                                 </Texture>
  1433                                         </Layer>
  1434                                         <Layer level="BORDER" textureSubLevel="-1">
  1435                                                 <Texture name="$parentTopTileStreaks" inherits="_UI-Frame-TopTileStreaks">
  1436                                                         <Anchors>
  1437                                                                 <Anchor point="TOPLEFT" x="0" y="0"/>
  1438                                                                 <Anchor point="TOPRIGHT" x="0" y="0"/>
  1439                                                         </Anchors>
  1440                                                 </Texture>
  1441                                         </Layer>
  1442                                         <Layer level="BORDER" textureSubLevel="1">
  1443                                                 <Texture name="$parentTopLeftCorner2" inherits="UI-Frame-TopCornerLeft" parentKey="boarderAnchor">
  1444                                                         <Anchors>
  1445                                                                 <Anchor point="TOPLEFT" x="-7" y="-20"/>
  1446                                                         </Anchors>
  1447                                                         <Color r="0.5" g="0.5" b="0.5" a="1"/>
  1448                                                 </Texture>
  1449                                                 <Texture name="$parentTopRightCorner2" inherits="UI-Frame-TopCornerRightSimple">
  1450                                                         <Anchors>
  1451                                                                 <Anchor point="TOPRIGHT" x="4" y="-20"/>
  1452                                                         </Anchors>
  1453                                                         <Color r="0.5" g="0.5" b="0.5" a="1"/>
  1454                                                 </Texture>
  1455                                                 <Texture name="$parentTopBorder2" inherits="_UI-Frame-Top">
  1456                                                         <Anchors>
  1457                                                                 <Anchor point="TOPLEFT" relativeTo="$parentTopLeftCorner2" relativePoint="TOPRIGHT" y="0"/>
  1458                                                                 <Anchor point="TOPRIGHT" relativeTo="$parentTopRightCorner2" relativePoint="TOPLEFT" y="0"/>
  1459                                                         </Anchors>
  1460                                                         <Color r="0.5" g="0.5" b="0.5" a="1"/>
  1461                                                 </Texture>
  1462                                         </Layer>
  1463                                 </Layers>
  1464                                 <Frames>
  1465                                         <Button name="$parentCloseButton" inherits="UIPanelCloseButton">
  1466                                                 <Anchors>
  1467                                                         <Anchor point="TOPRIGHT" x="7" y="2"/>
  1468                                                 </Anchors>
  1469                                                 <Scripts>
  1470                                                         <OnClick>
  1471                                                                 self:GetParent():Hide();
  1472                                                         </OnClick>
  1473                                                 </Scripts>
  1474                                         </Button>
  1475                                         <ScrollFrame name="$parentScrollFrame" parentKey="scrollFrame" inherits="HybridScrollFrameTemplate">
  1476                                                 <Size x="578" y="371"/>
  1477                                                 <Anchors>
  1478                                                         <Anchor point="BOTTOMLEFT" x="1" y="1"/>
  1479                                                 </Anchors>
  1480                                                 <Frames>
  1481                                                         <Slider name="$parentScrollBar" parentKey="scrollBar" inherits="HybridScrollBarTrimTemplate">
  1482                                                                 <Anchors>
  1483                                                                         <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="0" y="-16"/>
  1484                                                                         <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="0" y="14"/>
  1485                                                                 </Anchors>
  1486                                                                 <Scripts>
  1487                                                                         <OnLoad>
  1488                                                                                 self.trackBG:Show();
  1489                                                                                 self.trackBG:SetVertexColor(0, 0, 0, 1);
  1490                                                                         </OnLoad>
  1491                                                                 </Scripts>
  1492                                                         </Slider>
  1493                                                 </Frames>
  1494                                         </ScrollFrame>
  1495                                 </Frames>
  1496                                 <Scripts>
  1497                                         <OnShow>
  1498                                                 --always on top
  1499                                                 self:SetFrameLevel(self:GetParent():GetFrameLevel()+10);
  1500                                                 PlaySound("igSpellBookOpen");
  1501                                         </OnShow>
  1502                                         <OnHide>
  1503                                                 PlaySound("igSpellBookClose");
  1504                                         </OnHide>
  1505                                 </Scripts>
  1506                         </Frame>
  1507                         <Frame name="$parentNavBar" inherits="NavBarTemplate" parentKey="navBar">
  1508                                 <Size x="500" y="34"/>
  1509                                 <Anchors>
  1510                                         <Anchor point="TOPLEFT" x="61" y="-22"/>
  1511                                 </Anchors>
  1512                                 <Layers>
  1513                                         <Layer level="BORDER" textureSubLevel="-5">
  1514                                                 <Texture name="$parentInsetBotLeftCorner" inherits="UI-Frame-InnerBotLeftCorner" parentKey="InsetBorderBottomLeft">
  1515                                                         <Anchors>
  1516                                                                 <Anchor point="BOTTOMLEFT"  x="-3" y="-3"/>
  1517                                                         </Anchors>
  1518                                                 </Texture>
  1519                                                 <Texture name="$parentInsetBotRightCorner" inherits="UI-Frame-InnerBotRight" parentKey="InsetBorderBottomRight">
  1520                                                         <Anchors>
  1521                                                                 <Anchor point="BOTTOMRIGHT"  x="3" y="-3"/>
  1522                                                         </Anchors>
  1523                                                 </Texture>
  1524                                                 <Texture name="$parentInsetBottomBorder" inherits="_UI-Frame-InnerBotTile" parentKey="InsetBorderBottom">
  1525                                                         <Anchors>
  1526                                                                 <Anchor point="BOTTOMLEFT" relativeTo="$parentInsetBotLeftCorner" relativePoint="BOTTOMRIGHT"/>
  1527                                                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parentInsetBotRightCorner" relativePoint="BOTTOMLEFT"/>
  1528                                                         </Anchors>
  1529                                                 </Texture>
  1530                                                 <Texture name="$parentInsetLeftBorder" inherits="!UI-Frame-InnerLeftTile" parentKey="InsetBorderLeft">
  1531                                                         <Anchors>
  1532                                                                 <Anchor point="TOPLEFT" x="-3" y="0"/>
  1533                                                                 <Anchor point="BOTTOMLEFT" relativeTo="$parentInsetBotLeftCorner" relativePoint="TOPLEFT"/>
  1534                                                         </Anchors>
  1535                                                 </Texture>
  1536                                                 <Texture name="$parentInsetRightBorder" inherits="!UI-Frame-InnerRightTile" parentKey="InsetBorderRight">
  1537                                                         <Anchors>
  1538                                                                 <Anchor point="TOPRIGHT"  x="3" y="0"/>
  1539                                                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parentInsetBotRightCorner" relativePoint="TOPRIGHT"/>
  1540                                                         </Anchors>
  1541                                                 </Texture>     
  1542                                         </Layer>
  1543                                 </Layers>
  1544                                 <Scripts>
  1545                                         <OnShow>
  1546                                         </OnShow>
  1547                                 </Scripts>
  1548                         </Frame>
  1549                         <Frame name="$parentInset" useParentLevel="true" inherits="InsetFrameTemplate" parentKey="inset">
  1550                                 <Anchors>
  1551                                         <Anchor point="TOPRIGHT" x="-4" y="-60" />
  1552                                         <Anchor point="BOTTOMLEFT" x="4" y="5"/>
  1553                                 </Anchors>
  1554                         </Frame>
  1555                         <Frame name="$parentInstanceSelect" parentKey="instanceSelect" useParentLevel="true">
  1556                                 <Anchors>
  1557                                         <Anchor point="TOPLEFT" relativeTo="$parentInset" x="0" y="-2" />
  1558                                         <Anchor point="BOTTOMRIGHT" relativeTo="$parentInset" x="-3" y="0"/>
  1559                                 </Anchors>
  1560                                 <Layers>
  1561                                         <Layer level="BACKGROUND">
  1562                                                 <Texture name="$parentBG" file="Interface\EncounterJournal\UI-EJ-Cataclysm" parentKey="bg">
  1563                                                         <Anchors>
  1564                                                                 <Anchor point="TOPLEFT" x="0" y="0"/>
  1565                                                                 <Anchor point="BOTTOMRIGHT" x="0" y="0"/>
  1566                                                         </Anchors>
  1567                                                         <TexCoords left="0" right="0.763671875" top="0" bottom="0.82421875"/>
  1568                                                 </Texture>
  1569                                         </Layer>
  1570                                         <Layer level="OVERLAY">
  1571                                                 <FontString name="$parentTier" inherits="QuestFont_Super_Huge" text="EXPANSION_NAME3" justifyH="LEFT" parentKey="tier">
  1572                                                         <Size x="300" y="0"/>
  1573                                                         <Anchors>
  1574                                                                 <Anchor point="TOPLEFT" x="10" y="-15"/>
  1575                                                         </Anchors>
  1576                                                         <Color r="0.961" g="0.824" b="0.412"/>
  1577                                                 </FontString>
  1578                                         </Layer>
  1579                                 </Layers>
  1580                                 <Frames>
  1581                                         <Button name="$parentRaidTab" inherits="EncounterTierTabTemplate" text="RAIDS" parentKey="raidsTab">
  1582                                                 <Anchors>
  1583                                                         <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" x="-35" y="-45"/>
  1584                                                 </Anchors>
  1585                                                 <Scripts>
  1586                                                         <OnClick>
  1587                                                                 self:Disable();
  1588                                                                 self:GetFontString():SetTextColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b);
  1589                                                                 self.selectedGlow:Show();
  1590                                                                 local dungeonsTab = self:GetParent().dungeonsTab;
  1591                                                                 dungeonsTab:Enable();
  1592                                                                 dungeonsTab:GetFontString():SetTextColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b);
  1593                                                                 dungeonsTab.selectedGlow:Hide();
  1594                                                                 EncounterJournal_ListInstances();
  1595                                                                 PlaySound("igMainMenuOptionCheckBoxOn");
  1596                                                         </OnClick>
  1597                                                 </Scripts>
  1598                                         </Button>
  1599                                         <Button name="$parentDungeonTab" inherits="EncounterTierTabTemplate" text="DUNGEONS" parentKey="dungeonsTab">
  1600                                                 <Anchors>
  1601                                                         <Anchor point="BOTTOMRIGHT" relativeTo="$parentRaidTab" relativePoint="BOTTOMLEFT" x="-35" y="0"/>
  1602                                                 </Anchors>
  1603                                                 <Scripts>
  1604                                                         <OnClick>
  1605                                                                 self:Disable();
  1606                                                                 self:GetFontString():SetTextColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b);
  1607                                                                 self.selectedGlow:Show();
  1608                                                                 local raidsTab = self:GetParent().raidsTab;
  1609                                                                 raidsTab:Enable();
  1610                                                                 raidsTab:GetFontString():SetTextColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b);
  1611                                                                 raidsTab.selectedGlow:Hide();
  1612                                                                 EncounterJournal_ListInstances();
  1613                                                                 PlaySound("igMainMenuOptionCheckBoxOn");
  1614                                                         </OnClick>
  1615                                                 </Scripts>
  1616                                         </Button>
  1617                                         <Frame name="$parentTierDropDown" inherits="UIDropDownMenuTemplate" enableMouse="true" parentKey="tierDropDown" hidden="true">
  1618                                                 <Anchors>
  1619                                                         <Anchor point="TOPLEFT" x="-2" y="-6"/>
  1620                                                 </Anchors>
  1621                                         </Frame>
  1622                                         <ScrollFrame name="$parentScrollFrame" parentKey="scroll" inherits="UIPanelScrollFrameCodeTemplate">
  1623                                                 <Size x="785" y="377"/>
  1624                                                 <Anchors>
  1625                                                         <Anchor point="TOPLEFT" x="5" y="-49"/>
  1626                                                 </Anchors>
  1627                                                 <Frames>
  1628                                                         <Slider name="$parentScrollBar" inherits="MinimalScrollBarTemplate" parentKey="ScrollBar">
  1629                                                                 <Anchors>
  1630                                                                         <Anchor point="TOPRIGHT" x="0" y="-17"/>
  1631                                                                         <Anchor point="BOTTOMRIGHT" x="0" y="17"/>
  1632                                                                 </Anchors>
  1633                                                                 <Scripts>
  1634                                                                         <OnLoad>
  1635                                                                                 self.trackBG:SetVertexColor(0.2, 0.13, 0.08, 0.25);
  1636                                                                         </OnLoad>
  1637                                                                 </Scripts>
  1638                                                         </Slider>
  1639                                                 </Frames>
  1640                                                 <ScrollChild>
  1641                                                         <Frame name="$parentScrollChild" parentKey="child">
  1642                                                                 <Size x="785" y="375"/>
  1643                                                                 <Anchors>
  1644                                                                         <Anchor point="TOPLEFT" x="0" y="0"/>
  1645                                                                 </Anchors>
  1646                                                                 <Frames>
  1647                                                                         <Button name="$parentInstanceButton1" inherits="EncounterInstanceButtonTemplate" parentKey="instance1">
  1648                                                                                 <Anchors>
  1649                                                                                         <Anchor point="TOPLEFT" x="12" y="-10"/>
  1650                                                                                 </Anchors>
  1651                                                                         </Button>
  1652                                                                 </Frames>
  1653                                                         </Frame>
  1654                                                 </ScrollChild>
  1655                                         </ScrollFrame>
  1656                                 </Frames>
  1657                         </Frame>
  1658                         <Frame name="$parentEncounterFrame" parentKey="encounter" hidden="true" useParentLevel="true">
  1659                                 <Anchors>
  1660                                         <Anchor point="TOPLEFT" relativeTo="$parentInset" x="0" y="0" />
  1661                                         <Anchor point="BOTTOMRIGHT" relativeTo="$parentInset" x="-3" y="0"/>
  1662                                 </Anchors>
  1663                                 <Frames>
  1664                                         <Frame name="$parentInstanceFrame" parentKey="instance">
  1665                                                 <Size x="390" y="425"/>
  1666                                                 <Anchors>
  1667                                                         <Anchor point="TOPLEFT" x="0" y="0"/>
  1668                                                 </Anchors>
  1669                                                 <Layers>
  1670                                                         <Layer level="BACKGROUND">
  1671                                                                 <Texture name="$parentBG" file="Interface\EncounterJournal\UI-EJ-LOREBG-Default" parentKey="loreBG">
  1672                                                                         <Size x="390" y="336"/>
  1673                                                                         <Anchors>
  1674                                                                                 <Anchor point="TOP" x="3" y="-4"/>
  1675                                                                         </Anchors>
  1676                                                                         <TexCoords left="0" right="0.7617187" top="0" bottom="0.65625"/>
  1677                                                                 </Texture>
  1678                                                         </Layer>
  1679                                                         <Layer level="OVERLAY">
  1680                                                                 <FontString name="$parentTitle" inherits="QuestFont_Super_Huge" justifyH="CENTER" justifyV="BOTTOM" parentKey="title">
  1681                                                                         <Size x="0" y="10"/>
  1682                                                                         <Anchors>
  1683                                                                                 <Anchor point="TOP" x="0" y="-67"/>
  1684                                                                         </Anchors>
  1685                                                                 </FontString>
  1686                                                         </Layer>
  1687                                                         <Layer level="ARTWORK">
  1688                                                                 <Texture name="$parentTitleBG" inherits="UI-EJ-DungeonNameBg">
  1689                                                                         <Anchors>
  1690                                                                                 <Anchor point="TOP" relativeTo="$parentBG" x="0" y="-38"/>
  1691                                                                                 <Anchor point="LEFT" relativeTo="$parentTitle" relativePoint="LEFT" x="-40" y="0"/>
  1692                                                                                 <Anchor point="RIGHT" relativeTo="$parentTitle" relativePoint="RIGHT" x="40" y="0"/>
  1693                                                                         </Anchors>
  1694                                                                 </Texture>
  1695                                                         </Layer>
  1696                                                 </Layers>
  1697                                                 <Frames>
  1698                                                         <Button name="$parentMapButton" parentKey="mapButton">
  1699                                                                 <Size x="48" y="32"/>
  1700                                                                 <Anchors>
  1701                                                                         <Anchor point="BOTTOMLEFT" x="33" y="126"/>
  1702                                                                 </Anchors>
  1703                                                                 <Layers>
  1704                                                                         <Layer level="BACKGROUND">
  1705                                                                                 <Texture name="$parentShadow" inherits="UI-EJ-ShowMapBG">
  1706                                                                                         <Anchors>
  1707                                                                                                 <Anchor point="LEFT" x="-3" y="5"/>
  1708                                                                                         </Anchors>
  1709                                                                                 </Texture>
  1710                                                                         </Layer>
  1711                                                                         <Layer level="ARTWORK">
  1712                                                                                 <FontString name="$parentText" font="GameFontNormal" justifyH="LEFT" text="ENCOUNTER_JOURNAL_SHOW_MAP">
  1713                                                                                         <Size x="0" y="0"/>
  1714                                                                                         <Anchors>
  1715                                                                                                 <Anchor point="LEFT" relativePoint="RIGHT" x="2" y="0"/>
  1716                                                                                         </Anchors>
  1717                                                                                 </FontString>
  1718                                                                                 <Texture name="$parentTexture" file="Interface\QuestFrame\UI-QuestMap_Button" parentKey="texture">
  1719                                                                                         <Size x="48" y="32"/>
  1720                                                                                         <Anchors>
  1721                                                                                                 <Anchor point="RIGHT"/>
  1722                                                                                         </Anchors>
  1723                                                                                         <TexCoords left="0.125" right="0.875" top="0.0" bottom="0.5"/>
  1724                                                                                 </Texture>
  1725                                                                         </Layer>
  1726                                                                         <Layer level="HIGHLIGHT">
  1727                                                                                 <Texture name="$parentHighlight" file="Interface\BUTTONS\ButtonHilight-Square" alphaMode="ADD">
  1728                                                                                         <Size x="36" y="25"/>
  1729                                                                                         <Anchors>
  1730                                                                                                 <Anchor point="RIGHT" x="-7" y="0"/>
  1731                                                                                         </Anchors>
  1732                                                                                 </Texture>
  1733                                                                         </Layer>
  1734                                                                 </Layers>
  1735                                                                 <Scripts>
  1736                                                                         <OnClick>
  1737                                                                                 local _, _, _, _, _, dungeonAreaMapID = EJ_GetInstanceInfo();
  1738                                                                                 if dungeonAreaMapID and dungeonAreaMapID > 0 then
  1739                                                                                         ShowUIPanel(WorldMapFrame);
  1740                                                                                         SetMapByID(dungeonAreaMapID);
  1741                                                                                 end
  1742                                                                         </OnClick>
  1743                                                                         <OnMouseDown>
  1744                                                                                 self.texture:SetTexCoord(0.125, 0.875, 0.5, 1.0);
  1745                                                                         </OnMouseDown>
  1746                                                                         <OnMouseUp>
  1747                                                                                 self.texture:SetTexCoord(0.125, 0.875, 0.0, 0.5);
  1748                                                                         </OnMouseUp>
  1749                                                                 </Scripts>
  1750                                                         </Button>
  1751                                                         <ScrollFrame name="$parentLoreScrollFrame" parentKey="loreScroll" inherits="UIPanelScrollFrameCodeTemplate">
  1752                                                                 <Size x="315" y="102"/>
  1753                                                                 <Anchors>
  1754                                                                         <Anchor point="BOTTOM" x="0" y="5"/>
  1755                                                                 </Anchors>
  1756                                                                 <Frames>
  1757                                                                         <Slider name="$parentScrollBar" inherits="MinimalScrollBarTemplate" parentKey="ScrollBar">
  1758                                                                                 <Anchors>
  1759                                                                                         <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="0" y="-17"/>
  1760                                                                                         <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="0" y="17"/>
  1761                                                                                 </Anchors>
  1762                                                                                 <Scripts>
  1763                                                                                         <OnLoad>
  1764                                                                                                 self.trackBG:SetVertexColor(0.2, 0.13, 0.08, 0.25);
  1765                                                                                         </OnLoad>
  1766                                                                                 </Scripts>
  1767                                                                         </Slider>
  1768                                                                 </Frames>
  1769                                                                 <ScrollChild>
  1770                                                                         <Frame name="$parentScrollChild" parentKey="child">
  1771                                                                                 <Size x="315" y="102"/>
  1772                                                                                 <Anchors>
  1773                                                                                         <Anchor point="TOPLEFT" x="0" y="0"/>
  1774                                                                                 </Anchors>
  1775                                                                                 <Layers>
  1776                                                                                         <Layer level="ARTWORK">
  1777                                                                                                 <FontString name="$parentLore" inherits="GameFontBlack" justifyH="LEFT" parentKey="lore">
  1778                                                                                                         <Size x="300" y="0"/>
  1779                                                                                                         <Anchors>
  1780                                                                                                                 <Anchor point="TOPLEFT" x="5" y="-5"/>
  1781                                                                                                         </Anchors>
  1782                                                                                                         <Color r="0.13" g="0.07" b=".01" a="1"/>
  1783                                                                                                 </FontString>
  1784                                                                                         </Layer>
  1785                                                                                 </Layers>
  1786                                                                         </Frame>
  1787                                                                 </ScrollChild>
  1788                                                         </ScrollFrame>
  1789                                                 </Frames>
  1790                                         </Frame>
  1791                                         <PlayerModel name="$parentModelFrame" parentKey="model" inherits="ModelTemplate">
  1792                                                 <Size x="390" y="425"/>
  1793                                                 <Anchors>
  1794                                                         <Anchor point="TOPLEFT" x="3" y="-4"/>
  1795                                                 </Anchors>
  1796                                                 <Layers>
  1797                                                         <Layer level="OVERLAY">
  1798                                                                 <Texture name="$parentShadow" file="Interface\EncounterJournal\UI-EJ-BossModelPaperFrame">
  1799                                                                         <Size x="393" y="424"/>
  1800                                                                         <Anchors>
  1801                                                                                 <Anchor point="TOPLEFT" x="0" y="0"/>
  1802                                                                         </Anchors>
  1803                                                                         <TexCoords left="0" right="0.767578125" top="0" bottom="0.828125"/>
  1804                                                                 </Texture>
  1805                                                         </Layer>
  1806                                                         <Layer level="OVERLAY" textureSubLevel="1">
  1807                                                                 <Texture name="$parentTitleBG" inherits="UI-EJ-BossNameShadow">
  1808                                                                         <Anchors>
  1809                                                                                 <Anchor point="BOTTOM" x="0" y="0"/>
  1810                                                                         </Anchors>
  1811                                                                 </Texture>
  1812                                                         </Layer>
  1813                                                         <Layer level="OVERLAY" textureSubLevel="2">
  1814                                                                 <FontString name="$parentImageTile" inherits="QuestTitleFontBlackShadow" justifyH="CENTER" parentKey="imageTitle">
  1815                                                                         <Size x="380" y="10"/>
  1816                                                                         <Anchors>
  1817                                                                                 <Anchor point="BOTTOM" x="0" y="8"/>
  1818                                                                         </Anchors>
  1819                                                                 </FontString>
  1820                                                         </Layer>
  1821                                                 </Layers>
  1822                                                 <Scripts>
  1823                                                         <OnLoad>
  1824                                                                 Model_OnLoad(self);
  1825                                                                 self:SetCamDistanceScale(1.0);
  1826                                                                 self:GetParent().imageTitle = self.imageTitle;
  1827                                                         </OnLoad>
  1828                                                 </Scripts>
  1829                                         </PlayerModel>
  1830                                         <Button name="$parentCreatureButton1" inherits="EncounterCreatureButtonTemplate" parentKey="creatureButton1">
  1831                                                 <Anchors>
  1832                                                         <Anchor point="TOPLEFT" x="3" y="-35"/>
  1833                                                 </Anchors>
  1834                                         </Button>
  1835                                         <Button name="$parentCreatureButton2" inherits="EncounterCreatureButtonTemplate" parentKey="creatureButton2">
  1836                                                 <Anchors>
  1837                                                         <Anchor point="TOPLEFT" relativeTo="$parentCreatureButton1" relativePoint="BOTTOMLEFT" x="0" y="0"/>
  1838                                                 </Anchors>
  1839                                         </Button>
  1840                                         <Button name="$parentCreatureButton3" inherits="EncounterCreatureButtonTemplate" parentKey="creatureButton3">
  1841                                                 <Anchors>
  1842                                                         <Anchor point="TOPLEFT" relativeTo="$parentCreatureButton2" relativePoint="BOTTOMLEFT" x="0" y="0"/>
  1843                                                 </Anchors>
  1844                                         </Button>
  1845                                         <Button name="$parentCreatureButton4" inherits="EncounterCreatureButtonTemplate" parentKey="creatureButton4">
  1846                                                 <Anchors>
  1847                                                         <Anchor point="TOPLEFT" relativeTo="$parentCreatureButton3" relativePoint="BOTTOMLEFT" x="0" y="0"/>
  1848                                                 </Anchors>
  1849                                         </Button>
  1850                                         <Button name="$parentCreatureButton5" inherits="EncounterCreatureButtonTemplate" parentKey="creatureButton5">
  1851                                                 <Anchors>
  1852                                                         <Anchor point="TOPLEFT" relativeTo="$parentCreatureButton4" relativePoint="BOTTOMLEFT" x="0" y="0"/>
  1853                                                 </Anchors>
  1854                                         </Button>
  1855                                         <Button name="$parentCreatureButton6" inherits="EncounterCreatureButtonTemplate" parentKey="creatureButton6">
  1856                                                 <Anchors>
  1857                                                         <Anchor point="TOPLEFT" relativeTo="$parentCreatureButton5" relativePoint="BOTTOMLEFT" x="0" y="0"/>
  1858                                                 </Anchors>
  1859                                         </Button>
  1860                                         <Frame name="$parentInfo" parentKey="info" useParentLevel="true">
  1861                                                 <Size x="785" y="425"/>
  1862                                                 <Anchors>
  1863                                                         <Anchor point="BOTTOMRIGHT" x="-1`" y="2"/>
  1864                                                 </Anchors>
  1865                                                 <Layers>
  1866                                                         <Layer level="BACKGROUND">
  1867                                                                         <Texture name="$parentBG" file="Interface\EncounterJournal\UI-EJ-JournalBG">
  1868                                                                         <Size x="785" y="425"/>
  1869                                                                         <Anchors>
  1870                                                                                 <Anchor point="BOTTOMRIGHT" x="0" y="0"/>
  1871                                                                         </Anchors>
  1872                                                                         <TexCoords left="0" right="0.766601562" top="0" bottom="0.830078125"/>
  1873                                                                 </Texture>
  1874                                                         </Layer>
  1875                                                         <Layer level="BACKGROUND" textureSubLevel="1">
  1876                                                                 <Texture name="$parentDungeonBG" file="Interface\EncounterJournal\UI-EJ-BACKGROUND-Default" parentKey="dungeonBG">
  1877                                                                         <Size x="394" y="425"/>
  1878                                                                         <Anchors>
  1879                                                                                 <Anchor point="BOTTOMLEFT" x="0" y="0"/>
  1880                                                                         </Anchors>
  1881                                                                         <TexCoords left="0" right="0.76953125" top="0" bottom="0.830078125"/>
  1882                                                                 </Texture>
  1883                                                         </Layer>
  1884                                                         <Layer level="OVERLAY">
  1885                                                                 <FontString name="$parentEncounterTitle" inherits="GameFontNormalLarge" justifyH="LEFT" parentKey="encounterTitle">
  1886                                                                         <Size x="0" y="12"/>
  1887                                                                         <Anchors>
  1888                                                                                 <Anchor point="BOTTOMLEFT" relativePoint="TOPRIGHT" x="-350" y="-36"/>
  1889                                                                         </Anchors>
  1890                                                                         <Color r="0.902" g="0.788" b="0.671"/>
  1891                                                                 </FontString>
  1892                                                         </Layer>
  1893                                                 </Layers>
  1894                                                 <Frames>
  1895                                                         <Button name="$parentResetButton" >
  1896                                                                 <Size x="26" y="26"/>
  1897                                                                 <Anchors>
  1898                                                                         <Anchor point="TOPLEFT" relativeTo="$parentEncounterTitle" relativePoint="TOPRIGHT" x="-5" y="11"/>
  1899                                                                 </Anchors>
  1900                                                                 <Layers>
  1901                                                                         <Layer level="OVERLAY">
  1902                                                                                 <Texture name="$parentTexture" inherits="UI-EJ-ReturnToDefault">
  1903                                                                                         <Anchors>
  1904                                                                                                 <Anchor point="CENTER"/>
  1905                                                                                         </Anchors>
  1906                                                                                 </Texture>
  1907                                                                         </Layer>
  1908                                                                 </Layers>
  1909                                                                 <NormalTexture inherits="UI-EJ-FilterButtonUp"/>
  1910                                                                 <PushedTexture inherits="UI-EJ-FilterButtonDown"/>
  1911                                                                 <HighlightTexture inherits="UI-EJ-FilterButtonHighlight" alphaMode="ADD"/>
  1912                                                                 <Scripts>
  1913                                                                         <OnMouseDown>
  1914                                                                                 _G[self:GetName().."Texture"]:SetPoint("CENTER", 1, -1);
  1915                                                                         </OnMouseDown>
  1916                                                                         <OnMouseUp>
  1917                                                                                 _G[self:GetName().."Texture"]:SetPoint("CENTER", 0, 0);
  1918                                                                         </OnMouseUp>
  1919                                                                         <OnClick function="EncounterJournal_ResetHeaders"/>
  1920                                                                         <OnEnter>
  1921                                                                                 GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
  1922                                                                                 GameTooltip:SetText(RETURN_TO_DEFAULT);
  1923                                                                         </OnEnter>
  1924                                                                         <OnLeave>
  1925                                                                                 GameTooltip:Hide();
  1926                                                                         </OnLeave>
  1927                                                                 </Scripts>
  1928                                                         </Button>
  1929                                                         <Button name="$parentBossTab" inherits="EncounterTabTemplate" useParentLevel="true" parentKey="bossTab" id="1">
  1930                                                                 <Anchors>
  1931                                                                         <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="-12" y="-35"/>
  1932                                                                 </Anchors>
  1933                                                                 <Layers>
  1934                                                                         <Layer level="OVERLAY">
  1935                                                                                 <Texture name="$parentUnselect" inherits="UI-EJ-Tab-BossIcon-UnSelected" parentKey="unselected">
  1936                                                                                         <Anchors>
  1937                                                                                                 <Anchor point="RIGHT" x="-6" y="0"/>
  1938                                                                                         </Anchors>
  1939                                                                                 </Texture>
  1940                                                                                 <Texture name="$parentSelect" inherits="UI-EJ-Tab-BossIcon-Selected" parentKey="selected">
  1941                                                                                         <Anchors>
  1942                                                                                                 <Anchor point="CENTER" relativeTo="$parentUnselect" x="0" y="0"/>
  1943                                                                                         </Anchors>
  1944                                                                                 </Texture>
  1945                                                                         </Layer>
  1946                                                                 </Layers>
  1947                                                         </Button>
  1948                                                         <Button name="$parentLootTab" inherits="EncounterTabTemplate" useParentLevel="true" parentKey="lootTab" id="2">
  1949                                                                 <Anchors>
  1950                                                                         <Anchor point="TOP" relativeTo="$parentBossTab" relativePoint="BOTTOM" x="0" y="2"/>
  1951                                                                 </Anchors>
  1952                                                                 <Layers>
  1953                                                                         <Layer level="OVERLAY">
  1954                                                                                 <Texture name="$parentUnselect" inherits="UI-EJ-Tab-LootIcon-UnSelected" parentKey="unselected">
  1955                                                                                         <Anchors>
  1956                                                                                                 <Anchor point="RIGHT" x="-6" y="0"/>
  1957                                                                                         </Anchors>
  1958                                                                                 </Texture>
  1959                                                                                 <Texture name="$parentSelect" inherits="UI-EJ-Tab-LootIcon-Selected" parentKey="selected">
  1960                                                                                         <Anchors>
  1961                                                                                                 <Anchor point="CENTER" relativeTo="$parentUnselect" x="0" y="0"/>
  1962                                                                                         </Anchors>
  1963                                                                                 </Texture>
  1964                                                                         </Layer>
  1965                                                                 </Layers>
  1966                                                         </Button>
  1967                                                         <Button name="$parentHeroicButton" inherits="EncounterDifficultyTemplate" parentKey="heroButton">
  1968                                                                 <Anchors>
  1969                                                                         <Anchor point="TOPRIGHT" x="-8" y="-13"/>
  1970                                                                 </Anchors>
  1971                                                                 <Layers>
  1972                                                                         <Layer level="OVERLAY">
  1973                                                                                 <Texture name="$parentSkull" file="Interface\EncounterJournal\UI-EJ-HeroicTextIcon" parentKey="skull">
  1974                                                                                         <Size x="14" y="14"/>
  1975                                                                                         <Anchors>
  1976                                                                                                 <Anchor point="CENTER" x="0" y="0"/>
  1977                                                                                         </Anchors>
  1978                                                                                 </Texture>
  1979                                                                         </Layer>
  1980                                                                 </Layers>
  1981                                                                 <Scripts>
  1982                                                                         <OnClick>
  1983                                                                                 EncounterJournal.isHeroic = not EncounterJournal.isHeroic;
  1984                                                                                 if EncounterJournal.isHeroic then
  1985                                                                                         self.selected:Show();
  1986                                                                                 else
  1987                                                                                         self.selected:Hide();
  1988                                                                                 end
  1989                                                                                 EncounterJournal_Refresh();
  1990                                                                                 PlaySound("igMainMenuOptionCheckBoxOn");
  1991                                                                         </OnClick>
  1992                                                                 </Scripts>
  1993                                                         </Button>
  1994                                                         <Button name="$parent25ManButton" inherits="EncounterDifficultyTemplate" text="25" parentKey="diff25man">
  1995                                                                 <Anchors>
  1996                                                                         <Anchor point="RIGHT" relativeTo="$parentHeroicButton" relativePoint="LEFT" x="-1" y="0"/>
  1997                                                                 </Anchors>
  1998                                                                 <Scripts>
  1999                                                                         <OnClick>
  2000                                                                                 EncounterJournal.is10Man = false;
  2001                                                                                 self.selected:Show();
  2002                                                                                 self:GetParent().diff10man.selected:Hide();
  2003                                                                                 EncounterJournal_Refresh();
  2004                                                                                 PlaySound("igMainMenuOptionCheckBoxOn");
  2005                                                                         </OnClick>
  2006                                                                 </Scripts>
  2007                                                                 <ButtonText>
  2008                                                                         <Anchors>
  2009                                                                                 <Anchor point="CENTER" x="1" y="-1"/>
  2010                                                                         </Anchors>
  2011                                                                 </ButtonText>
  2012                                                         </Button>
  2013                                                         <Button name="$parent10ManButton" inherits="EncounterDifficultyTemplate" text="10" parentKey="diff10man">
  2014                                                                 <Anchors>
  2015                                                                         <Anchor point="RIGHT" relativeTo="$parent25ManButton" relativePoint="LEFT" x="-1" y="0"/>
  2016                                                                 </Anchors>
  2017                                                                 <Scripts>
  2018                                                                         <OnLoad>
  2019                                                                                 self.selected:Show();
  2020                                                                         </OnLoad>
  2021                                                                         <OnClick>
  2022                                                                                 EncounterJournal.is10Man = true;
  2023                                                                                 self.selected:Show();
  2024                                                                                 self:GetParent().diff25man.selected:Hide();
  2025                                                                                 EncounterJournal_Refresh();
  2026                                                                                 PlaySound("igMainMenuOptionCheckBoxOn");
  2027                                                                         </OnClick>
  2028                                                                 </Scripts>
  2029                                                         </Button>
  2030                                                         <ScrollFrame name="$parentDetailsScrollFrame" parentKey="detailsScroll" inherits="UIPanelScrollFrameCodeTemplate">
  2031                                                                 <Size x="350" y="383"/>
  2032                                                                 <Anchors>
  2033                                                                         <Anchor point="BOTTOMRIGHT" x="-5" y="1"/>
  2034                                                                 </Anchors>
  2035                                                                 <Frames>
  2036                                                                         <Slider name="$parentScrollBar" inherits="MinimalScrollBarTemplate" parentKey="ScrollBar">
  2037                                                                                 <Anchors>
  2038                                                                                         <Anchor point="TOPRIGHT" x="0" y="-17"/>
  2039                                                                                         <Anchor point="BOTTOMRIGHT" x="0" y="17"/>
  2040                                                                                 </Anchors>
  2041                                                                                 <Scripts>
  2042                                                                                         <OnLoad>
  2043                                                                                                 self.trackBG:SetVertexColor(0.2, 0.13, 0.08, 0.25);
  2044                                                                                         </OnLoad>
  2045                                                                                 </Scripts>
  2046                                                                         </Slider>
  2047                                                                 </Frames>
  2048                                                                 <ScrollChild>
  2049                                                                         <Frame name="$parentScrollChild" parentKey="child">
  2050                                                                                 <Size x="320" y="372"/>
  2051                                                                                 <Anchors>
  2052                                                                                         <Anchor point="TOPLEFT" x="0" y="0"/>
  2053                                                                                 </Anchors>
  2054                                                                                 <Layers>
  2055                                                                                         <Layer level="ARTWORK">
  2056                                                                                                 <FontString name="$parentDescription" inherits="GameFontBlack" justifyH="LEFT" parentKey="description">
  2057                                                                                                         <Size x="0" y="0"/>
  2058                                                                                                         <Anchors>
  2059                                                                                                                 <Anchor point="TOPLEFT" x="2" y="-8"/>
  2060                                                                                                         </Anchors>
  2061                                                                                                         <Color r="0.25" g="0.1484375" b=".02" a="1"/>
  2062                                                                                                 </FontString>
  2063                                                                                         </Layer>
  2064                                                                                 </Layers>
  2065                                                                         </Frame>
  2066                                                                 </ScrollChild>
  2067                                                         </ScrollFrame>
  2068                                                         <ScrollFrame name="$parentLootScrollFrame" parentKey="lootScroll" inherits="HybridScrollFrameTemplate">
  2069                                                                 <Size x="345" y="383"/>
  2070                                                                 <Anchors>
  2071                                                                         <Anchor point="BOTTOMRIGHT" x="-5" y="1"/>
  2072                                                                 </Anchors>
  2073                                                                 <Frames>
  2074                                                                         <Frame name="$parentClassFilterClearFrame" parentKey="classClearFilter" hidden="true" enableMouse="true">
  2075                                                                                 <Size x="355" y="28"/> 
  2076                                                                                 <Anchors>
  2077                                                                                         <Anchor point="BOTTOM" relativePoint="TOP" x="-10" y="-5"/>
  2078                                                                                 </Anchors>
  2079                                                                                 <Layers>
  2080                                                                                         <Layer level="BACKGROUND">
  2081                                                                                                 <Texture inherits="UI-EJ-FilterBar">
  2082                                                                                                         <Size x="380" y="28"/> 
  2083                                                                                                         <Anchors>
  2084                                                                                                                 <Anchor point="CENTER" x="-5" y="0"/>
  2085                                                                                                         </Anchors>
  2086                                                                                                 </Texture>
  2087                                                                                         </Layer>
  2088                                                                                         <Layer level="OVERLAY">
  2089                                                                                                 <FontString inherits="GameFontNormalSmall" parentKey="text">
  2090                                                                                                         <Size x="0" y="0"/>
  2091                                                                                                         <Anchors>
  2092                                                                                                                 <Anchor point="LEFT" x="25" y="2"/>
  2093                                                                                                         </Anchors>
  2094                                                                                                         <Color r="0.973" g="0.902" b="0.581"/>
  2095                                                                                                 </FontString>
  2096                                                                                         </Layer>
  2097                                                                                 </Layers>
  2098                                                                                 <Frames>
  2099                                                                                         <Button name="$parentExitButton">
  2100                                                                                                 <Size x="20" y="20"/>
  2101                                                                                                 <Anchors>
  2102                                                                                                         <Anchor point="RIGHT" x="-20" y="2"/>
  2103                                                                                                 </Anchors>
  2104                                                                                                 <Layers>
  2105                                                                                                         <Layer level="ARTWORK">
  2106                                                                                                                 <Texture file="Interface\FriendsFrame\ClearBroadcastIcon" alpha="0.8" parentKey="texture">
  2107                                                                                                                         <Size x="17" y="17"/>
  2108                                                                                                                         <Anchors>
  2109                                                                                                                                 <Anchor point="TOPLEFT" x="0" y="0"/>
  2110                                                                                                                         </Anchors>
  2111                                                                                                                 </Texture>
  2112                                                                                                         </Layer>
  2113                                                                                                 </Layers>
  2114                                                                                                 <Scripts>
  2115                                                                                                         <OnEnter>
  2116                                                                                                                 self.texture:SetAlpha(1.0);
  2117                                                                                                         </OnEnter>
  2118                                                                                                         <OnLeave>
  2119                                                                                                                 self.texture:SetAlpha(0.8);
  2120                                                                                                         </OnLeave>
  2121                                                                                                         <OnMouseDown>
  2122                                                                                                                 self.texture:SetPoint("TOPLEFT", 1, -1);
  2123                                                                                                         </OnMouseDown>
  2124                                                                                                         <OnMouseUp>
  2125                                                                                                                 self.texture:SetPoint("TOPLEFT", 0, 0);
  2126                                                                                                         </OnMouseUp>
  2127                                                                                                         <OnClick>
  2128                                                                                                                 EncounterJournal_SetClassFilter();--Clear
  2129                                                                                                                 self:GetParent():Hide();
  2130                                                                                                         </OnClick>
  2131                                                                                                 </Scripts>
  2132                                                                                         </Button>
  2133                                                                                 </Frames>
  2134                                                                         </Frame>
  2135                                                                         <Frame name="$parentClassFilterFrame" parentKey="classFilter" hidden="true" enableMouse="true">
  2136                                                                                 <Anchors>
  2137                                                                                         <Anchor point="TOPLEFT" x="0" y="0"/>
  2138                                                                                         <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" x="-25" y="-170"/>
  2139                                                                                 </Anchors>
  2140                                                                                 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
  2141                                                                                         <EdgeSize>
  2142                                                                                                 <AbsValue val="16"/>
  2143                                                                                         </EdgeSize>
  2144                                                                                         <TileSize>
  2145                                                                                                 <AbsValue val="16"/>
  2146                                                                                         </TileSize>
  2147                                                                                         <BackgroundInsets>
  2148                                                                                                 <AbsInset left="5" right="5" top="5" bottom="5"/>
  2149                                                                                         </BackgroundInsets>
  2150                                                                                 </Backdrop>
  2151                                                                                 <Layers>
  2152                                                                                         <Layer level="OVERLAY">
  2153                                                                                                 <FontString inherits="GameFontNormalMed3" text="CLASS">
  2154                                                                                                         <Size x="0" y="0"/>
  2155                                                                                                         <Anchors>
  2156                                                                                                                 <Anchor point="TOP" x="0" y="-15"/>
  2157                                                                                                         </Anchors>
  2158                                                                                                 </FontString>
  2159                                                                                         </Layer>
  2160                                                                                 </Layers>
  2161                                                                                 <Frames>
  2162                                                                                         <CheckButton name="$parentClass1" inherits="EncounterClassFilterTemplate" parentKey="class1" id="1">
  2163                                                                                                 <Anchors>
  2164                                                                                                         <Anchor point="TOPLEFT" x="20" y="-40"/>
  2165                                                                                                 </Anchors>
  2166                                                                                         </CheckButton>
  2167                                                                                         <CheckButton name="$parentClass2" inherits="EncounterClassFilterTemplate" parentKey="class2" id="2">
  2168                                                                                                 <Anchors>
  2169                                                                                                         <Anchor point="LEFT" relativeTo="$parentClass1" relativePoint="RIGHT" x="8" y="0"/>
  2170                                                                                                 </Anchors>
  2171                                                                                         </CheckButton>
  2172                                                                                         <CheckButton name="$parentClass3" inherits="EncounterClassFilterTemplate" parentKey="class3" id="3">
  2173                                                                                                 <Anchors>
  2174                                                                                                         <Anchor point="LEFT" relativeTo="$parentClass2" relativePoint="RIGHT" x="8" y="0"/>
  2175                                                                                                 </Anchors>
  2176                                                                                         </CheckButton>
  2177                                                                                         <CheckButton name="$parentClass4" inherits="EncounterClassFilterTemplate" parentKey="class4" id="4">
  2178                                                                                                 <Anchors>
  2179                                                                                                         <Anchor point="LEFT" relativeTo="$parentClass3" relativePoint="RIGHT" x="8" y="0"/>
  2180                                                                                                 </Anchors>
  2181                                                                                         </CheckButton>
  2182                                                                                         <CheckButton name="$parentClass5" inherits="EncounterClassFilterTemplate" parentKey="class5" id="5">
  2183                                                                                                 <Anchors>
  2184                                                                                                         <Anchor point="LEFT" relativeTo="$parentClass4" relativePoint="RIGHT" x="8" y="0"/>
  2185                                                                                                 </Anchors>
  2186                                                                                         </CheckButton>
  2187                                                                                         <CheckButton name="$parentClass6" inherits="EncounterClassFilterTemplate" parentKey="class6" id="6">
  2188                                                                                                 <Anchors>
  2189                                                                                                         <Anchor point="TOP" relativeTo="$parentClass1" relativePoint="BOTTOM" x="0" y="-8"/>
  2190                                                                                                 </Anchors>
  2191                                                                                         </CheckButton>
  2192                                                                                         <CheckButton name="$parentClass7" inherits="EncounterClassFilterTemplate" parentKey="class7" id="7">
  2193                                                                                                 <Anchors>
  2194                                                                                                         <Anchor point="TOP" relativeTo="$parentClass2" relativePoint="BOTTOM" x="0" y="-8"/>
  2195                                                                                                 </Anchors>
  2196                                                                                         </CheckButton>
  2197                                                                                         <CheckButton name="$parentClass8" inherits="EncounterClassFilterTemplate" parentKey="class8" id="8">
  2198                                                                                                 <Anchors>
  2199                                                                                                         <Anchor point="TOP" relativeTo="$parentClass3" relativePoint="BOTTOM" x="0" y="-8"/>
  2200                                                                                                 </Anchors>
  2201                                                                                         </CheckButton>
  2202                                                                                         <CheckButton name="$parentClass9" inherits="EncounterClassFilterTemplate" parentKey="class9" id="9">
  2203                                                                                                 <Anchors>
  2204                                                                                                         <Anchor point="TOP" relativeTo="$parentClass4" relativePoint="BOTTOM" x="0" y="-8"/>
  2205                                                                                                 </Anchors>
  2206                                                                                         </CheckButton>
  2207                                                                                         <CheckButton name="$parentClass10" inherits="EncounterClassFilterTemplate" parentKey="class10" id="10">
  2208                                                                                                 <Anchors>
  2209                                                                                                         <Anchor point="TOP" relativeTo="$parentClass5" relativePoint="BOTTOM" x="0" y="-8"/>
  2210                                                                                                 </Anchors>
  2211                                                                                         </CheckButton>
  2212                                                                                 </Frames>
  2213                                                                                 <Scripts>
  2214                                                                                         <OnShow>
  2215                                                                                                 self:SetFrameLevel(self:GetParent():GetFrameLevel() + 10);
  2216                                                                                                 self:SetBackdropColor(0.0, 0.0, 0.0, 0.9);
  2217                                                                                         </OnShow>
  2218                                                                                         <OnLoad>
  2219                                                                                                 local classes = {EJ_GetAvailableClasses()};
  2220                                                                                                 local name, class;
  2221                                                                                                 for i=1,#classes,2 do
  2222                                                                                                         name = classes[i];
  2223                                                                                                         class = classes[i+1];
 
  2225                                                                                                         local coords = CLASS_ICON_TCOORDS[class];
  2226                                                                                                         local button = self["class"..floor((i+1)/2)];
  2227                                                                                                         button.name = name;
 
  2229                                                                                                         button:GetNormalTexture():SetTexCoord(coords[1], coords[2], coords[3], coords[4]);
  2230                                                                                                         button:GetPushedTexture():SetTexCoord(coords[1], coords[2], coords[3], coords[4]);
  2231                                                                                                 end
  2232                                                                                         </OnLoad>
  2233                                                                                 </Scripts>
  2234                                                                         </Frame>
  2235                                                                         <Button name="$parentFilter" parentKey="filter" text="GEAR_FILTER">
  2236                                                                                 <Size x="75" y="26"/>
  2237                                                                                 <HitRectInsets>
  2238                                                                                         <AbsInset left="-13" right="-13" top="0" bottom="0"/>
  2239                                                                                 </HitRectInsets>
  2240                                                                                 <Layers>
  2241                                                                                         <Layer level="BACKGROUND">
  2242                                                                                                 <Texture name="$parentUpLeft" inherits="UI-EJ-FilterButtonUp" parentKey="upLeft">
  2243                                                                                                         <Size x="13" y="26"/>
  2244                                                                                                         <Anchors>
  2245                                                                                                                 <Anchor point="RIGHT" relativePoint="LEFT" x="0" y="0"/>
  2246                                                                                                         </Anchors>
  2247                                                                                                 </Texture>
  2248                                                                                                 <Texture name="$parentUpRIGHT" inherits="UI-EJ-FilterButtonUp" parentKey="upRight">
  2249                                                                                                         <Size x="13" y="26"/>
  2250                                                                                                         <Anchors>
  2251                                                                                                                 <Anchor point="LEFT" relativePoint="RIGHT" x="0" y="0"/>
  2252                                                                                                         </Anchors>
  2253                                                                                                 </Texture>
 
  2255                                                                                                 <Texture name="$parentDownLeft" inherits="UI-EJ-FilterButtonDown" parentKey="downLeft" hidden="true">
  2256                                                                                                         <Size x="13" y="26"/>
  2257                                                                                                         <Anchors>
  2258                                                                                                                 <Anchor point="RIGHT" relativePoint="LEFT" x="0" y="0"/>
  2259                                                                                                         </Anchors>
  2260                                                                                                 </Texture>
  2261                                                                                                 <Texture name="$parentDownRIGHT" inherits="UI-EJ-FilterButtonDown" parentKey="downRight" hidden="true">
  2262                                                                                                         <Size x="13" y="26"/>
  2263                                                                                                         <Anchors>
  2264                                                                                                                 <Anchor point="LEFT" relativePoint="RIGHT" x="0" y="0"/>
  2265                                                                                                         </Anchors>
  2266                                                                                                 </Texture>
  2267                                                                                         </Layer>
  2268                                                                                         <Layer level="HIGHLIGHT">
  2269                                                                                                 <Texture name="$parentUpLeft" inherits="UI-EJ-FilterButtonHighlight" parentKey="highLeft">
  2270                                                                                                         <Size x="13" y="26"/>
  2271                                                                                                         <Anchors>
  2272                                                                                                                 <Anchor point="RIGHT" relativePoint="LEFT" x="0" y="0"/>
  2273                                                                                                         </Anchors>
  2274                                                                                                 </Texture>
  2275                                                                                                 <Texture name="$parentUpRIGHT" inherits="UI-EJ-FilterButtonHighlight" parentKey="highRight">
  2276                                                                                                         <Size x="13" y="26"/>
  2277                                                                                                         <Anchors>
  2278                                                                                                                 <Anchor point="LEFT" relativePoint="RIGHT" x="0" y="0"/>
  2279                                                                                                         </Anchors>
  2280                                                                                                 </Texture>
  2281                                                                                         </Layer>
  2282                                                                                 </Layers>
  2283                                                                                 <NormalTexture inherits="_FilterButtonUp-Mid">
  2284                                                                                 </NormalTexture>
  2285                                                                                 <PushedTexture inherits="_FilterButtonDown-Mid">
  2286                                                                                 </PushedTexture>
  2287                                                                                 <HighlightTexture inherits="_FilterButtonHighlight-Mid">
  2288                                                                                 </HighlightTexture>
  2289                                                                                 <NormalFont style="GameFontNormal"/>
  2290                                                                                 <ButtonText>
  2291                                                                                         <Anchors>
  2292                                                                                                 <Anchor point="CENTER" x="0" y="0"/>
  2293                                                                                         </Anchors>
  2294                                                                                         <Color r="0.973" g="0.902" b="0.581"/>
  2295                                                                                 </ButtonText>
  2296                                                                                 <Scripts>
  2297                                                                                         <OnClick>
  2298                                                                                                 if not self:GetParent().classFilter:IsShown() then
  2299                                                                                                         self:GetParent().classFilter:Show();
  2300                                                                                                 else
  2301                                                                                                         self:GetParent().classFilter:Hide();
  2302                                                                                                 end
  2303                                                                                         </OnClick>
  2304                                                                                         <OnLoad>
  2305                                                                                                 self:SetPoint("TOPLEFT", self:GetParent():GetParent(), "TOPRIGHT", -340, -10);
 
  2307                                                                                                 local l, t, _, b, r = self.upLeft:GetTexCoord();
  2308                                                                                                 self.upLeft:SetTexCoord(l, l + (r-l)/2, t, b);
  2309                                                                                                 l, t, _, b, r = self.upRight:GetTexCoord();
  2310                                                                                                 self.upRight:SetTexCoord(l + (r-l)/2, r, t, b);
 
  2313                                                                                                 l, t, _, b, r = self.downLeft:GetTexCoord();
  2314                                                                                                 self.downLeft:SetTexCoord(l, l + (r-l)/2, t, b);
  2315                                                                                                 l, t, _, b, r = self.downRight:GetTexCoord();
  2316                                                                                                 self.downRight:SetTexCoord(l + (r-l)/2, r, t, b);
 
  2319                                                                                                 l, t, _, b, r = self.highLeft:GetTexCoord();
  2320                                                                                                 self.highLeft:SetTexCoord(l, l + (r-l)/2, t, b);
  2321                                                                                                 l, t, _, b, r = self.highRight:GetTexCoord();
  2322                                                                                                 self.highRight:SetTexCoord(l + (r-l)/2, r, t, b);
  2323                                                                                         </OnLoad>
  2324                                                                                         <OnShow>
  2325                                                                                                 self:GetParent():GetParent().encounterTitle:Hide();
  2326                                                                                         </OnShow>
  2327                                                                                         <OnHide>
  2328                                                                                                 self:GetParent():GetParent().encounterTitle:Show();
  2329                                                                                         </OnHide>
  2330                                                                                         <OnMouseDown>
  2331                                                                                                 self.upLeft:Hide();
  2332                                                                                                 self.upRight:Hide();
 
  2334                                                                                                 self.downLeft:Show();
  2335                                                                                                 self.downRight:Show();
  2336                                                                                         </OnMouseDown>
  2337                                                                                         <OnMouseUp>
  2338                                                                                                 self.upLeft:Show();
  2339                                                                                                 self.upRight:Show();
 
  2341                                                                                                 self.downLeft:Hide();
  2342                                                                                                 self.downRight:Hide();
  2343                                                                                         </OnMouseUp>
  2344                                                                                 </Scripts>
  2345                                                                         </Button>
  2346                                                                         <Slider name="$parentScrollBar" inherits="MinimalHybridScrollBarTemplate" parentKey="scrollBar">
  2347                                                                                 <Anchors>
  2348                                                                                         <Anchor point="TOPRIGHT" x="0" y="-18"/>
  2349                                                                                         <Anchor point="BOTTOMRIGHT" x="0" y="17"/>
  2350                                                                                 </Anchors>
  2351                                                                                 <Scripts>
  2352                                                                                         <OnLoad>
  2353                                                                                                 self.trackBG:SetVertexColor(0.2, 0.13, 0.08, 0.25);
  2354                                                                                         </OnLoad>
  2355                                                                                 </Scripts>
  2356                                                                         </Slider>
  2357                                                                 </Frames>
  2358                                                                 <Scripts>
  2359                                                                         <OnShow>
  2360                                                                                 EncounterJournal_LootUpdate();
  2361                                                                         </OnShow>
  2362                                                                         <OnHide>
  2363                                                                                 self.classFilter:Hide();
  2364                                                                         </OnHide>
  2365                                                                 </Scripts>
  2366                                                         </ScrollFrame>
  2367                                                 </Frames>
  2368                                         </Frame>
  2369                                 </Frames>
  2370                         </Frame>
  2371                 </Frames>
  2372                 <Scripts>
  2373                         <OnShow function="EncounterJournal_OnShow"/>
  2374                         <OnHide function="EncounterJournal_OnHide"/>
  2375                         <OnLoad function="EncounterJournal_OnLoad"/>
  2376                         <OnEvent function="EncounterJournal_OnEvent"/>
  2377                 </Scripts>
  2378         </Frame>
  2379 </Ui>
   
File: AddOns\Blizzard_EncounterJournal\Localization.lua  
  1 -- This file is executed at the end of addon load
   
File: AddOns\Blizzard_GlyphUI\Blizzard_GlyphUI.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_GMChatUI\Blizzard_GMChatUI.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_GMChatUI\Blizzard_GMChatUI.xml  
152                                   <Texture name="$parentBoarderLeft" file="Interface\HelpFrame\CS_HelpTextures" parentKey="boarderLeft">
  152                                 <Texture name="$parentBorderLeft" file="Interface\HelpFrame\CS_HelpTextures" parentKey="BorderLeft">
 
159                                   <Texture name="$parentBoarderRight" file="Interface\HelpFrame\CS_HelpTextures" parentKey="boarderRight">
  159                                 <Texture name="$parentBorderRight" file="Interface\HelpFrame\CS_HelpTextures" parentKey="BorderRight">
 
166                                   <Texture name="$parentBoarderMid" file="Interface\HelpFrame\CS_HelpTextures_Tile" horizTile="true" parentKey="boarderMid">
  166                                 <Texture name="$parentBorderMid" file="Interface\HelpFrame\CS_HelpTextures_Tile" horizTile="true" parentKey="BorderMid">
 
168                                                   <Anchor point="TOPLEFT" relativeTo="$parentBoarderLeft" relativePoint="TOPRIGHT" x="0" y="0"/>
169                                                   <Anchor point="BOTTOMRIGHT" relativeTo="$parentBoarderRight" relativePoint="BOTTOMLEFT" x="0" y="0"/>
  168                                                 <Anchor point="TOPLEFT" relativeTo="$parentBorderLeft" relativePoint="TOPRIGHT" x="0" y="0"/>
  169                                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parentBorderRight" relativePoint="BOTTOMLEFT" x="0" y="0"/>
 
178                                                   <Anchor point="TOPLEFT" relativeTo="$parentBoarderLeft" relativePoint="TOPRIGHT" x="0" y="-18"/>
  178                                                 <Anchor point="TOPLEFT" relativeTo="$parentBorderLeft" relativePoint="TOPRIGHT" x="0" y="-18"/>
 
190                                                   <Anchor point="CENTER" relativeTo="$parentBoarderLeft" x="3" y="0"/>
  190                                                 <Anchor point="CENTER" relativeTo="$parentBorderLeft" x="3" y="0"/>
 
195                                   <Texture name="$parentGlowLeft" file="Interface\HelpFrame\CS_HelpTextures" parentKey="boarderLeft" alpha="0" alphaMode="ADD">
  195                                 <Texture name="$parentGlowLeft" file="Interface\HelpFrame\CS_HelpTextures" parentKey="BorderLeft" alpha="0" alphaMode="ADD">
 
202                                   <Texture name="$parentGlowRight" file="Interface\HelpFrame\CS_HelpTextures" parentKey="boarderRight" alpha="0" alphaMode="ADD">
  202                                 <Texture name="$parentGlowRight" file="Interface\HelpFrame\CS_HelpTextures" parentKey="BorderRight" alpha="0" alphaMode="ADD">
 
209                                   <Texture name="$parentGlowMid" file="Interface\HelpFrame\CS_HelpTextures_Tile" horizTile="true" parentKey="boarderMid" alpha="0" alphaMode="ADD">
  209                                 <Texture name="$parentGlowMid" file="Interface\HelpFrame\CS_HelpTextures_Tile" horizTile="true" parentKey="BorderMid" alpha="0" alphaMode="ADD">
   
File: AddOns\Blizzard_GMSurveyUI\Blizzard_GMSurveyUI.lua  
  147                         PlaySound("igMainMenuOptionCheckBoxOn");
   
File: AddOns\Blizzard_GMSurveyUI\Blizzard_GMSurveyUI.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_GMSurveyUI\Blizzard_GMSurveyUI.xml  
  842                                 PlaySound("igCharacterInfoOpen");
 
  846                         <OnHide>
  847                                 PlaySound("igCharacterInfoClose");
  848                         </OnHide>
   
File: AddOns\Blizzard_GuildBankUI\Blizzard_GuildBankUI.lua  
11   UIPanelWindows["GuildBankFrame"] = { area = "doublewide", pushable = 0, width = 769 };
  11 UIPanelWindows["GuildBankFrame"] = { area = "doublewide", pushable = 0, width = 793 };
 
  97         self:RegisterEvent("INVENTORY_SEARCH_UPDATE");
 
  163         elseif ( event == "INVENTORY_SEARCH_UPDATE" ) then     
  164                 GuildBankFrame_UpdateFiltered()
 
225                   local texture, itemCount, locked;
  228                 local texture, itemCount, locked, isFiltered;
 
234                           texture, itemCount, locked = GetGuildBankItemInfo(tab, i);
  237                         texture, itemCount, locked, isFiltered = GetGuildBankItemInfo(tab, i);
 
  242                         if ( isFiltered ) then
  243                                 button.searchOverlay:Show();
  244                         else
  245                                 button.searchOverlay:Hide();
  246                         end
 
  278 function GuildBankFrame_UpdateFiltered()
  279         --Figure out which mode you're in and which tab is selected
  280         if ( GuildBankFrame.mode == "bank" ) then
  281                 -- Update the tab items
  282                 local tab = GetCurrentGuildBankTab();
  283                 local button, index, column;
  284                 local _, isFiltered;
  285                 for i=1, MAX_GUILDBANK_SLOTS_PER_TAB do
  286                         index = mod(i, NUM_SLOTS_PER_GUILDBANK_GROUP);
  287                         if ( index == 0 ) then
  288                                 index = NUM_SLOTS_PER_GUILDBANK_GROUP;
  289                         end
  290                         column = ceil((i-0.5)/NUM_SLOTS_PER_GUILDBANK_GROUP);
  291                         button = _G["GuildBankColumn"..column.."Button"..index];
  292                         _, _, _, isFiltered = GetGuildBankItemInfo(tab, i);
 
  294                         if ( isFiltered ) then
  295                                 button.searchOverlay:Show();
  296                         else
  297                                 button.searchOverlay:Hide();
  298                         end
  299                 end
  300         end
  301 end
 
  687                         if ( amount > 0 ) then
 
  689                         else
  690                                 msg = format(GUILDBANK_UNLOCKTAB_FORMAT, name);
  691                         end
   
File: AddOns\Blizzard_GuildBankUI\Blizzard_GuildBankUI.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_GuildBankUI\Blizzard_GuildBankUI.xml  
  223                                         <Layer level="ARTWORK">
  224                                                 <Texture name="$parentSearchOverlay" parentKey="searchOverlay" setAllPoints="true" hidden="true" textureSubLevel="4">
  225                                                         <Color r="0" g="0" b="0" a="0.8"/>
  226                                                 </Texture>
  227                                         </Layer>
 
  232                                                 self:RegisterEvent("INVENTORY_SEARCH_UPDATE");
 
  234                                         <OnEvent>
  235                                                 if ( event == "INVENTORY_SEARCH_UPDATE" and self:IsVisible()) then
  236                                                         local _,_,_,_,_,_, filtered = GetGuildBankTabInfo(self:GetParent():GetID());
  237                                                         if ( filtered ) then
  238                                                                 self.searchOverlay:Show();
  239                                                         else
  240                                                                 self.searchOverlay:Hide();
  241                                                         end
 
  243                                                 end
  244                                         </OnEvent>
 
  1397         <EditBox name="GuildItemSearchBox" inherits="BagSearchBoxTemplate" parent="GuildBankFrame" letters="15">
  1398                 <Size x="130" y="20"/>
  1399                 <Anchors>
  1400                         <Anchor point="TOPRIGHT" x="-15" y="-42"/>
  1401                 </Anchors>
  1402         </EditBox>
   
File: AddOns\Blizzard_GuildControlUI\Blizzard_GuildControlUI.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_GuildUI\Blizzard_GuildInfo.xml  
142                                   LFDFrameRoleCheckButton_OnEnter(self);
  142                                 LFGFrameRoleCheckButton_OnEnter(self);
 
528                           <SimpleHTML name="GuildInfoMOTD" disallowFormatting="true">
  528                         <ScrollFrame name="$parentMOTDScrollFrame" inherits="MinimalScrollFrameTemplate">
 
530                                           <AbsDimension x="291" y="38"/>
  530                                         <AbsDimension x="284" y="42"/>
 
533                                           <Anchor point="TOPLEFT" relativeTo="$parentHeader2" relativePoint="BOTTOMLEFT" x="14" y="-5"/>
  533                                         <Anchor point="TOPLEFT" relativeTo="$parentHeader2" relativePoint="BOTTOMLEFT" x="14" y="-2"/>
 
  535                                 <ScrollChild>
  536                                         <SimpleHTML name="GuildInfoMOTD" disallowFormatting="true">
  537                                                 <Size>
  538                                                         <AbsDimension x="284" y="42"/>
  539                                                 </Size>
 
  549                                 </ScrollChild>
  550                                 <Scripts>
  551                                         <OnLoad>
  552                                                 self.scrollBarHideable = true;
  553                                                 self.noScrollThumb = true;
  554                                                 ScrollBar_AdjustAnchors(GuildInfoFrameInfoMOTDScrollFrameScrollBar, 2, -2);
  555                                                 GuildInfoFrameInfoMOTDScrollFrameScrollBar:Hide();
  556                                                 ScrollFrame_OnLoad(self);
  557                                         </OnLoad>
  558                                 </Scripts>
  559                         </ScrollFrame>
 
928                                                                   self.checkButton.onClick = LFDFrameRoleCheckButton_OnClick;
 
945                                                                   self.checkButton.onClick = LFDFrameRoleCheckButton_OnClick;
 
962                                                                   self.checkButton.onClick = LFDFrameRoleCheckButton_OnClick;
   
File: AddOns\Blizzard_GuildUI\Blizzard_GuildRewards.lua  
1   local GUILD_REWARDS_BUTTON_OFFSET = 0;
2   local GUILD_REWARDS_BUTTON_HEIGHT = 47;
  1 GUILD_REWARDS_BUTTON_OFFSET = 0;
  2 GUILD_REWARDS_BUTTON_HEIGHT = 47;
 
  53                                 button.money:Show();
  54                         else
  55                                 button.money:Hide();
 
  114         local _, _, standingID = GetGuildFactionInfo();
  115         if ( repLevel > standingID ) then
  116                 local gender = UnitSex("player");
  117                 local factionStandingtext = GetText("FACTION_STANDING_LABEL"..repLevel, gender);
  118                 GameTooltip:AddLine(" ", 1, 0, 0, 1);
  119                 GameTooltip:AddLine(string.format(REQUIRES_GUILD_FACTION_TOOLTIP, factionStandingtext), 1, 0, 0, 1);
  120         end
   
File: AddOns\Blizzard_GuildUI\Blizzard_GuildRewards.xml  
9           <Button name="GuildRewardsButtonTemplate" virtual="true" inherits="UIServiceButtonTemplate">
  9         <Button name="GuildRewardsButtonTemplate" virtual="true">
 
  11                 <Frames>
  12                         <Frame name="$parentMoneyFrame" inherits="SmallMoneyFrameTemplate" parentKey="money">
  13                                 <Anchors>
  14                                         <Anchor point="TOPRIGHT" x="5" y="-7"/>
  15                                 </Anchors>
  16                                 <Scripts>
  17                                         <OnLoad>
  18                                                 SmallMoneyFrame_OnLoad(self);
  19                                                 MoneyFrame_SetType(self, "STATIC");
  20                                         </OnLoad>
  21                                 </Scripts>
  22                         </Frame>
  23                 </Frames>
  24                 <Layers>
  25                         <Layer level="OVERLAY">
  26                                 <Texture name="$parentIcon" parentKey="icon">
  27                                         <Size x="36" y="36"/>
  28                                         <Anchors>
  29                                                 <Anchor point="TOPLEFT" x="6" y="-6"/>
  30                                         </Anchors>
  31                                 </Texture>
  32                                 <FontString name="$parentName" inherits="GameFontNormal" justifyH="LEFT" parentKey="name">
  33                                         <Size x="0" y="12"/>
  34                                         <Anchors>
  35                                                 <Anchor point="TOPLEFT" x="48" y="-7"/>
  36                                                 <Anchor point="RIGHT" relativeTo="$parentMoneyFrame" relativePoint="LEFT" x="-2" y="0"/>
  37                                         </Anchors>
  38                                 </FontString>
  39                                 <FontString name="$parentSubText" inherits="SystemFont_Shadow_Small" justifyH="LEFT" justifyV="MIDDLE" parentKey="subText">
  40                                         <Size x="240" y="0"/>
  41                                         <Anchors>
  42                                                 <Anchor point="LEFT" x="48" y="-8"/>
  43                                         </Anchors>
  44                                 </FontString>
  45                         </Layer>
  46                         <Layer level="OVERLAY" textureSubLevel="1">
  47                                 <Texture parentKey="selectedTex" file="Interface\ClassTrainerFrame\TrainerTextures" hidden="true" alphaMode="ADD">
  48                                         <TexCoords left="0.00195313" right="0.57421875" top="0.84960938" bottom="0.94140625"/>
  49                                 </Texture>
  50                                 <Texture parentKey="lock" file="Interface\GuildFrame\GuildFrame" hidden="true">
  51                                         <Size x="17" y="21"/>
  52                                         <Anchors>
  53                                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parentIcon" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
  54                                         </Anchors>
  55                                         <TexCoords left="0.51660156" right="0.53320313" top="0.92578125" bottom="0.96679688"/>
  56                                 </Texture>
  57                         </Layer>
  58                         <Layer level="BACKGROUND">
  59                                 <Texture parentKey="disabledBG" hidden="true" alphaMode="MOD">
  60                                         <Anchors>
  61                                                 <Anchor point="TOPLEFT" x="2" y="-2"/>
  62                                                 <Anchor point="BOTTOMRIGHT" x="-2" y="2"/>
  63                                         </Anchors>
  64                                         <Color r="0.55" g="0.55" b="0.55" a="1"/>
  65                                 </Texture>
  66                         </Layer>
  67                 </Layers>
  68                 <NormalTexture file="Interface\ClassTrainerFrame\TrainerTextures">
  69                         <TexCoords left="0.00195313" right="0.57421875" top="0.65820313" bottom="0.75000000"/>
  70                 </NormalTexture>
  71                 <HighlightTexture name="$parentHighlight" file="Interface\ClassTrainerFrame\TrainerTextures" alphaMode="ADD">
  72                         <TexCoords left="0.00195313" right="0.57421875" top="0.75390625" bottom="0.84570313"/>
  73                 </HighlightTexture>    
   
File: AddOns\Blizzard_GuildUI\Blizzard_GuildRoster.lua  
227                   local name, rank, rankIndex, level, class, zone, note, officernote, online, status, classFileName, achievementPoints, achievementRank, isMobile = GetGuildRosterInfo(index);
  227                 local name, rank, rankIndex, level, class, zone, note, officernote, online, status, classFileName, achievementPoints, achievementRank, isMobile, canSoR = GetGuildRosterInfo(index);
 
  229                 button.soRButton:Hide();
  230                 if ( canSoR ) then
  231                         button.soRButton.type = "guild";
  232                         button.soRButton.target = index;
  233                         button.soRButton.text = name;
  234                 end
 
  247                                 if ( canSoR ) then
  248                                         button.soRButton:Show();
  249                                         button.string3:Hide();
  250                                 else
  251                                         button.soRButton:Hide();
 
  253                                         button.string3:Show();
  254                                 end
 
  261                                 if ( canSoR ) then
  262                                         button.soRButton:Show();
  263                                         button.string4:Hide();
  264                                 else
  265                                         button.soRButton:Hide();
  266                                         button.string4:Show();
 
  271                                         end
 
  488         local soROffset = 0;
 
  510                         end
  511                         if ( (view == "playerStatus" and columnIndex == 4) or (view == "guildStatus" and columnIndex == 4) ) then
  512                                 soROffset = stringOffset + columnData.width / 2;
 
  539                 button.soRButton:ClearAllPoints();
  540                 button.soRButton:SetPoint("CENTER", button, "LEFT", soROffset, 0);
 
  687         rankIndex = rankIndex + 1;
  688         if ( rankIndex ~= newRankIndex ) then
 
  690         end
   
File: AddOns\Blizzard_GuildUI\Blizzard_GuildRoster.xml  
  172                         <Button name="$parentSoRButton" inherits="ScrollOfResurrectionButtonTemplate" hidden="true" parentKey="soRButton">
  173                                 <Size x="20" y="20"/>
  174                                 <Anchors>
  175                                         <Anchor point="CENTER" x="0" y="0"/>
  176                                 </Anchors>
  177                         </Button>
   
File: AddOns\Blizzard_GuildUI\Blizzard_GuildUI.lua  
  106                 else
  107                         UIErrorsFrame:AddMessage(ERR_GUILD_NAME_INVALID, 1.0, 0.1, 0.1, 1.0);
 
  136         if ( nextLevelXP > 0 ) then
 
  138         end
 
  530         local hasImpeachFrame = CanReplaceGuildMaster();
  531         if ( hasImpeachFrame ) then
  532                 GuildGMImpeachButton:Show();
  533                 GuildUpdatesButton1:ClearAllPoints();
  534                 GuildUpdatesButton1:SetPoint("TOP", GuildGMImpeachButton, "BOTTOM", 0, 0);
  535         else
  536                 GuildGMImpeachButton:Hide();
  537                 GuildUpdatesButton1:ClearAllPoints();
  538                 GuildUpdatesButton1:SetPoint("TOPLEFT", GuildNewPerksFrameHeader1, "BOTTOMLEFT", 0, -4);
  539         end
 
  561                 end
 
  563                 if ( hasImpeachFrame and divider > 2 ) then
  564                         divider = divider-1;
 
574                   GuildUpdatesNoEvents:SetHeight((9 - divider) * 18);
  593                 if ( hasImpeachFrame ) then
  594                         GuildUpdatesNoEvents:SetPoint("BOTTOM", _G["GuildUpdatesButton8"]);
  595                 else
  596                         GuildUpdatesNoEvents:SetPoint("BOTTOM", _G["GuildUpdatesButton9"]);
  597                 end
 
  616         end
 
  619         if ( hasImpeachFrame ) then
  620                 GuildUpdatesButton9:Hide();
   
File: AddOns\Blizzard_GuildUI\Blizzard_GuildUI.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_GuildUI\Blizzard_GuildUI.xml  
745                                           <EditBox name="$parentEditBox" letters="33" inherits="InputBoxTemplate" autoFocus="true" parentKey="editBox">
  745                                         <EditBox name="$parentEditBox" letters="24" inherits="InputBoxTemplate" autoFocus="false" parentKey="editBox">
 
  1155                                         <Button name="GuildGMImpeachButton" hidden="true">
  1156                                                 <Size x="320" y="18"/>
  1157                                                 <Anchors>
  1158                                                         <Anchor point="TOPLEFT" relativeTo="$parentHeader1" relativePoint="BOTTOMLEFT" x="0" y="-2"/>
  1159                                                 </Anchors>
  1160                                                 <Layers>
  1161                                                         <Layer level="BACKGROUND">
  1162                                                                 <Texture name="$parentLockTexture">
  1163                                                                         <Color r="0.2" g="0.0" b="0.0"/>
  1164                                                                 </Texture>
  1165                                                         </Layer>
  1166                                                         <Layer level="OVERLAY">
  1167                                                                 <FontString name="$parentText" inherits="GameFontHighlightSmall" justifyH="LEFT" wordwrap="false" text="GUILD_IMPEACH_BUTTON_TEXT">
  1168                                                                         <Anchors>
  1169                                                                                 <Anchor point="LEFT" x="24" y="-1"/>
  1170                                                                                 <Anchor point="RIGHT" x="-8" y="-1"/>
  1171                                                                         </Anchors>
  1172                                                                 </FontString>
  1173                                                                 <Texture name="$parentAlert" file="Interface\DialogFrame\UI-Dialog-Icon-AlertNew">
  1174                                                                         <Size x="14" y="14"/>
  1175                                                                         <Anchors>
  1176                                                                                 <Anchor point="LEFT" x="3" y="-1"/>
  1177                                                                         </Anchors>
  1178                                                                 </Texture>
  1179                                                         </Layer>
  1180                                                 </Layers>
  1181                                                 <Scripts>
  1182                                                         <OnClick>
  1183                                                                 StaticPopup_Show("GUILD_IMPEACH");
  1184                                                         </OnClick>
  1185                                                 </Scripts>
  1186                                                 <HighlightTexture file="Interface\FriendsFrame\UI-FriendsFrame-HighlightBar-Blue" setAllPoints="true" alphaMode="ADD"/>
  1187                                         </Button>
   
File: AddOns\Blizzard_InspectUI\Blizzard_InspectUI.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_InspectUI\InspectPaperDollFrame.lua  
  20                         InspectPaperDollFrame_UpdateButtons();
 
52   function InspectPaperDollFrame_OnShow()
53           ButtonFrameTemplate_HideButtonBar(InspectFrame);
54           InspectModelFrame:SetUnit(InspectFrame.unit);
55           InspectPaperDollFrame_SetLevel();
  53 function InspectPaperDollFrame_UpdateButtons()
 
  73 end
 
  75 function InspectPaperDollFrame_OnShow()
  76         ButtonFrameTemplate_HideButtonBar(InspectFrame);
  77         InspectModelFrame:SetUnit(InspectFrame.unit);
  78         InspectPaperDollFrame_SetLevel();
  79         InspectPaperDollFrame_UpdateButtons();
   
File: AddOns\Blizzard_InspectUI\InspectPaperDollFrame.xml  
108               <PlayerModel name="InspectModelFrame">
  108             <PlayerModel name="InspectModelFrame" inherits="ModelWithControlsTemplate">
 
207                       <OnLoad function="Model_OnLoad"/>
208                                           <OnEvent function="Model_OnEvent"/>
209                                           <OnMouseUp function="Model_OnMouseUp"/>
210                                           <OnMouseDown function="Model_OnMouseDown"/>
211                                           <OnUpdate function="Model_OnUpdate"/>
212                                           <OnMouseWheel>
213                                                   Model_OnMouseWheel(self, delta, MODELFRAME_MAX_PLAYER_ZOOM);
214                                           </OnMouseWheel>
215                   </Scripts>
216                                   <Frames>
217                                           <Button name="InspectModelFrameRotateLeftButton">
218                                                   <Size>
219                                                           <AbsDimension x="35" y="35"/>
220                                                   </Size>
221                                                   <Anchors>
222                                                           <Anchor point="TOPLEFT" x="4" y="0"/>
223                                                   </Anchors>
224                                                   <Scripts>
 
226                                                                   self:RegisterForClicks("LeftButtonDown", "LeftButtonUp");
  208                                                 Model_OnLoad(self, MODELFRAME_MAX_PLAYER_ZOOM);
 
228                                                           <OnClick>
229                                                                   Model_RotateLeft(self:GetParent());
230                                                           </OnClick>
 
232                                                   <NormalTexture file="Interface\Buttons\UI-RotationLeft-Button-Up"/>
233                                                   <PushedTexture file="Interface\Buttons\UI-RotationLeft-Button-Down"/>
234                                                   <HighlightTexture file="Interface\Buttons\ButtonHilight-Round" alphaMode="ADD"/>
235                                           </Button>
236                                           <Button name="InspectModelFrameRotateRightButton">
237                                                   <Size>
238                                                           <AbsDimension x="35" y="35"/>
239                                                   </Size>
240                                                   <Anchors>
241                                                           <Anchor point="TOPLEFT" relativeTo="InspectModelFrameRotateLeftButton" relativePoint="TOPRIGHT"/>
242                                                   </Anchors>
243                                                   <Scripts>
244                                                           <OnLoad>
245                                                                   self:RegisterForClicks("LeftButtonDown", "LeftButtonUp");
246                                                           </OnLoad>
247                                                           <OnClick>
248                                                                   Model_RotateRight(self:GetParent());
249                                                           </OnClick>
250                                                   </Scripts>
251                                                   <NormalTexture file="Interface\Buttons\UI-RotationRight-Button-Up"/>
252                                                   <PushedTexture file="Interface\Buttons\UI-RotationRight-Button-Down"/>
253                                                   <HighlightTexture file="Interface\Buttons\ButtonHilight-Round" alphaMode="ADD"/>
254                                           </Button>
255                                   </Frames>
   
File: AddOns\Blizzard_ItemAlterationUI\Blizzard_ItemAlterationUI.lua  
  1 -- GetItemTransmogrifyInfo(item link/item id/item name)
  2 --   returns: canBeChanged, noChangeReason, canBeSource, noSourceReason
  3 -- CanTransmogrifyItemWithItem(target item link/target item id/target item name, source item link/source item id/source item name)
  4 --   returns: canBeTransmogrified, failReason
 
  6 UIPanelWindows["TransmogrifyFrame"] =   { area = "left", pushable = 0 };
 
  8 local buttons = { };
 
  10 function TransmogrifyFrame_Show()
  11         ShowUIPanel(TransmogrifyFrame);
  12         if ( not TransmogrifyFrame:IsShown() ) then
  13                 CloseTransmogrifyFrame();
  14         end
  15 end
 
  17 function TransmogrifyFrame_Hide()
  18         HideUIPanel(TransmogrifyFrame);
  19 end
 
  21 function TransmogrifyFrame_OnLoad(self)
  22         TransmogrifyFrameTitleText:SetText(TRANSMOGRIFY);
  23         TransmogrifyFrameTitleBg:SetDrawLayer("BACKGROUND", -1);
  24         TransmogrifyFrameTopTileStreaks:Hide();
  25         SetPortraitToTexture(TransmogrifyFramePortrait, "Interface\\Icons\\INV_Arcane_Orb");
 
  27         if ( not UnitHasRelicSlot("player") ) then
  28                 local button = CreateFrame("BUTTON", "TransmogrifyFrameRangedSlot", self, "TransmogrifyBottomSlotButtonTemplate");
  29                 button:SetPoint("LEFT", TransmogrifyFrameSecondaryHandSlot, "RIGHT", 14, 0);
  30                 TransmogrifyFrameMainHandSlot:SetPoint("BOTTOM", TransmogrifyFrameBottomEdge, "TOP", -51, -3);
  31                 TransmogrifyFrame.ranged = button;
  32         end
 
  34         self:SetFrameLevel(3);
  35         TransmogrifyModelFrame:SetFrameLevel(2);
  36         TransmogrifyFrameMouseBlock:SetFrameLevel(1);
  37         TransmogrifyFrameBg:Hide();
 
  39         self:RegisterEvent("TRANSMOGRIFY_UPDATE");
  40         self:RegisterEvent("TRANSMOGRIFY_SUCCESS");
  41         self:RegisterEvent("TRANSMOGRIFY_BIND_CONFIRM");
 
  43         -- flyout settings
  44         self.flyoutSettings = {
  45                 onClickFunc = TransmogrifyItemFlyoutButton_OnClick,
  46                 getItemsFunc =  TransmogrifyItemFlyout_GetItems,
  47                 hasPopouts = false,
  48                 parent = TransmogrifyFrame,
  49                 anchorX = 7,
  50                 anchorY = 3,
  51                 verticalAnchorX = -2,
  52                 verticalAnchorY = -6,
  53         };
  54 end
 
  56 function TransmogrifyFrame_OnEvent(self, event, ...)
  57         if ( event == "TRANSMOGRIFY_UPDATE" ) then
  58                 local slot = ...;
  59                 local dialog = StaticPopup_FindVisible("TRANSMOGRIFY_BIND_CONFIRM");
  60                 if ( dialog and dialog.data.slot == slot ) then
  61                         StaticPopup_Hide("TRANSMOGRIFY_BIND_CONFIRM");
  62                 end
  63                 -- check whether to show melee over ranged weapons
  64                 -- ranged weapons normally apply last so they take over melee weapons, but classes without ranged always show melee
  65                 if ( self.ranged ) then
  66                         if ( slot == INVSLOT_RANGED ) then
  67                                 self.showMelee = nil;
  68                         elseif ( slot == INVSLOT_MAINHAND or slot == INVSLOT_OFFHAND ) then
  69                                 self.showMelee = true;
  70                         end
  71                 end
  72                 TransmogrifyFrame_Update(self);
  73         elseif ( event == "BAG_UPDATE" ) then
  74                 ValidateTransmogrifications();
  75         elseif ( event == "PLAYER_EQUIPMENT_CHANGED" ) then
  76                 ValidateTransmogrifications();
  77                 local slot, hasItem = ...;
  78                 if ( slot == INVSLOT_TABARD or slot == INVSLOT_BODY ) then
  79                         if ( hasItem ) then
  80                                 local itemID = GetInventoryItemID("player", slot);
  81                                 TransmogrifyModelFrame:TryOn(itemID);
  82                         else
  83                                 TransmogrifyModelFrame:UndressSlot(slot);
  84                         end
  85                 end
  86         elseif ( event == "TRANSMOGRIFY_CLOSE" ) then
  87                 self:Hide();
  88         elseif ( event == "TRANSMOGRIFY_SUCCESS" ) then
  89                 local slot = ...;
  90                 for _, button in pairs(buttons) do
  91                         if ( button.id == slot ) then
  92                                 TransmogrifyFrame_AnimateSlotButton(button);
  93                                 TransmogrifyFrame_UpdateSlotButton(button);
  94                                 return;
  95                         end
  96                 end
  97         elseif ( event == "TRANSMOGRIFY_BIND_CONFIRM" ) then
  98                 local slot, itemLink = ...;
  99                 local itemName, _, itemQuality, _, _, _, _, _, _, texture = GetItemInfo(itemLink);
  100                 local r, g, b = GetItemQualityColor(itemQuality or 1);
  101                 StaticPopup_Show("TRANSMOGRIFY_BIND_CONFIRM", nil, nil, {["texture"] = texture, ["name"] = itemName, ["color"] = {r, g, b, 1}, ["link"] = itemLink, ["slot"] = slot});
  102                 TransmogrifyApplyButton:Disable();
  103         elseif ( event == "UNIT_MODEL_CHANGED" ) then
  104                 local unit = ...;
  105                 if ( unit == "player" ) then
  106                         local hasAlternateForm, inAlternateForm = HasAlternateForm();
  107                         if ( self.alternateForm ~= inAlternateForm ) then
  108                                 self.alternateForm = inAlternateForm;
  109                                 TransmogrifyModelFrame:SetUnit("player");
  110                                 TransmogrifyFrame_Update(self);
  111                         end
  112                 end
  113         end
  114 end
 
  116 function TransmogrifyFrame_OnShow(self)
  117         PlaySound("UI_EtherealWindow_Open");
  118         self:RegisterEvent("PLAYER_EQUIPMENT_CHANGED");
  119         self:RegisterEvent("BAG_UPDATE");
  120         local hasAlternateForm, inAlternateForm = HasAlternateForm();
  121         if ( hasAlternateForm ) then
  122                 self:RegisterEvent("UNIT_MODEL_CHANGED");
  123                 self.alternateForm = inAlternateForm;
  124         end
  125         TransmogrifyModelFrame:SetUnit("player");
  126         Model_Reset(TransmogrifyModelFrame);
  127         -- sheath state: 1 = unarmed, 2 = melee, 3 = ranged
  128         local sheathState = GetSheathState();
  129         if ( sheathState == 3 ) then
  130                 self.showMelee = nil;
  131         elseif ( sheathState == 2 ) then
  132                 self.showMelee = true;
  133         else
  134                 local _, class = UnitClass("player");
  135                 if ( class == "HUNTER" ) then
  136                         self.showMelee = nil;
  137                 else
  138                         self.showMelee = true;
  139                 end
  140         end
  141         self.headSlot.displayHelm = ShowingHelm();
  142         self.backSlot.displayCloak = ShowingCloak();
  143         TransmogrifyFrame_Update(self);
  144 end
 
  146 function TransmogrifyFrame_OnHide(self)
  147         PlaySound("UI_EtherealWindow_Close");
  148         StaticPopup_Hide("TRANSMOGRIFY_BIND_CONFIRM");
  149         self:UnregisterEvent("PLAYER_EQUIPMENT_CHANGED");
  150         self:UnregisterEvent("BAG_UPDATE");
  151         self:UnregisterEvent("UNIT_MODEL_CHANGED");
  152         CloseTransmogrifyFrame();
  153 end
 
  155 function TransmogrifyFrame_GetAnimationFrame()
  156         local name, frame;
  157         local i = 1;
  158         while true do
  159                 name = "TransmogrifyAnimation"..i;
  160                 frame = _G[name];
  161                 if ( frame ) then
  162                         if ( not frame:IsShown() ) then
  163                                 return frame;
  164                         end
  165                 else
  166                         frame = CreateFrame("Frame", name, TransmogrifyFrame, "TransmogrifyAnimationFrameTemplate");
  167                         return frame;
  168                 end
  169                 i = i + 1;
  170                 assert(i < 20);
  171         end
  172 end
 
  174 function TransmogrifyFrame_GetPendingFrame()
  175         local name, frame;
  176         local i = 1;
  177         while true do
  178                 name = "TransmogrifyPending"..i;
  179                 frame = _G[name];
  180                 if ( frame ) then
  181                         if ( not frame:IsShown() ) then
  182                                 return frame;
  183                         end
  184                 else
  185                         frame = CreateFrame("Frame", name, TransmogrifyFrame, "TransmogrifyPendingFrameTemplate");
  186                         return frame;
  187                 end
  188                 i = i + 1;
  189                 assert(i < 20);
  190         end
  191 end
 
  193 function TransmogrifyFrame_AnimateSlotButton(button)
  194         -- don't do anything if this button already has an animation frame;
  195         if ( button.animationFrame ) then
  196                 return;
  197         end
  198         local animationFrame = TransmogrifyFrame_GetAnimationFrame();
  199         animationFrame:SetParent(button);
  200         animationFrame:SetPoint("CENTER");
  201         button.animationFrame = animationFrame;
  202         local isTransmogrified = GetTransmogrifySlotInfo(button.id);
  203         if ( isTransmogrified ) then
  204                 animationFrame.transition:Show();
  205         else
  206                 animationFrame.transition:Hide();
  207         end
  208         animationFrame:Show();
  209         animationFrame.anim:Play();
  210 end
 
  212 function TransmogrifySlotButton_OnLoad(self)
  213         self:RegisterForClicks("LeftButtonUp", "RightButtonUp");
  214         self:RegisterForDrag("LeftButton");
  215         local slotName = strsub(self:GetName(), 18);
  216         local id, textureName = GetInventorySlotInfo(slotName);
  217         self.id = id;
  218         self.defaultTexture = textureName;
  219         self.icon:SetTexture(textureName);
  220         self.verticalFlyout = VERTICAL_FLYOUTS[id];
  221         tinsert(buttons, self);
  222 end
 
  224 function TransmogrifySlotButton_OnEvent(self, event, ...)
  225         if ( event == "MODIFIER_STATE_CHANGED" ) then
  226                 if ( IsModifiedClick("SHOWITEMFLYOUT") and self:IsMouseOver() ) then
  227                         TransmogrifySlotButton_OnEnter(self);
  228                 end
  229         end
  230 end
 
  232 function TransmogrifySlotButton_OnClick(self, button)
  233         if ( button == "LeftButton" ) then
  234                 local isTransmogrified, canTransmogrify, cannotTransmogrifyReason, hasPending, hasUndo = GetTransmogrifySlotInfo(self.id);
  235                 if ( hasUndo ) then
  236                         PlaySound("UI_Transmogrify_Redo");
  237                 elseif ( isTransmogrified and not hasPending ) then
  238                         PlaySound("UI_Transmogrify_Undo");
  239                 end
  240                 ClickTransmogrifySlot(self.id);
  241         elseif ( button == "RightButton" ) then
  242                 ClearTransmogrifySlot(self.id);
  243         end
  244         self.undoIcon:Hide();
  245         TransmogrifySlotButton_OnEnter(self);
  246 end
 
  248 function TransmogrifySlotButton_OnEnter(self)
  249         local isTransmogrified, canTransmogrify, cannotTransmogrifyReason, hasPending, hasUndo = GetTransmogrifySlotInfo(self.id);
  250         local cursorItem = GetCursorInfo();
  251         if ( cursorItem ~= "item" and isTransmogrified and not ( hasPending or hasUndo ) ) then
  252                 self.undoIcon:Show();
  253         end
 
  255         self:RegisterEvent("MODIFIER_STATE_CHANGED");
  256         EquipmentFlyout_UpdateFlyout(self);
  257         if ( not EquipmentFlyout_SetTooltipAnchor(self) ) then
  258                 GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
  259         end
  260         if ( hasPending or hasUndo ) then
  261                 GameTooltip:SetTransmogrifyItem(self.id);
  262         elseif ( not canTransmogrify ) then
  263                 local slotName = _G[strupper(strsub(self:GetName(), 18))];
  264                 GameTooltip:SetText(slotName);
  265                 local errorMsg = _G["TRANSMOGRIFY_INVALID_REASON"..cannotTransmogrifyReason];
  266                 if ( errorMsg ) then
  267                         GameTooltip:AddLine(errorMsg, RED_FONT_COLOR.r, RED_FONT_COLOR.g, RED_FONT_COLOR.b, 1, 1);
  268                 end
  269                 GameTooltip:Show();
  270         else
  271                 local hasItem = GameTooltip:SetInventoryItem("player", self.id);
  272         end
 
  274         TransmogrifyModelFrame.controlFrame:Show();
  275 end
 
  277 function TransmogrifySlotButton_OnLeave(self)
  278         self:UnregisterEvent("MODIFIER_STATE_CHANGED");
  279         TransmogrifyModelFrame.controlFrame:Hide();
  280         self.undoIcon:Hide();
  281         GameTooltip:Hide();
  282 end
 
  284 function TransmogrifyFrame_Update(self)
  285         for _, button in pairs(buttons) do
  286                 TransmogrifyFrame_UpdateSlotButton(button);
  287         end
  288         local hasWarningDialog = StaticPopup_FindVisible("TRANSMOGRIFY_BIND_CONFIRM");
  289         TransmogrifyFrame_UpdateApplyButton(hasWarningDialog);
  290 end
 
  292 function TransmogrifyFrame_UpdateApplyButton(hasWarningDialog)
  293         local cost, numChanges = GetTransmogrifyCost();
  294         local canApply;
  295         if ( cost > GetMoney() ) then
  296                 SetMoneyFrameColor("TransmogrifyMoneyFrame", "red");
  297         else
  298                 SetMoneyFrameColor("TransmogrifyMoneyFrame");
  299                 if (numChanges > 0 ) then
  300                         canApply = true;
  301                 end
  302         end
  303         if ( hasWarningDialog ) then
  304                 canApply = false;
  305         end
  306         MoneyFrame_Update("TransmogrifyMoneyFrame", cost);
  307         if ( canApply ) then
  308                 TransmogrifyApplyButton:Enable();
  309         else
  310                 TransmogrifyApplyButton:Disable();
  311         end
  312 end
 
  314 function TransmogrifyFrame_UpdateSlotButton(button)
  315         local isTransmogrified, canTransmogrify, cannotTransmogrifyReason, hasPending, hasUndo, visibleItemID, textureName = GetTransmogrifySlotInfo(button.id);
  316         local hasChange = hasPending or hasUndo;
 
  318         if ( canTransmogrify ) then
  319                 button.icon:SetTexture(textureName);
  320                 button.noItem:Hide();
  321         else
  322                 button.icon:SetTexture(button.defaultTexture);
  323                 button.noItem:Show();
  324         end
 
  326         -- desaturate icon if it's not transmogrified
  327         if ( isTransmogrified or hasPending ) then
  328                 button.icon:SetDesaturated(false);
  329         else
  330                 button.icon:SetDesaturated(true);
  331         end
 
  333         -- show altered texture if the item is transmogrified and doesn't have a pending transmogrification or is animating
  334         if ( isTransmogrified and not hasChange and not button.animationFrame ) then
  335                 button.altTexture:Show();
  336         else
  337                 button.altTexture:Hide();
  338         end
 
  340         -- show ants frame is the item has a pending transmogrification and is not animating
  341         if ( hasChange and not button.animationFrame ) then
  342                 local pendingFrame = button.pendingFrame;
  343                 if ( not pendingFrame ) then
  344                         pendingFrame = TransmogrifyFrame_GetPendingFrame();
  345                         pendingFrame:SetParent(button);
  346                         pendingFrame:SetPoint("CENTER");
  347                         button.pendingFrame = pendingFrame;
  348                 end
  349                 pendingFrame:Show();
  350                 if ( hasUndo ) then
  351                         pendingFrame.undo:Show();
  352                 else
  353                         pendingFrame.undo:Hide();
  354                 end
  355         elseif ( button.pendingFrame ) then
  356                 button.pendingFrame:Hide();
  357                 button.pendingFrame = nil;
  358         end
 
  361         local showModel = true;
  362         if ( TransmogrifyFrame.showMelee and button.id == INVSLOT_RANGED ) then
  363                 showModel = false;
  364         elseif ( not TransmogrifyFrame.showMelee and ( button.id == INVSLOT_MAINHAND or button.id == INVSLOT_OFFHAND ) ) then
  365                 showModel = false;
  366         end
  367         if (button.id == INVSLOT_HEAD and not button.displayHelm) then
  368                 if ( hasChange ) then
  369                         button.displayHelm = true;
  370                 else
  371                         showModel = false;
  372                 end
  373         end
  374         if (button.id == INVSLOT_BACK and not button.displayCloak) then
  375                 if ( hasChange ) then
  376                         button.displayCloak = true;
  377                 else
  378                         showModel = false;
  379                 end
  380         end
  381         if ( showModel ) then
  382                 if ( visibleItemID and visibleItemID > 0 ) then
  383                         local slot;
  384                         if ( button.id == INVSLOT_MAINHAND ) then
  385                                 slot = "mainhand";
  386                         elseif ( button.id == INVSLOT_OFFHAND ) then
  387                                 slot = "offhand";
  388                         end
  389                         TransmogrifyModelFrame:TryOn(visibleItemID, slot);
  390                 else
  391                         if ( button.id == INVSLOT_RANGED ) then
  392                                 -- clear both hands
  393                                 TransmogrifyModelFrame:UndressSlot(INVSLOT_MAINHAND);
  394                                 TransmogrifyModelFrame:UndressSlot(INVSLOT_OFFHAND);
  395                         else
  396                                 TransmogrifyModelFrame:UndressSlot(button.id);
  397                         end
  398                 end
  399         end
  400 end
 
  402 function TransmogrifyItemFlyoutButton_OnClick(self)
  403         if ( self.location ) then
  404                 local player, bank, bags, slot, bag = EquipmentManager_UnpackLocation(self.location);
  405                 if ( bag ) then
  406                         UseItemForTransmogrify(bag, slot, EquipmentFlyoutFrame.button.id);
  407                 else
  408                         UseItemForTransmogrify(nil, slot, EquipmentFlyoutFrame.button.id);
  409                 end
  410         end
  411 end
 
  413 function TransmogrifyItemFlyout_GetItems(slot, itemTable)
  414         GetInventoryItemsForSlot(slot, itemTable, "transmogrify");
  415 end
   
File: AddOns\Blizzard_ItemAlterationUI\Blizzard_ItemAlterationUI.toc  
  1 ## Interface: 40300
  2 ## Title: Blizzard Item Alteration UI
  3 ## Secure: 1
  4 ## Author: Blizzard Entertainment
  5 ## Version: 1.0
  6 ## LoadOnDemand: 1
  7 Blizzard_ItemAlterationUI.xml
  8 Localization.lua
   
File: AddOns\Blizzard_ItemAlterationUI\Blizzard_ItemAlterationUI.xml  
  1 <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
  2 ..\FrameXML\UI.xsd">
  3         <Script file="Blizzard_ItemAlterationUI.lua"/>
 
  126         <Frame name="TransmogrifyAnimationFrameTemplate" virtual="true" hidden="true">
  127                 <Size>
  128                         <AbsDimension x="37" y="37"/>
  129                 </Size>
  130                 <Layers>
  131                         <Layer level="ARTWORK">
  132                                 <Texture name="$parentGlow" file="Interface\Transmogrify\Textures.png">
  133                                         <Size x="58" y="57"/>
  134                                         <Anchors>
  135                                                 <Anchor point="CENTER"/>
  136                                         </Anchors>
  137                                         <TexCoords left="0.52343750" right="0.97656250" top="0.38476563" bottom="0.49609375"/>
  138                                 </Texture>
  139                                 <Texture name="$parentTransition" file="Interface\Transmogrify\Textures.png" parentKey="transition">
  140                                         <Size x="42" y="41"/>
  141                                         <Anchors>
  142                                                 <Anchor point="CENTER"/>
  143                                         </Anchors>
  144                                         <TexCoords left="0.52343750" right="0.97656250" top="0.25781250" bottom="0.36914063"/>
  145                                 </Texture>
  146                                 <Texture name="$parentOuterGlowOver" parentKey="outerGlowOver" file="Interface\SpellActivationOverlay\IconAlert" alpha="0">
  147                                         <Size x="58" y="57"/>
  148                                         <Anchors>
  149                                                 <Anchor point="CENTER"/>
  150                                         </Anchors>
  151                                         <TexCoords left="0.00781250" right="0.50781250" top="0.53515625" bottom="0.78515625"/>
  152                                 </Texture>
  153                         </Layer>
  154                 </Layers>
  155                 <Animations>
  156                         <AnimationGroup parentKey="anim">
  157                                 <Alpha target="$parentOuterGlowOver" duration="0.15" change="1" order="1"/>
  158                                 <Alpha target="$parentOuterGlowOver" duration="0.15" change="-1" order="2"/>
  159                                 <Scale target="$parentTransition" duration="0.2" scaleX="1.381" scaleY="1.381" order="2"/>
  160                                 <Alpha target="$parentGlow" change="-1.0" duration="0.2" order="2"/>
  161                                 <Scripts>
  162                                         <OnFinished>
  163                                                 local frame = self:GetParent();
  164                                                 local button = frame:GetParent();
  165                                                 frame:Hide();
  166                                                 button.animationFrame = nil;
  167                                                 TransmogrifyFrame_UpdateSlotButton(button);
  168                                         </OnFinished>
  169                                 </Scripts>
  170                         </AnimationGroup>
  171                 </Animations>
  172         </Frame>
 
  174         <Frame name="TransmogrifyPendingFrameTemplate" virtual="true" hidden="true">
  175                 <Size>
  176                         <AbsDimension x="37" y="37"/>
  177                 </Size>
  178                 <Anchors>
  179                         <Anchor point="CENTER"/>
  180                 </Anchors>
  181                 <Layers>
  182                         <Layer level="ARTWORK">
  183                                 <Texture name="$parentGlow" file="Interface\Transmogrify\Textures.png">
  184                                         <Size x="58" y="57"/>
  185                                         <Anchors>
  186                                                 <Anchor point="CENTER"/>
  187                                         </Anchors>
  188                                         <TexCoords left="0.52343750" right="0.97656250" top="0.38476563" bottom="0.49609375"/>
  189                                 </Texture>
  190                                 <Texture name="$parentUndo" file="Interface\Transmogrify\Textures.png" parentKey="undo" hidden="true">
  191                                         <Size x="34" y="34"/>
  192                                         <Anchors>
  193                                                 <Anchor point="CENTER"/>
  194                                         </Anchors>
  195                                         <TexCoords left="0.00781250" right="0.27343750" top="0.51171875" bottom="0.57812500"/>
  196                                 </Texture>
  197                         </Layer>
  198                         <Layer level="OVERLAY">
  199                                 <Texture name="$parentAnts" parentKey="ants" file="Interface\Transmogrify\PurpleIconAlertAnts.png">
  200                                         <Size x="44" y="44"/>
  201                                         <Anchors>
  202                                                 <Anchor point="CENTER"/>
  203                                         </Anchors>
  204                                 </Texture>
  205                         </Layer>
  206                 </Layers>
  207                 <Scripts>
  208                         <OnUpdate>
  209                                 AnimateTexCoords(self.ants, 256, 256, 48, 48, 22, elapsed, 0.01);
  210                         </OnUpdate>
  211                 </Scripts>
  212         </Frame>
 
  214         <Button name="TransmogrifySlotButtonTemplate" virtual="true">
  215                 <Size>
  216                         <AbsDimension x="37" y="37"/>
  217                 </Size>
  218                 <Layers>
  219                         <Layer level="BACKGROUND">
  220                                 <Texture name="$parentIconTexture" parentKey="icon"/>
  221                         </Layer>
  222                         <Layer level="BORDER">
  223                                 <Texture name="$parentBorder" file="Interface\Transmogrify\Textures.png">
  224                                         <Size x="58" y="57"/>
  225                                         <Anchors>
  226                                                 <Anchor point="CENTER"/>
  227                                         </Anchors>
  228                                         <TexCoords left="0.52343750" right="0.97656250" top="0.13085938" bottom="0.24218750"/>
  229                                 </Texture>
  230                                 <Texture name="$parentNoItem" file="Interface\Transmogrify\Textures.png" alpha="0.75" hidden="true" parentKey="noItem">
  231                                         <Size x="34" y="34"/>
  232                                         <Anchors>
  233                                                 <Anchor point="CENTER"/>
  234                                         </Anchors>
  235                                         <TexCoords left="0.28906250" right="0.55468750" top="0.51171875" bottom="0.57812500"/>
  236                                 </Texture>
  237                         </Layer>
  238                         <Layer level="ARTWORK">
  239                                 <Texture name="$parentAlterationTexture" file="Interface\Transmogrify\Textures.png" hidden="true" parentKey="altTexture">
  240                                         <Size x="58" y="57"/>
  241                                         <Anchors>
  242                                                 <Anchor point="CENTER"/>
  243                                         </Anchors>
  244                                         <TexCoords left="0.52343750" right="0.97656250" top="0.00195313" bottom="0.11328125"/>
  245                                 </Texture>
  246                         </Layer>
  247                         <Layer level="OVERLAY">
  248                                 <Texture name="$parentUndoIcon" file="Interface\Transmogrify\Textures.png" parentKey="undoIcon" hidden="true">
  249                                         <Size x="24" y="22"/>
  250                                         <Anchors>
  251                                                 <Anchor point="TOPRIGHT" x="7" y="6"/>
  252                                         </Anchors>
  253                                         <TexCoords left="0.17968750" right="0.36718750" top="0.58203125" bottom="0.62500000"/>
  254                                 </Texture>
  255                         </Layer>
  256                 </Layers>
  257                 <Scripts>
  258                         <OnLoad function="TransmogrifySlotButton_OnLoad"/>
  259                         <OnEvent function="TransmogrifySlotButton_OnEvent"/>
  260                         <OnClick function="TransmogrifySlotButton_OnClick"/>
  261                         <OnEnter function="TransmogrifySlotButton_OnEnter"/>
  262                         <OnLeave function="TransmogrifySlotButton_OnLeave"/>
  263                         <OnDragStart>
  264                                 TransmogrifySlotButton_OnClick(self, "LeftButton");
  265                         </OnDragStart>
  266                 </Scripts>
  267         </Button>
  268         <Button name="TransmogrifyLeftSlotButtonTemplate" inherits="TransmogrifySlotButtonTemplate" virtual="true">
  269                 <Layers>
  270                         <Layer level="BACKGROUND">
  271                                 <Texture name="$parentGrabber" file="Interface\Transmogrify\Textures.png">
  272                                         <Size x="20" y="49"/>
  273                                         <Anchors>
  274                                                 <Anchor point="RIGHT" relativePoint="LEFT" x="1" y="0"/>
  275                                         </Anchors>
  276                                         <TexCoords left="0.00781250" right="0.16406250" top="0.58203125" bottom="0.67773438"/>
  277                                 </Texture>
  278                         </Layer>
  279                 </Layers>
  280         </Button>
  281         <Button name="TransmogrifyRightSlotButtonTemplate" inherits="TransmogrifySlotButtonTemplate" virtual="true">
  282                 <Layers>
  283                         <Layer level="BACKGROUND">
  284                                 <Texture name="$parentGrabber" file="Interface\Transmogrify\Textures.png">
  285                                         <Size x="20" y="49"/>
  286                                         <Anchors>
  287                                                 <Anchor point="LEFT" relativePoint="RIGHT" x="-1" y="0"/>
  288                                         </Anchors>
  289                                         <TexCoords right="0.00781250" left="0.16406250" top="0.58203125" bottom="0.67773438"/>
  290                                 </Texture>
  291                         </Layer>
  292                 </Layers>
  293         </Button>      
  294         <Button name="TransmogrifyBottomSlotButtonTemplate" inherits="TransmogrifySlotButtonTemplate" virtual="true">
  295                 <Layers>
  296                         <Layer level="BACKGROUND">
  297                                 <Texture name="$parentGrabber" file="Interface\Transmogrify\Textures.png">
  298                                         <Size x="49" y="20"/>
  299                                         <Anchors>
  300                                                 <Anchor point="TOP" relativePoint="BOTTOM" x="0" y="1"/>
  301                                         </Anchors>
  302                                         <TexCoords left="0.57031250" right="0.95312500" top="0.51171875" bottom="0.55078125"/>
  303                                 </Texture>
  304                         </Layer>
  305                 </Layers>
  306         </Button>
 
  308         <Frame name="TransmogrifyFrame" toplevel="true" parent="UIParent" hidden="true" inherits="EtherealFrameTemplate">
  309                 <Anchors>
  310                         <Anchor point="CENTER"/>
  311                 </Anchors>
  312                 <Frames>
  313                         <Frame name="$parentMouseBlock" setAllPoints="true" enableMouse="true"/>
  314                         <DressUpModel name="TransmogrifyModelFrame" inherits="ModelWithControlsTemplate">
  315                                 <Layers>
  316                                         <Layer level="BACKGROUND" textureSubLevel="1">
  317                                                 <Texture name="$parentMarbleBg" file="Interface\FrameGeneral\UI-Background-Marble" horizTile="true" vertTile="true" setAllPoints="true"/>
  318                                         </Layer>
  319                                         <Layer level="BACKGROUND" textureSubLevel="2">
  320                                                 <Texture setAllPoints="true">
  321                                                         <Color r="0.302" g="0.102" b="0.204" a="0.5"/>
  322                                                 </Texture>
  323                                         </Layer>
  324                                         <Layer level="BORDER">
  325                                                 <Texture name="$parentLines" file="Interface\Transmogrify\EtherealLines.png" horizTile="true" vertTile="true" alpha="0.1" setAllPoints="true"/>
  326                                         </Layer>
  327                                 </Layers>
  328                                 <Size x="320" y="356"/>
  329                                 <Anchors>
  330                                         <Anchor point="TOP" x="0" y="-30"/>
  331                                 </Anchors>
  332                                 <Scripts>
  333                                         <OnLoad>
  334                                                 Model_OnLoad(self, MODELFRAME_MAX_PLAYER_ZOOM, -0.25, 0);
  335                                         </OnLoad>
  336                                 </Scripts>
  337                         </DressUpModel>
  338                         <Button name="$parentHeadSlot" parentKey="headSlot" inherits="TransmogrifyLeftSlotButtonTemplate">
  339                                 <Anchors>
  340                                         <Anchor point="TOPLEFT" x="21" y="-90"/>
  341                                 </Anchors>
  342                         </Button>
  343                         <Button name="$parentShoulderSlot" inherits="TransmogrifyLeftSlotButtonTemplate">
  344                                 <Anchors>
  345                                         <Anchor point="TOP" relativeTo="$parentHeadSlot" relativePoint="BOTTOM" x="0" y="-14"/>
  346                                 </Anchors>
  347                         </Button>
  348                         <Button name="$parentBackSlot" parentKey="backSlot" inherits="TransmogrifyLeftSlotButtonTemplate">
  349                                 <Anchors>
  350                                         <Anchor point="TOP" relativeTo="$parentShoulderSlot" relativePoint="BOTTOM" x="0" y="-14"/>
  351                                 </Anchors>
  352                         </Button>
  353                         <Button name="$parentChestSlot" inherits="TransmogrifyLeftSlotButtonTemplate">
  354                                 <Anchors>
  355                                         <Anchor point="TOP" relativeTo="$parentBackSlot" relativePoint="BOTTOM" x="0" y="-14"/>
  356                                 </Anchors>
  357                         </Button>
  358                         <Button name="$parentWristSlot" inherits="TransmogrifyLeftSlotButtonTemplate">
  359                                 <Anchors>
  360                                         <Anchor point="TOP" relativeTo="$parentChestSlot" relativePoint="BOTTOM" x="0" y="-14"/>
  361                                 </Anchors>
  362                         </Button>
  363                         <Button name="$parentHandsSlot" inherits="TransmogrifyRightSlotButtonTemplate">
  364                                 <Anchors>
  365                                         <Anchor point="TOPRIGHT" x="-23" y="-116"/>
  366                                 </Anchors>
  367                         </Button>
  368                         <Button name="$parentWaistSlot" inherits="TransmogrifyRightSlotButtonTemplate">
  369                                 <Anchors>
  370                                         <Anchor point="TOP" relativeTo="$parentHandsSlot" relativePoint="BOTTOM" x="0" y="-14"/>
  371                                 </Anchors>
  372                         </Button>
  373                         <Button name="$parentLegsSlot" inherits="TransmogrifyRightSlotButtonTemplate">
  374                                 <Anchors>
  375                                         <Anchor point="TOP" relativeTo="$parentWaistSlot" relativePoint="BOTTOM" x="0" y="-14"/>
  376                                 </Anchors>
  377                         </Button>
  378                         <Button name="$parentFeetSlot" inherits="TransmogrifyRightSlotButtonTemplate">
  379                                 <Anchors>
  380                                         <Anchor point="TOP" relativeTo="$parentLegsSlot" relativePoint="BOTTOM" x="0" y="-14"/>
  381                                 </Anchors>
  382                         </Button>
  383                         <Button name="$parentMainHandSlot" inherits="TransmogrifyBottomSlotButtonTemplate" parentKey="mainHand">
  384                                 <Anchors>
  385                                         <Anchor point="BOTTOM" relativeTo="TransmogrifyFrameBottomEdge" relativePoint="TOP" x="-25" y="-3"/>
  386                                 </Anchors>
  387                         </Button>
  388                         <Button name="$parentSecondaryHandSlot" inherits="TransmogrifyBottomSlotButtonTemplate" parentKey="offHand">
  389                                 <Anchors>
  390                                         <Anchor point="LEFT" relativeTo="$parentMainHandSlot" relativePoint="RIGHT" x="14" y="0"/>
  391                                 </Anchors>
  392                         </Button>
 
  394                         <Frame name="$parentButtonFrame">
  395                                 <Size x="0" y="20"/>
  396                                 <Anchors>
  397                                         <Anchor point="BOTTOMLEFT"/>
  398                                         <Anchor point="BOTTOMRIGHT"/>
  399                                 </Anchors>
  400                                 <Frames>
  401                                         <Button name="TransmogrifyApplyButton" inherits="MagicButtonTemplate" text="APPLY">
  402                                                 <Size x="112" y="22"/>
  403                                                 <Anchors>
  404                                                         <Anchor point="BOTTOMRIGHT" x="-2" y="4"/>
  405                                                 </Anchors>
  406                                                 <Scripts>
  407                                                         <OnClick>
  408                                                                 PlaySound("UI_Transmogrify_Apply");
  409                                                                 ApplyTransmogrifications();
  410                                                         </OnClick>
  411                                                 </Scripts>
  412                                         </Button>
  413                                         <Frame name="TransmogrifyMoneyFrame" inherits="SmallMoneyFrameTemplate">
  414                                                 <Anchors>
  415                                                         <Anchor point="RIGHT" relativeTo="TransmogrifyApplyButton" relativePoint="LEFT" x="4" y="-2"/>
  416                                                 </Anchors>
  417                                                 <Scripts>
  418                                                         <OnLoad>
  419                                                                 SmallMoneyFrame_OnLoad(self);
  420                                                                 MoneyFrame_SetType(self, "STATIC");
  421                                                         </OnLoad>
  422                                                 </Scripts>
  423                                         </Frame>
  424                                 </Frames>
  425                                 <Layers>
  426                                         <Layer level="BORDER" textureSubLevel="1">
  427                                                 <Texture>
  428                                                         <Size x="334" y="21"/>
  429                                                         <Anchors>
  430                                                                 <Anchor point="BOTTOMLEFT" x="1" y="5"/>
  431                                                         </Anchors>
  432                                                         <Color r="0" g="0" b="0"/>
  433                                                 </Texture>
  434                                         </Layer>
  435                                         <Layer level="BORDER" textureSubLevel="2">
  436                                                 <Texture name="$parentButtonBorder" inherits="_UI-Frame-InnerBotTile" parentKey="InsetBorderBottom">
  437                                                         <Anchors>
  438                                                                 <Anchor point="BOTTOMLEFT" x="1" y="25"/>
  439                                                                 <Anchor point="BOTTOMRIGHT" x="-3" y="25"/>
  440                                                         </Anchors>
  441                                                 </Texture>
  442                                                 <Texture name="$parentButtonBottomBorder" inherits="_UI-Frame-BtnBotTile">
  443                                                         <Anchors>
  444                                                                 <Anchor point="BOTTOMLEFT" x="6" y="2"/>
  445                                                                 <Anchor point="BOTTOMRIGHT" x="-8" y="2"/>
  446                                                         </Anchors>
  447                                                 </Texture>
  448                                         </Layer>
  449                                         <Layer level="ARTWORK">
  450                                                 <Texture name="$parentMoneyLeft" file="Interface\Common\MoneyFrame.png">
  451                                                         <Size x="8" y="20"/>
  452                                                         <Anchors>
  453                                                                 <Anchor point="BOTTOMLEFT" x="0" y="4"/>
  454                                                         </Anchors>
  455                                                         <TexCoords left="0.9375" right="1" top="0" bottom="0.3125"/>
  456                                                 </Texture>
  457                                                 <Texture name="$parentMoneyRight" file="Interface\Common\MoneyFrame.png">
  458                                                         <Size x="8" y="20"/>
  459                                                         <Anchors>
  460                                                                 <Anchor point="TOP" relativeTo="$parentMoneyLeft"/>
  461                                                                 <Anchor point="RIGHT" relativeTo="TransmogrifyApplyButton" relativePoint="LEFT" x="-3" y="0"/>
  462                                                         </Anchors>
  463                                                         <TexCoords left="0" right="0.0625" top="0" bottom="0.3125"/>
  464                                                 </Texture>
  465                                                 <Texture name="$parentMoneyMiddle" file="Interface\Common\MoneyFrame.png">
  466                                                         <Size x="0" y="20"/>
  467                                                         <Anchors>
  468                                                                 <Anchor point="TOPLEFT" relativeTo="$parentMoneyLeft" relativePoint="TOPRIGHT"/>
  469                                                                 <Anchor point="TOPRIGHT" relativeTo="$parentMoneyRight" relativePoint="TOPLEFT"/>
  470                                                         </Anchors>
  471                                                         <TexCoords left="0" right="1" top="0.3125" bottom="0.6250"/>
  472                                                 </Texture>
  473                                         </Layer>
  474                                 </Layers>
  475                         </Frame>
  476                 </Frames>
  477                 <Scripts>
  478                         <OnLoad function="TransmogrifyFrame_OnLoad"/>
  479                         <OnEvent function="TransmogrifyFrame_OnEvent"/>
  480                         <OnShow function="TransmogrifyFrame_OnShow"/>
  481                         <OnHide function="TransmogrifyFrame_OnHide"/>
  482                 </Scripts>
  483         </Frame>
  484 </Ui>
   
File: AddOns\Blizzard_ItemAlterationUI\Localization.lua  
  1 -- This file is executed at the end of addon load
   
File: AddOns\Blizzard_ItemSocketingUI\Blizzard_ItemSocketingUI.lua  
  20         self:RegisterEvent("SOCKET_INFO_ACCEPT");
  21         self:RegisterEvent("SOCKET_INFO_SUCCESS");
 
  39         elseif ( event == "SOCKET_INFO_ACCEPT" ) then
  40                 self.isSocketing = true;
  41                 ItemSocketingSocketButton_Disable();
  42                 ItemSocketingFrame_DisableSockets();
  43         elseif ( event == "SOCKET_INFO_SUCCESS" ) then
  44                 self.isSocketing = nil;
  45                 ItemSocketingFrame_EnableSockets();
 
178           else   
  187         elseif ( not ItemSocketingFrame.isSocketing ) then
 
  189         end
  190 end
 
  192 function ItemSocketingFrame_DisableSockets()
  193         for i = 1, MAX_NUM_SOCKETS do
  194                 local socket = _G["ItemSocketingSocket"..i];
  195                 socket:Disable();
  196                 socket.icon:SetDesaturated(true);
  197         end
  198 end
 
  200 function ItemSocketingFrame_EnableSockets()
  201         for i = 1, MAX_NUM_SOCKETS do
  202                 local socket = _G["ItemSocketingSocket"..i];
  203                 socket:Enable();
  204                 socket.icon:SetDesaturated(false);
   
File: AddOns\Blizzard_ItemSocketingUI\Blizzard_ItemSocketingUI.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_ItemSocketingUI\Blizzard_ItemSocketingUI.xml  
52                                   <Texture name="$parentIconTexture">
  52                                 <Texture name="$parentIconTexture" parentKey="icon">
 
  450                                 if ( self.isSocketing ) then
  451                                         ItemSocketingFrame_EnableSockets();
  452                                         self.isSocketing = nil;
  453                                 end
   
File: AddOns\Blizzard_LookingForGuildUI\Blizzard_LookingForGuildUI.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_LookingForGuildUI\Blizzard_LookingForGuildUI.xml  
101                                   LFDFrameRoleCheckButton_OnEnter(self);
  101                                 LFGFrameRoleCheckButton_OnEnter(self);
 
646                                                                   self.checkButton.onClick = LFDFrameRoleCheckButton_OnClick;
 
663                                                                   self.checkButton.onClick = LFDFrameRoleCheckButton_OnClick;
 
680                                                                   self.checkButton.onClick = LFDFrameRoleCheckButton_OnClick;
 
806                                                                           <EditBox name="LookingForGuildCommentEditBox" multiLine="true" letters="255" countInvisibleLetters="true" autoFocus="false">
  803                                                                         <EditBox name="LookingForGuildCommentEditBox" multiLine="true" letters="230" countInvisibleLetters="true" autoFocus="false">
 
1136                                                           <EditBox name="GuildFinderRequestMembershipEditBox" multiLine="true" letters="255" countInvisibleLetters="true" autoFocus="false">
  1133                                                         <EditBox name="GuildFinderRequestMembershipEditBox" multiLine="true" letters="230" countInvisibleLetters="true" autoFocus="false">
   
File: AddOns\Blizzard_MacroUI\Blizzard_MacroUI.lua  
  231 local _playerSpells = {};
  232 local _numSpells;
  233 local _specialIcon;
  234 local _TotalIcons;
 
  255         RefreshPlayerSpellIconInfo();
 
  281 --[[
  282 RefreshPlayerSpellIconInfo() counts how many uniquely textured spells the player knows and puts them in a table
  283 ]]
  284 function RefreshPlayerSpellIconInfo()
 
  286         _specialIcon = MacroPopupFrame.selectedIconTexture;
  287         _numSpells = 0;
  288         local index = 1;
  289         local numFlyouts = 0;
  290         for i = 1, GetNumSpellTabs() do
  291                 tab, tabTex, offset, numSpells, _ = GetSpellTabInfo(i);
  292                 offset = offset + 1;
  293                 tabEnd = offset + numSpells;
  294                 for j = offset, tabEnd - 1 do
  295                         --to get spell info by slot, you have to pass in a pet argument
  296                         local spellType, ID = GetSpellBookItemInfo(j, "player");
  297                         if (not (spellType == "FUTURESPELL" or spellType == "FLYOUT")) then
  298                                 _playerSpells[index] = GetSpellTexture(j, "player");
  299                                 index = index + 1;
  300                                 _numSpells = _numSpells + 1;
  301                         end
  302                         if (spellType == "FLYOUT") then
  303                                 local _, _, numSlots, isKnown = GetFlyoutInfo(ID);
  304                                 if (isKnown and numSlots > 0) then
  305                                         for k = 1, numSlots do
  306                                                 local spellID, isKnown = GetFlyoutSlotInfo(ID, k)
  307                                                 if (isKnown) then
  308                                                         _playerSpells[index] = GetSpellTexture(spellID);
  309                                                         index = index + 1;
  310                                                         _numSpells = _numSpells + 1;
  311                                                 end
  312                                         end
  313                                 end
  314                         end
  315                 end
  316         end
  317         _TotalIcons = _numSpells + GetNumMacroIcons();
 
  319 end
 
  321 --[[
  322 GetSpellorMacroIconInfo(index) determines the texture and relative index for a given index
  323 input: an index into a list of the player's spell icons followed by the macro icons
  324 output: the corresponding texture and its index relative to the join point of the lists
  325 ]]
  326 function GetSpellorMacroIconInfo(index)
  327         if ( not index ) then
  328                 return;
  329         end
 
  331         for i = 1, #_playerSpells do
  332                 if (_playerSpells[i]) then
  333                         index = index - 1;
  334                         if (index == 0) then
  335                                 return _playerSpells[i], -i;
  336                         end
  337                 end
  338         end
  339         if (index > GetNumMacroIcons()) then
  340                 return _specialIcon, index;
  341         end
  342         return GetMacroIconInfo(index), index;
  343 end
 
  346         RefreshPlayerSpellIconInfo();
 
276           local numMacroIcons = GetNumMacroIcons();
  348         local numMacroIcons = _TotalIcons;
 
295                   texture = GetMacroIconInfo(index);
  367                 texture = GetSpellorMacroIconInfo(index);
 
323           if ( (strlen(MacroPopupEditBox:GetText()) > 0) and MacroPopupFrame.selectedIcon ) then
  395         local text = MacroPopupEditBox:GetText();
  396         text = string.gsub(text, "\"", "");
  397         if ( (strlen(text) > 0) and MacroPopupFrame.selectedIcon ) then
 
328           if ( MacroPopupFrame.mode == "edit" and (strlen(MacroPopupEditBox:GetText()) > 0) ) then
  402         if ( MacroPopupFrame.mode == "edit" and (strlen(text) > 0) ) then
 
337           MacroFrameSelectedMacroButtonIcon:SetTexture(GetMacroIconInfo(MacroPopupFrame.selectedIcon));
  411         MacroFrameSelectedMacroButtonIcon:SetTexture(GetSpellorMacroIconInfo(MacroPopupFrame.selectedIcon));
 
  425         local _, iconIndex = GetSpellorMacroIconInfo(MacroPopupFrame.selectedIcon);
  426         local text = MacroPopupEditBox:GetText();
  427         text = string.gsub(text, "\"", "");
 
352                   index = CreateMacro(MacroPopupEditBox:GetText(), MacroPopupFrame.selectedIcon, nil, (MacroFrame.macroBase > 0));
  429                 index = CreateMacro(text, iconIndex, nil, (MacroFrame.macroBase > 0));
 
354                   index = EditMacro(MacroFrame.selectedMacro, MacroPopupEditBox:GetText(), MacroPopupFrame.selectedIcon);
  431                 index = EditMacro(MacroFrame.selectedMacro, text, iconIndex);
   
File: AddOns\Blizzard_MacroUI\Blizzard_MacroUI.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_MacroUI\Blizzard_MacroUI.xml  
24                           <Size>
25                                   <AbsDimension x="36" y="36"/>
26                           </Size>
  24                         <Size x="36" y="36"/>
 
28                                   <Anchor point="CENTER">
29                                           <Offset>
30                                                   <AbsDimension x="0" y="-1"/>
31                                           </Offset>
32                                   </Anchor>
  26                                 <Anchor point="CENTER" x="0" y="-1"/>
 
39                   <Size>
40                           <AbsDimension x="384" y="512"/>
41                   </Size>
  33                 <Size x="384" y="512"/>
 
43                           <Anchor point="TOPLEFT">
44                                   <Offset>
45                                           <AbsDimension x="0" y="-104"/>
46                                   </Offset>
47                           </Anchor>
  35                         <Anchor point="TOPLEFT" x="0" y="-104"/>
 
55                                           <Size>
56                                                   <AbsDimension x="60" y="60"/>
57                                           </Size>
  43                                         <Size x="60" y="60"/>
 
59                                                   <Anchor point="TOPLEFT">
60                                                           <Offset>
61                                                                   <AbsDimension x="7" y="-6"/>
62                                                           </Offset>
63                                                   </Anchor>
  45                                                 <Anchor point="TOPLEFT" x="7" y="-6"/>
 
69                                           <Size>
70                                                   <AbsDimension x="256" y="256"/>
71                                           </Size>
  51                                         <Size x="256" y="256"/>
 
77                                           <Size>
78                                                   <AbsDimension x="128" y="256"/>
79                                           </Size>
  57                                         <Size x="128" y="256"/>
 
85                                           <Size>
86                                                   <AbsDimension x="256" y="256"/>
87                                           </Size>
  63                                         <Size x="256" y="256"/>
 
93                                           <Size>
94                                                   <AbsDimension x="128" y="256"/>
95                                           </Size>
  69                                         <Size x="128" y="256"/>
 
102                                                   <Anchor point="TOP" relativeTo="MacroFrame">
103                                                           <Offset>
104                                                                   <AbsDimension x="0" y="-17"/>
105                                                           </Offset>
106                                                   </Anchor>
  76                                                 <Anchor point="TOP" relativeTo="MacroFrame" x="0" y="-17"/>
 
112                                           <Size>
113                                                   <AbsDimension x="256" y="16"/>
114                                           </Size>
  82                                         <Size x="256" y="16"/>
 
116                                                   <Anchor point="TOPLEFT">
117                                                           <Offset>
118                                                                   <AbsDimension x="15" y="-220"/>
119                                                           </Offset>
120                                                   </Anchor>
  84                                                 <Anchor point="TOPLEFT" x="15" y="-220"/>
 
125                                           <Size>
126                                                   <AbsDimension x="75" y="16"/>
127                                           </Size>
  89                                         <Size x="75" y="16"/>
 
129                                                   <Anchor point="LEFT" relativeTo="MacroHorizontalBarLeft" relativePoint="RIGHT">
130                                                           <Offset>
131                                                                   <AbsDimension x="0" y="0"/>
132                                                           </Offset>
133                                                   </Anchor>
  91                                                 <Anchor point="LEFT" relativeTo="MacroHorizontalBarLeft" relativePoint="RIGHT" x="0" y="0"/>
 
138                                           <Size>
139                                                   <AbsDimension x="64" y="64"/>
140                                           </Size>
  96                                         <Size x="64" y="64"/>
 
142                                                   <Anchor point="TOPLEFT">
143                                                           <Offset>
144                                                                   <AbsDimension x="16" y="-228"/>
145                                                           </Offset>
146                                                   </Anchor>
  98                                                 <Anchor point="TOPLEFT" x="16" y="-228"/>
 
150                                           <Size>
151                                                   <AbsDimension x="256" y="16"/>
152                                           </Size>
  102                                         <Size x="256" y="16"/>
 
154                                                   <Anchor point="TOPLEFT" relativeTo="MacroFrameSelectedMacroBackground" relativePoint="TOPRIGHT">
155                                                           <Offset>
156                                                                   <AbsDimension x="-4" y="-10"/>
157                                                           </Offset>
158                                                   </Anchor>
  104                                                 <Anchor point="TOPLEFT" relativeTo="MacroFrameSelectedMacroBackground" relativePoint="TOPRIGHT" x="-4" y="-10"/>
 
163                                                   <Anchor point="TOPLEFT" relativeTo="MacroFrameSelectedMacroBackground" relativePoint="BOTTOMLEFT">
164                                                           <Offset>
165                                                                   <AbsDimension x="8" y="3"/>
166                                                           </Offset>
167                                                   </Anchor>
  109                                                 <Anchor point="TOPLEFT" relativeTo="MacroFrameSelectedMacroBackground" relativePoint="BOTTOMLEFT" x="8" y="3"/>
 
171                                           <Size>
172                                                   <AbsDimension x="0" y="10"/>
173                                           </Size>
  113                                         <Size x="0" y="10"/>
 
175                                                   <Anchor point="BOTTOM">
176                                                           <Offset>
177                                                                   <AbsDimension x="-15" y="105"/>
178                                                           </Offset>
179                                                   </Anchor>
  115                                                 <Anchor point="BOTTOM" x="-15" y="105"/>
 
187                                           <Anchor point="TOPLEFT" relativeTo="MacroFrameSelectedMacroBackground">
188                                                   <Offset>
189                                                           <AbsDimension x="14" y="-14"/>
190                                                   </Offset>
191                                           </Anchor>
  123                                         <Anchor point="TOPLEFT" relativeTo="MacroFrameSelectedMacroBackground" x="14" y="-14"/>
 
203                                           <Anchor point="TOPLEFT">
204                                                   <Offset x="23" y="-76"/>
205                                           </Anchor>
  135                                         <Anchor point="TOPLEFT" x="23" y="-76"/>
 
210                                                           <Size>
211                                                                   <AbsDimension x="31" y="102"/>
212                                                           </Size>
  140                                                         <Size x="31" y="102"/>
 
214                                                                   <Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
215                                                                           <Offset>
216                                                                                   <AbsDimension x="-2" y="5"/>
217                                                                           </Offset>
218                                                                   </Anchor>
  142                                                                 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="-2" y="5"/>
 
223                                                           <Size>
224                                                                   <AbsDimension x="31" y="106"/>
225                                                           </Size>
  147                                                         <Size x="31" y="106"/>
 
227                                                                   <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
228                                                                           <Offset>
229                                                                                   <AbsDimension x="-2" y="-2"/>
230                                                                           </Offset>
231                                                                   </Anchor>
  149                                                                 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="-2" y="-2"/>
 
236                                                           <Size>
237                                                                   <AbsDimension x="31" y="1"/>
238                                                           </Size>
  154                                                         <Size x="31" y="1"/>
 
263                                   <Size>
264                                           <AbsDimension x="170" y="22"/>
265                                   </Size>
  179                                 <Size x="170" y="22"/>
 
267                                           <Anchor point="TOPLEFT" relativeTo="MacroFrameSelectedMacroBackground">
268                                                   <Offset>
269                                                           <AbsDimension x="55" y="-30"/>
270                                                   </Offset>
271                                           </Anchor>
  181                                         <Anchor point="TOPLEFT" relativeTo="MacroFrameSelectedMacroBackground" x="55" y="-30"/>
 
278                                   <Size>
279                                           <AbsDimension x="286" y="85"/>
280                                   </Size>
  188                                 <Size x="286" y="85"/>
 
282                                           <Anchor point="TOPLEFT" relativeTo="MacroFrameSelectedMacroBackground" relativePoint="BOTTOMLEFT">
283                                                   <Offset>
284                                                           <AbsDimension x="11" y="-13"/>
285                                                   </Offset>
286                                           </Anchor>
  190                                         <Anchor point="TOPLEFT" relativeTo="MacroFrameSelectedMacroBackground" relativePoint="BOTTOMLEFT" x="11" y="-13"/>
 
290                                                   <Size>
291                                                           <AbsDimension x="286" y="85"/>
292                                                   </Size>
  194                                                 <Size x="286" y="85"/>
 
314                                   <Size>
315                                           <AbsDimension x="286" y="85"/>
316                                   </Size>
  216                                 <Size x="286" y="85"/>
 
327                                   <Size>
328                                           <AbsDimension x="80" y="22"/>
329                                   </Size>
  227                                 <Size x="80" y="22"/>
 
331                                           <Anchor point="BOTTOMRIGHT" relativeTo="MacroFrameScrollFrame" relativePoint="TOPRIGHT">
332                                                   <Offset>
333                                                           <AbsDimension x="25" y="10"/>
334                                                   </Offset>
335                                           </Anchor>
  229                                         <Anchor point="BOTTOMRIGHT" relativeTo="MacroFrameScrollFrame" relativePoint="TOPRIGHT" x="25" y="10"/>
 
342                                   <Size>
343                                           <AbsDimension x="80" y="22"/>
344                                   </Size>
  236                                 <Size x="80" y="22"/>
 
346                                           <Anchor point="BOTTOM" relativeTo="MacroCancelButton" relativePoint="TOP">
347                                                   <Offset>
348                                                           <AbsDimension x="0" y="15"/>
349                                                   </Offset>
350                                           </Anchor>
  238                                         <Anchor point="BOTTOM" relativeTo="MacroCancelButton" relativePoint="TOP" x="0" y="15"/>
 
357                                   <Size>
358                                           <AbsDimension x="322" y="95"/>
359                                   </Size>
  245                                 <Size x="322" y="95"/>
 
361                                           <Anchor point="TOPLEFT" relativeTo="MacroFrame">
362                                                   <Offset>
363                                                           <AbsDimension x="18" y="-300"/>
364                                                   </Offset>
365                                           </Anchor>
  247                                         <Anchor point="TOPLEFT" relativeTo="MacroFrame" x="18" y="-300"/>
 
387                                           <Anchor point="TOPLEFT">
388                                                   <Offset>
389                                                           <AbsDimension x="65" y="-39"/>
390                                                   </Offset>
391                                           </Anchor>
  269                                         <Anchor point="TOPLEFT" x="65" y="-39"/>
 
409                                           <Anchor point="LEFT" relativeTo="MacroFrameTab1" relativePoint="RIGHT">
410                                                   <Offset>
411                                                           <AbsDimension x="0" y="0"/>
412                                                   </Offset>
413                                           </Anchor>
  287                                         <Anchor point="LEFT" relativeTo="MacroFrameTab1" relativePoint="RIGHT" x="0" y="0"/>
 
  291                                                 if ( self:GetFontString():IsTruncated() ) then
 
  294                                                 end
 
436                                   <Size>
437                                           <AbsDimension x="80" y="22"/>
438                                   </Size>
  312                                 <Size x="80" y="22"/>
 
440                                           <Anchor point="BOTTOMLEFT" relativeTo="MacroFrame">
441                                                   <Offset>
442                                                           <AbsDimension x="17" y="79"/>
443                                                   </Offset>
444                                           </Anchor>
  314                                         <Anchor point="BOTTOMLEFT" relativeTo="MacroFrame" x="17" y="79"/>
 
453                                   <Size>
454                                           <AbsDimension x="80" y="22"/>
455                                   </Size>
  323                                 <Size x="80" y="22"/>
 
457                                           <Anchor point="CENTER" relativeTo="MacroFrame" relativePoint="TOPLEFT">
458                                                   <Offset>
459                                                           <AbsDimension x="222" y="-422"/>
460                                                   </Offset>
461                                           </Anchor>
  325                                         <Anchor point="CENTER" relativeTo="MacroFrame" relativePoint="TOPLEFT" x="222" y="-422"/>
 
468                                   <Size>
469                                           <AbsDimension x="80" y="22"/>
470                                   </Size>
  332                                 <Size x="80" y="22"/>
 
472                                           <Anchor point="CENTER" relativeTo="MacroFrame" relativePoint="TOPLEFT">
473                                                   <Offset>
474                                                           <AbsDimension x="303" y="-422"/>
475                                                   </Offset>
476                                           </Anchor>
  334                                         <Anchor point="CENTER" relativeTo="MacroFrame" relativePoint="TOPLEFT" x="303" y="-422"/>
 
484                                           <Anchor point="TOPRIGHT" relativeTo="MacroFrame" relativePoint="TOPRIGHT">
485                                                   <Offset>
486                                                           <AbsDimension x="-29" y="-8"/>
487                                                   </Offset>
488                                           </Anchor>
  342                                         <Anchor point="TOPRIGHT" relativeTo="MacroFrame" relativePoint="TOPRIGHT" x="-29" y="-8"/>
 
499                   <Size>
500                           <AbsDimension x="297" y="298"/>
501                   </Size>
  353                 <Size x="297" y="298"/>
 
503                           <Anchor point="TOPLEFT" relativeTo="MacroFrame" relativePoint="TOPRIGHT">
504                                   <Offset>
505                                           <AbsDimension x="-40" y="-40"/>
506                                   </Offset>
507                           </Anchor>
  355                         <Anchor point="TOPLEFT" relativeTo="MacroFrame" relativePoint="TOPRIGHT" x="-40" y="-40"/>
 
512                                           <Size>
513                                                   <AbsDimension x="256" y="256"/>
514                                           </Size>
  360                                         <Size x="256" y="256"/>
 
520                                           <Size>
521                                                   <AbsDimension x="64" y="256"/>
522                                           </Size>
  366                                         <Size x="64" y="256"/>
 
524                                                   <Anchor point="TOPLEFT">
525                                                           <Offset>
526                                                                   <AbsDimension x="256" y="0"/>
527                                                           </Offset>
528                                                   </Anchor>
  368                                                 <Anchor point="TOPLEFT" x="256" y="0"/>
 
532                                           <Size>
533                                                   <AbsDimension x="256" y="64"/>
534                                           </Size>
  372                                         <Size x="256" y="64"/>
 
536                                                   <Anchor point="TOPLEFT">
537                                                           <Offset>
538                                                                   <AbsDimension x="0" y="-256"/>
539                                                           </Offset>
540                                                   </Anchor>
  374                                                 <Anchor point="TOPLEFT" x="0" y="-256"/>
 
544                                           <Size>
545                                                   <AbsDimension x="64" y="64"/>
546                                           </Size>
  378                                         <Size x="64" y="64"/>
 
548                                                   <Anchor point="TOPLEFT">
549                                                           <Offset>
550                                                                   <AbsDimension x="256" y="-256"/>
551                                                           </Offset>
552                                                   </Anchor>
  380                                                 <Anchor point="TOPLEFT" x="256" y="-256"/>
 
557                                                   <Anchor point="TOPLEFT">
558                                                           <Offset>
559                                                                   <AbsDimension x="24" y="-21"/>
560                                                           </Offset>
561                                                   </Anchor>
  385                                                 <Anchor point="TOPLEFT" x="24" y="-21"/>
 
566                                                   <Anchor point="TOPLEFT">
567                                                           <Offset>
568                                                                   <AbsDimension x="24" y="-69"/>
569                                                           </Offset>
570                                                   </Anchor>
  390                                                 <Anchor point="TOPLEFT" x="24" y="-69"/>
 
577                                   <Size>
578                                           <AbsDimension x="182" y="20"/>
579                                   </Size>
  397                                 <Size x="182" y="20"/>
 
581                                           <Anchor point="TOPLEFT">
582                                                   <Offset>
583                                                           <AbsDimension x="29" y="-35"/>
584                                                   </Offset>
585                                           </Anchor>
  399                                         <Anchor point="TOPLEFT" x="29" y="-35"/>
 
590                                                           <Size>
591                                                                   <AbsDimension x="12" y="29"/>
592                                                           </Size>
  404                                                         <Size x="12" y="29"/>
 
594                                                                   <Anchor point="TOPLEFT">
595                                                                           <Offset>
596                                                                                   <AbsDimension x="-11" y="0"/>
597                                                                           </Offset>
598                                                                   </Anchor>
  406                                                                 <Anchor point="TOPLEFT" x="-11" y="3"/>
 
603                                                           <Size>
604                                                                   <AbsDimension x="175" y="29"/>
605                                                           </Size>
  411                                                         <Size x="175" y="29"/>
 
612                                                           <Size>
613                                                                   <AbsDimension x="12" y="29"/>
614                                                           </Size>
  418                                                         <Size x="12" y="29"/>
 
  428                                                 local text = self:GetText();
  429                                                 text = string.gsub(text, "\"", "");
 
625                                                   MacroFrameSelectedMacroName:SetText(self:GetText());
  431                                                 MacroFrameSelectedMacroName:SetText(text);
 
637                                   <Size>
638                                           <AbsDimension x="296" y="195"/>
639                                   </Size>
  443                                 <Size x="296" y="195"/>
 
641                                           <Anchor point="TOPRIGHT" relativeTo="MacroPopupFrame" relativePoint="TOPRIGHT">
642                                                   <Offset>
643                                                           <AbsDimension x="-39" y="-67"/>
644                                                   </Offset>
645                                           </Anchor>
  445                                         <Anchor point="TOPRIGHT" relativeTo="MacroPopupFrame" relativePoint="TOPRIGHT" x="-39" y="-67"/>
 
655                                           <Anchor point="TOPLEFT">
656                                                   <Offset>
657                                                           <AbsDimension x="24" y="-85"/>
658                                                   </Offset>
659                                           </Anchor>
  455                                         <Anchor point="TOPLEFT" x="24" y="-85"/>
 
664                                           <Anchor point="LEFT" relativeTo="MacroPopupButton1" relativePoint="RIGHT">
665                                                   <Offset>
666                                                           <AbsDimension x="10" y="0"/>
667                                                   </Offset>
668                                           </Anchor>
  460                                         <Anchor point="LEFT" relativeTo="MacroPopupButton1" relativePoint="RIGHT" x="10" y="0"/>
 
673                                           <Anchor point="LEFT" relativeTo="MacroPopupButton2" relativePoint="RIGHT">
674                                                   <Offset>
675                                                           <AbsDimension x="10" y="0"/>
676                                                   </Offset>
677                                           </Anchor>
  465                                         <Anchor point="LEFT" relativeTo="MacroPopupButton2" relativePoint="RIGHT" x="10" y="0"/>
 
682                                           <Anchor point="LEFT" relativeTo="MacroPopupButton3" relativePoint="RIGHT">
683                                                   <Offset>
684                                                           <AbsDimension x="10" y="0"/>
685                                                   </Offset>
686                                           </Anchor>
  470                                         <Anchor point="LEFT" relativeTo="MacroPopupButton3" relativePoint="RIGHT" x="10" y="0"/>
 
691                                           <Anchor point="LEFT" relativeTo="MacroPopupButton4" relativePoint="RIGHT">
692                                                   <Offset>
693                                                           <AbsDimension x="10" y="0"/>
694                                                   </Offset>
695                                           </Anchor>
  475                                         <Anchor point="LEFT" relativeTo="MacroPopupButton4" relativePoint="RIGHT" x="10" y="0"/>
 
700                                           <Anchor point="TOPLEFT" relativeTo="MacroPopupButton1" relativePoint="BOTTOMLEFT">
701                                                   <Offset>
702                                                           <AbsDimension x="0" y="-8"/>
703                                                   </Offset>
704                                           </Anchor>
  480                                         <Anchor point="TOPLEFT" relativeTo="MacroPopupButton1" relativePoint="BOTTOMLEFT" x="0" y="-8"/>
 
709                                           <Anchor point="LEFT" relativeTo="MacroPopupButton6" relativePoint="RIGHT">
710                                                   <Offset>
711                                                           <AbsDimension x="10" y="0"/>
712                                                   </Offset>
713                                           </Anchor>
  485                                         <Anchor point="LEFT" relativeTo="MacroPopupButton6" relativePoint="RIGHT" x="10" y="0"/>
 
718                                           <Anchor point="LEFT" relativeTo="MacroPopupButton7" relativePoint="RIGHT">
719                                                   <Offset>
720                                                           <AbsDimension x="10" y="0"/>
721                                                   </Offset>
722                                           </Anchor>
  490                                         <Anchor point="LEFT" relativeTo="MacroPopupButton7" relativePoint="RIGHT" x="10" y="0"/>
 
727                                           <Anchor point="LEFT" relativeTo="MacroPopupButton8" relativePoint="RIGHT">
728                                                   <Offset>
729                                                           <AbsDimension x="10" y="0"/>
730                                                   </Offset>
731                                           </Anchor>
  495                                         <Anchor point="LEFT" relativeTo="MacroPopupButton8" relativePoint="RIGHT" x="10" y="0"/>
 
736                                           <Anchor point="LEFT" relativeTo="MacroPopupButton9" relativePoint="RIGHT">
737                                                   <Offset>
738                                                           <AbsDimension x="10" y="0"/>
739                                                   </Offset>
740                                           </Anchor>
  500                                         <Anchor point="LEFT" relativeTo="MacroPopupButton9" relativePoint="RIGHT" x="10" y="0"/>
 
745                                           <Anchor point="TOPLEFT" relativeTo="MacroPopupButton6" relativePoint="BOTTOMLEFT">
746                                                   <Offset>
747                                                           <AbsDimension x="0" y="-8"/>
748                                                   </Offset>
749                                           </Anchor>
  505                                         <Anchor point="TOPLEFT" relativeTo="MacroPopupButton6" relativePoint="BOTTOMLEFT" x="0" y="-8"/>
 
754                                           <Anchor point="LEFT" relativeTo="MacroPopupButton11" relativePoint="RIGHT">
755                                                   <Offset>
756                                                           <AbsDimension x="10" y="0"/>
757                                                   </Offset>
758                                           </Anchor>
  510                                         <Anchor point="LEFT" relativeTo="MacroPopupButton11" relativePoint="RIGHT" x="10" y="0"/>
 
763                                           <Anchor point="LEFT" relativeTo="MacroPopupButton12" relativePoint="RIGHT">
764                                                   <Offset>
765                                                           <AbsDimension x="10" y="0"/>
766                                                   </Offset>
767                                           </Anchor>
  515                                         <Anchor point="LEFT" relativeTo="MacroPopupButton12" relativePoint="RIGHT" x="10" y="0"/>
 
772                                           <Anchor point="LEFT" relativeTo="MacroPopupButton13" relativePoint="RIGHT">
773                                                   <Offset>
774                                                           <AbsDimension x="10" y="0"/>
775                                                   </Offset>
776                                           </Anchor>
  520                                         <Anchor point="LEFT" relativeTo="MacroPopupButton13" relativePoint="RIGHT" x="10" y="0"/>
 
781                                           <Anchor point="LEFT" relativeTo="MacroPopupButton14" relativePoint="RIGHT">
782                                                   <Offset>
783                                                           <AbsDimension x="10" y="0"/>
784                                                   </Offset>
785                                           </Anchor>
  525                                         <Anchor point="LEFT" relativeTo="MacroPopupButton14" relativePoint="RIGHT" x="10" y="0"/>
 
790                                           <Anchor point="TOPLEFT" relativeTo="MacroPopupButton11" relativePoint="BOTTOMLEFT">
791                                                   <Offset>
792                                                           <AbsDimension x="0" y="-8"/>
793                                                   </Offset>
794                                           </Anchor>
  530                                         <Anchor point="TOPLEFT" relativeTo="MacroPopupButton11" relativePoint="BOTTOMLEFT" x="0" y="-8"/>
 
799                                           <Anchor point="LEFT" relativeTo="MacroPopupButton16" relativePoint="RIGHT">
800                                                   <Offset>
801                                                           <AbsDimension x="10" y="0"/>
802                                                   </Offset>
803                                           </Anchor>
  535                                         <Anchor point="LEFT" relativeTo="MacroPopupButton16" relativePoint="RIGHT" x="10" y="0"/>
 
808                                           <Anchor point="LEFT" relativeTo="MacroPopupButton17" relativePoint="RIGHT">
809                                                   <Offset>
810                                                           <AbsDimension x="10" y="0"/>
811                                                   </Offset>
812                                           </Anchor>
  540                                         <Anchor point="LEFT" relativeTo="MacroPopupButton17" relativePoint="RIGHT" x="10" y="0"/>
 
817                                           <Anchor point="LEFT" relativeTo="MacroPopupButton18" relativePoint="RIGHT">
818                                                   <Offset>
819                                                           <AbsDimension x="10" y="0"/>
820                                                   </Offset>
821                                           </Anchor>
  545                                         <Anchor point="LEFT" relativeTo="MacroPopupButton18" relativePoint="RIGHT" x="10" y="0"/>
 
826                                           <Anchor point="LEFT" relativeTo="MacroPopupButton19" relativePoint="RIGHT">
827                                                   <Offset>
828                                                           <AbsDimension x="10" y="0"/>
829                                                   </Offset>
830                                           </Anchor>
  550                                         <Anchor point="LEFT" relativeTo="MacroPopupButton19" relativePoint="RIGHT" x="10" y="0"/>
 
834                                   <Size>
835                                           <AbsDimension x="78" y="22"/>
836                                   </Size>
  554                                 <Size x="78" y="22"/>
 
838                                           <Anchor point="BOTTOMRIGHT" relativeTo="MacroPopupFrame">
839                                                   <Offset>
840                                                           <AbsDimension x="-11" y="13"/>
841                                                   </Offset>
842                                           </Anchor>
  556                                         <Anchor point="BOTTOMRIGHT" relativeTo="MacroPopupFrame" x="-11" y="13"/>
 
852                                   <Size>
853                                           <AbsDimension x="78" y="22"/>
854                                   </Size>
  566                                 <Size x="78" y="22"/>
 
856                                           <Anchor point="RIGHT" relativeTo="MacroPopupCancelButton" relativePoint="LEFT">
857                                                   <Offset>
858                                                           <AbsDimension x="-2" y="0"/>
859                                                   </Offset>
860                                           </Anchor>
  568                                         <Anchor point="RIGHT" relativeTo="MacroPopupCancelButton" relativePoint="LEFT" x="-2" y="0"/>
   
File: AddOns\Blizzard_MovePad\Blizzard_MovePad.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_MovePad\Blizzard_MovePad.xml  
   
File: AddOns\Blizzard_RaidUI\Blizzard_RaidUI.lua  
184                   RaidFrameRaidBrowserButton_Update();
 
251           RaidFrameRaidBrowserButton_Update();
 
  525         if ( numRaidMembers > 0 ) then
  526                 RaidFrameAllAssistCheckButton:Show();
  527         else
  528                 RaidFrameAllAssistCheckButton:Hide();
  529         end
 
588                   ReadyCheck_Finish(_G["RaidGroupButton"..i.."ReadyCheck"], 1.5, RaidGroupFrame_Update);
  591                 ReadyCheck_Finish(_G["RaidGroupButton"..i.."ReadyCheck"], DEFAULT_READY_CHECK_STAY_TIME, 1.5, RaidGroupFrame_Update);
 
685                   ReadyCheck_Finish(_G[pulloutButton:GetName().."ReadyCheck"], 1.5, RaidPullout_ReadyCheckFinishFunc, pulloutButton);
  688                 ReadyCheck_Finish(_G[pulloutButton:GetName().."ReadyCheck"], DEFAULT_READY_CHECK_STAY_TIME, 1.5, RaidPullout_ReadyCheckFinishFunc, pulloutButton);
 
1510   function RaidFrameRaidBrowserButton_Update()
1511           if ( GetNumRaidMembers() > 0 ) then
1512                   RaidFrameRaidBrowserButton:Show();
1513           else   
1514                   RaidFrameRaidBrowserButton:Hide();
1515           end
1516   end
   
File: AddOns\Blizzard_RaidUI\Blizzard_RaidUI.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_RaidUI\Blizzard_RaidUI.xml  
5                   <Size>
6                           <AbsDimension x="18" y="18"/>
7                   </Size>
  5                 <Size x="18" y="18"/>
 
11                                           <Size>
12                                                   <AbsDimension x="40" y="40"/>
13                                           </Size>
  9                                         <Size x="40" y="40"/>
 
15                                                   <Anchor point="TOPLEFT">
16                                                           <Offset>
17                                                                   <AbsDimension x="0" y="0"/>
18                                                           </Offset>
19                                                   </Anchor>
  11                                                 <Anchor point="TOPLEFT" x="0" y="0"/>
 
25                                           <Size>
26                                                   <AbsDimension x="18" y="18"/>
27                                           </Size>
  17                                         <Size x="18" y="18"/>
 
29                                                   <Anchor point="LEFT">
30                                                           <Offset>
31                                                                   <AbsDimension x="2" y="-8"/>
32                                                           </Offset>
33                                                   </Anchor>
  19                                                 <Anchor point="LEFT" x="2" y="-8"/>
 
40                                           <Size>
41                                                   <AbsDimension x="24" y="12"/>
42                                           </Size>
  26                                         <Size x="24" y="12"/>
 
44                                                   <Anchor point="BOTTOMRIGHT" relativeTo="$parentIconTexture">
45                                                           <Offset>
46                                                                   <AbsDimension x="2" y="0"/>
47                                                           </Offset>
48                                                   </Anchor>
  28                                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parentIconTexture" x="2" y="0"/>
 
73                           <Size>
74                                   <AbsDimension x="18" y="18"/>
75                           </Size>
  53                         <Size x="18" y="18"/>
 
77                                   <Anchor point="TOP" relativeTo="$parentIconTexture">
78                                           <Offset>
79                                                   <AbsDimension x="0" y="0"/>
80                                           </Offset>
81                                   </Anchor>
  55                                 <Anchor point="TOP" relativeTo="$parentIconTexture" x="0" y="0"/>
 
86                   <Size>
87                           <AbsDimension x="16" y="16"/>
88                   </Size>
  60                 <Size x="16" y="16"/>
 
105                   <Size>
106                           <AbsDimension x="156" y="14"/>
107                   </Size>
  77                 <Size x="156" y="14"/>
 
111                                           <Size>
112                                                   <AbsDimension x="55" y="8"/>
113                                           </Size>
  81                                         <Size x="55" y="8"/>
 
115                                                   <Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT">
116                                                           <Offset>
117                                                                   <AbsDimension x="29" y="0"/>
118                                                           </Offset>
119                                                   </Anchor>
  83                                                 <Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT" x="29" y="0"/>
 
123                                           <Size>
124                                                   <AbsDimension x="18" y="8"/>
125                                           </Size>
  87                                         <Size x="18" y="8"/>
 
127                                                   <Anchor point="LEFT" relativeTo="$parentName" relativePoint="RIGHT">
128                                                           <Offset x="2" y="0"/>
129                                                   </Anchor>
  89                                                 <Anchor point="LEFT" relativeTo="$parentName" relativePoint="RIGHT" x="2" y="0"/>
 
133                                           <Size>
134                                                   <AbsDimension x="50" y="8"/>
135                                           </Size>
  93                                         <Size x="50" y="8"/>
 
137                                                   <Anchor point="LEFT" relativeTo="$parentLevel" relativePoint="RIGHT">
138                                                           <Offset x="2" y="0"/>
139                                                   </Anchor>
  95                                                 <Anchor point="LEFT" relativeTo="$parentLevel" relativePoint="RIGHT" x="2" y="0"/>
 
146                                   <Size>
147                                           <AbsDimension x="11" y="11"/>
148                                   </Size>
  102                                 <Size x="11" y="11"/>
 
150                                           <Anchor point="LEFT" relativeTo="$parent">
151                                                   <Offset x="2" y="0"/>
152                                           </Anchor>
  104                                         <Anchor point="LEFT" relativeTo="$parent" x="2" y="0"/>
 
176                                   <Size>
177                                           <AbsDimension x="11" y="11"/>
178                                   </Size>
  128                                 <Size x="11" y="11"/>
 
180                                           <Anchor point="LEFT" relativeTo="$parentRank" relativePoint="RIGHT">
181                                                   <Offset  x="0" y="0"/>
182                                           </Anchor>
  130                                         <Anchor point="LEFT" relativeTo="$parentRank" relativePoint="RIGHT"  x="0" y="0"/>
 
202                                   <Size>
203                                           <AbsDimension x="11" y="11"/>
204                                   </Size>
  150                                 <Size x="11" y="11"/>
 
206                                           <Anchor point="LEFT" relativeTo="$parentRole" relativePoint="RIGHT">
207                                                   <Offset>
208                                                           <AbsDimension x="0" y="0"/>
209                                                   </Offset>
210                                           </Anchor>
  152                                         <Anchor point="LEFT" relativeTo="$parentRole" relativePoint="RIGHT" x="0" y="0"/>
 
225                                   <Size>
226                                           <AbsDimension x="11" y="11"/>
227                                   </Size>
  167                                 <Size x="11" y="11"/>
 
229                                           <Anchor point="LEFT" relativeTo="$parentRank" relativePoint="RIGHT">
230                                                   <Offset  x="0" y="0"/>
231                                           </Anchor>
  169                                         <Anchor point="LEFT" relativeTo="$parentRank" relativePoint="RIGHT"  x="0" y="0"/>
 
300                   <Size>
301                           <AbsDimension x="156" y="14"/>
302                   </Size>
  238                 <Size x="156" y="14"/>
 
307                                                   <Anchor point="CENTER">
308                                                           <Offset>
309                                                                   <AbsDimension x="0" y="0"/>
310                                                           </Offset>
311                                                   </Anchor>
  243                                                 <Anchor point="CENTER" x="0" y="0"/>
 
321                   <Size>
322                           <AbsDimension x="162" y="80"/>
323                   </Size>
  253                 <Size x="162" y="80"/>
 
327                                           <Size>
328                                                   <AbsDimension x="162" y="80"/>
329                                           </Size>
  257                                         <Size x="162" y="80"/>
 
339                                   <Size>
340                                           <AbsDimension x="156" y="14"/>
341                                   </Size>
  267                                 <Size x="156" y="14"/>
 
343                                           <Anchor point="TOP">
344                                                   <Offset>
345                                                           <AbsDimension x="0" y="14"/>
346                                                   </Offset>
347                                           </Anchor>
  269                                         <Anchor point="TOP" x="0" y="14"/>
 
354                                           <Anchor point="TOPLEFT">
355                                                   <Offset>
356                                                           <AbsDimension x="3" y="-3"/>
357                                                   </Offset>
358                                           </Anchor>
  276                                         <Anchor point="TOPLEFT" x="3" y="-3"/>
 
363                                           <Anchor point="TOPLEFT" relativeTo="$parentSlot1" relativePoint="BOTTOMLEFT">
364                                                   <Offset>
365                                                           <AbsDimension x="0" y="-1"/>
366                                                   </Offset>
367                                           </Anchor>
  281                                         <Anchor point="TOPLEFT" relativeTo="$parentSlot1" relativePoint="BOTTOMLEFT" x="0" y="-1"/>
 
372                                           <Anchor point="TOPLEFT" relativeTo="$parentSlot2" relativePoint="BOTTOMLEFT">
373                                                   <Offset>
374                                                           <AbsDimension x="0" y="-1"/>
375                                                   </Offset>
376                                           </Anchor>
  286                                         <Anchor point="TOPLEFT" relativeTo="$parentSlot2" relativePoint="BOTTOMLEFT" x="0" y="-1"/>
 
381                                           <Anchor point="TOPLEFT" relativeTo="$parentSlot3" relativePoint="BOTTOMLEFT">
382                                                   <Offset>
383                                                           <AbsDimension x="0" y="-1"/>
384                                                   </Offset>
385                                           </Anchor>
  291                                         <Anchor point="TOPLEFT" relativeTo="$parentSlot3" relativePoint="BOTTOMLEFT" x="0" y="-1"/>
 
390                                           <Anchor point="TOPLEFT" relativeTo="$parentSlot4" relativePoint="BOTTOMLEFT">
391                                                   <Offset>
392                                                           <AbsDimension x="0" y="-1"/>
393                                                   </Offset>
394                                           </Anchor>
  296                                         <Anchor point="TOPLEFT" relativeTo="$parentSlot4" relativePoint="BOTTOMLEFT" x="0" y="-1"/>
 
405                   <Size>
406                           <AbsDimension x="12" y="12"/>
407                   </Size>
  307                 <Size x="12" y="12"/>
 
414                                           <Size>
415                                                   <AbsDimension x="13" y="13"/>
416                                           </Size>
  314                                         <Size x="13" y="13"/>
 
418                                                   <Anchor point="TOPLEFT">
419                                                           <Offset x="-1" y="1"/>
420                                                   </Anchor>
421                                                   <Anchor point="BOTTOMRIGHT">
422                                                           <Offset x="1" y="-1"/>
423                                                   </Anchor>
  316                                                 <Anchor point="TOPLEFT" x="-1" y="1"/>
  317                                                 <Anchor point="BOTTOMRIGHT" x="1" y="-1"/>
 
459                   <Size>
460                           <AbsDimension x="70" y="25"/>
461                   </Size>
  353                 <Size x="70" y="25"/>
 
465                                           <Size>
466                                                   <AbsDimension x="65" y="12"/>
467                                           </Size>
  357                                         <Size x="65" y="12"/>
 
469                                                   <Anchor point="TOPLEFT">
470                                                           <Offset>
471                                                                   <AbsDimension x="2" y="5"/>
472                                                           </Offset>
473                                                   </Anchor>
  359                                                 <Anchor point="TOPLEFT" x="2" y="5"/>
 
479                                           <Size>
480                                                   <AbsDimension x="8" y="8"/>
481                                           </Size>
  365                                         <Size x="8" y="8"/>
 
483                                                   <Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT">
484                                                           <Offset>
485                                                                   <AbsDimension x="-2" y="-5"/>
486                                                           </Offset>
487                                                   </Anchor>
  367                                                 <Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT" x="-2" y="-5"/>
 
491                                           <Size>
492                                                   <AbsDimension x="16" y="16"/>
493                                           </Size>
  371                                         <Size x="16" y="16"/>
 
495                                                   <Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT">
496                                                           <Offset>
497                                                                   <AbsDimension x="10" y="10"/>
498                                                           </Offset>
499                                                   </Anchor>
  373                                                 <Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT" x="10" y="10"/>
 
508                                           <Anchor point="TOPLEFT">
509                                                   <Offset>
510                                                           <AbsDimension x="1" y="-11"/>
511                                                   </Offset>
512                                           </Anchor>
  382                                         <Anchor point="TOPLEFT" x="1" y="-11"/>
 
522                                                           <Size>
523                                                                   <AbsDimension x="70" y="8"/>
524                                                           </Size>
  392                                                         <Size x="70" y="8"/>
 
526                                                                   <Anchor point="BOTTOMLEFT">
527                                                                           <Offset>
528                                                                                   <AbsDimension x="-1" y="-1"/>
529                                                                           </Offset>
530                                                                   </Anchor>
  394                                                                 <Anchor point="BOTTOMLEFT" x="-1" y="-1"/>
 
548                                           <Anchor point="TOP" relativeTo="$parentHealthBar" relativePoint="BOTTOM">
549                                                   <Offset>
550                                                           <AbsDimension x="0" y="-1"/>
551                                                   </Offset>
552                                           </Anchor>
  412                                         <Anchor point="TOP" relativeTo="$parentHealthBar" relativePoint="BOTTOM" x="0" y="-1"/>
 
562                                                           <Size>
563                                                                   <AbsDimension x="70" y="8"/>
564                                                           </Size>
  422                                                         <Size x="70" y="8"/>
 
566                                                                   <Anchor point="BOTTOMLEFT">
567                                                                           <Offset>
568                                                                                   <AbsDimension x="-1" y="-1"/>
569                                                                           </Offset>
570                                                                   </Anchor>
  424                                                                 <Anchor point="BOTTOMLEFT" x="-1" y="-1"/>
 
582                                           <Anchor point="TOP" relativeTo="$parentManaBar" relativePoint="BOTTOM">
583                                                   <Offset x="0" y="-3"/>
584                                           </Anchor>
  436                                         <Anchor point="TOP" relativeTo="$parentManaBar" relativePoint="BOTTOM" x="0" y="-3"/>
 
594                                                           <Size>
595                                                                   <AbsDimension x="70" y="16"/>
596                                                           </Size>
  446                                                         <Size x="70" y="16"/>
 
598                                                                   <Anchor point="TOPLEFT">
599                                                                           <Offset>
600                                                                                   <AbsDimension x="-1" y="1"/>
601                                                                           </Offset>
602                                                                   </Anchor>
  448                                                                 <Anchor point="TOPLEFT" x="-1" y="1"/>
 
611                                                                   <Anchor point="TOP">
612                                                                           <Offset x="0" y="0"/>
613                                                                   </Anchor>
  457                                                                 <Anchor point="TOP" x="0" y="0"/>
 
633                                   <Size>
634                                           <AbsDimension x="90" y="32"/>
635                                   </Size>
  477                                 <Size x="90" y="32"/>
 
637                                           <Anchor point="LEFT" relativePoint="RIGHT">
638                                                   <Offset>
639                                                           <AbsDimension x="6" y="-15"/>
640                                                   </Offset>
641                                           </Anchor>
  479                                         <Anchor point="LEFT" relativePoint="RIGHT" x="6" y="-15"/>
 
648                                                                   <Anchor point="LEFT">
649                                                                           <Offset x="-16" y="0"/>
650                                                                   </Anchor>
  486                                                                 <Anchor point="LEFT" x="-16" y="0"/>
 
681                                           <Anchor point="TOP" relativeTo="$parentTargetTargetFrame">
682                                                   <Offset x="0" y="-16"/>
683                                           </Anchor>
  517                                         <Anchor point="TOP" relativeTo="$parentTargetTargetFrame" x="0" y="-16"/>
 
695                                                                   <Anchor point="BOTTOMLEFT">
696                                                                           <Offset x="-1" y="0"/>
697                                                                   </Anchor>
  529                                                                 <Anchor point="BOTTOMLEFT" x="-1" y="0"/>
 
707                                                           <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
708                                                                   <Offset x="0" y="1"/>
709                                                           </Anchor>
  539                                                         <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" x="0" y="1"/>
 
752                                   <Size>
753                                           <AbsDimension x="16" y="16"/>
754                                   </Size>
  582                                 <Size x="16" y="16"/>
 
756                                           <Anchor point="TOPRIGHT" relativePoint="TOPLEFT">
757                                                   <Offset>
758                                                           <AbsDimension x="-5" y="6"/>
759                                                   </Offset>
760                                           </Anchor>
  584                                         <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" x="-5" y="6"/>
 
769                                   <Size>
770                                           <AbsDimension x="18" y="18"/>
771                                   </Size>
  593                                 <Size x="18" y="18"/>
 
773                                           <Anchor point="LEFT" relativePoint="RIGHT">
774                                                   <Offset>
775                                                           <AbsDimension x="8" y="0"/>
776                                                   </Offset>
777                                           </Anchor>
  595                                         <Anchor point="LEFT" relativePoint="RIGHT" x="8" y="0"/>
 
787                                           <Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
788                                                   <Offset>
789                                                           <AbsDimension x="8" y="4"/>
790                                                   </Offset>
791                                           </Anchor>
  605                                         <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="8" y="4"/>
 
796                                           <Anchor point="LEFT" relativeTo="$parentAura1" relativePoint="RIGHT">
797                                                   <Offset>
798                                                           <AbsDimension x="1" y="0"/>
799                                                   </Offset>
800                                           </Anchor>
  610                                         <Anchor point="LEFT" relativeTo="$parentAura1" relativePoint="RIGHT" x="1" y="0"/>
 
805                                           <Anchor point="TOPLEFT" relativeTo="$parentAura1" relativePoint="BOTTOMLEFT">
806                                                   <Offset>
807                                                           <AbsDimension x="0" y="-1"/>
808                                                   </Offset>
809                                           </Anchor>
  615                                         <Anchor point="TOPLEFT" relativeTo="$parentAura1" relativePoint="BOTTOMLEFT" x="0" y="-1"/>
 
814                                           <Anchor point="LEFT" relativeTo="$parentAura3" relativePoint="RIGHT">
815                                                   <Offset>
816                                                           <AbsDimension x="1" y="0"/>
817                                                   </Offset>
818                                           </Anchor>
  620                                         <Anchor point="LEFT" relativeTo="$parentAura3" relativePoint="RIGHT" x="1" y="0"/>
 
839                   <Size>
840                           <AbsDimension x="92" y="10"/>
841                   </Size>
  641                 <Size x="92" y="10"/>
 
843                           <Anchor point="CENTER">
844                                   <Offset>
845                                           <AbsDimension x="0" y="0"/>
846                                   </Offset>
847                           </Anchor>
  643                         <Anchor point="CENTER" x="0" y="0"/>
 
853                                                   <Anchor point="BOTTOM" relativePoint="TOP">
854                                                           <Offset>
855                                                                   <AbsDimension x="0" y="0"/>
856                                                           </Offset>
857                                                   </Anchor>
  649                                                 <Anchor point="BOTTOM" relativePoint="TOP" x="0" y="0"/>
 
865                                           <Anchor point="TOP">
866                                                   <Offset>
867                                                           <AbsDimension x="0" y="0"/>
868                                                   </Offset>
869                                           </Anchor>
  657                                         <Anchor point="TOP" x="0" y="0"/>
 
935           <Button name="RaidFrameRaidBrowserButton" inherits="UIPanelButtonTemplate" parent="RaidFrame" text="LOOKING_FOR_RAID">
936                   <Size>
937                           <AbsDimension x="90" y="21"/>
938                   </Size>
  723         <CheckButton name="RaidFrameAllAssistCheckButton" parent="RaidFrame" motionScriptsWhileDisabled="true" inherits="UICheckButtonTemplate">
  724                 <Size x="24" y="24"/>
 
940                           <Anchor point="TOPLEFT">
941                                   <Offset>
942                                           <AbsDimension x="71" y="-37"/>
943                                   </Offset>
944                           </Anchor>
  726                         <Anchor point="TOPLEFT" x="58" y="-23"/>
 
  728                 <HitRectInsets>
  729                         <AbsInset left="0" right="-30" top="0" bottom="0"/>
  730                 </HitRectInsets>
 
  732                         <OnLoad>
  733                                 _G[self:GetName().."Text"]:SetText(ALL_ASSIST_LABEL);
  734                                 self:RegisterEvent("RAID_ROSTER_UPDATE");
  735                                 self:RegisterEvent("PARTY_LEADER_CHANGED");
  736                         </OnLoad>
  737                         <OnEvent>
  738                                 self:SetChecked(IsEveryoneAssistant());
  739                                 if ( IsRaidLeader() ) then
  740                                         self:Enable();
  741                                         self.text:SetFontObject(GameFontNormalSmall);
  742                                 else
  743                                         self:Disable();
  744                                         self.text:SetFontObject(GameFontDisableSmall);
  745                                 end
  746                         </OnEvent>
 
948                                   ShowUIPanel(LFRParentFrame);
  748                                 SetEveryoneIsAssistant(self:GetChecked());     
 
  750                         <OnEnter>
  751                                 GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
  752                                 GameTooltip:SetText(ALL_ASSIST_DESCRIPTION, nil, nil, nil, nil, true);
  753                                 if ( not self:IsEnabled() ) then
  754                                         GameTooltip:AddLine(ALL_ASSIST_NOT_LEADER_ERROR, RED_FONT_COLOR.r, RED_FONT_COLOR.g, RED_FONT_COLOR.b, 1);
  755                                 end
  756                                 GameTooltip:Show();
  757                         </OnEnter>
  758                         <OnLeave function="GameTooltip_Hide"/>
 
951                   <NormalFont style="GameFontNormalSmall"/>
952                   <HighlightFont style="GameFontHighlightSmall"/>
953                   <DisabledFont style="GameFontDisableSmall"/>
954           </Button>
  760         </CheckButton>
 
956                   <Size>
957                           <AbsDimension x="90" y="21"/>
958                   </Size>
  762                 <Size x="90" y="21"/>
 
960                           <Anchor point="LEFT" relativeTo="RaidFrameRaidBrowserButton" relativePoint="RIGHT">
961                                   <Offset>
962                                           <AbsDimension x="2" y="0"/>
963                                   </Offset>
964                           </Anchor>
  764                         <Anchor point="TOPLEFT" relativeTo="RaidFrameAllAssistCheckButton" relativePoint="TOPRIGHT" x="60" y="-1"/>
 
978                           <Anchor point="BOTTOMLEFT" relativeTo="RaidFrame" relativePoint="BOTTOMRIGHT">
979                                   <Offset>
980                                           <AbsDimension x="-36" y="95"/>
981                                   </Offset>
982                           </Anchor>
  778                         <Anchor point="BOTTOMLEFT" relativeTo="RaidFrame" relativePoint="BOTTOMRIGHT" x="-2" y="20"/>
 
987                           <Anchor point="BOTTOM" relativeTo="RaidClassButton13" relativePoint="TOP">
988                                   <Offset>
989                                           <AbsDimension x="0" y="12"/>
990                                   </Offset>
991                           </Anchor>
  783                         <Anchor point="BOTTOM" relativeTo="RaidClassButton13" relativePoint="TOP" x="0" y="12"/>
 
996                           <Anchor point="BOTTOM" relativeTo="RaidClassButton12" relativePoint="TOP">
997                                   <Offset>
998                                           <AbsDimension x="0" y="12"/>
999                                   </Offset>
1000                           </Anchor>
  788                         <Anchor point="BOTTOM" relativeTo="RaidClassButton12" relativePoint="TOP" x="0" y="12"/>
 
1005                           <Anchor point="BOTTOM" relativeTo="RaidClassButton11" relativePoint="TOP">
1006                                   <Offset>
1007                                           <AbsDimension x="0" y="12"/>
1008                                   </Offset>
1009                           </Anchor>
  793                         <Anchor point="BOTTOM" relativeTo="RaidClassButton11" relativePoint="TOP" x="0" y="12"/>
 
1014                           <Anchor point="BOTTOM" relativeTo="RaidClassButton10" relativePoint="TOP">
1015                                   <Offset>
1016                                           <AbsDimension x="0" y="12"/>
1017                                   </Offset>
1018                           </Anchor>
  798                         <Anchor point="BOTTOM" relativeTo="RaidClassButton10" relativePoint="TOP" x="0" y="12"/>
 
1023                           <Anchor point="BOTTOM" relativeTo="RaidClassButton9" relativePoint="TOP">
1024                                   <Offset>
1025                                           <AbsDimension x="0" y="12"/>
1026                                   </Offset>
1027                           </Anchor>
  803                         <Anchor point="BOTTOM" relativeTo="RaidClassButton9" relativePoint="TOP" x="0" y="12"/>
 
1032                           <Anchor point="BOTTOM" relativeTo="RaidClassButton8" relativePoint="TOP">
1033                                   <Offset>
1034                                           <AbsDimension x="0" y="12"/>
1035                                   </Offset>
1036                           </Anchor>
  808                         <Anchor point="BOTTOM" relativeTo="RaidClassButton8" relativePoint="TOP" x="0" y="12"/>
 
1041                           <Anchor point="BOTTOM" relativeTo="RaidClassButton7" relativePoint="TOP">
1042                                   <Offset>
1043                                           <AbsDimension x="0" y="12"/>
1044                                   </Offset>
1045                           </Anchor>
  813                         <Anchor point="BOTTOM" relativeTo="RaidClassButton7" relativePoint="TOP" x="0" y="12"/>
 
1050                           <Anchor point="BOTTOM" relativeTo="RaidClassButton6" relativePoint="TOP">
1051                                   <Offset>
1052                                           <AbsDimension x="0" y="12"/>
1053                                   </Offset>
1054                           </Anchor>
  818                         <Anchor point="BOTTOM" relativeTo="RaidClassButton6" relativePoint="TOP" x="0" y="12"/>
 
1059                           <Anchor point="BOTTOM" relativeTo="RaidClassButton5" relativePoint="TOP">
1060                                   <Offset>
1061                                           <AbsDimension x="0" y="12"/>
1062                                   </Offset>
1063                           </Anchor>
  823                         <Anchor point="BOTTOM" relativeTo="RaidClassButton5" relativePoint="TOP" x="0" y="12"/>
 
1068                           <Anchor point="BOTTOM" relativeTo="RaidClassButton4" relativePoint="TOP">
1069                                   <Offset>
1070                                           <AbsDimension x="0" y="12"/>
1071                                   </Offset>
1072                           </Anchor>
  828                         <Anchor point="BOTTOM" relativeTo="RaidClassButton4" relativePoint="TOP" x="0" y="12"/>
 
1077                           <Anchor point="BOTTOM" relativeTo="RaidClassButton3" relativePoint="TOP">
1078                                   <Offset>
1079                                           <AbsDimension x="0" y="12"/>
1080                                   </Offset>
1081                           </Anchor>
  833                         <Anchor point="BOTTOM" relativeTo="RaidClassButton3" relativePoint="TOP" x="0" y="12"/>
 
1086                           <Anchor point="BOTTOM" relativeTo="RaidClassButton2" relativePoint="TOP">
1087                                   <Offset>
1088                                           <AbsDimension x="0" y="12"/>
1089                                   </Offset>
1090                           </Anchor>
  838                         <Anchor point="BOTTOM" relativeTo="RaidClassButton2" relativePoint="TOP" x="0" y="12"/>
 
1095                           <Anchor point="TOPLEFT">
1096                                   <Offset>
1097                                           <AbsDimension x="16" y="-70"/>
1098                                   </Offset>
1099                           </Anchor>
  843                         <Anchor point="TOPLEFT" x="3" y="-58"/>
 
1104                           <Anchor point="LEFT" relativeTo="RaidGroup1" relativePoint="RIGHT">
1105                                   <Offset>
1106                                           <AbsDimension x="3" y="0"/>
1107                                   </Offset>
1108                           </Anchor>
  848                         <Anchor point="LEFT" relativeTo="RaidGroup1" relativePoint="RIGHT" x="3" y="0"/>
 
1113                           <Anchor point="TOP" relativeTo="RaidGroup1" relativePoint="BOTTOM">
1114                                   <Offset>
1115                                           <AbsDimension x="0" y="-14"/>
1116                                   </Offset>
1117                           </Anchor>
  853                         <Anchor point="TOP" relativeTo="RaidGroup1" relativePoint="BOTTOM" x="0" y="-14"/>
 
1122                           <Anchor point="LEFT" relativeTo="RaidGroup3" relativePoint="RIGHT">
1123                                   <Offset>
1124                                           <AbsDimension x="3" y="0"/>
1125                                   </Offset>
1126                           </Anchor>
  858                         <Anchor point="LEFT" relativeTo="RaidGroup3" relativePoint="RIGHT" x="3" y="0"/>
 
1131                           <Anchor point="TOP" relativeTo="RaidGroup3" relativePoint="BOTTOM">
1132                                   <Offset>
1133                                           <AbsDimension x="0" y="-14"/>
1134                                   </Offset>
1135                           </Anchor>
  863                         <Anchor point="TOP" relativeTo="RaidGroup3" relativePoint="BOTTOM" x="0" y="-14"/>
 
1140                           <Anchor point="LEFT" relativeTo="RaidGroup5" relativePoint="RIGHT">
1141                                   <Offset>
1142                                           <AbsDimension x="3" y="0"/>
1143                                   </Offset>
1144                           </Anchor>
  868                         <Anchor point="LEFT" relativeTo="RaidGroup5" relativePoint="RIGHT" x="3" y="0"/>
 
1149                           <Anchor point="TOP" relativeTo="RaidGroup5" relativePoint="BOTTOM">
1150                                   <Offset>
1151                                           <AbsDimension x="0" y="-14"/>
1152                                   </Offset>
1153                           </Anchor>
  873                         <Anchor point="TOP" relativeTo="RaidGroup5" relativePoint="BOTTOM" x="0" y="-14"/>
 
1158                           <Anchor point="LEFT" relativeTo="RaidGroup7" relativePoint="RIGHT">
1159                                   <Offset>
1160                                           <AbsDimension x="3" y="0"/>
1161                                   </Offset>
1162                           </Anchor>
  878                         <Anchor point="LEFT" relativeTo="RaidGroup7" relativePoint="RIGHT" x="3" y="0"/>
   
File: AddOns\Blizzard_ReforgingUI\Blizzard_ReforgingUI.lua  
25           UIDropDownMenu_SetWidth(ReforgingFrameFilterOldStat, 135);
26           UIDropDownMenu_SetWidth(ReforgingFrameFilterNewStat, 135);
27           UIDropDownMenu_JustifyText(ReforgingFrameFilterOldStat, "LEFT");
28           UIDropDownMenu_JustifyText(ReforgingFrameFilterNewStat, "LEFT");
29           ReforgingFrameInset:SetPoint("BOTTOMRIGHT", ReforgingFrameBottomInset, "TOPRIGHT", 0, 4);
  24  
  25         ReforgingFrameTopTileStreaks:Hide();
  26         ReforgingFrameTitleBg:SetDrawLayer("BACKGROUND", -1);
 
  28         ReforgingFrameBg:Hide();
  29         ReforgingFrameRestoreMessage:SetShadowOffset(0, 0);
 
33           UIDropDownMenu_Initialize(ReforgingFrameFilterOldStat, ReforgeFrame_FilterOldStat_Initialize);
34           UIDropDownMenu_Initialize(ReforgingFrameFilterNewStat, ReforgeFrame_FilterNewStat_Initialize);
 
  37         PlaySound("UI_EtherealWindow_Open");
 
  43         PlaySound("UI_EtherealWindow_Close");
 
52                   UIDropDownMenu_SetText(ReforgingFrameFilterOldStat, REFORGE_OLD_FILTER_TEXT);
53                   UIDropDownMenu_SetText(ReforgingFrameFilterNewStat, GRAY_FONT_COLOR_CODE..REFORGE_NEW_FILTER_TEXT);
54                   UIDropDownMenu_DisableDropDown(ReforgingFrameFilterNewStat);
55                   ReforgingFrameBottomRedText:SetText("");
56                   ReforgingFrameBottomGreenText:SetText("");
 
61                   ReforgingFrameBottomGreenBg:Hide();
62                   ReforgingFrameBottomRedBg:Hide();
  54                 ReforgeFrame_OldStat_Initialize();
 
76                           self.topInset.invisButton.glow.reforgeAnim:Play();
  67                         self.glow.reforgeAnim:Play();
 
83           UIDropDownMenu_SetText(ReforgingFrameFilterOldStat, REFORGE_OLD_FILTER_TEXT);
84           UIDropDownMenu_SetText(ReforgingFrameFilterNewStat, GRAY_FONT_COLOR_CODE..REFORGE_NEW_FILTER_TEXT);
85           UIDropDownMenu_DisableDropDown(ReforgingFrameFilterNewStat);
86           ReforgingFrameBottomRedText:SetText("");
87           ReforgingFrameBottomGreenText:SetText("");
 
92           ReforgingFrameBottomGreenBg:Hide();
93           ReforgingFrameBottomRedBg:Hide();
  78         ReforgeFrame_OldStat_Initialize();
 
103           local leftStat = _G["ReforgingFrameLeftStat1"];
104           local rightStat = _G["ReforgingFrameRightStat1"];
105           local index = 1;
106           while leftStat and rightStat do -- this should alwasy be syncd
107                   leftStat:Hide();
108                   rightStat:Hide();
109                   index  = index+1
110                   leftStat , rightStat = ReforgingFrame_GetStatRow(index);
111           end
112           ReforgingFrameStatHelpText:Hide();
  87         ReforgingFrameReceiptBG:Hide();
  88         ReforgingFrameRestoreMessage:Hide();
  89         ReforgingFrameLines:Show();
 
  100                 ReforgingFrameMissingFadeOut:Hide();
 
137                   local srcTextColor = NORMAL_FONT_COLOR_CODE;
138                   local destTextColor = RED_FONT_COLOR_CODE;
  117                 if restoreMode then
  118                         ReforgingFrameReceiptBG:Show();
  119                         ReforgingFrameRestoreMessage:Show();
  120                         ReforgingFrameLines:Hide();
  121                         MoneyFrame_Update(ReforgingFrameMoneyFrame, 0);
  122                         ReforgingFrameRestoreButton:Enable();
  123                         ReforgingFrameTitleTextRight:SetText(REFORGE_RESTORE);
  124                         HideStats();
 
145                           if restoreMode then
146                                   leftStat , rightStat = rightStat, leftStat;
147                                   srcTextColor = GREEN_FONT_COLOR_CODE;
148                                   destTextColor = GREEN_FONT_COLOR_CODE;
149                           end
 
  133                                 rightStat:Show();
 
  135                                 rightStat.button:Hide();
  136                                 leftStat.button:Hide();
 
153                           if statID == ReforgingFrame.srcStat then
154                                   leftStat.text:SetText(srcTextColor.."+"..statValue.." ".. name);
155                           else
156                                   leftStat.text:SetText("+"..statValue.." ".. name);
157                           end
  138                                 if statID == ReforgingFrame.srcStat then --this stat will be restored
  139                                         rightStat.text:SetText(GREEN_FONT_COLOR_CODE.."+"..statValue.." ".. name);
 
159                           if ReforgingFrame.destStat then
160                                   rightStat:Show();
161                                   if statID == ReforgingFrame.srcStat then
162                                           rightStat.text:SetText(destTextColor.."+"..(statValue-ReforgingFrame.srcValue).." ".. name);
  140                                         leftStat.text:SetText(RED_FONT_COLOR_CODE.."+"..(statValue-ReforgingFrame.srcValue).." "..name.." ("..statValue..")");
 
  143                                         leftStat.text:SetText("+"..statValue.." "..name);
 
166                           end
 
170                   if restoreMode then
171                           ReforgingFrameInset:SetPoint("TOPLEFT", ReforgingFrameTopInset, "BOTTOMLEFT", 0, -3);
172                           ReforgingFrameFilterOldStat:Hide();
173                           ReforgingFrameFilterNewStat:Hide();
174                           MoneyFrame_Update(ReforgingFrameMoneyFrame, 0);
175                           ReforgingFrameRestoreButton:Enable();
176                           ReforgingFrameTitleTextRight:SetText(REFORGE_RESTORE);
 
180                                   leftStat.text:SetText(RED_FONT_COLOR_CODE.."+"..ReforgingFrame.destValue.." ".. ReforgingFrame.destName);
  151                                 leftStat.button:Hide();
  152                                 leftStat.text:SetText(GREEN_FONT_COLOR_CODE.."+"..ReforgingFrame.destValue.." ".. ReforgingFrame.destName);
 
182                           ReforgingFrameBottomGreenText:SetText("+"..ReforgingFrame.srcValue.." "..ReforgingFrame.srcName);
183                           ReforgingFrameBottomRedText:SetText("-"..ReforgingFrame.destValue.." "..ReforgingFrame.destName);
184                           ReforgingFrameBottomRedBg:Show();
185                           ReforgingFrameBottomGreenBg:Show();
  154                        
 
187                           ReforgingFrameInset:SetPoint("TOPLEFT", ReforgingFrameTopInset, "BOTTOMLEFT", 0, -45);
188                           ReforgingFrameFilterOldStat:Show();
189                           ReforgingFrameFilterNewStat:Show();
 
205                                           rightStat.text:SetText(GREEN_FONT_COLOR_CODE.."+"..ReforgingFrame.destValue.." ".. ReforgingFrame.destName);
 
207                           elseif not ReforgingFrame.destStat then
208                                   ReforgingFrameBottomGreenText:SetText("");
209                                   ReforgingFrameStatHelpText:Show();
 
213           else  -- There is no items so hide elements
214                   ReforgingFrameInset:SetPoint("TOPLEFT", ReforgingFrameTopInset, "BOTTOMLEFT", 0, -3);
  176         else  -- There is no item so hide elements
 
222                   ReforgingFrameFilterOldStat:Hide();
223                   ReforgingFrameFilterNewStat:Hide();
 
225                   ReforgingFrameBottomGreenText:SetText("");
226                   ReforgingFrameBottomRedText:SetText("");
227                   ReforgingFrameBottomGreenBg:Hide();
228                   ReforgingFrameBottomRedBg:Hide();
 
  187                 ReforgingFrameMissingFadeOut:Show();
  188                 HideStats();
 
  193 function HideStats()
  194         local index = 1;
  195         local leftStat , rightStat = ReforgingFrame_GetStatRow(index);
  196         while leftStat and rightStat do -- this should always be syncd
  197                 leftStat:Hide();
  198                 rightStat:Hide();
  199                 index  = index + 1;
  200                 leftStat , rightStat = ReforgingFrame_GetStatRow(index);
  201         end
  202 end
 
263                   leftStat = CreateFrame("FRAME", "ReforgingFrameLeftStat"..index, ReforgingFrame, "ReforgingStatTemplate");
  232                 leftStat = CreateFrame("CHECKBUTTON", "ReforgingFrameLeftStat"..index, ReforgingFrame, "ReforgingStatTemplate");
 
265                   rightStat = CreateFrame("FRAME", "ReforgingFrameRightStat"..index, ReforgingFrame, "ReforgingStatTemplate");
  234                 rightStat = CreateFrame("CHECKBUTTON", "ReforgingFrameRightStat"..index, ReforgingFrame, "ReforgingStatTemplate");
 
268                           leftStat.Bg:Hide();
269                           rightStat.Bg:Hide();
  237                         leftStat.Bg:Show();
  238                         rightStat.Bg:Show();
 
279   ------------- Dropdown menu action ---------------
  247 ------------- Stat Changing Goodness ----------------------
 
  249 function Stat_SetButtonChecked(self, checked)
  250         self:SetChecked(checked);
  251         if ( self:IsEnabled() ) then
  252                 if (checked) then
  253                         self.button.disableTex:Hide();
  254                         self.button.normalTex:Show();
  255                         self.button.checkedTex:Show();
  256                 else
  257                         self.button.disableTex:Hide();
  258                         self.button.normalTex:Show();
  259                         self.button.checkedTex:Hide();
  260                 end
  261         end
  262 end
 
  264 function Stat_OnClick(self)
  265         if (not self.button:IsShown()) then
  266                 Stat_SetButtonChecked(self, false);
  267                 return;
  268         end
 
282   function ReforgeFrame_FilterOldStat_Set(self, arg1)
283           local name, stat, value = arg1[1], arg1[2], arg1[3];
  270         if (self.isOld) then -- current stat was selected
  271                 local name, stat, value, currValue = self.info[1], self.info[2], self.info[3], self.info[4];
 
  273                 if (not self:GetChecked()) then
  274                         ReforgingFrame.srcStat = nil;
  275                         ReforgingFrame.srcValue = nil;
  276                         self.text:SetText("+"..currValue.." "..name);
  277                         ReforgeFrame_NewStat_Initialize(true, stat, value);
  278                         ReforgingFrame_Update(ReforgingFrame);
  279                         return;
  280                 end
 
287           UIDropDownMenu_EnableDropDown(ReforgingFrameFilterNewStat);
  284                 ReforgingFrame.destStat = nil;
  285                 ReforgingFrame.destValue = nil;
 
288           UIDropDownMenu_SetText(ReforgingFrameFilterOldStat, "-"..value.." "..name);
  287                 local index = 1;
  288                 local leftStat, rightStat = ReforgingFrame_GetStatRow(index, false);
  289                 local rightSelected = nil;
  290                 while (leftStat and rightStat) do
  291                         if (leftStat:IsShown()) then
  292                                 local lname, lstat, lcurrValue = leftStat.info[1], leftStat.info[2], leftStat.info[4]
  293                                 if  (lstat ~= stat) then
  294                                         Stat_SetButtonChecked(leftStat, false);
  295                                         leftStat.text:SetText("+"..lcurrValue.." "..lname);
  296                                 end
  297                         end
  298                         if (rightStat:IsShown() and rightStat:GetChecked()) then
  299                                 rightSelected = rightStat;
  300                         end
  301                         index = index + 1;
  302                         leftStat, rightStat = ReforgingFrame_GetStatRow(index, false);
  303                 end
 
  305                 self.text:SetText(RED_FONT_COLOR_CODE.."+"..(currValue-value).." "..name.." ("..currValue..")");
 
  307                 ReforgeFrame_NewStat_Initialize()
  308                 -- if they already had a reforge stat selected, keep it selected
  309                 if (rightSelected) then
  310                         Stat_SetButtonChecked(rightSelected, true);
  311                         rightSelected:Click();
  312                 end
  313         else -- reforge stat was selected
 
  315                 if (not ReforgingFrame.srcStat) then
  316                         Stat_SetButtonChecked(self, false);
  317                         return;
  318                 end
 
  320                 local name, stat, value, reforgeID = self.info[1], self.info[2], self.info[3], self.info[4];
 
  322                 if (not self:GetChecked()) then
 
291           UIDropDownMenu_SetText(ReforgingFrameFilterNewStat, REFORGE_NEW_FILTER_TEXT);
292           ReforgingFrameBottomRedText:SetText("-"..value.." "..name);
293           ReforgingFrameBottomRedBg:Show();
  325                         ReforgingFrame.destName = nil;
  326                         ReforgingFrame.reforgeID = nil;
  327                         self.text:SetText("+"..value.." "..name);
 
  329                         return;
 
299   function ReforgeFrame_FilterNewStat_Set(self, arg1)
300           local name, stat, value, reforgeID = arg1[1], arg1[2], arg1[3], arg1[4];
 
306           UIDropDownMenu_SetText(ReforgingFrameFilterNewStat, "+"..value.." "..name);
307           ReforgingFrameBottomGreenText:SetText("+"..value.." "..name);          
308           ReforgingFrameBottomGreenBg:Show();
  337                 local index = 1;
  338                 local _, rightStat = ReforgingFrame_GetStatRow(index, false);
  339                 while (rightStat and rightStat:IsShown()) do
  340                         local rname, rstat, rvalue = rightStat.info[1], rightStat.info[2], rightStat.info[3]
  341                         if  (rstat ~= stat) then
  342                                 Stat_SetButtonChecked(rightStat, false);
  343                                 rightStat.text:SetText("+"..rvalue.." "..rname);
  344                         end
  345                         index = index + 1;
  346                         _, rightStat = ReforgingFrame_GetStatRow(index, false);
  347                 end
 
  349                 self.text:SetText(GREEN_FONT_COLOR_CODE.."+"..value.." "..name);
  350         end
 
314   function ReforgeFrame_FilterOldStat_Initialize()
  356 function ReforgeFrame_OldStat_Initialize()
 
316           local stats = {GetSourceReforgeStats()};
317           local info = UIDropDownMenu_CreateInfo();
  358         HideStats();
  359         local stats = {GetReforgeItemStats()};
  360         local reforgeStats = {GetSourceReforgeStats()};
  361         local index = 1;
  362         local leftStat;
  363         local newStatsSet = false;
  364         local numReforgable = 0;
  365         local lastStat = nil;
 
  368                 leftStat, _ = ReforgingFrame_GetStatRow(index, true);
 
  370                 local currValue = value;
  371                 local reforgable;
  372                 for j=1, #reforgeStats, 3 do
  373                         local rname, rstat, rvalue = reforgeStats[j], reforgeStats[j+1], reforgeStats[j+2];
  374                         if (rstat == stat) then
  375                                 reforgable = true;
  376                                 value = rvalue;
  377                                 numReforgable = numReforgable + 1;
  378                                 lastStat = leftStat;
  379                         end
  380                 end
 
  382                 if (reforgable) then
  383                         leftStat.button:Show();
  384                         if (not newStatsSet) then
  385                                 ReforgeFrame_NewStat_Initialize(true, stat, value);
  386                                 newStatsSet = true;
  387                         end
  388                 else
  389                         leftStat.button:Hide();
  390                 end
 
320                   info.text = "-"..value.." "..name;
321                   info.arg1 = {name, stat, value};
322                   info.checked = (stat == ReforgingFrame.srcStat);
323                   info.func = ReforgeFrame_FilterOldStat_Set;
324                   UIDropDownMenu_AddButton(info);
  392                 leftStat.reforgable = reforgable;
  393                 leftStat.text:SetText("+"..currValue.." "..name);
  394                 leftStat.info = {name, stat, value, currValue};
  395                 leftStat.isOld = true;
  396                 leftStat:Show();
 
  398                 index = index + 1;
 
  401         -- if there is only one reforgable stat, select it automatically
  402         if (numReforgable == 1) then
  403                 lastStat:Click();
 
  405 end
 
329    
330   function ReforgeFrame_FilterNewStat_Initialize()
  408 --[[
  409 Reset the possible reforge stats
  410 noneSelected flag is true if a stat to reduce hasn't been selected yet, meaning
  411 we want to show the reforge stat names, but not the value you could add
  412 ]]
  413 function ReforgeFrame_NewStat_Initialize(noneSelected, stat, value)
 
332           if not ReforgingFrame.srcStat or not ReforgingFrame.srcValue then
  415         if not noneSelected and (not ReforgingFrame.srcStat or not ReforgingFrame.srcValue) then
 
336           local stats = {GetDestinationReforgeStats(ReforgingFrame.srcStat, ReforgingFrame.srcValue)};   
337           local info = UIDropDownMenu_CreateInfo();
  419         local stats;
  420         if (noneSelected) then
  421                 stats = {GetDestinationReforgeStats(stat, value)};
  422         else
  423                 stats = {GetDestinationReforgeStats(ReforgingFrame.srcStat, ReforgingFrame.srcValue)};
  424         end
 
  426         ReforgingFrame.destStat = nil;
  427         ReforgingFrame.destValue = nil;
  428         ReforgingFrame.destName = nil;
  429         ReforgingFrame.reforgeID = nil;
  430         local index = 1;
  431         local rightStat;
 
  434                 _, rightStat = ReforgingFrame_GetStatRow(index, true);
 
340                   info.text = "+"..value.." "..name;
341                   info.arg1 = {name, stat, value, reforgeID};
342                   info.checked = (stat == ReforgingFrame.destStat);
343                   info.func =     ReforgeFrame_FilterNewStat_Set;
344                   UIDropDownMenu_AddButton(info);
  436                 if (noneSelected) then
  437                         rightStat.text:SetText(GRAY_FONT_COLOR_CODE.."+0"..FONT_COLOR_CODE_CLOSE.." "..name);
  438                         rightStat:Disable();
  439                         rightStat.button:SetAlpha(.5)
  440                 else
  441                         rightStat.text:SetText("+"..ReforgingFrame.srcValue.." "..name);
  442                         rightStat:Enable();
  443                         rightStat.button:SetAlpha(1)
  444                 end
  445                 rightStat.info = {name, stat, value, reforgeID};
  446                 rightStat.button:Show();
  447                 Stat_SetButtonChecked(rightStat, false);
  448                 rightStat:Show();
  449                
  450                 index = index + 1;
   
File: AddOns\Blizzard_ReforgingUI\Blizzard_ReforgingUI.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_ReforgingUI\Blizzard_ReforgingUI.xml  
29           <Frame name="ReforgingStatTemplate" virtual="true">
30                   <Size x="157" y="15"/>
  60         <CheckButton name="ReforgingStatTemplate" motionScriptsWhileDisabled="true" virtual="true">
  61                 <Size x="178" y="15"/>
 
33                                   <FontString inherits="GameFontNormal" justifyH="LEFT" parentKey="text" >
34                                           <Size x="140" y="12"/>
  64                                 <FontString name="$parentText" inherits="GameFontNormal" justifyH="LEFT" parentKey="text" >
  65                                         <Size x="150" y="12"/>
 
36                                                   <Anchor point="LEFT" x="5" y="0"/>
  67                                                 <Anchor point="LEFT" x="20" y="0"/>
 
42                                   <Texture  name="$parentBG" parentKey="Bg" >
  73                                 <Texture  name="$parentBG" parentKey="Bg" hidden="true">
 
47                                           <Color r="1" g="1" b="1" a="0.03"/>
  78                                         <Color r="1" g="1" b="1" a="0.15"/>
 
  82                 <Frames>
  83                         <Frame parentKey="button">
  84                                 <Size x="15" y="15"/>
  85                                 <Anchors>
  86                                         <Anchor point="RIGHT" relativeTo="$parentText" relativePoint="LEFT" x="-3"/>
  87                                 </Anchors>
  88                                 <Layers>
  89                                         <Layer level="ARTWORK">
  90                                                 <Texture file="Interface\Reforging\Reforge-Texture" parentKey="normalTex">
  91                                                         <Size x="12" y="12"/>  
  92                                                         <TexCoords left="0.00195313" right="0.02539063" top="0.64062500" bottom="0.73437500"/>
  93                                                 </Texture>
  94                                                 <Texture file="Interface\Reforging\Reforge-Texture"  parentKey="checkedTex" hidden="true">
  95                                                         <Size x="17" y="17"/>  
  96                                                         <TexCoords left="0.02929688" right="0.06250000" top="0.66406250" bottom="0.79687500"/>
  97                                                 </Texture>
  98                                                 <Texture file="Interface\Reforging\Reforge-Texture" parentKey="disableTex" hidden="true">
  99                                                         <Size x="12" y="12"/>  
  100                                                         <TexCoords left="0.00195313" right="0.02539063" top="0.53125000" bottom="0.62500000"/>
  101                                                 </Texture>
  102                                                 <Texture file="Interface\Reforging\Reforge-Texture" alphaMode="ADD" parentKey="highlightTex" hidden="true">
  103                                                         <Size x="15" y="15"/>  
  104                                                         <Anchors>
  105                                                                 <Anchor point="RIGHT" relativeTo="$parentText" relativePoint="LEFT" x="-3"/>
  106                                                         </Anchors>
  107                                                         <TexCoords left="0.02929688" right="0.05859375" top="0.53125000" bottom="0.64843750"/>
  108                                                 </Texture>
  109                                         </Layer>
  110                                 </Layers>
  111                         </Frame>
  112                 </Frames>
 
  120                                 if ( not self.button.disableTex:IsShown() ) then
  121                                         self.button.highlightTex:Show();
  122                                 end
 
  128                                 self.button.highlightTex:Hide();
 
  130                         <OnClick>
  131                                 Stat_OnClick(self);
  132                                 Stat_SetButtonChecked(self, self:GetChecked());
  133                                 PlaySound("igMainMenuOptionCheckBoxOn");
  134                         </OnClick>
  135                         <OnShow>
  136                                 if ( self:IsMouseOver() ) then
  137                                         self.button.highlightTex:Show();
  138                                 else
  139                                         self.button.highlightTex:Hide();
  140                                 end
  141                         </OnShow>
  142                         <OnHide>
  143                                 Stat_SetButtonChecked(self, false);
  144                         </OnHide>
  145                         <OnEnable>
  146                                 self.button.disableTex:Hide();
  147                                 self.button.normalTex:Show();
  148                                 self.button.checkedTex:Hide();
  149                         </OnEnable>
  150                         <OnDisable>
  151                                 self.button.disableTex:Show();
  152                                 self.button.normalTex:Hide();
  153                                 self.button.checkedTex:Hide();
  154                         </OnDisable>
 
65           </Frame>
  156         </CheckButton>
 
69           <Frame name="ReforgingFrame" inherits="ButtonFrameTemplate" toplevel="true" movable="true" parent="UIParent" enableMouse="true" hidden="true">
  160         <Frame name="ReforgingFrame" inherits="EtherealFrameTemplate" toplevel="true" movable="true" parent="UIParent" enableMouse="true" hidden="true">
  161                 <Size x="428" y="430"/>
 
71                           <Layer level="BORDER">
72                                   <Texture  name="$parentBottomBg" file="Interface\Reforging\ReforgingTextures">
73                                           <Size x="330" y="53"/>
74                                           <Anchors>
75                                                   <Anchor point="BOTTOM"  x="-1" y="28"/>
76                                           </Anchors>
77                                           <TexCoords left="0.28515625" right="0.92968750" top="0.20703125" bottom="0.41406250"/>
  163                         <Layer level="BACKGROUND" textureSubLevel="-6">
  164                                 <Texture name="$parentMarbleBg" file="Interface\FrameGeneral\UI-Background-Marble" horizTile="true" vertTile="true" setAllPoints="true"/>
  165                         </Layer>
  166                         <Layer level="BACKGROUND" textureSubLevel="-5">
  167                                 <Texture setAllPoints="true">
  168                                         <Color r="0.302" g="0.102" b="0.204" a="0.5"/>
 
80                           <Layer level="ARTWORK">
81                                   <Texture  name="$parentBottomGreenBg" file="Interface\Reforging\ReforgingTextures">
82                                           <Size x="143" y="31"/>
83                                           <Anchors>
84                                                   <Anchor point="RIGHT"  relativeTo="$parentBottomBg" x="-20" y="3"/>
85                                           </Anchors>
86                                           <TexCoords left="0.00195313" right="0.28125000" top="0.00390625" bottom="0.12500000"/>
  171                         <Layer level="BACKGROUND" textureSubLevel="-4">
  172                                 <Texture name="$parentLines" file="Interface\Transmogrify\EtherealLines.png" horizTile="true" vertTile="true" alpha="0.1" setAllPoints="true"/>
  173                                 <Texture name="$parentMissingFadeOut" setAllPoints="true">
  174                                         <Color r="0" g="0" b="0" a="0.5"/>
 
88                                   <Texture  name="$parentBottomRedBg" file="Interface\Reforging\ReforgingTextures">
89                                           <Size x="143" y="31"/>
  176                                 <Texture name="$parentReceiptBG" file="Interface\Reforging\Reforge-Partchment" hidden="true">
 
91                                                   <Anchor point="LEFT"  relativeTo="$parentBottomBg" x="20" y="3"/>
  178                                                 <Anchor point="TOPLEFT" x="12" y="-30"/>
  179                                                 <Anchor point="BOTTOMRIGHT" x="-15" y="36"/>
 
93                                           <TexCoords left="0.00195313" right="0.28125000" top="0.13281250" bottom="0.25390625"/>
  181                                         <TexCoords left="0" right="0.732421875" top="0" bottom="0.705078125"/>
 
95                                   <Texture name="$parentMoneyBg" file="Interface\MoneyFrame\UI-MoneyFrame-Border">
96                                           <Size x="164" y="34"/>
  183                         </Layer>
  184                         <Layer level="ARTWORK">
  185                                 <FontString name="$parentRestoreMessage" inherits="GameFontNormal" justifyH="LEFT" text="REFORGE_RESTORE_MESSAGE" hidden="true">
  186                                         <Size x="375" y="40"/>
 
98                                                   <Anchor point="BOTTOMLEFT"  x="5" y="-9"/>
  188                                                 <Anchor point="BOTTOMLEFT" relativeTo="$parentReceiptBG" x="15" y="30"/>
 
100                                   </Texture>
  190                                         <Color r="0" g="0" b="0" />
  191                                 </FontString>
 
103                                                   <Anchor point="TOPLEFT"  relativeTo="$parentInset" x="6" y="-25"/>
104                                                   <Anchor point="BOTTOMRIGHT"  relativeTo="$parentInset"  relativePoint="TOPRIGHT" x="-6" y="-26"/>
  194                                                 <Anchor point="TOPLEFT" x="23" y="-150"/>
  195                                                 <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" x="-25" y="-151"/>
 
117                                   <FontString name="$parentBottomGreenText" inherits="SystemFont_Shadow_Med2" justifyH="CENTER">
118                                           <Size x="130" y="27"/>
119                                           <Anchors>
120                                                   <Anchor point="CENTER"  relativeTo="$parentBottomGreenBg" x="0" y="0"/>
121                                           </Anchors>
122                                           <Color r="0" g="1" b="0" a="1"/>
123                                   </FontString>
124                                   <FontString name="$parentBottomRedText" inherits="SystemFont_Shadow_Med2" justifyH="CENTER">
125                                           <Size x="130" y="27"/>
126                                           <Anchors>
127                                                   <Anchor point="CENTER"  relativeTo="$parentBottomRedBg" x="0" y="0"/>
128                                           </Anchors>
129                                           <Color r="1" g="0" b="0" a="1"/>
130                                   </FontString>
 
134                                                   <Anchor point="TOPLEFT"  relativeTo="$parentInset" x="15" y="-10"/>
  211                                                 <Anchor point="TOPLEFT" x="26" y="-135"/>
 
140                                                   <Anchor point="TOPLEFT"  relativeTo="$parentInset" x="175" y="-10"/>
  217                                                 <Anchor point="TOPLEFT" x="215" y="-135"/>
 
143                                   <FontString name="$parentStatHelpText" inherits="GameFontNormal" justifyH="CENTER" text="REFORGE_STAT_HELP">
144                                           <Size x="140" y="100"/>
145                                           <Anchors>
146                                                   <Anchor point="CENTER"  relativeTo="$parentInset"  x="85" y="0"/>
147                                           </Anchors>
148                                           <Color r="1" g="1" b="1" a="0.5"/>
149                                   </FontString>
 
153                           <Frame name="$parentTopInset" useParentLevel="true" inherits="InsetFrameTemplate" parentKey="topInset">
  223                         <CheckButton name="$parentLeftStat1" inherits="ReforgingStatTemplate">
 
155                                           <Anchor point="TOPLEFT" x="4" y="-60" />
156                                           <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT"  x="-6" y="-117" />
  225                                         <Anchor point="TOPLEFT"  relativeTo="$parentHorzBar" x="4" y="-10" />
  226                                 </Anchors>
  227                         </CheckButton>
  228                         <CheckButton name="$parentRightStat1" inherits="ReforgingStatTemplate">
  229                                 <Anchors>
  230                                         <Anchor point="TOPRIGHT"  relativeTo="$parentHorzBar" x="-10" y="-10" />
 
  232                         </CheckButton>
  233                         <Frame name="$parentFinishedGlow" setAllPoints="true" parentKey="glow" >
  234                                 <Animations>
  235                                         <AnimationGroup parentKey="reforgeAnim">
  236                                                 <Alpha change="1" duration="0.1" order="1" />
  237                                                 <Alpha startDelay="0.1" change="-1" duration="0.5" order="2" />
  238                                                 <Scripts>
  239                                                         <OnFinished>
  240                                                                 ReforgingFrame_OnFinishedAnim(ReforgingFrame);
  241                                                         </OnFinished>
  242                                                 </Scripts>
  243                                         </AnimationGroup>
  244                                 </Animations>
 
159                                           <Layer level="ARTWORK">
160                                                   <Texture  name="$parentLableBg" file="Interface\Reforging\ReforgingTextures">
161                                                                   <Size x="320" y="50"/>
  246                                         <Layer level="OVERLAY">
  247                                                 <Texture name="$parentFinishedFlare" file="Interface\Reforging\Reforge-Flare" alphaMode="ADD">
  248                                                         <Size x="256" y="256"/>
 
163                                                                           <Anchor point="CENTER" y="-1"/>
  250                                                                 <Anchor point="TOPLEFT" relativeTo="ReforgingFrame" y="-23"/>
  251                                                                 <Anchor point="BOTTOMRIGHT" relativeTo="ReforgingFrame" y="26"/>
 
165                                                                   <TexCoords left="0.28515625" right="0.91015625" top="0.00390625" bottom="0.19921875"/>
 
169                                   <Frames>
  256                                 <Scripts>
  257                                         <OnLoad>
  258                                                 self:SetAlpha(0);
  259                                         </OnLoad>
  260                                 </Scripts>
  261                         </Frame>
 
173                                                           <Anchor point="LEFT"  x="5" y="-2"/>
  265                                         <Anchor point="TOPLEFT"  x="20" y="-64"/>
 
180                                                                                   <Anchor point="BOTTOMRIGHT">
181                                                                                           <Offset>
182                                                                                                   <AbsDimension x="-5" y="2"/>
183                                                                                           </Offset>
184                                                                                   </Anchor>
  272                                                                 <Anchor point="BOTTOMRIGHT" x="-5" y="2"/>
 
189                                                                                   <Anchor point="TOPLEFT">
190                                                                                           <Offset>
191                                                                                                   <AbsDimension x="0" y="-2"/>
192                                                                                           </Offset>
193                                                                                   </Anchor>
  277                                                                 <Anchor point="TOPLEFT" x="0" y="-2"/>
 
214                                                                                   <Anchor point="LEFT"  relativePoint="RIGHT" x="14" y="0"/>
  298                                                                 <Anchor point="LEFT"  relativePoint="RIGHT" x="50" y="0"/>
 
220                                                                   <Texture name="$parentFrame" file="Interface\AchievementFrame\UI-Achievement-IconFrame">
221                                                                           <Size x="72" y="72"/>
  304                                                 <Texture name="$parentFrame" file="Interface\Reforging\Reforge-Texture">
  305                                                         <Size x="78" y="77"/>  
  306                                                         <TexCoords left="0.81640625" right="0.96875000" top="0.00781250" bottom="0.60937500"/>
 
223                                                                                           <Anchor point="CENTER" x="0" y="0" />
  308                                                                 <Anchor point="CENTER"/>
 
225                                                                           <TexCoords left="0" right="0.5625" top="0" bottom="0.5625"/>
  310                                                 </Texture>
  311                                         </Layer>
  312                                         <Layer level="BACKGROUND">
  313                                                 <Texture name="$parentGrabber" file="Interface\Transmogrify\Textures.png">
  314                                                         <Size x="20" y="49"/>
  315                                                         <Anchors>
  316                                                                 <Anchor point="RIGHT" relativeTo="$parentFrame" relativePoint="LEFT" x="11" y="0"/>
  317                                                         </Anchors>
  318                                                         <TexCoords left="0.00781250" right="0.16406250" top="0.58203125" bottom="0.67773438"/>
  319                                                 </Texture>
  320                                                 <Texture name="$parentTextFrame" file="Interface\Reforging\Reforge-Texture" >
  321                                                         <Size x="348" y="73"/> 
  322                                                         <TexCoords left="0.13281250" right="0.81250000" top="0.00781250" bottom="0.57812500"/>
  323                                                         <Anchors>
  324                                                                 <Anchor point="LEFT"  relativePoint="RIGHT" x="-10" />
  325                                                         </Anchors>
  326                                                 </Texture>
  327                                                 <Texture name="$parentTextGrabber" file="Interface\Transmogrify\Textures.png">
  328                                                         <Size x="20" y="49"/>
  329                                                         <Anchors>
  330                                                                 <Anchor point="LEFT" relativeTo="$parentTextFrame" relativePoint="RIGHT" x="-11" y="0"/>
  331                                                         </Anchors>
  332                                                         <TexCoords right="0.00781250" left="0.16406250" top="0.58203125" bottom="0.67773438"/>
 
252                                                   <HighlightTexture file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/>
  359                                 <HighlightTexture file="Interface\Reforging\Reforge-Texture" alphaMode="ADD">
  360                                         <Size x="67" y="67"/>  
  361                                         <TexCoords left="0.00195313" right="0.12890625" top="0.00781250" bottom="0.51562500"/> 
  362                                 </HighlightTexture>
 
254                                           <Button name="$parentInvisibleButton" setAllPoints="true" parentKey="invisButton">
255                                                   <Frames>
256                                                           <Frame name="$parentFinishedGlow" setAllPoints="true" parentKey="glow">
257                                                                   <Animations>
258                                                                           <AnimationGroup parentKey="reforgeAnim">
259                                                                                   <Alpha change="1" duration="0.1" order="1" />
260                                                                                   <Alpha startDelay="0.1" change="-1" duration="0.5" order="2" />
261                                                                                   <Scripts>
262                                                                                           <OnFinished>
263                                                                                                   ReforgingFrame_OnFinishedAnim(ReforgingFrame);
264                                                                                           </OnFinished>
265                                                                                   </Scripts>
266                                                                           </AnimationGroup>
267                                                                   </Animations>
268                                                                   <Layers>
269                                                                           <Layer level="OVERLAY">
270                                                                                   <Texture  name="$parentFinishedGlow" file="Interface\Reforging\ReforgingTextures" alphaMode="ADD">
271                                                                                           <Size x="330" y="72"/>
  364                         <Button name="$parentInvisibleButton" parentKey="invisButton" >
 
273                                                                                                   <Anchor point="CENTER" y="-1"/>
274                                                                                           </Anchors>
275                                                                                           <TexCoords left="0.28515625" right="0.92968750" top="0.42187500" bottom="0.70312500"/>
276                                                                                   </Texture>
277                                                                                   <Texture name="$parentFinishedFlare" file="Interface\Reforging\Reforging-Flare" alpha="0.5" alphaMode="ADD">
278                                                                                           <Size x="350" y="350"/>
279                                                                                           <Anchors>
280                                                                                                   <Anchor point="TOP" x="0" y="-63"/>
  366                                         <Anchor point="TOPLEFT"/>
  367                                         <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" y="-120"/>
 
282                                                                                           <Color r="0.4" g="0.3" b="0.1"/>
283                                                                                   </Texture>
284                                                                           </Layer>
285                                                                   </Layers>
286                                                           </Frame>
287                                                   </Frames>
 
290                                                                   self.glow:SetAlpha(0);
 
298                                   </Frames>
299                           </Frame>
300                           <Frame name="$parentBottomInset" useParentLevel="true" inherits="InsetFrameTemplate" parentKey="bottomInset">
  378                         <Frame name="$parentButtonFrame">
  379                                 <Size x="0" y="20"/>
 
302                                           <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT"  x="4" y="80" />
303                                           <Anchor point="BOTTOMRIGHT" x="-6" y="26" />
  381                                         <Anchor point="BOTTOMLEFT"/>
  382                                         <Anchor point="BOTTOMRIGHT"/>
 
305                           </Frame>
306                           <Frame name="$parentMoneyFrame" inherits="SmallMoneyFrameTemplate">
  384                                 <Frames>
  385                                         <Frame name="ReforgingFrameMoneyFrame" inherits="SmallMoneyFrameTemplate">
 
308                                           <Anchor point="RIGHT" relativeTo="$parentMoneyBg" x="8" y="6"/>
  387                                                         <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT" x="200" y="7"/>
 
311                           <Button name="$parentReforgeButton" inherits="MagicButtonTemplate, TruncatedButtonTemplate" text="REFORGE">
  390                                         <Button name="ReforgingFrameRestoreButton" inherits="MagicButtonTemplate, TruncatedButtonTemplate" text="REFORGE_RESTORE">
 
313                                           <Anchor point="BOTTOMRIGHT" />
  392                                                         <Anchor point="LEFT" relativeTo="ReforgingFrameMoneyFrame" relativePoint="RIGHT"/>
 
316                                           <OnClick function="ReforgingFrame_ReforgeClick"/>
  395                                                         <OnClick function="ReforgingFrame_RestoreClick"/>
 
319                           <Button name="$parentRestoreButton" inherits="MagicButtonTemplate, TruncatedButtonTemplate" text="REFORGE_RESTORE">
  398                                         <Button name="ReforgingFrameReforgeButton" inherits="MagicButtonTemplate, TruncatedButtonTemplate" text="REFORGE">
 
321                                           <Anchor point="RIGHT"  relativeTo="$parentReforgeButton" relativePoint="LEFT"/>
  400                                                         <Anchor point="LEFT" relativeTo="ReforgingFrameRestoreButton" relativePoint="RIGHT"/>
  401                                                         <Anchor point="BOTTOMRIGHT" x="-2" y="4"/>
 
324                                           <OnClick function="ReforgingFrame_RestoreClick"/>
  404                                                         <OnClick function="ReforgingFrame_ReforgeClick"/>
 
327                           <Frame name="$parentFilterOldStat" inherits="UIDropDownMenuTemplate" enableMouse="true">
  407                                 </Frames>
  408                                 <Layers>
  409                                         <Layer level="BORDER" textureSubLevel="1">
  410                                                 <Texture>
  411                                                         <Size x="334" y="21"/>
 
329                                           <Anchor point="TOPLEFT"  relativeTo="$parentTopInset" relativePoint="BOTTOMLEFT" x="-10" y="-15"/>
  413                                                                 <Anchor point="BOTTOMLEFT" x="1" y="5"/>
 
331                                   <Layers>
332                                           <Layer level="ARTWORK">
333                                                   <FontString inherits="GameFontNormalSmall" justifyH="LEFT" text="REFORGE_OLD_STAT_LABLE">
  415                                                         <Color r="0" g="0" b="0"/>
  416                                                 </Texture>
  417                                         </Layer>
  418                                         <Layer level="BORDER" textureSubLevel="2">
  419                                                 <Texture name="$parentButtonBorder" inherits="_UI-Frame-InnerBotTile" parentKey="InsetBorderBottom">
 
335                                                                           <Anchor point="TOPLEFT" x="24" y="10"/>
  421                                                                 <Anchor point="BOTTOMLEFT" x="1" y="25"/>
  422                                                                 <Anchor point="BOTTOMRIGHT" x="-3" y="25"/>
 
337                                                   </FontString>
338                                           </Layer>
339                                   </Layers>
340                           </Frame>       
341                           <Frame name="$parentFilterNewStat" inherits="UIDropDownMenuTemplate" enableMouse="true">
  424                                                 </Texture>
  425                                                 <Texture name="$parentButtonBottomBorder" inherits="_UI-Frame-BtnBotTile">
 
343                                           <Anchor point="TOPRIGHT"  relativeTo="$parentTopInset" relativePoint="BOTTOMRIGHT" x="12" y="-15"/>
  427                                                                 <Anchor point="BOTTOMLEFT" x="6" y="2"/>
  428                                                                 <Anchor point="BOTTOMRIGHT" x="-8" y="2"/>
 
345                                   <Layers>
  430                                                 </Texture>
  431                                         </Layer>
 
347                                                   <FontString inherits="GameFontNormalSmall" justifyH="LEFT" text="REFORGE_NEW_STAT_LABLE">
  433                                                 <Texture name="$parentMoneyLeft" file="Interface\Common\MoneyFrame.png">
  434                                                         <Size x="8" y="20"/>
 
349                                                                           <Anchor point="TOPLEFT" x="24" y="10"/>
  436                                                                 <Anchor point="BOTTOMLEFT" x="0" y="4"/>
 
351                                                   </FontString>
352                                           </Layer>
353                                   </Layers>
354                           </Frame>
355                           <Frame name="$parentLeftStat1" inherits="ReforgingStatTemplate">
  438                                                         <TexCoords left="0.9375" right="1" top="0" bottom="0.3125"/>
  439                                                 </Texture>
  440                                                 <Texture name="$parentMoneyRight" file="Interface\Common\MoneyFrame.png">
  441                                                         <Size x="8" y="20"/>
 
357                                           <Anchor point="TOPLEFT"  relativeTo="$parentInset" x="4" y="-30" />
  443                                                                 <Anchor point="TOP" relativeTo="$parentMoneyLeft"/>
  444                                                                 <Anchor point="RIGHT" relativeTo="ReforgingFrameRestoreButton" relativePoint="LEFT" x="-3" y="0"/>
 
359                           </Frame>
360                           <Frame name="$parentRightStat1" inherits="ReforgingStatTemplate">
  446                                                         <TexCoords left="0" right="0.0625" top="0" bottom="0.3125"/>
  447                                                 </Texture>
  448                                                 <Texture name="$parentMoneyMiddle" file="Interface\Common\MoneyFrame.png">
  449                                                         <Size x="0" y="20"/>
 
362                                           <Anchor point="TOPRIGHT"  relativeTo="$parentInset" x="-4" y="-30" />
  451                                                                 <Anchor point="TOPLEFT" relativeTo="$parentMoneyLeft" relativePoint="TOPRIGHT"/>
  452                                                                 <Anchor point="TOPRIGHT" relativeTo="$parentMoneyRight" relativePoint="TOPLEFT"/>
 
  454                                                         <TexCoords left="0" right="1" top="0.3125" bottom="0.6250"/>
  455                                                 </Texture>
  456                                         </Layer>
  457                                 </Layers>
   
File: AddOns\Blizzard_TalentUI\Blizzard_TalentUI.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_TalentUI\Blizzard_TalentUI.xml  
1160                           <PlayerModel name="PlayerTalentFramePetModel">
  1160                         <PlayerModel name="PlayerTalentFramePetModel" inherits="ModelWithZoomTemplate">
 
1170                                           <OnEvent function="Model_OnEvent"/>
1171                                           <OnMouseUp function="Model_OnMouseUp"/>
1172                                           <OnMouseDown function="Model_OnMouseDown"/>
1173                                           <OnMouseWheel>
1174                                                   Model_OnMouseWheel(self, delta, MODELFRAME_MAX_PET_ZOOM);
1175                                           </OnMouseWheel>
1176                                           <OnUpdate function="Model_OnUpdate"/>
   
File: AddOns\Blizzard_TimeManager\Blizzard_TimeManager.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_TokenUI\Blizzard_TokenUI.lua  
178                   name, count, icon = GetBackpackCurrencyInfo(i);
  178                 name, count, icon, currencyID = GetBackpackCurrencyInfo(i);
 
  188                         watchButton.currencyID = currencyID;
 
  242                 local linkedToChat = false;
 
242                           HandleModifiedItemClick(GetCurrencyListLink(self.index));
243                   elseif ( IsModifiedClick("TOKENWATCHTOGGLE") ) then
  244                         linkedToChat = HandleModifiedItemClick(GetCurrencyListLink(self.index));
  245                 end
  246                 if ( not linkedToChat ) then
  247                         if ( IsModifiedClick("TOKENWATCHTOGGLE") ) then
 
  281         end
   
File: AddOns\Blizzard_TokenUI\Blizzard_TokenUI.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_TokenUI\Blizzard_TokenUI.xml  
  340                         <OnClick>
  341                                 if ( IsModifiedClick("CHATLINK") ) then
  342                                         HandleModifiedItemClick(GetCurrencyLink(self.currencyID));
  343                                 end
  344                         </OnClick>
   
File: AddOns\Blizzard_TradeSkillUI\Blizzard_TradeSkillUI.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_TrainerUI\Blizzard_TrainerUI.lua  
5   CLASS_TRAINER_SKILL_BUTTON_WIDTH = 318
 
  65         ClassTrainerScrollFrameScrollBar.Show =
  66                 function (self)
  67                         ClassTrainerScrollFrame:SetWidth(CLASS_TRAINER_SKILL_BARBUTTON_WIDTH + 2);
  68                         for _, button in next, ClassTrainerScrollFrame.buttons do
  69                                 button:SetWidth(CLASS_TRAINER_SKILL_BARBUTTON_WIDTH);
  70                         end
  71                         getmetatable(self).__index.Show(self);
  72                 end
 
  74         ClassTrainerScrollFrameScrollBar.Hide =
  75                 function (self)
  76                         ClassTrainerScrollFrame:SetWidth(CLASS_TRAINER_SKILL_BUTTON_WIDTH + 2);
  77                         for _, button in next, ClassTrainerScrollFrame.buttons do
  78                                 button:SetWidth(CLASS_TRAINER_SKILL_BUTTON_WIDTH);
  79                         end
  80                         getmetatable(self).__index.Hide(self);
  81                 end    
 
103           local buttonSize = CLASS_TRAINER_SKILL_BARBUTTON_WIDTH;
 
115                   if numTrainerServices <=  CLASS_TRAINER_SKILLS_DISPLAYED-1 then
116                           buttonSize = CLASS_TRAINER_SKILL_BUTTON_WIDTH;
117                   end
 
125                   if numTrainerServices <=  CLASS_TRAINER_SKILLS_DISPLAYED then
126                           buttonSize = CLASS_TRAINER_SKILL_BUTTON_WIDTH;
127                   end
 
146           scrollFrame:SetWidth(buttonSize+2);
 
154                           skillButton:SetWidth(buttonSize);
 
  231         local showMoney = true;
 
227                   skillButton.money:Show();
 
230                   skillButton.money:Hide();
  236                 showMoney = false;
 
233                   skillButton.money:Show();
 
240           if ( moneyCost and moneyCost > 0 ) then
  245         if ( showMoney and moneyCost and moneyCost > 0 ) then
 
  253                 skillButton.money:Show();
  254         else
  255                 skillButton.money:SetWidth(1);
  256                 skillButton.money:Hide();
   
File: AddOns\Blizzard_TrainerUI\Blizzard_TrainerUI.toc  
1   ## Interface: 40200
  1 ## Interface: 40300
   
File: AddOns\Blizzard_TrainerUI\Blizzard_TrainerUI.xml  
  31                 <Size x="298" y="47"/>
   
File: AddOns\Blizzard_VoidStorageUI\Blizzard_VoidStorageUI.lua  
  1 UIPanelWindows["VoidStorageFrame"] = { area = "doublewide", pushable = 0, width = 726 };
 
  3 local VOID_STORAGE_UNLOCK_COST = 1000 * 100 * 100;      -- 1000 gold
  4 local BUTTON_TYPE_DEPOSIT = 1;
  5 local BUTTON_TYPE_WITHDRAW = 2;
  6 local BUTTON_TYPE_STORAGE = 3;
  7 local VOID_DEPOSIT_MAX = 9;
  8 local VOID_WITHDRAW_MAX = 9;
  9 local VOID_STORAGE_MAX = 80;
  10 local voidStorageTutorials = {
  11         [1] = { text1 = VOID_STORAGE_TUTORIAL1, text2 = VOID_STORAGE_TUTORIAL2, yOffset = 340 },
  12         [2] = { text1 = VOID_STORAGE_TUTORIAL3, yOffset = 180 },
  13         [3] = { text1 = VOID_STORAGE_TUTORIAL4, text2 = VOID_STORAGE_TUTORIAL5, yOffset = 86 },
  14 }
 
  16 function VoidStorageFrame_Show()
  17         ShowUIPanel(VoidStorageFrame);
  18         if ( not VoidStorageFrame:IsShown() ) then
  19                 CloseVoidStorageFrame();
  20         end
  21 end
 
  23 function VoidStorageFrame_Hide()
  24         HideUIPanel(VoidStorageFrame);
  25 end
 
  27 function VoidStorageFrame_OnLoad(self)
  28         -- The close button comes from the BasicFrameTemplate but VoidStorageBorderFrame is not the main
  29         -- frame, so click function must change to close the proper frame
  30         VoidStorageBorderFrameCloseButton:SetScript("OnClick", function () VoidStorageFrame_Hide(); end);
  31         VoidStorageBorderFrameTopTileStreaks:Hide();
  32         VoidStorageBorderFrameBg:SetTexture(nil);
  33         local button, lastButton, texture;
  34         -- create deposit buttons
  35         VoidStorageDepositFrame.Bg:SetTexture(0.1451, 0.0941, 0.1373, 0.8);
  36         lastButton = VoidStorageDepositButton1;
  37         lastButton.buttonType = BUTTON_TYPE_DEPOSIT;
  38         lastButton.slot = 1;
  39         for i = 2, VOID_DEPOSIT_MAX do
  40                 button = CreateFrame("BUTTON", "VoidStorageDepositButton"..i, VoidStorageDepositFrame, "VoidStorageItemButtonTemplate");
  41                 if ( mod(i, 3) == 1 ) then
  42                         button:SetPoint("TOP", _G["VoidStorageDepositButton"..(i - 3)], "BOTTOM", 0, -5);
  43                 else
  44                         button:SetPoint("LEFT", lastButton, "RIGHT", 7, 0);
  45                 end
  46                 lastButton = button;
  47                 lastButton.buttonType = BUTTON_TYPE_DEPOSIT;
  48                 lastButton.slot = i;
  49         end
  50         -- create withdraw buttons
  51         VoidStorageWithdrawFrame.Bg:SetTexture(0.1451, 0.0941, 0.1373, 0.8);
  52         lastButton = VoidStorageWithdrawButton1;
  53         lastButton.buttonType = BUTTON_TYPE_WITHDRAW;
  54         lastButton.slot = 1;
  55         for i = 2, VOID_WITHDRAW_MAX do
  56                 button = CreateFrame("BUTTON", "VoidStorageWithdrawButton"..i, VoidStorageDepositFrame, "VoidStorageItemButtonTemplate");
  57                 if ( mod(i, 3) == 1 ) then
  58                         button:SetPoint("TOP", _G["VoidStorageWithdrawButton"..(i - 3)], "BOTTOM", 0, -5);
  59                 else
  60                         button:SetPoint("LEFT", lastButton, "RIGHT", 7, 0);
  61                 end
  62                 lastButton = button;
  63                 lastButton.buttonType = BUTTON_TYPE_WITHDRAW;
  64                 lastButton.slot = i;
  65         end
  66         -- create storage buttons
  67         VoidStorageStorageFrame.Bg:SetTexture(nil);
  68         lastButton = VoidStorageStorageButton1;
  69         lastButton.buttonType = BUTTON_TYPE_STORAGE;
  70         lastButton.slot = 1;
  71         for i = 2, VOID_STORAGE_MAX do
  72                 button = CreateFrame("BUTTON", "VoidStorageStorageButton"..i, VoidStorageDepositFrame, "VoidStorageItemButtonTemplate");
  73                 if ( mod(i, 8) == 1 ) then
  74                         if ( mod(i, 16) == 1 ) then
  75                                 button:SetPoint("LEFT", _G["VoidStorageStorageButton"..(i - 8)], "RIGHT", 14, 0);
  76                         else
  77                                 button:SetPoint("LEFT", _G["VoidStorageStorageButton"..(i - 8)], "RIGHT", 7, 0);
  78                         end
  79                 else
  80                         button:SetPoint("TOP", lastButton, "BOTTOM", 0, -5);
  81                 end
  82                 lastButton = button;
  83                 lastButton.buttonType = BUTTON_TYPE_STORAGE;
  84                 lastButton.slot = i;
  85         end
 
  87         MoneyFrame_Update("VoidStorageMoneyFrame", 0);
 
  89         self:RegisterEvent("VOID_STORAGE_UPDATE");
  90         self:RegisterEvent("VOID_STORAGE_CONTENTS_UPDATE");
  91         self:RegisterEvent("VOID_STORAGE_DEPOSIT_UPDATE");
  92         self:RegisterEvent("VOID_TRANSFER_DONE");
  93         self:RegisterEvent("INVENTORY_SEARCH_UPDATE");
  94         self:RegisterEvent("VOID_DEPOSIT_WARNING");
  95 end
 
  97 function VoidStorageFrame_OnEvent(self, event, ...)
  98         if ( event == "VOID_TRANSFER_DONE" ) then
  99                 VoidStorage_ItemsUpdate(true, true);
  100         elseif ( event == "VOID_STORAGE_DEPOSIT_UPDATE" ) then
  101                 local slot = ...;
  102                 local dialog = StaticPopup_FindVisible("VOID_DEPOSIT_CONFIRM");
  103                 if ( dialog and dialog.data.slot == slot ) then
  104                         self.dropWarningItem = false;
  105                         StaticPopup_Hide("VOID_DEPOSIT_CONFIRM");
  106                 end
  107                 VoidStorage_ItemsUpdate(true, false);
  108         elseif ( event == "VOID_STORAGE_CONTENTS_UPDATE" ) then
  109                 VoidStorage_ItemsUpdate(false, true);
  110         elseif ( event == "VOID_STORAGE_UPDATE" ) then
  111                 VoidStorageFrame_Update();
  112         elseif ( event == "INVENTORY_SEARCH_UPDATE" ) then
  113                 VoidStorage_ItemsFilteredUpdate();
  114         elseif ( event == "VOID_DEPOSIT_WARNING" ) then
  115                 local slot, itemLink = ...;
  116                 local itemName, _, itemQuality, _, _, _, _, _, _, texture = GetItemInfo(itemLink);
  117                 local r, g, b = GetItemQualityColor(itemQuality or 1);
  118                 self.dropWarningItem = true;
  119                 StaticPopup_Show("VOID_DEPOSIT_CONFIRM", nil, nil, {["texture"] = texture, ["name"] = itemName, ["color"] = {r, g, b, 1}, ["link"] = itemLink, ["slot"] = slot});
  120                 VoidStorageTransferButton:Disable();
  121         end
  122 end
 
  124 function VoidStorageFrame_OnShow(self)
  125         PlaySound("UI_EtherealWindow_Open");
  126         SetUpSideDressUpFrame(self, 726, 906, "TOPLEFT", "TOPRIGHT", -2, -15);
  127         VoidStorageFrame_Update();
  128 end
 
  130 function VoidStorageFrame_Update()
  131         if ( CanUseVoidStorage() ) then
  132                 local lastTutorial = tonumber(GetCVar("lastVoidStorageTutorial"));
  133                 if ( lastTutorial >= #voidStorageTutorials ) then
  134                         -- hide blocking frame if necessary
  135                         if ( VoidStorageBorderFrameMouseBlockFrame:IsShown() ) then
  136                                 VoidStorageBorderFrameMouseBlockFrame:Hide();
  137                                 VoidStoragePurchaseFrame:Hide();
  138                                 VoidStorageBorderFrameBg:Hide();
  139                                 VoidStorageHelpBox:Hide();
  140                         end
  141                         IsVoidStorageReady();
  142                         VoidStorage_ItemsUpdate(true, true);
  143                 else
  144                         local tutorial = voidStorageTutorials[lastTutorial + 1];
  145                         local height = 58;      -- button height + top and bottom padding + spacing between text and button
  146                         VoidStorageHelpBoxBigText:SetText(tutorial.text1);
  147                         height = height + VoidStorageHelpBoxBigText:GetHeight();
  148                         if ( tutorial.text2 ) then
  149                                 VoidStorageHelpBoxSmallText:SetText(tutorial.text2);
  150                                 height = height + 12 + VoidStorageHelpBoxSmallText:GetHeight();
  151                                 VoidStorageHelpBoxSmallText:Show();
  152                         else
  153                                 VoidStorageHelpBoxSmallText:Hide();
  154                         end
  155                         VoidStorageHelpBox:SetHeight(height);
  156                         VoidStorageHelpBox:SetPoint("BOTTOMLEFT", 12, tutorial.yOffset);
  157                         VoidStorageHelpBoxButton.currentTutorial = lastTutorial + 1;
  158                         VoidStorageFrame_SetUpBlockingFrame();
  159                         VoidStoragePurchaseFrame:Hide();
  160                         VoidStorageHelpBox:Show();
  161                 end
  162         else
  163                 if ( VOID_STORAGE_UNLOCK_COST > GetMoney() ) then
  164                         SetMoneyFrameColor("VoidStoragePurchaseMoneyFrame", "red");
  165                         VoidStoragePurchaseButton:Disable();
  166                 else
  167                         SetMoneyFrameColor("VoidStoragePurchaseMoneyFrame");
  168                         VoidStoragePurchaseButton:Enable();
  169                 end
  170                 MoneyFrame_Update("VoidStoragePurchaseMoneyFrame", VOID_STORAGE_UNLOCK_COST);
  171                 VoidStoragePurchaseFrame:SetHeight(VoidStoragePurchaseFrameDescription:GetHeight() + 156);
  172                 local width = max(VoidStoragePurchaseFrameLabel:GetWidth(), VoidStoragePurchaseFrameDescription:GetWidth());
  173                 VoidStoragePurchaseFrame:SetWidth(min(550, width + 164));
  174                 VoidStorageFrame_SetUpBlockingFrame();
  175                 VoidStoragePurchaseFrame:Show();
  176         end
  177 end
 
  179 function VoidStorageFrame_OnHide(self)
  180         PlaySound("UI_EtherealWindow_Close");
  181         StaticPopup_Hide("VOID_DEPOSIT_CONFIRM");
  182         CloseVoidStorageFrame();
  183         CloseSideDressUpFrame(self);
  184 end
 
  186 function VoidStorageFrame_SetUpBlockingFrame(frame)
  187         if ( not VoidStorageBorderFrameMouseBlockFrame:IsShown() ) then
  188                 VoidStorageBorderFrameBg:Show();
  189                 VoidStorageBorderFrameBg:SetTexture(0, 0, 0, 0.5);
  190                 VoidStorageBorderFrame:SetFrameLevel(100);
  191                 VoidStorageBorderFrameMouseBlockFrame:Show();
  192         end
  193 end
 
  195 function VoidStorage_CloseConfirmationDialog(slot)
  196         if ( VoidStorageFrame.dropWarningItem ) then
  197                 ClearVoidTransferDepositSlot(slot);
  198         end
  199         VoidStorage_UpdateTransferButton();
  200 end
 
  202 function VoidStorage_ItemsUpdate(doDeposit, doContents)
  203         local button;
  204         if ( doDeposit ) then
  205                 for i = 1, VOID_DEPOSIT_MAX do
  206                         itemID, textureName = GetVoidTransferDepositInfo(i);
  207                         button = _G["VoidStorageDepositButton"..i];
  208                         button.icon:SetTexture(textureName);
  209                         if ( itemID ) then
  210                                 button.hasItem = true;
  211                         else
  212                                 button.hasItem = nil;
  213                         end
  214                 end
  215         end
  216         if ( doContents ) then
  217                 -- withdrawal
  218                 for i = 1, VOID_WITHDRAW_MAX do
  219                         itemID, textureName = GetVoidTransferWithdrawalInfo(i);
  220                         button = _G["VoidStorageWithdrawButton"..i];
  221                         button.icon:SetTexture(textureName);
  222                         if ( itemID ) then
  223                                 button.hasItem = true;
  224                         else
  225                                 button.hasItem = nil;
  226                         end
  227                 end
 
  229                 -- storage
  230                 for i = 1, VOID_STORAGE_MAX do
  231                         itemID, textureName, locked, recentDeposit, isFiltered = GetVoidItemInfo(i);
  232                         button = _G["VoidStorageStorageButton"..i];
  233                         button.icon:SetTexture(textureName);
  234                         if ( itemID ) then
  235                                 button.icon:SetDesaturated(locked);
  236                                 button.hasItem = true;
  237                         else
  238                                 button.hasItem = nil;
  239                         end
 
  241                         if ( recentDeposit ) then
  242                                 local antsFrame = button.antsFrame;
  243                                 if ( not antsFrame ) then
  244                                         antsFrame = VoidStorageFrame_GetAntsFrame();
  245                                         antsFrame:SetParent(button);
  246                                         antsFrame:SetPoint("CENTER");
  247                                         button.antsFrame = antsFrame;
  248                                 end
  249                                 antsFrame:Show();
  250                         elseif ( button.antsFrame ) then
  251                                 button.antsFrame:Hide();
  252                                 button.antsFrame = nil;
  253                         end
 
  255                         if ( isFiltered ) then
  256                                 button.searchOverlay:Show();
  257                         else
  258                                 button.searchOverlay:Hide();
  259                         end
  260                 end
  261         end
  262         if ( VoidStorageFrame.mousedOverButton ) then
  263                 VoidStorageItemButton_OnEnter(VoidStorageFrame.mousedOverButton);
  264         end
  265         local hasWarningDialog = StaticPopup_FindVisible("VOID_DEPOSIT_CONFIRM");
  266         VoidStorage_UpdateTransferButton(hasWarningDialog);
  267 end
 
  269 function VoidStorage_UpdateTransferButton(hasWarningDialog)
  270         local cost = GetVoidTransferCost();
  271         local canApply = false;
  272         if ( cost > GetMoney() ) then
  273                 SetMoneyFrameColor("VoidStorageMoneyFrame", "red");
  274         else
  275                 SetMoneyFrameColor("VoidStorageMoneyFrame");
  276                 if ( cost > 0 and IsVoidStorageReady() ) then
  277                         canApply = true;
  278                 end
  279         end
  280         if ( hasWarningDialog ) then
  281                 canApply = false;
  282         end
  283         MoneyFrame_Update("VoidStorageMoneyFrame", cost);
  284         if ( canApply ) then
  285                 VoidStorageTransferButton:Enable();
  286         else
  287                 VoidStorageTransferButton:Disable();
  288         end
  289 end
 
  291 function VoidStorage_ItemsFilteredUpdate()
  292         local button, isFiltered, _;
  293         -- storage
  294         for i = 1, VOID_STORAGE_MAX do
  295                 _, _, _, _, isFiltered = GetVoidItemInfo(i);
  296                 button = _G["VoidStorageStorageButton"..i];
 
  298                 if ( isFiltered ) then
  299                         button.searchOverlay:Show();
  300                 else
  301                         button.searchOverlay:Hide();
  302                 end
  303         end
  304 end
 
  306 function VoidStorageFrame_GetAntsFrame()
  307         local name, frame;
  308         local i = 1;
  309         while true do
  310                 name = "VoidStorageAntsFrame"..i;
  311                 frame = _G[name];
  312                 if ( frame ) then
  313                         if ( not frame:IsShown() ) then
  314                                 return frame;
  315                         end
  316                 else
  317                         frame = CreateFrame("Frame", name, VoidStorageFrame, "VoidStorageAntsFrameTemplate");
  318                         return frame;
  319                 end
  320                 i = i + 1;
  321                 -- You could deposit 9 items, move them to the back, then deposit 9 more. Until the items in the back get updated, their ants frame won't be released.
  322                 assert(i <= VOID_DEPOSIT_MAX * 2);
  323         end
  324 end
 
  326 function VoidStorageItemButton_OnLoad(self)
  327         self:RegisterForClicks("LeftButtonUp", "RightButtonUp");
  328         self:RegisterForDrag("LeftButton");
  329         self.UpdateTooltip = VoidStorageItemButton_OnEnter;
  330 end
 
  332 function VoidStorageItemButton_OnClick(self, button)
  333         if ( IsModifiedClick() ) then
  334                 HandleModifiedItemClick(GetVoidItemHyperlinkString(self.slot));
  335         else
  336                 local isRightClick = (button == "RightButton");
  337                 if ( self.buttonType == BUTTON_TYPE_DEPOSIT ) then
  338                         ClickVoidTransferDepositSlot(self.slot, isRightClick);
  339                 elseif ( self.buttonType == BUTTON_TYPE_STORAGE ) then
  340                         ClickVoidStorageSlot(self.slot, isRightClick);
  341                 elseif ( self.buttonType == BUTTON_TYPE_WITHDRAW ) then
  342                         ClickVoidTransferWithdrawalSlot(self.slot, isRightClick);
  343                 end
  344         end
  345         VoidStorageItemButton_OnEnter(self);
  346 end
 
  348 function VoidStorageItemButton_OnDrag(self)
  349         VoidStorageItemButton_OnClick(self, "LeftButton");
  350 end
 
  352 function VoidStorageItemButton_OnEnter(self)
  353         VoidStorageFrame.mousedOverButton = self;
  354         if ( self.hasItem ) then
  355                 local x = self:GetRight();
  356                 if ( x >= ( GetScreenWidth() / 2 ) ) then
  357                         GameTooltip:SetOwner(self, "ANCHOR_LEFT");
  358                 else
  359                         GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
  360                 end    
  361                 if ( self.buttonType == BUTTON_TYPE_DEPOSIT ) then
  362                         GameTooltip:SetVoidDepositItem(self.slot);
  363                 elseif ( self.buttonType == BUTTON_TYPE_STORAGE ) then
  364                         GameTooltip:SetVoidItem(self.slot);
  365                 elseif ( self.buttonType == BUTTON_TYPE_WITHDRAW ) then
  366                         GameTooltip:SetVoidWithdrawalItem(self.slot);
  367                 end
  368                 if ( IsModifiedClick("DRESSUP") ) then
  369                         ShowInspectCursor();
  370                 else
  371                         ResetCursor();
  372                 end
  373         else
  374                 GameTooltip:Hide();
  375                 ResetCursor();
  376         end
  377 end
 
  379 function VoidStorageItemButton_OnLeave(self)
  380         GameTooltip:Hide();
  381         VoidStorageFrame.mousedOverButton = nil;
  382 end
   
File: AddOns\Blizzard_VoidStorageUI\Blizzard_VoidStorageUI.toc  
  1 ## Interface: 40300
  2 ## Title: Blizzard Void Storage UI
  3 ## Secure: 1
  4 ## Author: Blizzard Entertainment
  5 ## Version: 1.0
  6 ## LoadOnDemand: 1
  7 Blizzard_VoidStorageUI.xml
  8 Localization.lua
   
File: AddOns\Blizzard_VoidStorageUI\Blizzard_VoidStorageUI.xml  
  1 <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
  2 ..\FrameXML\UI.xsd">
  3         <Script file="Blizzard_VoidStorageUI.lua"/>
 
  98         <Button name="VoidStorageItemButtonTemplate" virtual="true">
  99                 <Size>
  100                         <AbsDimension x="37" y="37"/>
  101                 </Size>
  102                 <Layers>
  103                         <Layer level="BACKGROUND">
  104                                 <Texture name="$parentBg" file="Interface\VoidStorage\VoidStorage.png">
  105                                         <Size x="41" y="41"/>
  106                                         <Anchors>
  107                                                 <Anchor point="CENTER"/>
  108                                         </Anchors>
  109                                         <TexCoords left="0.66406250" right="0.74414063" top="0.00195313" bottom="0.08203125"/>
  110                                 </Texture>
  111                         </Layer>
  112                         <Layer level="BORDER">
  113                                 <Texture name="$parentIconTexture" parentKey="icon"/>
  114                         </Layer>
  115                         <Layer level="OVERLAY">
  116                                 <Texture name="$parentSearchOverlay" parentKey="searchOverlay" setAllPoints="true" hidden="true">
  117                                         <Color r="0" g="0" b="0" a="0.8"/>
  118                                 </Texture>
  119                         </Layer>
  120                 </Layers>
  121                 <PushedTexture file="Interface\Buttons\UI-Quickslot-Depress"/>
  122                 <HighlightTexture file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/>
  123                 <Scripts>
  124                         <OnLoad function="VoidStorageItemButton_OnLoad"/>
  125                         <OnClick function="VoidStorageItemButton_OnClick"/>
  126                         <OnEnter function="VoidStorageItemButton_OnEnter"/>
  127                         <OnDragStart function="VoidStorageItemButton_OnDrag"/>
  128                         <OnReceiveDrag function="VoidStorageItemButton_OnDrag"/>
  129                         <OnLeave function="VoidStorageItemButton_OnLeave"/>
  130                 </Scripts>
  131         </Button>
 
  133         <Frame name="VoidStorageAntsFrameTemplate" virtual="true" hidden="true">
  134                 <Size>
  135                         <AbsDimension x="37" y="37"/>
  136                 </Size>
  137                 <Anchors>
  138                         <Anchor point="CENTER"/>
  139                 </Anchors>
  140                 <Layers>
  141                         <Layer level="ARTWORK">
  142                                 <Texture name="$parentInnerGlow" parentKey="innerGlow" file="Interface\SpellActivationOverlay\IconAlert" setAllPoints="true">
  143                                         <Size x="53" y="53"/>
  144                                         <Anchors>
  145                                                 <Anchor point="CENTER"/>
  146                                         </Anchors>
  147                                         <TexCoords left="0.00781250" right="0.50781250" top="0.27734375" bottom="0.52734375"/>
  148                                 </Texture>
  149                                 <Texture name="$parentOuterGlow" parentKey="outerGlow" file="Interface\SpellActivationOverlay\IconAlert" setAllPoints="true" hidden="true">
  150                                         <Anchors>
  151                                                 <Anchor point="CENTER"/>
  152                                         </Anchors>
  153                                         <TexCoords left="0.00781250" right="0.50781250" top="0.27734375" bottom="0.52734375"/>
  154                                 </Texture>
  155                         </Layer>                       
  156                         <Layer level="OVERLAY">
  157                                 <Texture name="$parentAnts" parentKey="ants" file="Interface\SpellActivationOverlay\IconAlertAnts">
  158                                         <Size x="44" y="44"/>
  159                                         <Anchors>
  160                                                 <Anchor point="CENTER"/>
  161                                         </Anchors>
  162                                 </Texture>
  163                         </Layer>
  164                 </Layers>
  165                 <Scripts>
  166                         <OnUpdate>
  167                                 AnimateTexCoords(self.ants, 256, 256, 48, 48, 22, elapsed, 0.01);
  168                         </OnUpdate>
  169                 </Scripts>
  170         </Frame>
 
  172         <Frame name="VoidStorageInsetFrameTemplate" inherits="InsetFrameTemplate" virtual="true">
  173                 <Layers>
  174                         <Layer level="BACKGROUND" textureSubLevel="-6">
  175                                 <Texture file="Interface\VoidStorage\VoidStorage.png">
  176                                         <Anchors>
  177                                                 <Anchor point="TOPLEFT" x="3" y="-3"/>
  178                                                 <Anchor point="BOTTOMRIGHT" x="-3" y="2"/>
  179                                         </Anchors>
  180                                         <TexCoords left="0.00195313" right="0.47265625" top="0.16601563" bottom="0.50781250"/>
  181                                 </Texture>
  182                         </Layer>
  183                 </Layers>
  184         </Frame>
 
  186         <Frame name="VoidStorageFrame" toplevel="true" parent="UIParent" hidden="true" enableMouse="true">
  187                 <Size x="718" y="436"/>
  188                 <Anchors>
  189                         <Anchor point="CENTER"/>
  190                 </Anchors>
  191                 <Layers>
  192                         <Layer level="BACKGROUND" textureSubLevel="1">
  193                                 <Texture name="$parentMarbleBg" file="Interface\FrameGeneral\UI-Background-Marble" horizTile="true" vertTile="true">
  194                                         <Anchors>
  195                                                 <Anchor point="TOPLEFT" x="2" y="-21"/>
  196                                                 <Anchor point="BOTTOMRIGHT" x="-2" y="2"/>
  197                                         </Anchors>
  198                                 </Texture>
  199                         </Layer>
  200                         <Layer level="BACKGROUND" textureSubLevel="2">
  201                                 <Texture setAllPoints="true">
  202                                         <Anchors>
  203                                                 <Anchor point="TOPLEFT" x="2" y="-21"/>
  204                                                 <Anchor point="BOTTOMRIGHT" x="-2" y="2"/>
  205                                         </Anchors>
  206                                         <Color r="0.302" g="0.102" b="0.204" a="0.5"/>
  207                                 </Texture>
  208                         </Layer>
  209                         <Layer level="BACKGROUND" textureSubLevel="3">
  210                                 <Texture name="$parentLines" file="Interface\Transmogrify\EtherealLines.png" horizTile="true" vertTile="true" alpha="0.3">
  211                                         <Anchors>
  212                                                 <Anchor point="TOPLEFT" x="2" y="-21"/>
  213                                                 <Anchor point="BOTTOMRIGHT" x="-2" y="2"/>
  214                                         </Anchors>
  215                                 </Texture>
  216                         </Layer>
  217                 </Layers>
  218                 <Frames>
  219                         <Frame name="VoidStorageContentFrame" setAllPoints="true">
  220                                 <Frames>
  221                                         <Frame name="VoidStorageDepositFrame" inherits="VoidStorageInsetFrameTemplate">
  222                                                 <Size x="145" y="138"/>
  223                                                 <Anchors>
  224                                                         <Anchor point="TOPLEFT" x="34" y="-48"/>
  225                                                 </Anchors>
  226                                                 <Layers>
  227                                                         <Layer level="ARTWORK">
  228                                                                 <FontString inherits="GameFontHighlight" text="DEPOSIT">
  229                                                                         <Anchors>
  230                                                                                 <Anchor point="BOTTOM" relativeTo="VoidStorageDepositFrame" relativePoint="TOP" x="0" y="3"/>
  231                                                                         </Anchors>
  232                                                                 </FontString>
  233                                                                 <Texture file="Interface\VoidStorage\VoidStorage.png">
  234                                                                         <Size x="27" y="46"/>
  235                                                                         <Anchors>
  236                                                                                 <Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT" x="-4" y="0"/>
  237                                                                         </Anchors>
  238                                                                         <TexCoords left="0.74804688" right="0.80078125" top="0.00195313" bottom="0.09179688"/>
  239                                                                 </Texture>     
  240                                                         </Layer>
  241                                                 </Layers>
  242                                                 <Frames>
  243                                                         <Button name="VoidStorageDepositButton1" inherits="VoidStorageItemButtonTemplate">
  244                                                                 <Anchors>
  245                                                                         <Anchor point="TOPLEFT" x="10" y="-8"/>
  246                                                                 </Anchors>
  247                                                         </Button>
  248                                                 </Frames>
  249                                         </Frame>
  250                                         <Frame name="VoidStorageWithdrawFrame" inherits="VoidStorageInsetFrameTemplate">
  251                                                 <Size x="145" y="138"/>
  252                                                 <Anchors>
  253                                                         <Anchor point="TOP" relativeTo="VoidStorageDepositFrame" relativePoint="BOTTOM" x="0" y="-22"/>
  254                                                 </Anchors>
  255                                                 <Layers>
  256                                                         <Layer level="ARTWORK">
  257                                                                 <FontString inherits="GameFontHighlight" text="WITHDRAW">
  258                                                                         <Anchors>
  259                                                                                 <Anchor point="BOTTOM" relativeTo="VoidStorageWithdrawFrame" relativePoint="TOP" x="0" y="3"/>
  260                                                                         </Anchors>
  261                                                                 </FontString>
  262                                                                 <Texture file="Interface\VoidStorage\VoidStorage.png">
  263                                                                         <Size x="27" y="46"/>
  264                                                                         <Anchors>
  265                                                                                 <Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT" x="-1" y="0"/>
  266                                                                         </Anchors>
  267                                                                         <TexCoords left="0.80468750" right="0.85742188" top="0.00195313" bottom="0.09179688"/>
  268                                                                 </Texture>
  269                                                         </Layer>
  270                                                 </Layers>
  271                                                 <Frames>
  272                                                         <Button name="VoidStorageWithdrawButton1" inherits="VoidStorageItemButtonTemplate">
  273                                                                 <Anchors>
  274                                                                         <Anchor point="TOPLEFT" x="10" y="-8"/>
  275                                                                 </Anchors>
  276                                                         </Button>
  277                                                 </Frames>
  278                                         </Frame>
  279                                         <Frame name="VoidStorageStorageFrame" inherits="VoidStorageInsetFrameTemplate">
  280                                                 <Size x="481" y="347"/>
  281                                                 <Anchors>
  282                                                         <Anchor point="TOPLEFT" relativeTo="VoidStorageDepositFrame" relativePoint="TOPRIGHT" x="22" y="-4"/>
  283                                                 </Anchors>
  284                                                 <Layers>
  285                                                         <Layer level="ARTWORK">
  286                                                                 <FontString inherits="GameFontHighlight" text="VOID_STORAGE">
  287                                                                         <Anchors>
  288                                                                                 <Anchor point="BOTTOMLEFT" relativeTo="VoidStorageStorageFrame" relativePoint="TOPLEFT" x="16" y="3"/>
  289                                                                         </Anchors>
  290                                                                 </FontString>
  291                                                                 <Texture name="$parentLine1">
  292                                                                         <Size x="2" y="343"/>
  293                                                                         <Anchors>
  294                                                                                 <Anchor point="TOPLEFT" x="97" y="-2"/>
  295                                                                         </Anchors>
  296                                                                         <Color r="0.1451" g="0.0941" b="0.1373" a="0.8"/>
  297                                                                 </Texture>
  298                                                                 <Texture name="$parentLine2">
  299                                                                         <Size x="2" y="343"/>
  300                                                                         <Anchors>
  301                                                                                 <Anchor point="TOPLEFT" x="192" y="-2"/>
  302                                                                         </Anchors>
  303                                                                         <Color r="0.1451" g="0.0941" b="0.1373" a="0.8"/>
  304                                                                 </Texture>
  305                                                                 <Texture name="$parentLine3">
  306                                                                         <Size x="2" y="343"/>
  307                                                                         <Anchors>
  308                                                                                 <Anchor point="TOPLEFT" x="287" y="-2"/>
  309                                                                         </Anchors>
  310                                                                         <Color r="0.1451" g="0.0941" b="0.1373" a="0.8"/>
  311                                                                 </Texture>
  312                                                                 <Texture name="$parentLine4">
  313                                                                         <Size x="2" y="343"/>
  314                                                                         <Anchors>
  315                                                                                 <Anchor point="TOPLEFT" x="382" y="-2"/>
  316                                                                         </Anchors>
  317                                                                         <Color r="0.1451" g="0.0941" b="0.1373" a="0.8"/>
  318                                                                 </Texture>
  319                                                         </Layer>
  320                                                 </Layers>
  321                                                 <Frames>
  322                                                         <Button name="VoidStorageStorageButton1" inherits="VoidStorageItemButtonTemplate">
  323                                                                 <Anchors>
  324                                                                         <Anchor point="TOPLEFT" x="10" y="-8"/>
  325                                                                 </Anchors>
  326                                                         </Button>
  327                                                 </Frames>
  328                                         </Frame>
  329                                         <Frame name="VoidStorageCostFrame" inherits="VoidStorageInsetFrameTemplate">
  330                                                 <Size x="145" y="44"/>
  331                                                 <Anchors>
  332                                                         <Anchor point="LEFT" relativeTo="VoidStorageWithdrawFrame"/>
  333                                                         <Anchor point="BOTTOM" relativeTo="VoidStorageStorageFrame"/>
  334                                                 </Anchors>
  335                                                 <Layers>
  336                                                         <Layer level="ARTWORK">
  337                                                                 <FontString inherits="GameFontNormal" text="COSTS_LABEL">
  338                                                                         <Anchors>
  339                                                                                 <Anchor point="TOPLEFT" x="8" y="-6"/>
  340                                                                         </Anchors>
  341                                                                 </FontString>
  342                                                         </Layer>
  343                                                 </Layers>
  344                                                 <Frames>
  345                                                         <Button name="VoidStorageTransferButton" inherits="UIPanelButtonTemplate2" text="TRANSFER">
  346                                                                 <Size x="143" y="22"/>
  347                                                                 <Anchors>
  348                                                                         <Anchor point="BOTTOM" x="0" y="2"/>
  349                                                                 </Anchors>
  350                                                                 <Scripts>
  351                                                                         <OnClick>
  352                                                                                 local numDeposits = GetNumVoidTransferDeposit();
  353                                                                                 local numWithdrawals = GetNumVoidTransferWithdrawal();
  354                                                                                 self:Disable();
  355                                                                                 if ( ExecuteVoidTransfer() ) then
  356                                                                                         -- was successful so play an appropriate sound
  357                                                                                         if ( numDeposits == 0 ) then
  358                                                                                                 PlaySound("UI_VoidStorage_Withdraw");
  359                                                                                         elseif ( numWithdrawals == 0 ) then
  360                                                                                                 PlaySound("UI_VoidStorage_Deposit");
  361                                                                                         else
  362                                                                                                 PlaySound("UI_VoidStorage_Both");
  363                                                                                         end
  364                                                                                 end
  365                                                                         </OnClick>
  366                                                                 </Scripts>
  367                                                         </Button>
  368                                                         <Frame name="VoidStorageMoneyFrame" inherits="SmallMoneyFrameTemplate">
  369                                                                 <Anchors>
  370                                                                         <Anchor point="TOPRIGHT" x="8" y="-6"/>
  371                                                                 </Anchors>
  372                                                                 <Scripts>
  373                                                                         <OnLoad>
  374                                                                                 SmallMoneyFrame_OnLoad(self);
  375                                                                                 MoneyFrame_SetType(self, "STATIC");
  376                                                                         </OnLoad>
  377                                                                 </Scripts>
  378                                                         </Frame>
  379                                                 </Frames>
  380                                         </Frame>
  381                                 </Frames>
  382                         </Frame>
  383                         <Frame name="VoidStorageBorderFrame" setAllPoints="true" inherits="BasicFrameTemplate">
  384                                 <Layers>
  385                                         <Layer level="BORDER" textureSubLevel="-2">
  386                                                 <Texture name="$parentCornerTL" file="Interface\Transmogrify\Textures.png">
  387                                                         <Size x="64" y="64"/>
  388                                                         <Anchors>
  389                                                                 <Anchor point="TOPLEFT" x="-2" y="-18"/>
  390                                                         </Anchors>
  391                                                         <TexCoords left="0.00781250" right="0.50781250" top="0.00195313" bottom="0.12695313"/>
  392                                                 </Texture>
  393                                                 <Texture name="$parentCornerTR" file="Interface\Transmogrify\Textures.png">
  394                                                         <Size x="64" y="64"/>
  395                                                         <Anchors>
  396                                                                 <Anchor point="TOPRIGHT" x="0" y="-18"/>
  397                                                         </Anchors>
  398                                                         <TexCoords left="0.00781250" right="0.50781250" top="0.38476563" bottom="0.50781250"/>
  399                                                 </Texture>
  400                                                 <Texture name="$parentCornerBL" file="Interface\Transmogrify\Textures.png">
  401                                                         <Size x="64" y="64"/>
  402                                                         <Anchors>
  403                                                                 <Anchor point="BOTTOMLEFT" x="-2" y="-1"/>
  404                                                         </Anchors>
  405                                                         <TexCoords left="0.00781250" right="0.50781250" top="0.25781250" bottom="0.38085938"/> 
  406                                                 </Texture>
  407                                                 <Texture name="$parentCornerBR" file="Interface\Transmogrify\Textures.png">
  408                                                         <Size x="64" y="64"/>
  409                                                         <Anchors>
  410                                                                 <Anchor point="BOTTOMRIGHT" x="0" y="-1"/>
  411                                                         </Anchors>
  412                                                         <TexCoords left="0.00781250" right="0.50781250" top="0.13085938" bottom="0.25390625"/>
  413                                                 </Texture>
  414                                         </Layer>
  415                                         <Layer level="BORDER" textureSubLevel="-3">
  416                                                 <Texture name="$parentLeftEdge" file="Interface\Transmogrify\VerticalTiles.png" vertTile="true">
  417                                                         <Size x="23" y="64"/>
  418                                                         <Anchors>
  419                                                                 <Anchor point="TOPLEFT" relativeTo="$parentCornerTL" relativePoint="BOTTOMLEFT" x="3" y="16"/>
  420                                                                 <Anchor point="BOTTOMLEFT" relativeTo="$parentCornerBL" relativePoint="TOPLEFT" x="3" y="-16"/>
  421                                                         </Anchors>
  422                                                         <TexCoords left="0.40625000" right="0.76562500" top="0.00000000" bottom="1.00000000"/>
  423                                                 </Texture>
  424                                                 <Texture name="$parentRightEdge" file="Interface\Transmogrify\VerticalTiles.png" vertTile="true">
  425                                                         <Size x="23" y="64"/>
  426                                                         <Anchors>
  427                                                                 <Anchor point="TOPRIGHT" relativeTo="$parentCornerTR" relativePoint="BOTTOMRIGHT" x="-3" y="16"/>
  428                                                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parentCornerBR" relativePoint="TOPRIGHT" x="-3" y="-16"/>
  429                                                         </Anchors>
  430                                                         <TexCoords left="0.01562500" right="0.37500000" top="0.00000000" bottom="1.00000000"/>
  431                                                 </Texture>
  432                                                 <Texture name="$parentBottomEdge" file="Interface\Transmogrify\HorizontalTiles.png" horizTile="true">
  433                                                         <Size x="64" y="23"/>
  434                                                         <Anchors>
  435                                                                 <Anchor point="BOTTOMLEFT" relativeTo="$parentCornerBL" relativePoint="BOTTOMRIGHT" x="-30" y="4"/>
  436                                                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parentCornerBR" relativePoint="BOTTOMLEFT" x="30" y="4"/>
  437                                                         </Anchors>
  438                                                         <TexCoords left="0.00000000" right="1.00000000" top="0.01562500" bottom="0.37500000"/>
  439                                                 </Texture>
  440                                         </Layer>
  441                                         <Layer level="OVERLAY" textureSubLevel="-1">
  442                                                 <Texture name="$parentTopEdge" file="Interface\Transmogrify\HorizontalTiles.png" horizTile="true">
  443                                                         <Size x="64" y="23"/>
  444                                                         <Anchors>
  445                                                                 <Anchor point="TOPLEFT" x="2" y="-3"/>
  446                                                                 <Anchor point="TOPRIGHT" x="-2" y="-3"/>
  447                                                         </Anchors>
  448                                                         <TexCoords left="0.00000000" right="1.00000000" top="0.40625000" bottom="0.76562500"/>
  449                                                 </Texture>
  450                                         </Layer>
  451                                         <Layer level="OVERLAY" textureSubLevel="2">
  452                                                 <Texture name="$parentHeader" file="Interface\VoidStorage\VoidStorage.png">
  453                                                         <Size x="337" y="82"/>
  454                                                         <Anchors>
  455                                                                 <Anchor point="BOTTOM" relativeTo="$parent" relativePoint="TOP" x="0" y="-19"/>
  456                                                         </Anchors>
  457                                                         <TexCoords left="0.00195313" right="0.66015625" top="0.00195313" bottom="0.16210938"/>
  458                                                 </Texture>
  459                                         </Layer>
  460                                 </Layers>
  461                                 <Frames>
  462                                         <Frame name="$parentMouseBlockFrame" setAllPoints="true" enableMouse="true" hidden="true">
  463                                                 <Anchors>
  464                                                         <Anchor point="TOPLEFT" x="2" y="-22"/>
  465                                                         <Anchor point="BOTTOMRIGHT" x="-2" y="2"/>
  466                                                 </Anchors>
  467                                         </Frame>
  468                                         <Frame name="VoidStorageHelpBox" inherits="GlowBoxTemplate" hidden="true">
  469                                                 <Size x="190" y="200"/>
  470                                                 <Anchors>
  471                                                         <Anchor point="BOTTOMLEFT" x="30" y="241"/>
  472                                                 </Anchors>
  473                                                 <Layers>
  474                                                         <Layer level="ARTWORK">
  475                                                                 <FontString name="$parentBigText" inherits="GameFontHighlight">
  476                                                                         <Size x="176" y="0"/>
  477                                                                         <Anchors>
  478                                                                                 <Anchor point="TOP" x="0" y="-12"/>
  479                                                                         </Anchors>
  480                                                                 </FontString>
  481                                                                 <FontString name="$parentSmallText" inherits="GameFontHighlightSmall">
  482                                                                         <Size x="176" y="0"/>
  483                                                                         <Anchors>
  484                                                                                 <Anchor point="TOP" relativeTo="$parentBigText" relativePoint="BOTTOM" x="0" y="-12"/>
  485                                                                         </Anchors>
  486                                                                 </FontString>
  487                                                         </Layer>
  488                                                 </Layers>
  489                                                 <Frames>
  490                                                         <Frame name="$parentArrow" inherits="GlowBoxArrowTemplate">
  491                                                                 <Anchors>
  492                                                                         <Anchor point="TOP" relativePoint="BOTTOM" y="1"/>
  493                                                                 </Anchors>
  494                                                         </Frame>
  495                                                         <Button name="$parentButton" inherits="UIPanelButtonTemplate2" text="OKAY">
  496                                                                 <Size x="110" y="22"/>
  497                                                                 <Anchors>
  498                                                                         <Anchor point="BOTTOM" x="0" y="12"/>
  499                                                                 </Anchors>
  500                                                                 <Scripts>
  501                                                                         <OnClick>
  502                                                                                 PlaySound("igMainMenuOptionCheckBoxOn");
  503                                                                                 SetCVar("lastVoidStorageTutorial", self.currentTutorial);
  504                                                                                 VoidStorageFrame_Update();
  505                                                                         </OnClick>
  506                                                                 </Scripts>
  507                                                         </Button>
  508                                                 </Frames>
  509                                         </Frame>
  510                                         <Frame name="VoidStoragePurchaseFrame" hidden="true">
  511                                                 <Size x="418" y="236"/>
  512                                                 <Anchors>
  513                                                         <Anchor point="CENTER"/>
  514                                                 </Anchors>
  515                                                 <Layers>
  516                                                         <Layer level="BACKGROUND" textureSubLevel="-6">
  517                                                                 <Texture name="$parentMarbleBg" file="Interface\FrameGeneral\UI-Background-Marble" horizTile="true" vertTile="true">
  518                                                                         <Anchors>
  519                                                                                 <Anchor point="TOPLEFT" x="8" y="-8"/>
  520                                                                                 <Anchor point="BOTTOMRIGHT" x="-8" y="8"/>
  521                                                                         </Anchors>
  522                                                                 </Texture>
  523                                                         </Layer>
  524                                                         <Layer level="BACKGROUND" textureSubLevel="-5">
  525                                                                 <Texture setAllPoints="true">
  526                                                                         <Anchors>
  527                                                                                 <Anchor point="TOPLEFT" x="8" y="-8"/>
  528                                                                                 <Anchor point="BOTTOMRIGHT" x="-8" y="8"/>
  529                                                                         </Anchors>
  530                                                                         <Color r="0.302" g="0.102" b="0.204" a="0.5"/>
  531                                                                 </Texture>
  532                                                         </Layer>
  533                                                         <Layer level="BACKGROUND" textureSubLevel="-2">
  534                                                                 <Texture name="$parentCornerTL" file="Interface\Transmogrify\Textures.png">
  535                                                                         <Size x="64" y="64"/>
  536                                                                         <Anchors>
  537                                                                                 <Anchor point="TOPLEFT" x="0" y="0"/>
  538                                                                         </Anchors>
  539                                                                         <TexCoords left="0.00781250" right="0.50781250" top="0.00195313" bottom="0.12695313"/>
  540                                                                 </Texture>
  541                                                                 <Texture name="$parentCornerTR" file="Interface\Transmogrify\Textures.png">
  542                                                                         <Size x="64" y="64"/>
  543                                                                         <Anchors>
  544                                                                                 <Anchor point="TOPRIGHT" x="0" y="0"/>
  545                                                                         </Anchors>
  546                                                                         <TexCoords left="0.00781250" right="0.50781250" top="0.38476563" bottom="0.50781250"/>
  547                                                                 </Texture>
  548                                                                 <Texture name="$parentCornerBL" file="Interface\Transmogrify\Textures.png">
  549                                                                         <Size x="64" y="64"/>
  550                                                                         <Anchors>
  551                                                                                 <Anchor point="BOTTOMLEFT" x="0" y="0"/>
  552                                                                         </Anchors>
  553                                                                         <TexCoords left="0.00781250" right="0.50781250" top="0.25781250" bottom="0.38085938"/> 
  554                                                                 </Texture>
  555                                                                 <Texture name="$parentCornerBR" file="Interface\Transmogrify\Textures.png">
  556                                                                         <Size x="64" y="64"/>
  557                                                                         <Anchors>
  558                                                                                 <Anchor point="BOTTOMRIGHT" x="0" y="0"/>
  559                                                                         </Anchors>
  560                                                                         <TexCoords left="0.00781250" right="0.50781250" top="0.13085938" bottom="0.25390625"/>
  561                                                                 </Texture>
  562                                                         </Layer>
  563                                                         <Layer level="BACKGROUND" textureSubLevel="-3">
  564                                                                 <Texture name="$parentTopEdge" file="Interface\Transmogrify\HorizontalTiles.png" horizTile="true">
  565                                                                         <Size x="64" y="23"/>
  566                                                                         <Anchors>
  567                                                                                 <Anchor point="TOPLEFT" relativeTo="$parentCornerTL" relativePoint="TOPRIGHT" x="-30" y="-5"/>
  568                                                                                 <Anchor point="TOPRIGHT" relativeTo="$parentCornerTR" relativePoint="TOPLEFT" x="30" y="-5"/>
  569                                                                         </Anchors>
  570                                                                         <TexCoords left="0.00000000" right="1.00000000" top="0.40625000" bottom="0.76562500"/>
  571                                                                 </Texture>
  572                                                                 <Texture name="$parentLeftEdge" file="Interface\Transmogrify\VerticalTiles.png" vertTile="true">
  573                                                                         <Size x="23" y="64"/>
  574                                                                         <Anchors>
  575                                                                                 <Anchor point="TOPLEFT" relativeTo="$parentCornerTL" relativePoint="BOTTOMLEFT" x="4" y="16"/>
  576                                                                                 <Anchor point="BOTTOMLEFT" relativeTo="$parentCornerBL" relativePoint="TOPLEFT" x="4" y="-16"/>
  577                                                                         </Anchors>
  578                                                                         <TexCoords left="0.40625000" right="0.76562500" top="0.00000000" bottom="1.00000000"/>
  579                                                                 </Texture>
  580                                                                 <Texture name="$parentRightEdge" file="Interface\Transmogrify\VerticalTiles.png" vertTile="true">
  581                                                                         <Size x="23" y="64"/>
  582                                                                         <Anchors>
  583                                                                                 <Anchor point="TOPRIGHT" relativeTo="$parentCornerTR" relativePoint="BOTTOMRIGHT" x="-4" y="16"/>
  584                                                                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parentCornerBR" relativePoint="TOPRIGHT" x="-4" y="-16"/>
  585                                                                         </Anchors>
  586                                                                         <TexCoords left="0.01562500" right="0.37500000" top="0.00000000" bottom="1.00000000"/>
  587                                                                 </Texture>
  588                                                                 <Texture name="$parentBottomEdge" file="Interface\Transmogrify\HorizontalTiles.png" horizTile="true">
  589                                                                         <Size x="64" y="23"/>
  590                                                                         <Anchors>
  591                                                                                 <Anchor point="BOTTOMLEFT" relativeTo="$parentCornerBL" relativePoint="BOTTOMRIGHT" x="-30" y="4"/>
  592                                                                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parentCornerBR" relativePoint="BOTTOMLEFT" x="30" y="4"/>
  593                                                                         </Anchors>
  594                                                                         <TexCoords left="0.00000000" right="1.00000000" top="0.01562500" bottom="0.37500000"/>
  595                                                                 </Texture>
  596                                                         </Layer>
  597                                                         <Layer level="ARTWORK">
  598                                                                 <FontString name="$parentLabel" inherits="GameFontNormal" text="VOID_STORAGE_WELCOME">
  599                                                                         <Anchors>
  600                                                                                 <Anchor point="TOP" x="0" y="-32"/>
  601                                                                         </Anchors>
  602                                                                 </FontString>
  603                                                                 <FontString name="$parentDescription" inherits="GameFontHighlight" text="VOID_STORAGE_WELCOME_TEXT">
  604                                                                         <Anchors>
  605                                                                                 <Anchor point="TOP" relativeTo="$parentLabel" relativePoint="BOTTOM" x="0" y="-20"/>
  606                                                                         </Anchors>
  607                                                                 </FontString>
  608                                                         </Layer>
  609                                                 </Layers>
  610                                                 <Frames>
  611                                                         <Button name="VoidStoragePurchaseButton" inherits="UIPanelButtonTemplate2" text="UNLOCK_VOID_STORAGE">
  612                                                                 <Size x="204" y="22"/>
  613                                                                 <Anchors>
  614                                                                         <Anchor point="BOTTOM" x="0" y="36"/>
  615                                                                 </Anchors>
  616                                                                 <Scripts>
  617                                                                         <OnClick>
  618                                                                                 PlaySound("UI_Voidstorage_Unlock");
  619                                                                                 UnlockVoidStorage();
  620                                                                         </OnClick>
  621                                                                 </Scripts>
  622                                                         </Button>
  623                                                         <Frame name="VoidStoragePurchaseMoneyFrame" inherits="SmallMoneyFrameTemplate">
  624                                                                 <Anchors>
  625                                                                         <Anchor point="BOTTOM" relativeTo="VoidStoragePurchaseButton" relativePoint="TOP" x="0" y="4"/>
  626                                                                 </Anchors>
  627                                                                 <Layers>
  628                                                                         <Layer level="ARTWORK">
  629                                                                                 <FontString name="$parentPrefixText" inherits="GameFontNormal" text="COSTS_LABEL">
  630                                                                                         <Anchors>
  631                                                                                                 <Anchor point="LEFT" x="0" y="0"/>
  632                                                                                         </Anchors>
  633                                                                                 </FontString>
  634                                                                         </Layer>
  635                                                                 </Layers>
  636                                                                 <Scripts>
  637                                                                         <OnLoad>
  638                                                                                 SmallMoneyFrame_OnLoad(self);
  639                                                                                 MoneyFrame_SetType(self, "STATIC");
  640                                                                         </OnLoad>
  641                                                                 </Scripts>
  642                                                         </Frame>
  643                                                 </Frames>
  644                                         </Frame>
  645                                 </Frames>
  646                         </Frame>
  647                 </Frames>
  648                 <Scripts>
  649                         <OnLoad function="VoidStorageFrame_OnLoad"/>
  650                         <OnEvent function="VoidStorageFrame_OnEvent"/>
  651                         <OnShow function="VoidStorageFrame_OnShow"/>
  652                         <OnHide function="VoidStorageFrame_OnHide"/>
  653                 </Scripts>
  654         </Frame>
 
  656         <EditBox name="VoidItemSearchBox" inherits="BagSearchBoxTemplate" parent="VoidStorageFrame" letters="15">
  657                 <Size x="130" y="20"/>
  658                 <Anchors>
  659                         <Anchor point="TOPRIGHT" x="-50" y="-28"/>
  660                 </Anchors>
  661         </EditBox>
  662 </Ui>
   
File: AddOns\Blizzard_VoidStorageUI\Localization.lua  
  1 -- This file is executed at the end of addon load
   
File: FrameXML\ActionBarFrame.xml  
4           <CheckButton name="ActionBarButtonTemplate" inherits="SecureActionButtonTemplate, ActionButtonTemplate" virtual="true">
  4         <CheckButton name="ActionBarButtonCodeTemplate" inherits="SecureActionButtonTemplate" virtual="true">
 
  43         </CheckButton>
  44         <CheckButton name="ActionBarButtonTemplate" inherits="ActionBarButtonCodeTemplate, ActionButtonTemplate" virtual="true">
 
  160         <Frame name="ActionBarButtonEventsFrame">
  161                 <Scripts>
  162                         <OnLoad function="ActionBarButtonEventsFrame_OnLoad"/>
  163                         <OnEvent function="ActionBarButtonEventsFrame_OnEvent"/>
  164                 </Scripts>
  165         </Frame>
  166         <Frame name="ActionBarActionEventsFrame">
  167                 <Scripts>
  168                         <OnLoad function="ActionBarActionEventsFrame_OnLoad"/>
  169                         <OnEvent function="ActionBarActionEventsFrame_OnEvent"/>
  170                 </Scripts>
  171         </Frame>
   
File: FrameXML\ActionButton.lua  
  86 function ActionBarButtonEventsFrame_OnLoad(self)
  87         self.frames = { };
  88         self:RegisterEvent("PLAYER_ENTERING_WORLD");
  89         self:RegisterEvent("ACTIONBAR_SHOWGRID");
  90         self:RegisterEvent("ACTIONBAR_HIDEGRID");
  91         self:RegisterEvent("ACTIONBAR_PAGE_CHANGED");
  92         self:RegisterEvent("ACTIONBAR_SLOT_CHANGED");
  93         self:RegisterEvent("UPDATE_BINDINGS");
  94         self:RegisterEvent("UPDATE_SHAPESHIFT_FORM");
  95 end
 
  97 function ActionBarButtonEventsFrame_OnEvent(self, event, ...)
  98         for k, frame in pairs(self.frames) do
  99                 ActionButton_OnEvent(frame, event, ...);
  100         end
  101 end
 
  103 function ActionBarButtonEventsFrame_RegisterFrame(frame)
  104         tinsert(ActionBarButtonEventsFrame.frames, frame);
  105 end
 
  107 function ActionBarActionEventsFrame_OnLoad(self)
  108         self.frames = { };
  109         self:RegisterEvent("ACTIONBAR_UPDATE_STATE");
  110         self:RegisterEvent("ACTIONBAR_UPDATE_USABLE");
  111         self:RegisterEvent("ACTIONBAR_UPDATE_COOLDOWN");
  112         self:RegisterEvent("UPDATE_INVENTORY_ALERTS");
  113         self:RegisterEvent("PLAYER_TARGET_CHANGED");
  114         self:RegisterEvent("TRADE_SKILL_SHOW");
  115         self:RegisterEvent("TRADE_SKILL_CLOSE");
  116         self:RegisterEvent("ARCHAEOLOGY_CLOSED");
  117         self:RegisterEvent("PLAYER_ENTER_COMBAT");
  118         self:RegisterEvent("PLAYER_LEAVE_COMBAT");
  119         self:RegisterEvent("START_AUTOREPEAT_SPELL");
  120         self:RegisterEvent("STOP_AUTOREPEAT_SPELL");
  121         self:RegisterEvent("UNIT_ENTERED_VEHICLE");
  122         self:RegisterEvent("UNIT_EXITED_VEHICLE");
  123         self:RegisterEvent("COMPANION_UPDATE");
  124         self:RegisterEvent("UNIT_INVENTORY_CHANGED");
  125         self:RegisterEvent("LEARNED_SPELL_IN_TAB");
  126         self:RegisterEvent("PET_STABLE_UPDATE");
  127         self:RegisterEvent("PET_STABLE_SHOW");
  128         self:RegisterEvent("SPELL_ACTIVATION_OVERLAY_GLOW_SHOW");
  129         self:RegisterEvent("SPELL_ACTIVATION_OVERLAY_GLOW_HIDE");
  130 end
 
  132 function ActionBarActionEventsFrame_OnEvent(self, event, ...)
  133         for k, frame in pairs(self.frames) do
  134                 ActionButton_OnEvent(frame, event, ...);
  135         end
  136 end
 
  138 function ActionBarActionEventsFrame_RegisterFrame(frame)
  139         ActionBarActionEventsFrame.frames[frame] = frame;
  140 end
 
  142 function ActionBarActionEventsFrame_UnregisterFrame(frame)
  143         ActionBarActionEventsFrame.frames[frame] = nil;
  144 end
 
97           self:RegisterEvent("PLAYER_ENTERING_WORLD");
98           self:RegisterEvent("ACTIONBAR_SHOWGRID");
99           self:RegisterEvent("ACTIONBAR_HIDEGRID");
100           self:RegisterEvent("ACTIONBAR_PAGE_CHANGED");
101           self:RegisterEvent("ACTIONBAR_SLOT_CHANGED");
102           self:RegisterEvent("UPDATE_BINDINGS");
103           self:RegisterEvent("UPDATE_SHAPESHIFT_FORM");
  157         ActionBarButtonEventsFrame_RegisterFrame(self);
 
128           hotkey:SetPoint("TOPLEFT", self, "TOPLEFT", 1, -2);
 
132           hotkey:SetPoint("TOPLEFT", self, "TOPLEFT", -2, -2);
 
  203                         elseif ( self.isExtra ) then
  204                                 page = NUM_ACTIONBAR_PAGES + GetExtraBarOffset();
 
179                           self:RegisterEvent("ACTIONBAR_UPDATE_STATE");
180                           self:RegisterEvent("ACTIONBAR_UPDATE_USABLE");
181                           self:RegisterEvent("ACTIONBAR_UPDATE_COOLDOWN");
182                           self:RegisterEvent("UPDATE_INVENTORY_ALERTS");
183                           self:RegisterEvent("PLAYER_TARGET_CHANGED");
184                           self:RegisterEvent("TRADE_SKILL_SHOW");
185                           self:RegisterEvent("TRADE_SKILL_CLOSE");
186                           self:RegisterEvent("ARCHAEOLOGY_CLOSED");
187                           self:RegisterEvent("PLAYER_ENTER_COMBAT");
188                           self:RegisterEvent("PLAYER_LEAVE_COMBAT");
189                           self:RegisterEvent("START_AUTOREPEAT_SPELL");
190                           self:RegisterEvent("STOP_AUTOREPEAT_SPELL");
191                           self:RegisterEvent("UNIT_ENTERED_VEHICLE");
192                           self:RegisterEvent("UNIT_EXITED_VEHICLE");
193                           self:RegisterEvent("COMPANION_UPDATE");
194                           self:RegisterEvent("UNIT_INVENTORY_CHANGED");
195                           self:RegisterEvent("LEARNED_SPELL_IN_TAB");
196                           self:RegisterEvent("PET_STABLE_UPDATE");
197                           self:RegisterEvent("PET_STABLE_SHOW");
198                           self:RegisterEvent("SPELL_ACTIVATION_OVERLAY_GLOW_SHOW");
199                           self:RegisterEvent("SPELL_ACTIVATION_OVERLAY_GLOW_HIDE");
  233                         ActionBarActionEventsFrame_RegisterFrame(self);
 
212                           self:UnregisterEvent("ACTIONBAR_UPDATE_STATE");
213                           self:UnregisterEvent("ACTIONBAR_UPDATE_USABLE");
214                           self:UnregisterEvent("ACTIONBAR_UPDATE_COOLDOWN");
215                           self:UnregisterEvent("UPDATE_INVENTORY_ALERTS");
216                           self:UnregisterEvent("PLAYER_TARGET_CHANGED");
217                           self:UnregisterEvent("TRADE_SKILL_SHOW");
218                           self:UnregisterEvent("ARCHAEOLOGY_CLOSED");
219                           self:UnregisterEvent("TRADE_SKILL_CLOSE");
220                           self:UnregisterEvent("PLAYER_ENTER_COMBAT");
221                           self:UnregisterEvent("PLAYER_LEAVE_COMBAT");
222                           self:UnregisterEvent("START_AUTOREPEAT_SPELL");
223                           self:UnregisterEvent("STOP_AUTOREPEAT_SPELL");
224                           self:UnregisterEvent("UNIT_ENTERED_VEHICLE");
225                           self:UnregisterEvent("UNIT_EXITED_VEHICLE");
226                           self:UnregisterEvent("COMPANION_UPDATE");
227                           self:UnregisterEvent("UNIT_INVENTORY_CHANGED");
228                           self:UnregisterEvent("LEARNED_SPELL_IN_TAB");
229                           self:UnregisterEvent("PET_STABLE_UPDATE");
230                           self:UnregisterEvent("PET_STABLE_SHOW");
231                           self:UnregisterEvent("SPELL_ACTIVATION_OVERLAY_GLOW_SHOW");
232                           self:UnregisterEvent("SPELL_ACTIVATION_OVERLAY_GLOW_HIDE");
  246                         ActionBarActionEventsFrame_UnregisterFrame(self)
 
  259         if border then
 
  265                 end
 
  270         if actionName then
 
  275                 end
 
265                   self:SetNormalTexture("Interface\\Buttons\\UI-Quickslot2");
 
270                   self:SetNormalTexture("Interface\\Buttons\\UI-Quickslot");
 
  316         if ( _G[button:GetName().."NormalTexture"] ) then
 
  318         end
 
  356         if ( not normalTexture ) then
  357                 return;
  358         end
 
367           local cooldown = _G[self:GetName().."Cooldown"];
 
369           CooldownFrame_SetTimer(cooldown, start, duration, enable);
  390         CooldownFrame_SetTimer(self.cooldown, start, duration, enable);
 
  409         elseif ( spellType == "macro" ) then
  410                 local _, _, spellId = GetMacroSpell(id);
  411                 if ( spellId and IsSpellOverlayed(spellId) ) then
  412                         ActionButton_ShowOverlayGlow(self);
  413                 else
  414                         ActionButton_HideOverlayGlow(self);
  415                 end
 
451           if ( event == "ACTIONBAR_PAGE_CHANGED" or event == "UPDATE_BONUS_ACTIONBAR" ) then
  479         if ( event == "ACTIONBAR_PAGE_CHANGED" or event == "UPDATE_BONUS_ACTIONBAR" or event == "UPDATE_EXTRA_ACTIONBAR" ) then
 
  541                 elseif ( actionType == "macro" ) then
  542                         local _, _, spellId = GetMacroSpell(id);
  543                         if ( spellId and spellId == arg1 ) then
  544                                 ActionButton_ShowOverlayGlow(self);
  545                         end
 
  551                 elseif ( actionType == "macro" ) then
  552                         local _, _, spellId = GetMacroSpell(id);
  553                         if (spellId and spellId == arg1 ) then
  554                                 ActionButton_HideOverlayGlow(self);
  555                         end
 
  667         if not self.FlyoutArrow then
  668                 return;
  669         end
   
File: FrameXML\ActionButtonTemplate.xml  
47                                                                   <AbsDimension x="-2" y="-2"/>
  47                                                                 <AbsDimension x="1" y="-3"/>
 
90                           <Cooldown name="$parentCooldown" inherits="CooldownFrameTemplate">
  90                         <Cooldown name="$parentCooldown" inherits="CooldownFrameTemplate" parentKey="cooldown">
   
File: FrameXML\AudioOptionsPanels.xml  
679                                                   GameTooltip:SetText(VOICECHAT_DISABLED_TEXT, nil, nil, nil, nil, 1);
  679                                                 local stringChoice;
  680                                                 if ( Is64BitClient() ) then
  681                                                         stringChoice = VOICECHAT_NO_64BIT_TEXT;
  682                                                 else
  683                                                         stringChoice = VOICECHAT_DISABLED_TEXT;
  684                                                 end
  685                                                 GameTooltip:SetText(stringChoice, nil, nil, nil, nil, 1);
   
File: FrameXML\BankFrame.lua  
  22         self:RegisterEvent("INVENTORY_SEARCH_UPDATE");
  23 end
 
  25 function BankFrameBagButton_OnEvent (self, event, ...)
  26         if ( event == "INVENTORY_SEARCH_UPDATE" ) then
  27                 if ( IsContainerFiltered(self:GetID()) ) then
  28                         self.searchOverlay:Show();
  29                 else
  30                         self.searchOverlay:Hide();
  31                 end
  32         end
 
  49         local _, _, _, _, _, _, _, isFiltered = GetContainerItemInfo(BANK_CONTAINER, button:GetID());
 
  85         if ( isFiltered ) then
  86                 button.searchOverlay:Show();
  87         else
  88                 button.searchOverlay:Hide();
  89         end
 
  126         self.size = 28;
  127         self:SetID(BANK_CONTAINER);
 
  202         elseif ( event == "INVENTORY_SEARCH_UPDATE" ) then
  203                 ContainerFrame_UpdateSearchResults(self);
 
  215         self:RegisterEvent("INVENTORY_SEARCH_UPDATE");
 
  238         self:UnregisterEvent("INVENTORY_SEARCH_UPDATE");
   
File: FrameXML\BankFrame.xml  
  65                         <OnEvent>
  66                                 BankFrameBagButton_OnEvent(self, event, ...);
  67                         </OnEvent>
 
138                                                   <Anchor point="CENTER">
139                                                           <Offset>
140                                                                   <AbsDimension x="-3" y="200"/>
141                                                           </Offset>
142                                                   </Anchor>
  141                                                 <Anchor point="CENTER" x="-80" y="200"/>
 
  575         <EditBox name="BankItemSearchBox" inherits="BagSearchBoxTemplate" parent="BankFrame" letters="15">
  576                 <Size x="130" y="20"/>
  577                 <Anchors>
  578                         <Anchor point="TOPRIGHT" x="-40" y="-45"/>
  579                 </Anchors>
  580         </EditBox>
   
File: FrameXML\Bindings.xml  
  209         <Binding name="EXTRAACTIONBUTTON1" runOnUp="true">
  210                 ExtraActionButtonKey(1, keystate == "down")
  211         </Binding>
 
709                   ToggleFriendsFrame(4);
  713                 ToggleRaidFrame();
 
715                   ToggleLFRParentFrame();
  719                 ToggleFriendsFrame(4);
 
739                   ToggleFrame(EncounterJournal);
  743                 ToggleEncounterJournal();
   
File: FrameXML\BNet.xml  
368                           <Button name="$parentReportButton" inherits="UIPanelButtonTemplate2" text="BNET_REPORT_ABUSE_BUTTON">
  368                         <Button name="$parentReportButton" inherits="UIPanelButtonTemplate2" text="BNET_REPORT_ABUSE_BUTTON_SHORT">
   
File: FrameXML\BonusActionBarFrame.lua  
227                                   if not MultiBarRight:IsShown() then
  227                                 if SHOW_MULTI_ACTIONBAR_3 then
 
256                                   if MultiBarRight:IsShown() then
  256                                 if SHOW_MULTI_ACTIONBAR_3 then
 
  534 local ExtraActionStyles = {
  535         default = "SpellPush-Frame",
  536         [106466] = "SpellPush-Frame-Ysera",
  537 }
 
  539 function ExtraActionBar_OnLoad (self)
  540         self:RegisterEvent("UPDATE_EXTRA_ACTIONBAR");
  541         self:SetFrameLevel(self:GetFrameLevel() + 2);
  542         if ( HasExtraActionBar() ) then
  543                 self:Show();
  544         end
  545         self:SetAlpha(0.0)
  546 end
 
  549 function ExtraActionBar_OnShow (self)
  550         local _, spellID = GetActionInfo(self.button.action);
  551         local texture = ExtraActionStyles[spellID] or ExtraActionStyles["default"];
  552         self.button.style:SetTexture("Interface\\UnitPowerBarAlt\\"..texture);
  553         UIParent_ManageFramePositions();
  554 end
 
  557 function ExtraActionBar_OnHide (self)
  558         UIParent_ManageFramePositions();
  559 end
 
  561 function ExtraActionBar_OnEvent (self, event, ...)
  562         if ( event == "UPDATE_EXTRA_ACTIONBAR" ) then
  563                 if ( HasExtraActionBar() ) then
  564                         self:Show();
  565                         self.outro:Stop();
  566                         self.intro:Play();
  567                 elseif( self:IsShown() ) then
  568                         self.intro:Stop();
  569                         self.outro:Play();
  570                 end
  571         end
  572 end
 
  574 function ExtraActionButtonKey(id, isDown)
  575         local button = _G["ExtraActionButton"..id];
 
  577         if isDown then
  578                 if ( button:GetButtonState() == "NORMAL" ) then
  579                         button:SetButtonState("PUSHED");
  580                 end
  581                 if (GetCVarBool("ActionButtonUseKeyDown")) then
  582                         SecureActionButton_OnClick(button, "LeftButton");
  583                         ActionButton_UpdateState(button);
  584                 end
  585         else
  586                 if ( button:GetButtonState() == "PUSHED" ) then
  587                         button:SetButtonState("NORMAL");
  588                         if (not GetCVarBool("ActionButtonUseKeyDown")) then
  589                                 SecureActionButton_OnClick(button, "LeftButton");
  590                                 ActionButton_UpdateState(button);
  591                         end
  592                 end
  593         end
  594 end
   
File: FrameXML\BonusActionBarFrame.xml  
  430         <CheckButton name="ExtraActionButtonTemplate" inherits="ActionBarButtonCodeTemplate" virtual="true">
  431                 <Size x="52" y="52"/>
  432                 <Layers>
  433                         <Layer level="BACKGROUND">
  434                                 <Texture name="$parentIcon" parentKey="icon"/>
  435                         </Layer>
  436                         <Layer level="ARTWORK" textureSubLevel = "1">
  437                                 <Texture name="$parentFlash" file="Interface\Buttons\UI-QuickslotRed" hidden="true"/>
  438                         </Layer>
  439                         <Layer level="ARTWORK" textureSubLevel="2">
  440                                 <FontString name="$parentHotKey" inherits="NumberFontNormalGray">
  441                                         <Size x="0" y="0"/>
  442                                         <Anchors>
  443                                                 <Anchor point="TOPLEFT" x="10" y="-10"/>
  444                                         </Anchors>
  445                                 </FontString>
  446                                 <FontString name="$parentCount" inherits="NumberFontNormal" justifyH="RIGHT">
  447                                         <Anchors>
  448                                                 <Anchor point="BOTTOMRIGHT" x="-10" y="10"/>
  449                                         </Anchors>
  450                                 </FontString>
  451                         </Layer>
  452                         <Layer level="OVERLAY">
  453                                 <Texture name="$parentFlash" file="Interface\Buttons\UI-QuickslotRed" hidden="true"/>
  454                                 <Texture file="Interface\UnitPowerBarAlt\SpellPush-Frame" parentKey="style">
  455                                         <Size x="256" y="128"/>
  456                                         <Anchors>
  457                                                 <Anchor point="CENTER" x="-2" y="0"/>
  458                                         </Anchors>
  459                                 </Texture>
  460                         </Layer>
  461                 </Layers>
  462                 <Frames>
  463                         <Cooldown name="$parentCooldown" inherits="CooldownFrameTemplate" parentKey="cooldown">
  464                                 <Anchors>
  465                                         <Anchor point="TOPLEFT" x="5" y="-4"/>
  466                                         <Anchor point="BOTTOMRIGHT" x="-5" y="5"/>
  467                                 </Anchors>
  468                         </Cooldown>
  469                 </Frames>
  470                 <HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
  471                 <CheckedTexture alphaMode="ADD" file="Interface\Buttons\CheckButtonHilight"/>
  472                 <Scripts>
  473                         <OnLoad>
  474                                 self.isExtra = true;
  475                                 self.buttonType = "EXTRAACTIONBUTTON";
  476                                 ActionButton_OnLoad(self);
  477                                 self:RegisterEvent("UPDATE_EXTRA_ACTIONBAR");
  478                         </OnLoad>
  479                 </Scripts>
  480         </CheckButton>
 
  482         <Frame name="ExtraActionBarFrame" frameStrata="HIGH" parent="MainMenuBar" enableMouse="true" toplevel="true" hidden="true">
  483                 <Size x="64" y="64"/>
  484                 <Anchors>
  485                         <Anchor point="BOTTOM" x="0" y="160"/>
  486                 </Anchors>
  487                 <Animations>
  488                         <AnimationGroup parentKey="intro">
  489                                 <Alpha change="1.0" duration="0.3" order="1"/>
  490                                 <Scripts>
  491                                         <OnFinished>
  492                                                 self:GetParent():SetAlpha(1.0);
  493                                         </OnFinished>
  494                                 </Scripts>
  495                         </AnimationGroup>
  496                         <AnimationGroup parentKey="outro">
  497                                 <Alpha change="-1.0" duration="0.3" order="1"/>
  498                                 <Scripts>
  499                                         <OnFinished>
  500                                                 self:GetParent():SetAlpha(0.0);
  501                                                 self:GetParent():Hide();
  502                                         </OnFinished>
  503                                 </Scripts>
  504                         </AnimationGroup>
  505                 </Animations>
  506                 <Frames>
  507                         <CheckButton name="ExtraActionButton1" inherits="ExtraActionButtonTemplate" id="1" parentKey="button">
  508                                 <Anchors>
  509                                         <Anchor point="CENTER" x="0" y="0"/>
  510                                 </Anchors>
  511                         </CheckButton>
  512                 </Frames>
  513                 <Scripts>
  514                         <OnLoad function="ExtraActionBar_OnLoad"/>
  515                         <OnShow function="ExtraActionBar_OnShow"/>
  516                         <OnHide function="ExtraActionBar_OnHide"/>
  517                         <OnEvent function="ExtraActionBar_OnEvent"/>
  518                 </Scripts>
  519         </Frame>
   
File: FrameXML\CastingBarFrame.lua  
  410                 castBar.barFlash:SetHeight(49);
   
File: FrameXML\ChannelFrame.lua  
  29         for i = 2, 20 do
  30                 local button = CreateFrame("Button", "ChannelButton"..i, ChannelListScrollFrame, "ChannelButtonTemplate");
  31                 button:SetID(i);
  32                 button:SetPoint("TOPLEFT", _G["ChannelButton"..(i-1)], "BOTTOMLEFT");
  33         end
  34         for i = 2, 22 do
  35                 local button = CreateFrame("Button", "ChannelMemberButton"..i, ChannelRoster, "ChannelRosterButtonTemplate");
  36                 button:SetID(i);
  37                 button:SetPoint("TOPLEFT", _G["ChannelMemberButton"..(i-1)], "BOTTOMLEFT");
  38         end
 
282                   ChannelMemberButton1:SetPoint("TOPLEFT", ChannelFrame, "TOPLEFT", 186, -75);
283                   ChannelRoster:SetPoint("TOPLEFT", ChannelFrame, "TOP", 121, -79);
  294                 ChannelMemberButton1:SetPoint("TOPLEFT", ChannelFrame, "TOPLEFT", 172, -64);
  295                 ChannelRoster:SetPoint("TOPLEFT", ChannelFrame, "TOP", 109, -68);
 
289                   ChannelMemberButton1:SetPoint("TOPLEFT", ChannelFrame, "TOPLEFT", 206, -75);
290                   ChannelRoster:SetPoint("TOPLEFT", ChannelFrame, "TOP", 97, -77);
  301                 ChannelMemberButton1:SetPoint("TOPLEFT", ChannelFrame, "TOPLEFT", 192, -64);
  302                 ChannelRoster:SetPoint("TOPLEFT", ChannelFrame, "TOP", 85, -66);
   
File: FrameXML\ChannelFrame.xml  
6                   <Size>
7                           <AbsDimension x="16" y="16"/>
8                   </Size>
  6                 <Size x="16" y="16"/>
 
24                   <Size>
25                           <AbsDimension x="155" y="20"/>
26                   </Size>
  22                 <Size x="155" y="20"/>
 
31                                                   <Anchor point="RIGHT">
32                                                           <Offset x="-5" y="0"/>
33                                                   </Anchor>
  27                                                 <Anchor point="RIGHT" x="-5" y="0"/>
 
40                                   <Size>
41                                           <AbsDimension x="16" y="16"/>
42                                   </Size>
  34                                 <Size x="16" y="16"/>
 
44                                           <Anchor point="LEFT" relativePoint="RIGHT">
45                                                   <Offset>
46                                                           <AbsDimension x="-20" y="1"/>
47                                                   </Offset>
48                                           </Anchor>
  36                                         <Anchor point="LEFT" relativePoint="RIGHT" x="-20" y="1"/>
 
88                           <Size>
89                                   <AbsDimension x="135" y="8"/>
90                           </Size>
  76                         <Size x="135" y="8"/>
 
92                                   <Anchor point="LEFT">
93                                           <Offset>
94                                                   <AbsDimension x="5" y="0"/>
95                                           </Offset>
96                                   </Anchor>
  78                                 <Anchor point="LEFT" x="5" y="0"/>
 
103                   <Size>
104                           <AbsDimension x="130" y="15"/>
105                   </Size>
  85                 <Size x="130" y="15"/>
 
112                                                                   <Anchor point="TOPLEFT">
113                                                                           <Offset>
114                                                                                   <AbsDimension x="13" y="-1"/>
115                                                                           </Offset>
116                                                                   </Anchor>
  92                                                                 <Anchor point="TOPLEFT" x="13" y="-1"/>
 
123                                   <Size>
124                                           <AbsDimension x="12" y="12"/>
125                                   </Size>
  99                                 <Size x="12" y="12"/>
 
127                                           <Anchor point="LEFT" relativeTo="$parent">
128                                                   <Offset x="0" y="1"/>
129                                           </Anchor>
  101                                         <Anchor point="LEFT" relativeTo="$parent" x="0" y="1"/>
 
153                                   <Size>
154                                           <AbsDimension x="12" y="12"/>
155                                   </Size>
  125                                 <Size x="12" y="12"/>
 
157                                           <Anchor point="RIGHT">
158                                                   <Offset>
159                                                           <AbsDimension x="-5" y="0"/>
160                                                   </Offset>
161                                           </Anchor>
  127                                         <Anchor point="RIGHT" x="-5" y="0"/>
 
188                   <Size>
189                           <AbsDimension x="355" y="512"/>
190                   </Size>
  154                 <Size x="340" y="450"/>
 
192                           <Anchor point="TOPLEFT">
193                                   <Offset>
194                                           <AbsDimension x="0" y="0"/>
195                                   </Offset>
196                           </Anchor>
  156                         <Anchor point="TOPLEFT" x="0" y="0"/>
 
199                           <Frame name="$parentVerticalBar">
200                                   <Size>
201                                           <AbsDimension x="13" y="300"/>
202                                   </Size>
203                                   <Anchors>
204                                           <Anchor point="CENTER">
205                                                   <Offset x="3" y="35"/>
206                                           </Anchor>
207                                   </Anchors>
208                                   <Layers>
209                                           <Layer level="BACKGROUND">
210                                                   <Texture name="$parentTop" file="Interface\FriendsFrame\UI-ChannelFrame-VerticalBar">
211                                                           <Size x="12" y="128"/>
  159                         <Frame name="$parentLeftInset" inherits="InsetFrameTemplate">
 
213                                                                   <Anchor point="TOPLEFT"/>
214                                                           </Anchors>
215                                                           <TexCoords left="0" right="0.1875" top="0" bottom="1.0"/>
216                                                   </Texture>
217                                                   <Texture name="$parentMiddle" file="Interface\FriendsFrame\UI-ChannelFrame-VerticalBar">
218                                                           <Size x="9" y="128"/>
219                                                           <Anchors>
220                                                                   <Anchor point="TOPLEFT" relativeTo="$parentTop">
221                                                                           <Offset x="1" y="-106"/>
222                                                                   </Anchor>
  161                                         <Anchor point="TOPLEFT" x="4" y="-60"/>
  162                                         <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT" x="167" y="52"/>
 
224                                                           <TexCoords left="0.421875" right="0.5625" top="0" bottom="1.0"/>
225                                                   </Texture>
226                                                   <Texture file="Interface\FriendsFrame\UI-ChannelFrame-VerticalBar">
227                                                           <Size x="12" y="128"/>
  164                         </Frame>
  165                         <Frame name="$parentRightInset" inherits="InsetFrameTemplate">
 
229                                                                   <Anchor point="TOPLEFT" relativeTo="$parentMiddle">
230                                                                           <Offset x="-1" y="-105"/>
231                                                                   </Anchor>
  167                                         <Anchor point="TOPLEFT" x="167" y="-60"/>
  168                                         <Anchor point="BOTTOMRIGHT" x="-8" y="52"/>
 
233                                                           <TexCoords left="0.8125" right="1" top="0" bottom="1.0"/>
234                                                   </Texture>
235                                           </Layer>
236                                   </Layers>
 
239                                   <Size>
240                                           <AbsDimension x="265" y="14"/>
241                                   </Size>
  172                                 <Size x="265" y="14"/>
 
243                                           <Anchor point="TOPLEFT" relativeTo="ChannelFrame" relativePoint="TOP">
244                                                   <Offset x="-100" y="-40"/>
245                                           </Anchor>
  174                                         <Anchor point="TOPLEFT" relativeTo="ChannelFrame" relativePoint="TOP" x="-100" y="-40"/>
 
251                                                                   <Anchor point="TOPLEFT">
252                                                                           <Offset x="0" y="0"/>
253                                                                   </Anchor>
  180                                                                 <Anchor point="TOPLEFT" x="0" y="0"/>
 
262                                                           <Anchor point="TOPLEFT">
263                                                                   <Offset x="60" y="5"/>
264                                                           </Anchor>
  189                                                         <Anchor point="TOPLEFT" x="60" y="5"/>
 
302                                                           <Anchor point="LEFT" relativeTo="$parentParty" relativePoint="RIGHT">
303                                                                   <Offset x="70" y="0"/>
304                                                           </Anchor>
  227                                                         <Anchor point="LEFT" relativeTo="$parentParty" relativePoint="RIGHT" x="70" y="0"/>
 
351                                   <Size>
352                                           <AbsDimension x="80" y="22"/>
353                                   </Size>
  274                                 <Size x="80" y="22"/>
 
355                                           <Anchor point="BOTTOMRIGHT">
356                                                   <Offset>
357                                                           <AbsDimension x="-12" y="82"/>
358                                                   </Offset>
359                                           </Anchor>
  276                                         <Anchor point="BOTTOMRIGHT" x="-7" y="30"/>
 
386                                           <Anchor point="TOPLEFT">
387                                                   <Offset x="20" y="-76"/>
388                                           </Anchor>
  303                                         <Anchor point="TOPLEFT" x="7" y="-65"/>
 
393                                                           <Size>
394                                                                   <AbsDimension x="31" y="256"/>
395                                                           </Size>
  308                                                         <Size x="31" y="256"/>
 
397                                                                   <Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
398                                                                           <Offset>
399                                                                                   <AbsDimension x="-2" y="4"/>
400                                                                           </Offset>
401                                                                   </Anchor>
  310                                                                 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="-2" y="6"/>
 
406                                                           <Size>
407                                                                   <AbsDimension x="31" y="106"/>
408                                                           </Size>
  315                                                         <Size x="31" y="106"/>
 
410                                                                   <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
411                                                                           <Offset>
412                                                                                   <AbsDimension x="-2" y="-2"/>
413                                                                           </Offset>
414                                                                   </Anchor>
  317                                                                 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="-2" y="-7"/>
 
422                                                   <Size>
423                                                           <AbsDimension x="145" y="400"/>
424                                                   </Size>
  325                                                 <Size x="145" y="400"/>
 
426                                                           <Anchor point="TOPLEFT">
427                                                                   <Offset x="0" y="0"/>
428                                                           </Anchor>
  327                                                         <Anchor point="TOPLEFT" x="0" y="0"/>
 
436                                                           <Button name="ChannelButton2" inherits="ChannelButtonTemplate" id="2">
437                                                                   <Anchors>
438                                                                           <Anchor point="TOPLEFT" relativeTo="ChannelButton1" relativePoint="BOTTOMLEFT">
439                                                                                   <Offset x="0" y="0"/>
440                                                                           </Anchor>
441                                                                   </Anchors>
442                                                           </Button>
443                                                           <Button name="ChannelButton3" inherits="ChannelButtonTemplate" id="3">
444                                                                   <Anchors>
445                                                                           <Anchor point="TOPLEFT" relativeTo="ChannelButton2" relativePoint="BOTTOMLEFT">
446                                                                                   <Offset x="0" y="0"/>
447                                                                           </Anchor>
448                                                                   </Anchors>
449                                                           </Button>
450                                                           <Button name="ChannelButton4" inherits="ChannelButtonTemplate" id="4">
451                                                                   <Anchors>
452                                                                           <Anchor point="TOPLEFT" relativeTo="ChannelButton3" relativePoint="BOTTOMLEFT">
453                                                                                   <Offset x="0" y="0"/>
454                                                                           </Anchor>
455                                                                   </Anchors>
456                                                           </Button>
457                                                           <Button name="ChannelButton5" inherits="ChannelButtonTemplate" id="5">
458                                                                   <Anchors>
459                                                                           <Anchor point="TOPLEFT" relativeTo="ChannelButton4" relativePoint="BOTTOMLEFT">
460                                                                                   <Offset x="0" y="0"/>
461                                                                           </Anchor>
462                                                                   </Anchors>
463                                                           </Button>
464                                                           <Button name="ChannelButton6" inherits="ChannelButtonTemplate" id="6">
465                                                                   <Anchors>
466                                                                           <Anchor point="TOPLEFT" relativeTo="ChannelButton5" relativePoint="BOTTOMLEFT">
467                                                                                   <Offset x="0" y="0"/>
468                                                                           </Anchor>
469                                                                   </Anchors>
470                                                           </Button>
471                                                           <Button name="ChannelButton7" inherits="ChannelButtonTemplate" id="7">
472                                                                   <Anchors>
473                                                                           <Anchor point="TOPLEFT" relativeTo="ChannelButton6" relativePoint="BOTTOMLEFT">
474                                                                                   <Offset x="0" y="0"/>
475                                                                           </Anchor>
476                                                                   </Anchors>
477                                                           </Button>
478                                                           <Button name="ChannelButton8" inherits="ChannelButtonTemplate" id="8">
479                                                                   <Anchors>
480                                                                           <Anchor point="TOPLEFT" relativeTo="ChannelButton7" relativePoint="BOTTOMLEFT">
481                                                                                   <Offset x="0" y="0"/>
482                                                                           </Anchor>
483                                                                   </Anchors>
484                                                           </Button>
485                                                           <Button name="ChannelButton9" inherits="ChannelButtonTemplate" id="9">
486                                                                   <Anchors>
487                                                                           <Anchor point="TOPLEFT" relativeTo="ChannelButton8" relativePoint="BOTTOMLEFT">
488                                                                                   <Offset x="0" y="0"/>
489                                                                           </Anchor>
490                                                                   </Anchors>
491                                                           </Button>
492                                                           <Button name="ChannelButton10" inherits="ChannelButtonTemplate" id="10">
493                                                                   <Anchors>
494                                                                           <Anchor point="TOPLEFT" relativeTo="ChannelButton9" relativePoint="BOTTOMLEFT">
495                                                                                   <Offset x="0" y="0"/>
496                                                                           </Anchor>
497                                                                   </Anchors>
498                                                           </Button>
499                                                           <Button name="ChannelButton11" inherits="ChannelButtonTemplate" id="11">
500                                                                   <Anchors>
501                                                                           <Anchor point="TOPLEFT" relativeTo="ChannelButton10" relativePoint="BOTTOMLEFT">
502                                                                                   <Offset x="0" y="0"/>
503                                                                           </Anchor>
504                                                                   </Anchors>
505                                                           </Button>
506                                                           <Button name="ChannelButton12" inherits="ChannelButtonTemplate" id="12">
507                                                                   <Anchors>
508                                                                           <Anchor point="TOPLEFT" relativeTo="ChannelButton11" relativePoint="BOTTOMLEFT">
509                                                                                   <Offset x="0" y="0"/>
510                                                                           </Anchor>
511                                                                   </Anchors>
512                                                           </Button>
513                                                           <Button name="ChannelButton13" inherits="ChannelButtonTemplate" id="13">
514                                                                   <Anchors>
515                                                                           <Anchor point="TOPLEFT" relativeTo="ChannelButton12" relativePoint="BOTTOMLEFT">
516                                                                                   <Offset x="0" y="0"/>
517                                                                           </Anchor>
518                                                                   </Anchors>
519                                                           </Button>
520                                                           <Button name="ChannelButton14" inherits="ChannelButtonTemplate" id="14">
521                                                                   <Anchors>
522                                                                           <Anchor point="TOPLEFT" relativeTo="ChannelButton13" relativePoint="BOTTOMLEFT">
523                                                                                   <Offset x="0" y="0"/>
524                                                                           </Anchor>
525                                                                   </Anchors>
526                                                           </Button>
527                                                           <Button name="ChannelButton15" inherits="ChannelButtonTemplate" id="15">
528                                                                   <Anchors>
529                                                                           <Anchor point="TOPLEFT" relativeTo="ChannelButton14" relativePoint="BOTTOMLEFT">
530                                                                                   <Offset x="0" y="0"/>
531                                                                           </Anchor>
532                                                                   </Anchors>
533                                                           </Button>
534                                                           <Button name="ChannelButton16" inherits="ChannelButtonTemplate" id="16">
535                                                                   <Anchors>
536                                                                           <Anchor point="TOPLEFT" relativeTo="ChannelButton15" relativePoint="BOTTOMLEFT">
537                                                                                   <Offset x="0" y="0"/>
538                                                                           </Anchor>
539                                                                   </Anchors>
540                                                           </Button>
541                                                           <Button name="ChannelButton17" inherits="ChannelButtonTemplate" id="17">
542                                                                   <Anchors>
543                                                                           <Anchor point="TOPLEFT" relativeTo="ChannelButton16" relativePoint="BOTTOMLEFT">
544                                                                                   <Offset x="0" y="0"/>
545                                                                           </Anchor>
546                                                                   </Anchors>
547                                                           </Button>
548                                                           <Button name="ChannelButton18" inherits="ChannelButtonTemplate" id="18">
549                                                                   <Anchors>
550                                                                           <Anchor point="TOPLEFT" relativeTo="ChannelButton17" relativePoint="BOTTOMLEFT">
551                                                                                   <Offset x="0" y="0"/>
552                                                                           </Anchor>
553                                                                   </Anchors>
554                                                           </Button>
555                                                           <Button name="ChannelButton19" inherits="ChannelButtonTemplate" id="19">
556                                                                   <Anchors>
557                                                                           <Anchor point="TOPLEFT" relativeTo="ChannelButton18" relativePoint="BOTTOMLEFT">
558                                                                                   <Offset x="0" y="0"/>
559                                                                           </Anchor>
560                                                                   </Anchors>
561                                                           </Button>
562                                                           <Button name="ChannelButton20" inherits="ChannelButtonTemplate" id="20">
563                                                                   <Anchors>
564                                                                           <Anchor point="TOPLEFT" relativeTo="ChannelButton19" relativePoint="BOTTOMLEFT">
565                                                                                   <Offset x="0" y="0"/>
566                                                                           </Anchor>
567                                                                   </Anchors>
568                                                           </Button>
  335                                                         <!-- Other 19 ChannelButtons are made in ChannelFrame.lua -->
 
578                                           <Anchor point="TOPLEFT" relativeTo="ChannelFrame" relativePoint="TOP">
579                                                   <Offset x="121" y="-79"/>
580                                           </Anchor>
  345                                         <Anchor point="TOPLEFT" relativeTo="ChannelFrame" relativePoint="TOP" x="121" y="-79"/>
 
586                                                                   <Anchor point="TOPLEFT">
587                                                                           <Offset x="-115" y="20"/>
588                                                                   </Anchor>
  351                                                                 <Anchor point="TOPLEFT" x="-115" y="20"/>
 
594                                                                   <Anchor point="LEFT" relativeTo="$parentChannelName" relativePoint="RIGHT">
595                                                                           <Offset x="0" y="0"/>
596                                                                   </Anchor>
  357                                                                 <Anchor point="LEFT" relativeTo="$parentChannelName" relativePoint="RIGHT"/>
 
611                                                           <Anchor point="TOPRIGHT" relativeTo="ChannelFrame">
612                                                                   <Offset x="-39" y="-76"/>
613                                                           </Anchor>
  372                                                         <Anchor point="TOPRIGHT" relativeTo="ChannelFrame" x="-39" y="-76"/>
 
620                                                                                   <Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
621                                                                                           <Offset x="-2" y="4"/>
622                                                                                   </Anchor>
  379                                                                                 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="-2" y="6"/>
 
629                                                                                   <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
630                                                                                           <Offset x="-2" y="-2"/>
631                                                                                   </Anchor>
  386                                                                                 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="-2" y="-6"/>
 
645                                                           <Anchor point="TOPLEFT" relativeTo="ChannelFrame" relativePoint="TOPLEFT">
646                                                                   <Offset x="206" y="-75"/>
647                                                           </Anchor>
  400                                                         <Anchor point="TOPLEFT" relativeTo="ChannelFrame" relativePoint="TOPLEFT" x="200" y="-65"/>
 
650                                           <Button name="ChannelMemberButton2" inherits="ChannelRosterButtonTemplate" id="2">
651                                                   <Anchors>
652                                                           <Anchor point="TOPLEFT" relativeTo="ChannelMemberButton1" relativePoint="BOTTOMLEFT">
653                                                                   <Offset x="0" y="0"/>
654                                                           </Anchor>
655                                                   </Anchors>
656                                           </Button>
657                                           <Button name="ChannelMemberButton3" inherits="ChannelRosterButtonTemplate" id="3">
658                                                   <Anchors>
659                                                           <Anchor point="TOPLEFT" relativeTo="ChannelMemberButton2" relativePoint="BOTTOMLEFT">
660                                                                   <Offset x="0" y="0"/>
661                                                           </Anchor>
662                                                   </Anchors>
663                                           </Button>
664                                           <Button name="ChannelMemberButton4" inherits="ChannelRosterButtonTemplate" id="4">
665                                                   <Anchors>
666                                                           <Anchor point="TOPLEFT" relativeTo="ChannelMemberButton3" relativePoint="BOTTOMLEFT">
667                                                                   <Offset x="0" y="0"/>
668                                                           </Anchor>
669                                                   </Anchors>
670                                           </Button>
671                                           <Button name="ChannelMemberButton5" inherits="ChannelRosterButtonTemplate" id="5">
672                                                   <Anchors>
673                                                           <Anchor point="TOPLEFT" relativeTo="ChannelMemberButton4" relativePoint="BOTTOMLEFT">
674                                                                   <Offset x="0" y="0"/>
675                                                           </Anchor>
676                                                   </Anchors>
677                                           </Button>
678                                           <Button name="ChannelMemberButton6" inherits="ChannelRosterButtonTemplate" id="6">
679                                                   <Anchors>
680                                                           <Anchor point="TOPLEFT" relativeTo="ChannelMemberButton5" relativePoint="BOTTOMLEFT">
681                                                                   <Offset x="0" y="0"/>
682                                                           </Anchor>
683                                                   </Anchors>
684                                           </Button>
685                                           <Button name="ChannelMemberButton7" inherits="ChannelRosterButtonTemplate" id="7">
686                                                   <Anchors>
687                                                           <Anchor point="TOPLEFT" relativeTo="ChannelMemberButton6" relativePoint="BOTTOMLEFT">
688                                                                   <Offset x="0" y="0"/>
689                                                           </Anchor>
690                                                   </Anchors>
691                                           </Button>
692                                           <Button name="ChannelMemberButton8" inherits="ChannelRosterButtonTemplate" id="8">
693                                                   <Anchors>
694                                                           <Anchor point="TOPLEFT" relativeTo="ChannelMemberButton7" relativePoint="BOTTOMLEFT">
695                                                                   <Offset x="0" y="0"/>
696                                                           </Anchor>
697                                                   </Anchors>
698                                           </Button>
699                                           <Button name="ChannelMemberButton9" inherits="ChannelRosterButtonTemplate" id="9">
700                                                   <Anchors>
701                                                           <Anchor point="TOPLEFT" relativeTo="ChannelMemberButton8" relativePoint="BOTTOMLEFT">
702                                                                   <Offset x="0" y="0"/>
703                                                           </Anchor>
704                                                   </Anchors>
705                                           </Button>
706                                           <Button name="ChannelMemberButton10" inherits="ChannelRosterButtonTemplate" id="10">
707                                                   <Anchors>
708                                                           <Anchor point="TOPLEFT" relativeTo="ChannelMemberButton9" relativePoint="BOTTOMLEFT">
709                                                                   <Offset x="0" y="0"/>
710                                                           </Anchor>
711                                                   </Anchors>
712                                           </Button>
713                                           <Button name="ChannelMemberButton11" inherits="ChannelRosterButtonTemplate" id="11">
714                                                   <Anchors>
715                                                           <Anchor point="TOPLEFT" relativeTo="ChannelMemberButton10" relativePoint="BOTTOMLEFT">
716                                                                   <Offset x="0" y="0"/>
717                                                           </Anchor>
718                                                   </Anchors>
719                                           </Button>
720                                           <Button name="ChannelMemberButton12" inherits="ChannelRosterButtonTemplate" id="12">
721                                                   <Anchors>
722                                                           <Anchor point="TOPLEFT" relativeTo="ChannelMemberButton11" relativePoint="BOTTOMLEFT">
723                                                                   <Offset x="0" y="0"/>
724                                                           </Anchor>
725                                                   </Anchors>
726                                           </Button>
727                                           <Button name="ChannelMemberButton13" inherits="ChannelRosterButtonTemplate" id="13">
728                                                   <Anchors>
729                                                           <Anchor point="TOPLEFT" relativeTo="ChannelMemberButton12" relativePoint="BOTTOMLEFT">
730                                                                   <Offset x="0" y="0"/>
731                                                           </Anchor>
732                                                   </Anchors>
733                                           </Button>
734                                           <Button name="ChannelMemberButton14" inherits="ChannelRosterButtonTemplate" id="14">
735                                                   <Anchors>
736                                                           <Anchor point="TOPLEFT" relativeTo="ChannelMemberButton13" relativePoint="BOTTOMLEFT">
737                                                                   <Offset x="0" y="0"/>
738                                                           </Anchor>
739                                                   </Anchors>
740                                           </Button>
741                                           <Button name="ChannelMemberButton15" inherits="ChannelRosterButtonTemplate" id="15">
742                                                   <Anchors>
743                                                           <Anchor point="TOPLEFT" relativeTo="ChannelMemberButton14" relativePoint="BOTTOMLEFT">
744                                                                   <Offset x="0" y="0"/>
745                                                           </Anchor>
746                                                   </Anchors>
747                                           </Button>
748                                           <Button name="ChannelMemberButton16" inherits="ChannelRosterButtonTemplate" id="16">
749                                                   <Anchors>
750                                                           <Anchor point="TOPLEFT" relativeTo="ChannelMemberButton15" relativePoint="BOTTOMLEFT">
751                                                                   <Offset x="0" y="0"/>
752                                                           </Anchor>
753                                                   </Anchors>
754                                           </Button>
755                                           <Button name="ChannelMemberButton17" inherits="ChannelRosterButtonTemplate" id="17">
756                                                   <Anchors>
757                                                           <Anchor point="TOPLEFT" relativeTo="ChannelMemberButton16" relativePoint="BOTTOMLEFT">
758                                                                   <Offset x="0" y="0"/>
759                                                           </Anchor>
760                                                   </Anchors>
761                                           </Button>
762                                           <Button name="ChannelMemberButton18" inherits="ChannelRosterButtonTemplate" id="18">
763                                                   <Anchors>
764                                                           <Anchor point="TOPLEFT" relativeTo="ChannelMemberButton17" relativePoint="BOTTOMLEFT">
765                                                                   <Offset x="0" y="0"/>
766                                                           </Anchor>
767                                                   </Anchors>
768                                           </Button>
769                                           <Button name="ChannelMemberButton19" inherits="ChannelRosterButtonTemplate" id="19">
770                                                   <Anchors>
771                                                           <Anchor point="TOPLEFT" relativeTo="ChannelMemberButton18" relativePoint="BOTTOMLEFT">
772                                                                   <Offset x="0" y="0"/>
773                                                           </Anchor>
774                                                   </Anchors>
775                                           </Button>
776                                           <Button name="ChannelMemberButton20" inherits="ChannelRosterButtonTemplate" id="20">
777                                                   <Anchors>
778                                                           <Anchor point="TOPLEFT" relativeTo="ChannelMemberButton19" relativePoint="BOTTOMLEFT">
779                                                                   <Offset x="0" y="0"/>
780                                                           </Anchor>
781                                                   </Anchors>
782                                           </Button>
783                                           <Button name="ChannelMemberButton21" inherits="ChannelRosterButtonTemplate" id="21">
784                                                   <Anchors>
785                                                           <Anchor point="TOPLEFT" relativeTo="ChannelMemberButton20" relativePoint="BOTTOMLEFT">
786                                                                   <Offset x="0" y="0"/>
787                                                           </Anchor>
788                                                   </Anchors>
789                                           </Button>
790                                           <Button name="ChannelMemberButton22" inherits="ChannelRosterButtonTemplate" id="22">
791                                                   <Anchors>
792                                                           <Anchor point="TOPLEFT" relativeTo="ChannelMemberButton21" relativePoint="BOTTOMLEFT">
793                                                                   <Offset x="0" y="0"/>
794                                                           </Anchor>
795                                                   </Anchors>
796                                           </Button>
  403                                         <!-- Other 21 ChannelMemberButtons created in ChannelFrame.lua -->
 
803                                   <Size>
804                                           <AbsDimension x="212" y="200"/>
805                                   </Size>
  410                                 <Size x="212" y="200"/>
 
807                                           <Anchor point="CENTER" relativeTo="UIParent">
808                                                   <Offset>
809                                                           <AbsDimension x="0" y="100"/>
810                                                   </Offset>
811                                           </Anchor>
  412                                         <Anchor point="CENTER" relativeTo="UIParent" x="100" y="100"/>
 
827                                                           <Size>
828                                                                   <AbsDimension x="0" y="12"/>
829                                                           </Size>
  428                                                         <Size x="0" y="12"/>
 
831                                                                   <Anchor point="TOP">
832                                                                           <Offset>
833                                                                                   <AbsDimension x="-5" y="-13"/>
834                                                                           </Offset>
835                                                                   </Anchor>
  430                                                                 <Anchor point="TOP" x="-5" y="-13"/>
 
839                                                           <Size>
840                                                                   <AbsDimension x="256" y="32"/>
841                                                           </Size>
  434                                                         <Size x="256" y="32"/>
 
843                                                                   <Anchor point="TOPLEFT">
844                                                                           <Offset>
845                                                                                   <AbsDimension x="8" y="-8"/>
846                                                                           </Offset>
847                                                                   </Anchor>
  436                                                                 <Anchor point="TOPLEFT" x="8" y="-8"/>
 
853                                                           <Size>
854                                                                   <AbsDimension x="32" y="32"/>
855                                                           </Size>
  442                                                         <Size x="32" y="32"/>
 
857                                                                   <Anchor point="TOPRIGHT">
858                                                                           <Offset>
859                                                                                   <AbsDimension x="-6" y="-7"/>
860                                                                           </Offset>
861                                                                   </Anchor>
  444                                                                 <Anchor point="TOPRIGHT" x="-6" y="-7"/>
 
870                                                           <Anchor point="TOPLEFT">
871                                                                   <Offset x="23" y="-60"/>
872                                                           </Anchor>
  453                                                         <Anchor point="TOPLEFT" x="23" y="-60"/>
 
878                                                                                   <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
879                                                                                           <Offset x="0" y="5"/>
880                                                                                   </Anchor>
  459                                                                                 <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" x="0" y="5"/>
 
902                                                           <Anchor point="TOPLEFT" relativeTo="$parentChannelName" relativePoint="BOTTOMLEFT">
903                                                                   <Offset x="0" y="-30"/>
904                                                           </Anchor>
  481                                                         <Anchor point="TOPLEFT" relativeTo="$parentChannelName" relativePoint="BOTTOMLEFT" x="0" y="-30"/>
 
910                                                                                   <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
911                                                                                           <Offset x="0" y="5"/>
912                                                                                   </Anchor>
  487                                                                                 <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" x="0" y="5"/>
 
917                                                                                   <Anchor point="LEFT" relativeTo="$parentLabel" relativePoint="RIGHT">
918                                                                                           <Offset x="3" y="0"/>
919                                                                                   </Anchor>
  492                                                                                 <Anchor point="LEFT" relativeTo="$parentLabel" relativePoint="RIGHT" x="3" y="0"/>
 
954                                                           <Anchor point="TOPRIGHT">
955                                                                   <Offset x="-2" y="-3"/>
956                                                           </Anchor>
  527                                                         <Anchor point="TOPRIGHT" x="-2" y="-3"/>
 
960                                                   <Size>
961                                                           <AbsDimension x="96" y="22"/>
962                                                   </Size>
  531                                                 <Size x="96" y="22"/>
 
964                                                           <Anchor point="BOTTOMLEFT">
965                                                                   <Offset>
966                                                                           <AbsDimension x="10" y="12"/>
967                                                                   </Offset>
968                                                           </Anchor>
  533                                                         <Anchor point="BOTTOMLEFT" x="10" y="12"/>
 
978                                                   <Size>
979                                                           <AbsDimension x="96" y="22"/>
980                                                   </Size>
  543                                                 <Size x="96" y="22"/>
 
982                                                           <Anchor point="LEFT" relativeTo="$parentOkayButton" relativePoint="RIGHT">
983                                                                   <Offset>
984                                                                           <AbsDimension x="1" y="0"/>
985                                                                   </Offset>
986                                                           </Anchor>
  545                                                         <Anchor point="LEFT" relativeTo="$parentOkayButton" relativePoint="RIGHT" x="1" y="0"/>
 
1016                   <Size>
1017                           <AbsDimension x="150" y="14"/>
1018                   </Size>
  575                 <Size x="150" y="14"/>
 
1024                                   <Size>
1025                                           <AbsDimension x="13" y="13"/>
1026                                   </Size>
  581                                 <Size x="13" y="13"/>
 
1028                                           <Anchor point="LEFT">
1029                                                   <Offset>
1030                                                           <AbsDimension x="4" y="0"/>
1031                                                   </Offset>
1032                                           </Anchor>
  583                                         <Anchor point="LEFT" x="4" y="0"/>
 
1064                           <Anchor point="TOPLEFT" relativePoint="RIGHT">
1065                                   <Offset>
1066                                           <AbsDimension x="-264" y="77"/>
1067                                   </Offset>
1068                           </Anchor>
  615                         <Anchor point="TOPLEFT" relativePoint="RIGHT" x="-264" y="77"/>
 
1070                   <Size>
1071                           <AbsDimension x="64" y="32"/>
1072                   </Size>
  617                 <Size x="64" y="32"/>
 
1076                                           <Size>
1077                                                   <AbsDimension x="16" y="32"/>
1078                                           </Size>
  621                                         <Size x="16" y="32"/>
 
1085                                           <Size>
1086                                                   <AbsDimension x="44" y="32"/>
1087                                           </Size>
  628                                         <Size x="44" y="32"/>
 
1094                                           <Size>
1095                                                   <AbsDimension x="16" y="32"/>
1096                                           </Size>
  635                                         <Size x="16" y="32"/>
 
1106                                   <Size>
1107                                           <AbsDimension x="5" y="32"/>
1108                                   </Size>
  645                                 <Size x="5" y="32"/>
 
1110                                           <Anchor point="LEFT" relativeTo="$parentLeft">
1111                                                   <Offset>
1112                                                           <AbsDimension x="0" y="-7"/>
1113                                                   </Offset>
1114                                           </Anchor>
1115                                           <Anchor point="RIGHT" relativeTo="$parentRight">
1116                                                   <Offset>
1117                                                           <AbsDimension x="0" y="-7"/>
1118                                                   </Offset>
1119                                           </Anchor>
  647                                         <Anchor point="LEFT" relativeTo="$parentLeft" x="0" y="-7"/>
  648                                         <Anchor point="RIGHT" relativeTo="$parentRight" x="0" y="-7"/>
 
1129                                           <Anchor point="TOP">
1130                                                   <Offset>
1131                                                           <AbsDimension x="-80" y="-35"/>
1132                                                   </Offset>
1133                                           </Anchor>
  658                                         <Anchor point="TOP" x="-80" y="-35"/>
 
1158                           <Size>
1159                                   <AbsDimension x="0" y="8"/>
1160                           </Size>
  683                         <Size x="0" y="8"/>
 
1162                                   <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT">
1163                                           <Offset>
1164                                                   <AbsDimension x="0" y="-5"/>
1165                                           </Offset>
1166                                   </Anchor>
  685                                 <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT" x="0" y="-5"/>
 
1172                                   <Anchor point="LEFT" relativeTo="$parentLeft">
1173                                           <Offset>
1174                                                   <AbsDimension x="0" y="-7"/>
1175                                           </Offset>
1176                                   </Anchor>
1177                                   <Anchor point="RIGHT" relativeTo="$parentRight">
1178                                           <Offset>
1179                                                   <AbsDimension x="0" y="-7"/>
1180                                           </Offset>
1181                                   </Anchor>
  691                                 <Anchor point="LEFT" relativeTo="$parentLeft" x="0" y="-7"/>
  692                                 <Anchor point="RIGHT" relativeTo="$parentRight" x="0" y="-7"/>
 
1186                   <Size>
1187                           <AbsDimension x="140" y="420"/>
1188                   </Size>
  697                 <Size x="140" y="420"/>
 
1190                           <Anchor point="TOPLEFT" relativeTo="ChannelPulloutTab" relativePoint="BOTTOMLEFT">
1191                                   <Offset>
1192                                           <AbsDimension x="-5" y="3"/>
1193                                   </Offset>
1194                           </Anchor>
  699                         <Anchor point="TOPLEFT" relativeTo="ChannelPulloutTab" relativePoint="BOTTOMLEFT" x="-5" y="3"/>
 
1221                                   <Size>
1222                                           <AbsDimension x="24" y="24"/>
1223                                   </Size>
  726                                 <Size x="24" y="24"/>
 
1225                                           <Anchor point="TOPRIGHT">
1226                                                   <Offset>
1227                                                           <AbsDimension x="-2" y="-2"/>
1228                                                   </Offset>
1229                                           </Anchor>
  728                                         <Anchor point="TOPRIGHT" x="-2" y="-2"/>
 
1244                                           <Anchor point="TOPLEFT">
1245                                                   <Offset>
1246                                                           <AbsDimension x="4" y="-8"/>
1247                                                   </Offset>
1248                                           </Anchor>
1249                                           <Anchor point="BOTTOMRIGHT">
1250                                                   <Offset>
1251                                                           <AbsDimension x="-24" y="8"/>
1252                                                   </Offset>
1253                                           </Anchor>
  743                                         <Anchor point="TOPLEFT" x="4" y="-8"/>
  744                                         <Anchor point="BOTTOMRIGHT" x="-24" y="8"/>
 
1267                                                   <Size>
1268                                                           <AbsDimension x="16" y="0"/>
1269                                                   </Size>
  758                                                 <Size x="16" y="0"/>
 
1271                                                           <Anchor point="TOPRIGHT" relativeTo="ChannelPullout">
1272                                                                   <Offset>
1273                                                                           <AbsDimension x="-6" y="-24"/>
1274                                                                   </Offset>
1275                                                           </Anchor>
1276                                                           <Anchor point="BOTTOMRIGHT" relativeTo="ChannelPullout">
1277                                                                   <Offset>
1278                                                                           <AbsDimension x="-4" y="8"/>
1279                                                                   </Offset>
1280                                                           </Anchor>
  760                                                         <Anchor point="TOPRIGHT" relativeTo="ChannelPullout" x="-6" y="-24"/>
  761                                                         <Anchor point="BOTTOMRIGHT" relativeTo="ChannelPullout" x="-4" y="8"/>
 
1284                                                                   <Size>
1285                                                                           <AbsDimension x="18" y="18"/>
1286                                                                   </Size>
  765                                                                 <Size x="18" y="18"/>
 
1301                                                                   <Size>
1302                                                                           <AbsDimension x="18" y="18"/>
1303                                                                   </Size>
  780                                                                 <Size x="18" y="18"/>
   
File: FrameXML\CharacterFrame.lua  
  159         CharacterTrialLevelErrorText:SetPoint("TOP", CharacterLevelText, "BOTTOM", 0, -3);
 
  177         -- trial edition
  178         local width = CharacterTrialLevelErrorText:GetWidth();
  179         if ( width > 190 ) then
  180                 CharacterTrialLevelErrorText:SetPoint("TOP", CharacterLevelText, "BOTTOM", -((width-190)/2), -3);
  181         end
   
File: FrameXML\ChatConfigFrame.lua  
  695         self:RegisterEvent("CHANNEL_UI_UPDATE");
 
  723         elseif ( event == "CHANNEL_UI_UPDATE" ) then
  724                 ChatConfigCategory_UpdateEnabled();
 
  1509 function ChatConfigCategory_UpdateEnabled()
  1510         if ( GetChannelList() ) then
  1511                 ChatConfigCategoryFrameButton3:Enable();
  1512         else
  1513                 ChatConfigCategoryFrameButton3:Disable();
  1514         end
  1515 end
   
File: FrameXML\ChatConfigFrame.xml  
  29                 <DisabledFont style="GameFontDisableLeft"/>
 
  568                                                 ChatConfigCategory_UpdateEnabled();
   
File: FrameXML\ChatFrame.lua  
29   hash_SlashCmdList = {}
  29 hash_SlashCmdList = {}                          --[localizedCommand] -> function
 
31   hash_ChatTypeInfoList = {}
  31 hash_ChatTypeInfoList = {}                      --[localizedCommand] -> identifier (Stores all slash commands)
 
  1477 SecureCmdList["WORLD_MARKER"] = function(msg)
  1478         local marker = SecureCmdOptionParse(msg);
  1479         if ( tonumber(marker) ) then
  1480                 PlaceRaidMarker(tonumber(marker));
  1481         end
  1482 end
 
  1484 SecureCmdList["CLEAR_WORLD_MARKER"] = function(msg)
  1485         local marker = SecureCmdOptionParse(msg);
  1486         if ( tonumber(marker) ) then
  1487                 ClearRaidMarker(tonumber(marker));
  1488         elseif ( type(marker) == "string" and strtrim(strlower(marker)) == strlower(ALL) ) then
  1489                 ClearRaidMarker(nil);   --Clear all world markers.
  1490         end
  1491 end
 
2146                   ToggleFriendsFrame(4);
  2162                 ToggleRaidFrame();
 
2149                   ToggleFriendsFrame(4);
  2165                 ToggleRaidFrame();
 
2169           ToggleLFRParentFrame();
  2185         ToggleFriendsFrame(4);
 
  2364 SlashCmdList["TARGET_MARKER"] = function(msg)
  2365         local marker, target = SecureCmdOptionParse(msg);
  2366         if ( not target ) then
  2367                 target = "target";
  2368         end
  2369         if ( tonumber(marker) ) then
  2370                 SetRaidTarget(target, tonumber(marker));        --Using /tm 0 will clear the target marker.
  2371         end
  2372 end
 
  2374 function ChatFrame_SetupListProxyTable(list)
  2375         if ( getmetatable(list) ) then
  2376                 return;
  2377         end
 
  2379         setmetatable(list, { __index = {} });
  2380 end
 
  2382 function ChatFrame_ImportListToHash(list, hash)
  2383         for k, v in pairs(list) do
  2384                 local i = 1;
  2385                 local tag = _G["SLASH_"..k..i];
  2386                 while(tag) do
  2387                         tag = strupper(tag);
  2388                         if ( hash ) then
  2389                                 hash[tag] = v;
  2390                         end
  2391                         hash_ChatTypeInfoList[tag] = k; --Also need to import it here for all types.
  2392                         i = i + 1;
  2393                         tag = _G["SLASH_"..k..i];
  2394                 end
  2395                 --Add the item we removed to the proxy table.
  2396                 local proxyTable = getmetatable(list).__index;
  2397                 proxyTable[k] = v;
  2398         end
 
  2400         table.wipe(list);
  2401 end
 
  2403 function ChatFrame_ImportEmoteTokensToHash()
  2404         local i = 1;
  2405         local j = 1;
  2406         local cmdString = _G["EMOTE"..i.."_CMD"..j];
  2407         while ( i <= MAXEMOTEINDEX ) do
  2408                 local token = _G["EMOTE"..i.."_TOKEN"];
  2409                 -- if the code in here changes - change the corresponding code above
  2410                 if ( token ) then
  2411                         hash_EmoteTokenList[strupper(cmdString)] = token;       -- add to hash
  2412                 end
  2413                 j = j + 1;
  2414                 cmdString = _G["EMOTE"..i.."_CMD"..j];
  2415                 if ( not cmdString ) then
  2416                         i = i + 1;
  2417                         j = 1;
  2418                         cmdString = _G["EMOTE"..i.."_CMD"..j];
  2419                 end
  2420         end
  2421 end
 
  2423 function ChatFrame_ImportAllListsToHash()
  2424         ChatFrame_ImportListToHash(SecureCmdList, hash_SecureCmdList);
  2425         ChatFrame_ImportListToHash(SlashCmdList, hash_SlashCmdList);
  2426         ChatFrame_ImportListToHash(ChatTypeInfo);
  2427 end
 
  2429 ChatFrame_SetupListProxyTable(SecureCmdList);
  2430 ChatFrame_SetupListProxyTable(SlashCmdList);
  2431 ChatFrame_SetupListProxyTable(ChatTypeInfo);
  2432 ChatFrame_ImportAllListsToHash();
  2433 ChatFrame_ImportEmoteTokensToHash();
 
  2459         self:RegisterEvent("PLAYER_REPORT_SUBMITTED");
 
  2809         elseif ( event == "PLAYER_REPORT_SUBMITTED" ) then
  2810                 local guid = ...;
  2811                 FCF_RemoveAllMessagesFromChanSender(self, guid);
  2812                 return true;
 
2924                           local typeID = ChatHistory_GetAccessID(infoType, arg8);
  3016                         local typeID = ChatHistory_GetAccessID(infoType, arg8, arg12);
 
2932                           local typeID = ChatHistory_GetAccessID(infoType, arg8);
  3024                         local typeID = ChatHistory_GetAccessID(infoType, arg8, arg12);
 
3090                           local typeID = ChatHistory_GetAccessID(infoType, chatTarget);
  3182                         local typeID = ChatHistory_GetAccessID(infoType, chatTarget, arg12 == "" and arg13 or arg12);
 
3515           self.tabCompleteIndex = 1;
  3607         self.lastTabComplete = nil;
 
  3609         self.tabCompleteTableIndex = 1;
 
  4009 local tabCompleteTables = { hash_ChatTypeInfoList, hash_EmoteTokenList };
 
3938           -- Increment the current tabcomplete count
  4032         ChatFrame_ImportAllListsToHash();
 
3939           local tabCompleteIndex = self.tabCompleteIndex;
3940           self.tabCompleteIndex = tabCompleteIndex + 1;
  4034         local lastTabComplete = self.lastTabComplete;
 
3945           for index, value in pairs(ChatTypeInfo) do
3946                   local i = 1;
3947                   local cmdString = _G["SLASH_"..index..i];
3948                   while ( cmdString ) do
3949                           if ( strfind(cmdString, command, 1, 1) ) then
3950                                   tabCompleteIndex = tabCompleteIndex - 1;
3951                                   if ( tabCompleteIndex == 0 ) then
3952                                           self.ignoreTextChange = 1;
3953                                           self:SetText(cmdString);
3954                                           return;
3955                                   end
3956                           end
3957                           i = i + 1;
3958                           cmdString = _G["SLASH_"..index..i];
  4039         local cmdString = lastTabComplete;
  4040         repeat  --The outer loop lets us go through multiple hash tables of commands.
  4041                 repeat  --Loop through this table to find matching items.
  4042                         cmdString = next(tabCompleteTables[self.tabCompleteTableIndex], cmdString);
  4043                 until ( not cmdString or strfind(cmdString, strupper(command), 1, 1) ); --Either we finished going through this table or we found a match.
  4044                 if ( not cmdString ) then       --Nothing else in the current table, move to the next one.
  4045                         self.tabCompleteTableIndex = self.tabCompleteTableIndex + 1;
 
3960           end
  4047         until ( cmdString or self.tabCompleteTableIndex > #tabCompleteTables );
 
3962           for index, value in pairs(SecureCmdList) do
3963                   local i = 1;
3964                   local cmdString = _G["SLASH_"..index..i];
3965                   while ( cmdString ) do
3966                           if ( strfind(cmdString, command, 1, 1) ) then
3967                                   tabCompleteIndex = tabCompleteIndex - 1;
3968                                   if ( tabCompleteIndex == 0 ) then
3969                                           self.ignoreTextChange = 1;
3970                                           self:SetText(cmdString);
3971                                           return;
3972                                   end
3973                           end
3974                           i = i + 1;
3975                           cmdString = _G["SLASH_"..index..i];
3976                   end
3977           end
3978           for index, value in pairs(SlashCmdList) do
3979                   local i = 1;
3980                   local cmdString = _G["SLASH_"..index..i];
3981                   while ( cmdString ) do
3982                           if ( strfind(cmdString, command, 1, 1) ) then
3983                                   tabCompleteIndex = tabCompleteIndex - 1;
3984                                   if ( tabCompleteIndex == 0 ) then
  4049         self.lastTabComplete = cmdString;
  4050         if ( cmdString ) then
 
3986                                           self:SetText(cmdString);
3987                                           return;
3988                                   end
3989                           end
3990                           i = i + 1;
3991                           cmdString = _G["SLASH_"..index..i];
3992                   end
3993           end
  4052                 self:SetText(strlower(cmdString));
  4053         else
 
3995           local i = 1;
3996           local j = 1;
3997           local cmdString = _G["EMOTE"..i.."_CMD"..j];
3998           while ( cmdString ) do
3999                   if ( strfind(cmdString, command, 1, 1) ) then
4000                           tabCompleteIndex = tabCompleteIndex - 1;
4001                           if ( tabCompleteIndex == 0 ) then
4002                                   self.ignoreTextChange = 1;
4003                                   self:SetText(cmdString);
4004                                   return;
4005                           end
  4054                 self.tabCompleteTableIndex = 1;
  4055                 self:SetText(self.tabCompleteText);
 
4007                   j = j + 1;
4008                   cmdString = _G["EMOTE"..i.."_CMD"..j];
4009                   if ( not cmdString ) then
4010                           i = i + 1;
4011                           j = 1;
4012                           cmdString = _G["EMOTE"..i.."_CMD"..j];
4013                   end
4014           end
 
4016           -- No tab completion
4017           self:SetText(self.tabCompleteText);
 
4032                   self.tabCompleteIndex = 1;
  4071                 self.lastTabComplete = nil;
 
  4073                 self.tabCompleteTableIndex = 1;
 
  4167                 ChatFrame_ImportAllListsToHash();
 
4129                   end
4130                   for index, value in pairs(SecureCmdList) do
4131                           local i = 1;
4132                           local cmdString = _G["SLASH_"..index..i];
4133                           while ( cmdString ) do
4134                                   cmdString = strupper(cmdString);
4135                                   if ( cmdString == command ) then
4136                                           hash_ChatTypeInfoList[command] = index;
4137                                           return processChatType(editBox, msg, index, send);
4138                                   end
4139                                   i = i + 1;
4140                                   cmdString = _G["SLASH_"..index..i];
4141                           end
4142                   end
4143                   for index, value in pairs(SlashCmdList) do
4144                           local i = 1;
4145                           local cmdString = _G["SLASH_"..index..i];
4146                           while ( cmdString ) do
4147                                   cmdString = strupper(cmdString);
4148                                   if ( cmdString == command ) then
4149                                           hash_ChatTypeInfoList[command] = index;
4150                                           return processChatType(editBox, msg, index, send);
4151                                   end
4152                                   i = i + 1;
4153                                   cmdString = _G["SLASH_"..index..i];
4154                           end
4155                   end
4156                   for index, value in pairs(ChatTypeInfo) do
4157                           local i = 1;
4158                           local cmdString = _G["SLASH_"..index..i];
4159                           while ( cmdString ) do
4160                                   cmdString = strupper(cmdString);
4161                                   if ( cmdString == command ) then
4162                                           hash_ChatTypeInfoList[command] = index; -- add to hash table
4163                                           return processChatType(editBox, msg, index, send);
4164                                   end
4165                                   i = i + 1;
4166                                   cmdString = _G["SLASH_"..index..i];
4167                           end
 
  4217         ChatFrame_ImportAllListsToHash();
 
4237           end
 
4239           -- If we didn't have the command in the hash tables, look for it the slow way...
4240           for index, value in pairs(SlashCmdList) do
4241                   local i = 1;
4242                   local cmdString = _G["SLASH_"..index..i];
4243                   while ( cmdString ) do
4244                           cmdString = strupper(cmdString);
4245                           if ( cmdString == command ) then
4246                                   -- if the code in here changes - change the corresponding code above
4247                                   hash_SlashCmdList[command] = value;     -- add to hash
4248                                   value(strtrim(msg), editBox);
4249                                   editBox:AddHistoryLine(text);
4250                                   ChatEdit_OnEscapePressed(editBox);
4251                                   return;
4252                           end
4253                           i = i + 1;
4254                           cmdString = _G["SLASH_"..index..i];
4255                   end
4256           end
 
4258           local i = 1;
4259           local j = 1;
4260           local cmdString = _G["EMOTE"..i.."_CMD"..j];
4261           while ( i <= MAXEMOTEINDEX ) do
4262                   if ( cmdString and strupper(cmdString) == command ) then
4263                           local token = _G["EMOTE"..i.."_TOKEN"];
4264                           -- if the code in here changes - change the corresponding code above
4265                           if ( token ) then
4266                                   hash_EmoteTokenList[command] = token;   -- add to hash
4267                                   DoEmote(token, msg);
4268                           end
4269                           editBox:AddHistoryLine(text);
4270                           ChatEdit_OnEscapePressed(editBox);
4271                           return;
4272                   end
4273                   j = j + 1;
4274                   cmdString = _G["EMOTE"..i.."_CMD"..j];
4275                   if ( not cmdString ) then
4276                           i = i + 1;
4277                           j = 1;
4278                           cmdString = _G["EMOTE"..i.."_CMD"..j];
4279                   end
   
File: FrameXML\ChatFrame.xml  
25                                           <Size>
26                                                   <AbsDimension x="32" y="32"/>
27                                           </Size>
  25                                         <Size x="32" y="32"/>
 
33                                           <Size>
34                                                   <AbsDimension x="32" y="32"/>
35                                           </Size>
  31                                         <Size x="32" y="32"/>
 
41                                           <Size>
42                                                   <AbsDimension x="0" y="32"/>
43                                           </Size>
  37                                         <Size x="0" y="32"/>
 
45                                                   <Anchor point="TOPLEFT" relativeTo="$parentLeft" relativePoint="TOPRIGHT">
46                                                           <Offset>
47                                                                   <AbsDimension x="0" y="0"/>
48                                                           </Offset>
49                                                   </Anchor>
50                                                   <Anchor point="TOPRIGHT" relativeTo="$parentRight" relativePoint="TOPLEFT">
51                                                           <Offset>
52                                                                   <AbsDimension x="0" y="0"/>
53                                                           </Offset>
54                                                   </Anchor>
  39                                                 <Anchor point="TOPLEFT" relativeTo="$parentLeft" relativePoint="TOPRIGHT" x="0" y="0"/>
  40                                                 <Anchor point="TOPRIGHT" relativeTo="$parentRight" relativePoint="TOPLEFT" x="0" y="0"/>
 
60                                           <Size>
61                                                   <AbsDimension x="32" y="32"/>
62                                           </Size>
  46                                         <Size x="32" y="32"/>
 
68                                           <Size>
69                                                   <AbsDimension x="32" y="32"/>
70                                           </Size>
  52                                         <Size x="32" y="32"/>
 
76                                           <Size>
77                                                   <AbsDimension x="0" y="32"/>
78                                           </Size>
  58                                         <Size x="0" y="32"/>
 
80                                                   <Anchor point="TOPLEFT" relativeTo="$parentFocusLeft" relativePoint="TOPRIGHT">
81                                                           <Offset>
82                                                                   <AbsDimension x="0" y="0"/>
83                                                           </Offset>
84                                                   </Anchor>
85                                                   <Anchor point="TOPRIGHT" relativeTo="$parentFocusRight" relativePoint="TOPLEFT">
86                                                           <Offset>
87                                                                   <AbsDimension x="0" y="0"/>
88                                                           </Offset>
89                                                   </Anchor>
  60                                                 <Anchor point="TOPLEFT" relativeTo="$parentFocusLeft" relativePoint="TOPRIGHT" x="0" y="0"/>
  61                                                 <Anchor point="TOPRIGHT" relativeTo="$parentFocusRight" relativePoint="TOPLEFT" x="0" y="0"/>
 
97                                                   <Anchor point="LEFT">
98                                                           <Offset>
99                                                                   <AbsDimension x="15" y="0"/>
100                                                           </Offset>
101                                                   </Anchor>
  69                                                 <Anchor point="LEFT" x="15" y="0"/>
 
113                                   <Size>
114                                           <AbsDimension x="32" y="32"/>
115                                   </Size>
  81                                 <Size x="32" y="32"/>
 
117                                           <Anchor point="LEFT" relativePoint="RIGHT">
118                                                   <Offset>
119                                                           <AbsDimension x="-8" y="0"/>
120                                                   </Offset>
121                                           </Anchor>
  83                                         <Anchor point="LEFT" relativePoint="RIGHT" x="-8" y="0"/>
   
File: FrameXML\CompactUnitFrame.lua  
  89                         CompactUnitFrame_UpdateHealthColor(self);       --This may signify that we now have the unit's class (the name cache entry hsa been received).
 
  522         if ( frame:IsVisible() ) then
 
  528                 end
  529         else
  530                 CompactUnitFrame_UpdateReadyCheck(frame);
 
673                   local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId = UnitDebuff(frame.displayedUnit, index, filter);
  678                 local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, canStealOrPurge, shouldConsolidate, spellId = UnitDebuff(frame.displayedUnit, index, filter);
 
692           local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId, canApplyAura = UnitBuff(unit, index, filter);
693           if ( UnitAffectingCombat("player") ) then
  697         local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, canStealOrPurge, shouldConsolidate, spellId, canApplyAura = UnitBuff(unit, index, filter);
  698        
  699         local hasCustom, alwaysShowMine, showForMySpec = SpellGetVisibilityInfo(spellId, UnitAffectingCombat("player") and "RAID_INCOMBAT" or "RAID_OUTOFCOMBAT");
 
694                   return (unitCaster == "player" or unitCaster == "pet") and not shouldConsolidate and duration > 0 and canApplyAura;
  701         if ( hasCustom ) then
  702                 return showForMySpec or (alwaysShowMine and (unitCaster == "player" or unitCaster == "pet" or unitCaster == "vehicle"));
 
696                   return canApplyAura;
  704                 return (unitCaster == "player" or unitCaster == "pet" or unitCaster == "vehicle") and not shouldConsolidate and canApplyAura and not SpellIsSelfBuff(spellId);
 
707           local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId, canApplyAura = UnitBuff(unit, index, filter);
  715         local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, canStealOrPurge, shouldConsolidate, spellId, canApplyAura = UnitBuff(unit, index, filter);
 
731           --local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId = UnitDebuff(unit, index, filter);
  739         local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, canStealOrPurge, shouldConsolidate, spellId, canApplyAura, isBossDebuff = UnitDebuff(unit, index, filter);
 
  741         local hasCustom, alwaysShowMine, showForMySpec = SpellGetVisibilityInfo(spellId, UnitAffectingCombat("player") and "RAID_INCOMBAT" or "RAID_OUTOFCOMBAT");
  742         if ( hasCustom ) then
  743                 return showForMySpec or (alwaysShowMine and (unitCaster == "player" or unitCaster == "pet" or unitCaster == "vehicle") );       --Would only be "mine" in the case of something like forbearance.
  744         else
 
  746         end
 
736           local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId, canApplyAura, isBossDebuff = UnitDebuff(unit, index, filter);
  750         local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, canStealOrPurge, shouldConsolidate, spellId, canApplyAura, isBossDebuff = UnitDebuff(unit, index, filter);
 
741           local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId, canApplyAura, isBossDebuff = UnitDebuff(unit, index, filter);
  755         local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, canStealOrPurge, shouldConsolidate, spellId, canApplyAura, isBossDebuff = UnitDebuff(unit, index, filter);
 
772           local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId = UnitDebuff(unit, index, filter);
  786         local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, canStealOrPurge, shouldConsolidate, spellId = UnitDebuff(unit, index, filter);
   
File: FrameXML\Constants.lua  
  122 SPELL_POWER_ALTERNATE_POWER = 10;
 
  584 DEFAULT_READY_CHECK_STAY_TIME = 10;
   
File: FrameXML\ContainerFrame.lua  
  52         elseif ( event == "INVENTORY_SEARCH_UPDATE" ) then
  53                 ContainerFrame_UpdateSearchResults(self);
 
  109         self:UnregisterEvent("INVENTORY_SEARCH_UPDATE");
 
  155         self:RegisterEvent("INVENTORY_SEARCH_UPDATE");
 
275           local texture, itemCount, locked, quality, readable;
  279         local texture, itemCount, locked, quality, readable, _, isFiltered;
 
  283         --Update Searchbox
  284         if ( id == 0 ) then
  285                 BagItemSearchBox:SetParent(frame);
  286                 BagItemSearchBox:SetPoint("TOPRIGHT", frame, "TOPRIGHT", -10, -26);
  287                 BagItemSearchBox.anchorBag = frame;
  288                 BagItemSearchBox:Show();
  289         elseif ( BagItemSearchBox.anchorBag == frame ) then
  290                 BagItemSearchBox:ClearAllPoints();
  291                 BagItemSearchBox:Hide();
  292                 BagItemSearchBox.anchorBag = nil;
  293         end
 
281                   texture, itemCount, locked, quality, readable = GetContainerItemInfo(id, itemButton:GetID());
  298                 texture, itemCount, locked, quality, readable, _, _, isFiltered = GetContainerItemInfo(id, itemButton:GetID());
 
  330                 if ( isFiltered ) then
  331                         itemButton.searchOverlay:Show();
  332                 else
  333                         itemButton.searchOverlay:Hide();
  334                 end
 
  338 function ContainerFrame_UpdateSearchResults(frame)
  339         local id = frame:GetID();
  340         local name = frame:GetName().."Item";
  341         local itemButton;
  342         local _, isFiltered;
 
  344         for i=1, frame.size, 1 do
  345                 itemButton = _G[name..i];
  346                 _, _, _, _, _, _, _, isFiltered = GetContainerItemInfo(id, itemButton:GetID());
  347                 if ( isFiltered ) then
  348                         itemButton.searchOverlay:Show();
  349                 else
  350                         itemButton.searchOverlay:Hide();
  351                 end
  352         end
  353 end
 
318           local texture, itemCount, locked, quality, readable;
  359         local _, locked;
 
322                   texture, itemCount, locked, quality, readable = GetContainerItemInfo(id, itemButton:GetID());
  362                 _, _, locked = GetContainerItemInfo(id, itemButton:GetID());
 
331           local texture, itemCount, locked, quality, readable = GetContainerItemInfo(frame:GetID(), itemButton:GetID());
  370         local _, _, locked = GetContainerItemInfo(frame:GetID(), itemButton:GetID());
   
File: FrameXML\ContainerFrame.xml  
13                           <Layer level="OVERLAY">
  13                         <Layer level="ARTWORK" textureSubLevel="1">
 
  290         <EditBox name="BagItemSearchBox" inherits="BagSearchBoxTemplate" parent="ContainerFrame1" letters="15" hidden="true">
  291                 <Size x="130" y="20"/>
  292         </EditBox>
   
File: FrameXML\DressUpFrame.lua  
2   function DressUpItemLink(link)
3           if ( not link or not IsDressableItem(link) ) then
4                   return;
5           end
6           if ( not DressUpFrame:IsShown() ) then
7                   ShowUIPanel(DressUpFrame);
8                   DressUpModel:SetUnit("player");
9           end
10           DressUpModel:TryOn(link);
11   end
 
13   function DressUpTexturePath(raceFileName)
14           -- HACK
15           if ( not raceFileName ) then
16                   raceFileName = "Orc";
17           end
18           -- END HACK
 
20           return "Interface\\DressUpFrame\\DressUpBackground-"..raceFileName;
21   end
 
23   function SetDressUpBackground()
24           local race, fileName = UnitRace("player");
25           local texture = DressUpTexturePath(fileName);
26           DressUpBackgroundTopLeft:SetTexture(texture..1);
27           DressUpBackgroundTopRight:SetTexture(texture..2);
28           DressUpBackgroundBotLeft:SetTexture(texture..3);
29           DressUpBackgroundBotRight:SetTexture(texture..4);
30   end
   
File: FrameXML\DressUpFrame.xml  
1   <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
2   ..\FrameXML\UI.xsd">
3   <Script file="DressUpFrame.lua"/>
4   <Frame name="DressUpFrame" toplevel="true" enableMouse="true" parent="UIParent" hidden="true">
5           <Size>
6                   <AbsDimension x="384" y="512"/>
7           </Size>
8           <Anchors>
9                   <Anchor point="TOPLEFT">
10                           <Offset>
11                                   <AbsDimension x="512" y="-104"/>
12                           </Offset>
13                   </Anchor>
14           </Anchors>
15           <HitRectInsets>
16                   <AbsInset left="0" right="30" top="0" bottom="45"/>
17           </HitRectInsets>
18           <Layers>
19           <Layer level="BACKGROUND">
20               <Texture name="DressUpFramePortrait">
21                   <Size>
22                       <AbsDimension x="60" y="60"/>
23                   </Size>
24                   <Anchors>
25                       <Anchor point="TOPLEFT">
26                           <Offset>
27                               <AbsDimension x="7" y="-6"/>
28                           </Offset>
29                       </Anchor>
30                   </Anchors>
31               </Texture>
32           </Layer>
33                   <Layer level="ARTWORK">
34                           <Texture file="Interface\PaperDollInfoFrame\UI-Character-General-TopLeft">
35                                   <Size>
36                                           <AbsDimension x="256" y="256"/>
37                                   </Size>
38                                   <Anchors>
39                                           <Anchor point="TOPLEFT"/>
40                                   </Anchors>
41                           </Texture>
42                           <Texture file="Interface\PaperDollInfoFrame\UI-Character-General-TopRight">
43                                   <Size>
44                                           <AbsDimension x="128" y="256"/>
45                                   </Size>
46                                   <Anchors>
47                                           <Anchor point="TOPLEFT">
48                                                   <Offset>
49                                                           <AbsDimension x="256" y="0"/>
50                                                   </Offset>
51                                           </Anchor>
52                                   </Anchors>
53                           </Texture>
54                           <Texture file="Interface\PaperDollInfoFrame\SkillFrame-BotLeft">
55                                   <Size>
56                                           <AbsDimension x="256" y="256"/>
57                                   </Size>
58                                   <Anchors>
59                                           <Anchor point="TOPLEFT">
60                                                   <Offset>
61                                                           <AbsDimension x="0" y="-256"/>
62                                                   </Offset>
63                                           </Anchor>
64                                   </Anchors>
65                           </Texture>
66                           <Texture file="Interface\PaperDollInfoFrame\SkillFrame-BotRight">
67                                   <Size>
68                                           <AbsDimension x="128" y="256"/>
69                                   </Size>
70                                   <Anchors>
71                                           <Anchor point="TOPLEFT">
72                                                   <Offset>
73                                                           <AbsDimension x="256" y="-256"/>
74                                                   </Offset>
75                                           </Anchor>
76                                   </Anchors>
77                           </Texture>
78                           <FontString name="DressUpFrameTitleText" inherits="GameFontHighlight" text="DRESSUP_FRAME">
79                                   <Size>
80                                           <AbsDimension x="300" y="14"/>
81                                   </Size>
82                                   <Anchors>
83                                           <Anchor point="TOP" relativePoint="TOP">
84                                                   <Offset>
85                                                           <AbsDimension x="0" y="-16"/>
86                                                   </Offset>
87                                           </Anchor>
88                                   </Anchors>
89                           </FontString>
90                           <FontString name="DressUpFrameDescriptionText" inherits="GameFontNormalSmall" text="DRESSUP_FRAME_INSTRUCTIONS">
91                                   <Size>
92                                           <AbsDimension x="260" y="36"/>
93                                   </Size>
94                                   <Anchors>
95                                           <Anchor point="CENTER" relativeTo="DressUpFrameTitleText" relativePoint="BOTTOM">
96                                                   <Offset>
97                                                           <AbsDimension x="10" y="-22"/>
98                                                   </Offset>
99                                           </Anchor>
100                                   </Anchors>
101                           </FontString>
102                   </Layer>
103                   <Layer level="OVERLAY">
104                           <Texture name="DressUpBackgroundTopLeft">
105                                   <Size>
106                                           <AbsDimension x="256" y="255"/>
107                                   </Size>
108                                   <Anchors>
109                                           <Anchor point="TOPLEFT">
110                                                   <Offset>
111                                                           <AbsDimension x="22" y="-76"/>
112                                                   </Offset>
113                                           </Anchor>
114                                   </Anchors>
115                           </Texture>
116                           <Texture name="DressUpBackgroundTopRight">
117                                   <Size>
118                                           <AbsDimension x="62" y="255"/>
119                                   </Size>
120                                   <Anchors>
121                                           <Anchor point="TOPLEFT" relativeTo="DressUpBackgroundTopLeft" relativePoint="TOPRIGHT"/>
122                                   </Anchors>
123                           </Texture>
124                           <Texture name="DressUpBackgroundBotLeft">
125                                   <Size>
126                                           <AbsDimension x="256" y="128"/>
127                                   </Size>
128                                   <Anchors>
129                                           <Anchor point="TOPLEFT" relativeTo="DressUpBackgroundTopLeft" relativePoint="BOTTOMLEFT"/>
130                                   </Anchors>
131                           </Texture>
132                           <Texture name="DressUpBackgroundBotRight">
133                                   <Size>
134                                           <AbsDimension x="62" y="128"/>
135                                   </Size>
136                                   <Anchors>
137                                           <Anchor point="TOPLEFT" relativeTo="DressUpBackgroundTopLeft" relativePoint="BOTTOMRIGHT"/>
138                                   </Anchors>
139                           </Texture>
140                   </Layer>
141           </Layers>
142           <Frames>
143           <Button name="DressUpFrameCloseButton" inherits="UIPanelCloseButton">
144               <Anchors>
145                   <Anchor point="CENTER" relativePoint="TOPRIGHT">
146                       <Offset>
147                           <AbsDimension x="-46" y="-25"/>
148                       </Offset>
149                   </Anchor>
150               </Anchors>
151           </Button>
152                   <Button name="DressUpFrameCancelButton" inherits="UIPanelButtonTemplate" text="CLOSE">
153                           <Size>
154                                   <AbsDimension x="80" y="22"/>
155                           </Size>
156                           <Anchors>
157                                   <Anchor point="CENTER" relativePoint="TOPLEFT">
158                                           <Offset>
159                                                   <AbsDimension x="305" y="-422"/>
160                                           </Offset>
161                                   </Anchor>
162                           </Anchors>
163                           <Scripts>
164                                   <OnClick function="HideParentPanel"/>
165                           </Scripts>
166                   </Button>
167                   <Button name="DressUpFrameResetButton" inherits="UIPanelButtonTemplate" text="RESET">
168                           <Size>
169                                   <AbsDimension x="80" y="22"/>
170                           </Size>
171                           <Anchors>
172                                   <Anchor point="RIGHT" relativeTo="DressUpFrameCancelButton" relativePoint="LEFT">
173                                           <Offset>
174                                                   <AbsDimension x="0" y="0"/>
175                                           </Offset>
176                                   </Anchor>
177                           </Anchors>
178                           <Scripts>
179                                   <OnClick>
180                                           DressUpModel:Dress();
181                                           PlaySound("gsTitleOptionOK");
182                                   </OnClick>
183                           </Scripts>
184                   </Button>
185                   <DressUpModel name="DressUpModel" scale="2.0">
186                           <Size>
187                                   <AbsDimension x="316" y="331"/>
188                           </Size>
189                           <Anchors>
190                                   <Anchor point="BOTTOM">
191                                           <Offset>
192                                                   <AbsDimension x="-11" y="105"/>
193                                           </Offset>
194                                   </Anchor>
195                           </Anchors>
196                           <Scripts>
197                   <OnLoad function="Model_OnLoad"/>
198                                   <OnEvent function="Model_OnEvent"/>
199                   <OnUpdate function="Model_OnUpdate"/>
200                                   <OnMouseUp function="Model_OnMouseUp"/>
201                                   <OnMouseDown function="Model_OnMouseDown"/>
202                                   <OnMouseWheel>
203                                           Model_OnMouseWheel(self, delta, MODELFRAME_MAX_PLAYER_ZOOM);
204                                   </OnMouseWheel>
205               </Scripts>
206                           <Frames>
207                                   <Button name="DressUpModelRotateLeftButton">
208                                           <Size>
209                                                   <AbsDimension x="35" y="35"/>
210                                           </Size>
211                                           <Anchors>
212                                                   <Anchor point="TOPLEFT" relativeTo="DressUpFrame">
213                                                           <Offset>
214                                                                   <AbsDimension x="21" y="-75"/>
215                                                           </Offset>
216                                                   </Anchor>
217                                           </Anchors>
218                                           <Scripts>
219                                                   <OnLoad>
220                                                           self:RegisterForClicks("LeftButtonDown", "LeftButtonUp");
221                                                   </OnLoad>
222                                                   <OnClick>
223                                                           Model_RotateLeft(self:GetParent());
224                                                   </OnClick>
225                                           </Scripts>
226                                           <NormalTexture file="Interface\Buttons\UI-RotationLeft-Button-Up"/>
227                                           <PushedTexture file="Interface\Buttons\UI-RotationLeft-Button-Down"/>
228                                           <HighlightTexture file="Interface\Buttons\ButtonHilight-Round" alphaMode="ADD"/>
229                                   </Button>
230                                   <Button name="DressUpModelRotateRightButton">
231                                           <Size>
232                                                   <AbsDimension x="35" y="35"/>
233                                           </Size>
234                                           <Anchors>
235                                                   <Anchor point="TOPLEFT" relativeTo="DressUpModelRotateLeftButton" relativePoint="TOPRIGHT"/>
236                                           </Anchors>
237                                           <Scripts>
238                                                   <OnLoad>
239                                                           self:RegisterForClicks("LeftButtonDown", "LeftButtonUp");
240                                                   </OnLoad>
241                                                   <OnClick>
242                                                           Model_RotateRight(self:GetParent());
243                                                   </OnClick>
244                                           </Scripts>
245                                           <NormalTexture file="Interface\Buttons\UI-RotationRight-Button-Up"/>
246                                           <PushedTexture file="Interface\Buttons\UI-RotationRight-Button-Down"/>
247                                           <HighlightTexture file="Interface\Buttons\ButtonHilight-Round" alphaMode="ADD"/>
248                                   </Button>
249                           </Frames>
250                   </DressUpModel>
251           </Frames>
252       <Scripts>
253           <OnLoad function="SetDressUpBackground"/>
254                   <OnShow>
255                           SetPortraitTexture(DressUpFramePortrait, "player");
256                           PlaySound("igCharacterInfoOpen");
257                   </OnShow>
258                   <OnHide>
259                           PlaySound("igCharacterInfoClose");
260                   </OnHide>
261       </Scripts>
262   </Frame>
263   </Ui>
   
File: FrameXML\DurabilityFrame.lua  
  21         local hasLeft, hasRight;
 
  38                                 if ( value.slot == "Shield" or value.slot == "Ranged" ) then
  39                                         hasRight = true;
  40                                 elseif ( value.slot == "Weapon" ) then
  41                                         hasLeft = true;
  42                                 end
 
  65         local width = 58;
  66         if ( hasRight ) then
  67                 DurabilityHead:SetPoint("TOPRIGHT", -40, 0);
  68                 width = width + 20;
  69         else
  70                 DurabilityHead:SetPoint("TOPRIGHT", -20, 0);
  71         end
  72         if ( hasLeft ) then
  73                 width = width + 14;
  74         end
  75         DurabilityFrame:SetWidth(width);
   
File: FrameXML\DurabilityFrame.xml  
6                           <AbsDimension x="60" y="65"/>
  6                         <AbsDimension x="60" y="75"/>
 
22                                                   <Anchor point="TOP"/>
  22                                                 <Anchor point="TOPRIGHT"/>
   
File: FrameXML\EasyMenu.lua  
22           ToggleDropDownMenu(1, nil, menuFrame, anchor, x, y, menuList); 
  22         ToggleDropDownMenu(1, nil, menuFrame, anchor, x, y, menuList, nil, autoHideDelay);
   
File: FrameXML\EclipseBarFrame.lua  
  60         if maxPower == 0 then
  61                 return;--catch divide by zero
  62         end
   
File: FrameXML\EncounterJournal.lua  
2   --LOCALIZED CONSTANTS
3   EJ_MIN_CHARACTER_SEARCH = 3;
 
6   --FILE CONSTANTS
7   local HEADER_INDENT = 15;
8   local MAX_CREATURES_PER_ENCOUNTER = 6;
 
10   local SECTION_BUTTON_OFFSET = 6;
11   local SECTION_DESCRIPTION_OFFSET = 27;
 
14   local EJ_STYPE_ITEM = 0;
15   local EJ_STYPE_ENCOUNTER = 1;
16   local EJ_STYPE_CREATURE = 2;
17   local EJ_STYPE_SECTION = 3;
18   local EJ_STYPE_INSTANCE = 4;
 
21   local EJ_NUM_INSTANCE_PER_ROW = 4;
 
23   local EJ_QUEST_POI_MINDIS_SQR = 2500;
 
25   local EJ_LORE_MAX_HEIGHT = 97;
26   local EJ_MAX_SECTION_MOVE = 320;
 
29   local EJ_Tabs = {};
30   EJ_Tabs[1] = {frame="detailsScroll", button="bossTab"};
31   EJ_Tabs[2] = {frame="lootScroll", button="lootTab"};
 
34   local EJ_section_openTable = {};
 
37   local EJ_LINK_INSTANCE          = 0;
38   local EJ_LINK_ENCOUNTER         = 1;
39   local EJ_LINK_SECTION           = 3;
 
43   function EncounterJournal_OnLoad(self)
44           EncounterJournalTitleText:SetText(ENCOUNTER_JOURNAL);
45           SetPortraitToTexture(EncounterJournalPortrait,"Interface\\EncounterJournal\\UI-EJ-PortraitIcon");
46           self:RegisterEvent("EJ_LOOT_DATA_RECIEVED");
47           self:RegisterEvent("UNIT_PORTRAIT_UPDATE");
48           self:RegisterEvent("EJ_DIFFICULTY_UPDATE");
 
50           self.encounter.freeHeaders = {};
51           self.encounter.usedHeaders = {};
 
53           self.encounter.infoFrame = self.encounter.info.detailsScroll.child;
54           self.encounter.info.detailsScroll.ScrollBar.scrollStep = 30;
 
57           -- UIDropDownMenu_SetWidth(self.instanceSelect.tierDropDown, 170);
58           -- UIDropDownMenu_SetText(self.instanceSelect.tierDropDown, "Pick A Dungeon");
59           -- UIDropDownMenu_JustifyText(self.instanceSelect.tierDropDown, "LEFT");
60           -- UIDropDownMenu_Initialize(self.instanceSelect.tierDropDown, EncounterJournal_TierDropDown_Init);
 
63           self.encounter.info.bossTab:Click();
 
65           self.encounter.info.lootScroll.update = EncounterJournal_LootUpdate;
66           self.encounter.info.lootScroll.scrollBar.doNotHide = true;
67           HybridScrollFrame_CreateButtons(self.encounter.info.lootScroll, "EncounterItemTemplate", 0, 0);
 
70           self.searchResults.scrollFrame.update = EncounterJournal_SearchUpdate;
71           self.searchResults.scrollFrame.scrollBar.doNotHide = true;
72           HybridScrollFrame_CreateButtons(self.searchResults.scrollFrame, "EncounterSearchLGTemplate", 0, 0);
 
74           EncounterJournal.isHeroic = false;
75           EncounterJournal.is10Man = true;
76           EJ_SetDifficulty(EncounterJournal.isHeroic, EncounterJournal.is10Man);
 
78           EncounterJournal.searchBox.oldEditLost = EncounterJournal.searchBox:GetScript("OnEditFocusLost");
79           EncounterJournal.searchBox:SetScript("OnEditFocusLost", function(self) self:oldEditLost(); EncounterJournal_HideSearchPreview(); end);
80           EncounterJournal.searchBox.clearFunc = EncounterJournal_ClearSearch;
 
83           local homeData = {
84                   name = HOME,
85                   OnClick = EncounterJournal_ListInstances,
86                   listFunc = EJNAV_ListInstance,
87           }
88           NavBar_Initialize(self.navBar, "NavButtonTemplate", homeData, self.navBar.home, self.navBar.overflow);
89           EncounterJournal_ListInstances();
 
91           EncounterJournal.instanceSelect.dungeonsTab:Disable();
92           EncounterJournal.instanceSelect.dungeonsTab.selectedGlow:Show();
93           EncounterJournal.instanceSelect.raidsTab:GetFontString():SetTextColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b);
94   end
 
97   function EncounterJournal_OnShow(self)
98           UpdateMicroButtons();
99           PlaySound("igCharacterInfoOpen");
 
101           --automatically navigate to the current dungeon if you are in one;
102           local instanceID = EJ_GetCurrentInstance();
103           if instanceID ~= 0 then
104                   EncounterJournal_ListInstances();
105                   EncounterJournal_DisplayInstance(instanceID);
106           end
107   end
 
110   function EncounterJournal_OnHide(self)
111           UpdateMicroButtons();
112           PlaySound("igCharacterInfoClose");
113   end
 
116   function EncounterJournal_OnEvent(self, event, ...)
117           if  event == "EJ_LOOT_DATA_RECIEVED" then
118                   local itemID = ...
119                   if itemID then
120                           EncounterJournal_LootCallback(itemID);
121                           EncounterJournal_SearchUpdate();
122                   else
123                           EncounterJournal_LootUpdate();
124                   end
125           elseif event == "EJ_DIFFICULTY_UPDATE" then
126                   --fix the difficulty buttons
127                   local isHeroic, is10man = ...;
128                   if is10man then
129                           EncounterJournal.is10Man = true;
130                           EncounterJournal.encounter.info.diff10man.selected:Show();
131                           EncounterJournal.encounter.info.diff25man.selected:Hide();
132                   else
133                           EncounterJournal.is10Man = false;
134                           EncounterJournal.encounter.info.diff10man.selected:Hide();
135                           EncounterJournal.encounter.info.diff25man.selected:Show();
136                   end
 
138                   EncounterJournal.isHeroic = isHeroic;
139                   if isHeroic then
140                           EncounterJournal.encounter.info.heroButton.selected:Show();
141                   else
142                           EncounterJournal.encounter.info.heroButton.selected:Hide();
143                   end
144           elseif event == "UNIT_PORTRAIT_UPDATE" then
145                   local unit = ...;
146                   if not unit then
147                           EncounterJournal_UpdatePortraits();
148                   end
149           end
150   end
 
153   function EncounterJournal_UpdatePortraits()
154           if ( EncounterJournal:IsShown() ) then
155                   local self = EncounterJournal.encounter;
156                   for i = 1, MAX_CREATURES_PER_ENCOUNTER do
157                           local button = self["creatureButton"..i];
158                           if ( button and button:IsShown() ) then
159                                   SetPortraitTexture(button.creature, button.displayInfo);
160                           else
161                                   break;
162                           end
163                   end
164                   local usedHeaders = EncounterJournal.encounter.usedHeaders;
165                   for _, header in pairs(usedHeaders) do
166                           if ( header.button.portrait.displayInfo ) then
167                                   SetPortraitTexture(header.button.portrait.icon, header.button.portrait.displayInfo);
168                           end
169                   end
170           end
171           if ( WorldMapFrame:IsShown() ) then
172                   local index = 1;
173                   local bossButton = _G["EJMapButton"..index];
174                   while ( bossButton and bossButton:IsShown() ) do
175                           SetPortraitTexture(bossButton.bgImage, bossButton.displayInfo);
176                           index = index + 1;
177                           bossButton = _G["EJMapButton"..index];
178                   end
179           end
180   end
 
183   function EncounterJournal_ListInstances()
184           NavBar_Reset(EncounterJournal.navBar);
185           EncounterJournal.encounter:Hide();
186           EncounterJournal.instanceSelect:Show();
187           local showRaid = EncounterJournal.instanceSelect.raidsTab:IsEnabled() == nil;
 
190           local self = EncounterJournal.instanceSelect.scroll.child;
191           local index = 1;
192           local instanceID, name, description, _, buttonImage, _, _, link = EJ_GetInstanceByIndex(index, showRaid);
193           local instanceButton;
194           while instanceID do
195                   instanceButton = self["instance"..index];
196                   if not instanceButton then -- create button
197                           instanceButton = CreateFrame("BUTTON", self:GetParent():GetName().."instance"..index, self, "EncounterInstanceButtonTemplate");
198                           if ( EncounterJournal.localizeInstanceButton ) then
199                                   EncounterJournal.localizeInstanceButton(instanceButton);
200                           end
201                           self["instance"..index] = instanceButton;
202                           if mod(index-1, EJ_NUM_INSTANCE_PER_ROW) == 0 then
203                                   instanceButton:SetPoint("TOP", self["instance"..(index-EJ_NUM_INSTANCE_PER_ROW)], "BOTTOM", 0, -15);
204                           else
205                                   instanceButton:SetPoint("LEFT", self["instance"..(index-1)], "RIGHT", 15, 0);
206                           end
207                   end
 
209                   instanceButton.name:SetText(name);
210                   instanceButton.bgImage:SetTexture(buttonImage);
211                   instanceButton.instanceID = instanceID;
212                   instanceButton.tooltipTitle = name;
213                   instanceButton.tooltipText = description;
214                   instanceButton.link = link;
215                   instanceButton:Show();
 
217                   index = index + 1;
218                   instanceID, name, description, _, buttonImage, _, _, link = EJ_GetInstanceByIndex(index, showRaid);
219           end
 
221           --Hide old buttons needed.
222           instanceButton = self["instance"..index];
223           while instanceButton do
224                   instanceButton:Hide();
225                   index = index + 1;
226                   instanceButton = self["instance"..index];
227           end
228   end
 
231   function EncounterJournal_DisplayInstance(instanceID, noButton)
232           local self = EncounterJournal.encounter;
233           EncounterJournal.encounter.model:Hide();
234           EncounterJournal.instanceSelect:Hide();
235           EncounterJournal.encounter:Show();
236           EncounterJournal.ceatureDisplayID = 0;
 
238           EncounterJournal.instanceID = instanceID;
239           EncounterJournal.encounterID = nil;
240           EJ_SelectInstance(instanceID);
241           EncounterJournal_LootUpdate();
242           EncounterJournal_ClearDetails()
 
244           if EJ_InstanceIsRaid() then
245                   self.info.diff10man:Show();
246                   self.info.diff25man:Show();
247           else
248                   self.info.diff10man:Hide();
249                   self.info.diff25man:Hide();
250           end
 
252           local iname, description, bgImage, _, loreImage = EJ_GetInstanceInfo();
253           self.instance.title:SetText(iname);
254           self.instance.loreBG:SetTexture(loreImage);
255           self.info.encounterTitle:SetText(iname);
 
257           self.instance.loreScroll.child.lore:SetText(description);
258           local loreHeight = self.instance.loreScroll.child.lore:GetHeight();
259           self.instance.loreScroll.ScrollBar:SetValue(0);
260           if loreHeight <= EJ_LORE_MAX_HEIGHT then
261                   self.instance.loreScroll.ScrollBar:Hide();
262           else
263                   self.instance.loreScroll.ScrollBar:Show();
264           end
 
266           self.info.dungeonBG:SetTexture(bgImage);
267           self.info.dungeonBG:Hide();
 
269           local bossIndex = 1;
270           local name, description, bossID, _, link = EJ_GetEncounterInfoByIndex(bossIndex);
271           local bossButton;
272           while bossID do
273                   bossButton = _G["EncounterJournalBossButton"..bossIndex];
274                   if not bossButton then -- create a new header;
275                           bossButton = CreateFrame("BUTTON", "EncounterJournalBossButton"..bossIndex, EncounterJournal.encounter.infoFrame, "EncounterBossButtonTemplate");
276                           if bossIndex > 1 then
277                                   bossButton:SetPoint("TOPLEFT", _G["EncounterJournalBossButton"..(bossIndex-1)], "BOTTOMLEFT", 0, -15);
278                           else
279                                   bossButton:SetPoint("TOPLEFT", EncounterJournal.encounter.infoFrame, "TOPLEFT", 0, -10);
280                           end
281                   end
 
283                   bossButton.link = link;
284                   bossButton:SetText(name);
285                   bossButton:Show();
286                   bossButton.encounterID = bossID;
287                   --Use the boss' first creature as the button icon
288                   local _, _, _, _, bossImage = EJ_GetCreatureInfo(1, bossID);
289                   bossImage = bossImage or "Interface\\EncounterJournal\\UI-EJ-BOSS-Default";
290                   bossButton.creature:SetTexture(bossImage);
 
292                   bossIndex = bossIndex + 1;
293                   name, description, bossID, _, link = EJ_GetEncounterInfoByIndex(bossIndex);
294           end
 
296           --handle typeHeader
 
298           self.instance:Show();
 
300           if not noButton then
301                   local buttonData = {
302                           name = iname,
303                           OnClick = EJNAV_RefreshInstance,
304                           listFunc = EJNAV_ListEncounter
305                   }
306                   NavBar_AddButton(EncounterJournal.navBar, buttonData);
307           end
308   end
 
311   function EncounterJournal_DisplayEncounter(encounterID, noButton)
312           local self = EncounterJournal.encounter;
313           EncounterJournal.encounter.model:Show();
 
315           local ename, description, _, rootSectionID = EJ_GetEncounterInfo(encounterID);
316           EncounterJournal.encounterID = encounterID;
317           EJ_SelectEncounter(encounterID);
318           EncounterJournal_LootUpdate();
319           EncounterJournal_ClearDetails();
 
321           self.info.encounterTitle:SetText(ename);
 
323           self.infoFrame.description:SetText(description);
324           self.infoFrame.description:SetWidth(self.infoFrame:GetWidth() -5);
325           self.infoFrame.encounterID = encounterID;
326           self.infoFrame.rootSectionID = rootSectionID;
327           self.infoFrame.expanded = false;
 
329           self.info.dungeonBG:Show();
 
331           -- Setup Creatures
332           local id, displayInfo, iconImage;
333           for i=1,MAX_CREATURES_PER_ENCOUNTER do
334                   id, name, description, displayInfo, iconImage = EJ_GetCreatureInfo(i);
 
336                   local button = self["creatureButton"..i];
337                   if id then
338                           SetPortraitTexture(button.creature, displayInfo);
339                           button.name = name;
340                           button.id = id;
341                           button.description = description;
342                           button.displayInfo = displayInfo;
343                           button:Show();
344                   end
 
346                   if i == 1 then
347                           EncounterJournal_DisplayCreature(button);
348                   end
349           end
 
351           EncounterJournal_ToggleHeaders(self.infoFrame)
352           self:Show();
 
354           if not noButton then
355                   local buttonData = {
356                           name = ename,
357                           OnClick = EJNAV_RefreshEncounter,
358                   }
359                   NavBar_AddButton(EncounterJournal.navBar, buttonData);
360           end
361   end
 
364   function EncounterJournal_DisplayCreature(self)
365           if EncounterJournal.encounter.shownCreatureButton then
366                   EncounterJournal.encounter.shownCreatureButton:Enable();
367           end
 
369           if EncounterJournal.ceatureDisplayID == self.displayInfo then
370                   --Don't refresh the same model
371           elseif self.displayInfo then
372                   EncounterJournal.encounter.model.imageTitle:SetText(self.name);
373                   EncounterJournal.encounter.model:SetDisplayInfo(self.displayInfo);
374                   EncounterJournal.ceatureDisplayID = self.displayInfo;
375           end
 
377           self:Disable();
378           EncounterJournal.encounter.shownCreatureButton = self;
379   end
 
382   local toggleTempList = {};
383   local headerCount = 0;
384   function EncounterJournal_ToggleHeaders(self, doNotShift)
385           local numAdded = 0
386           local infoHeader, parentID, _;
387           local hWidth = self:GetWidth();
388           local nextSectionID;
389           local topLevelSection = false;
390           if self.myID then  -- this is from a button click
391                   _, _, _, _, _, _, nextSectionID =  EJ_GetSectionInfo(self.myID)
392                   parentID = self.myID;
393                   self.description:SetWidth(self:GetWidth() -20);
394                   hWidth = hWidth - HEADER_INDENT;
395           else
396                   --This sets the base encounter header
397                   parentID = self.encounterID;
398                   nextSectionID = self.rootSectionID;
399                   topLevelSection = true;
400           end
 
403           local freeHeaders = EncounterJournal.encounter.freeHeaders;
404           local usedHeaders = EncounterJournal.encounter.usedHeaders;
 
406           self.expanded = not self.expanded;
407           local hideHeaders = not self.expanded;
408           if hideHeaders then
409                   -- This can only happen for buttons
410                   self.button.expandedIcon:SetText("+");
411                   self.description:Hide();
412                   self.descriptionBG:Hide();
413                   self.descriptionBGBottom:Hide();
 
415                   EncounterJournal_ClearChildHeaders(self);
416           else
417                   if strlen(self.description:GetText() or "") > 0 then
418                           self.description:Show();
419                           if self.button then
420                                   self.descriptionBG:Show();
421                                   self.descriptionBGBottom:Show();
422                                   self.button.expandedIcon:SetText("-");
423                           end
424                   elseif self.button then
425                           self.description:Hide();
426                           self.descriptionBG:Hide();
427                           self.descriptionBGBottom:Hide();
428                           self.button.expandedIcon:SetText("-");
429                   end
 
431                   -- Get Section Info
432                   local listEnd  = #usedHeaders;
433                   while nextSectionID do
434                           local title, description, headerType, abilityIcon, displayInfo, siblingID, _, fileredByDifficulty, link, startsOpen, flag1, flag2, flag3, flag4 = EJ_GetSectionInfo(nextSectionID);
435                           if not title then
436                                   break;
437                           elseif not fileredByDifficulty then --ignore all sections that should not be shown with our current difficulty settings        
438                                   if #freeHeaders == 0 then -- create a new header;
439                                           headerCount = headerCount + 1; -- the is a file local
440                                           infoHeader = CreateFrame("FRAME", "EncounterJournalInfoHeader"..headerCount, EncounterJournal.encounter.infoFrame, "EncounterInfoTemplate");
441                                           infoHeader:Hide();
442                                   else
443                                           infoHeader = freeHeaders[#freeHeaders];
444                                           freeHeaders[#freeHeaders] = nil;
445                                   end
 
447                                   numAdded = numAdded + 1;
448                                   toggleTempList[#toggleTempList+1] = infoHeader;
 
450                                   infoHeader.button.link = link;
451                                   infoHeader.parentID = parentID;
452                                   infoHeader.myID = nextSectionID;
453                                   infoHeader.description:SetText(description);
454                                   infoHeader.button.title:SetText(title);
455                                   if topLevelSection then
456                                           infoHeader.button.title:SetFontObject("GameFontNormalMed3");
457                                   else
458                                           infoHeader.button.title:SetFontObject("GameFontNormal");
459                                   end
 
461                                   --All headers start collapsed
462                                   infoHeader.expanded = false
463                                   infoHeader.description:Hide();
464                                   infoHeader.descriptionBG:Hide();
465                                   infoHeader.descriptionBGBottom:Hide();
466                                   infoHeader.button.expandedIcon:SetText("+");
 
469                                   local textLeftAnchor = infoHeader.button.expandedIcon;
470                                   --Show ability Icon
471                                   if abilityIcon ~= "" then
472                                           infoHeader.button.abilityIcon:SetTexture(abilityIcon);
473                                           infoHeader.button.abilityIcon:Show();
474                                           textLeftAnchor = infoHeader.button.abilityIcon;
475                                   else
476                                           infoHeader.button.abilityIcon:Hide();
477                                   end
 
479                                   --Show Creature Portrait
480                                   if displayInfo ~= 0 then
481                                           SetPortraitTexture(infoHeader.button.portrait.icon, displayInfo);
482                                           infoHeader.button.portrait.name = title;
483                                           infoHeader.button.portrait.displayInfo = displayInfo;
484                                           infoHeader.button.portrait:Show();
485                                           textLeftAnchor = infoHeader.button.portrait;
486                                           infoHeader.button.abilityIcon:Hide();
487                                   else
488                                           infoHeader.button.portrait:Hide();
489                                           infoHeader.button.portrait.name = nil;
490                                           infoHeader.button.portrait.displayInfo = nil;
491                                   end
492                                   infoHeader.button.title:SetPoint("LEFT", textLeftAnchor, "RIGHT", 5, 0);
 
495                                   --Set flag Icons
496                                   local textRightAnchor = nil;
497                                   infoHeader.button.icon1:Hide();
498                                   infoHeader.button.icon2:Hide();
499                                   infoHeader.button.icon3:Hide();
500                                   infoHeader.button.icon4:Hide();
501                                   if flag1 then
502                                           textRightAnchor = infoHeader.button.icon1;
503                                           infoHeader.button.icon1:Show();
504                                           infoHeader.button.icon1.tooltipTitle = _G["ENCOUNTER_JOURNAL_SECTION_FLAG"..flag1];
505                                           infoHeader.button.icon1.tooltipText = _G["ENCOUNTER_JOURNAL_SECTION_FLAG_DESCRIPTION"..flag1];
506                                           EncounterJournal_SetFlagIcon(infoHeader.button.icon1.icon, flag1);
507                                           if flag2 then
508                                                   textRightAnchor = infoHeader.button.icon2;
509                                                   infoHeader.button.icon2:Show();
510                                                   EncounterJournal_SetFlagIcon(infoHeader.button.icon2.icon, flag2);
511                                                   infoHeader.button.icon2.tooltipTitle = _G["ENCOUNTER_JOURNAL_SECTION_FLAG"..flag2];
512                                                   infoHeader.button.icon2.tooltipText = _G["ENCOUNTER_JOURNAL_SECTION_FLAG_DESCRIPTION"..flag2];
513                                                   if flag3 then
514                                                           textRightAnchor = infoHeader.button.icon3;
515                                                           infoHeader.button.icon3:Show();
516                                                           EncounterJournal_SetFlagIcon(infoHeader.button.icon3.icon, flag3);
517                                                           infoHeader.button.icon3.tooltipTitle = _G["ENCOUNTER_JOURNAL_SECTION_FLAG"..flag3];
518                                                           infoHeader.button.icon3.tooltipText = _G["ENCOUNTER_JOURNAL_SECTION_FLAG_DESCRIPTION"..flag3];
519                                                           if flag4 then
520                                                                   textRightAnchor = infoHeader.button.icon4;
521                                                                   infoHeader.button.icon4:Show();
522                                                                   EncounterJournal_SetFlagIcon(infoHeader.button.icon4.icon, flag4);
523                                                                   infoHeader.button.icon4.tooltipTitle = _G["ENCOUNTER_JOURNAL_SECTION_FLAG"..flag4];
524                                                                   infoHeader.button.icon4.tooltipText = _G["ENCOUNTER_JOURNAL_SECTION_FLAG_DESCRIPTION"..flag4];
525                                                           end
526                                                   end
527                                           end
528                                   end
529                                   if textRightAnchor then
530                                           infoHeader.button.title:SetPoint("RIGHT", textRightAnchor, "LEFT", -5, 0);
531                                   else
532                                           infoHeader.button.title:SetPoint("RIGHT", infoHeader.button, "RIGHT", -5, 0);
533                                   end
 
535                                   infoHeader.index = nil;
536                                   infoHeader:SetWidth(hWidth);
 
539                                   -- If this section has not be seen and should start open
540                                   if EJ_section_openTable[infoHeader.myID] == nil and startsOpen then
541                                           EJ_section_openTable[infoHeader.myID] = true;
542                                   end
 
544                                   --toggleNested?
545                                   if EJ_section_openTable[infoHeader.myID]  then
546                                           infoHeader.expanded = false; -- setting false to expand it in EncounterJournal_ToggleHeaders
547                                           numAdded = numAdded + EncounterJournal_ToggleHeaders(infoHeader, true);
548                                   end
 
550                                   infoHeader:Show();
551                           end -- if not fileredByDifficulty
552                           nextSectionID = siblingID;
553                   end
 
555                   if not doNotShift and numAdded > 0 then
556                           --fix the usedlist
557                           local startIndex = self.index or 0;
558                           for i=listEnd,startIndex+1,-1 do
559                                   usedHeaders[i+numAdded] = usedHeaders[i];
560                                   usedHeaders[i+numAdded].index = i + numAdded;
561                                   usedHeaders[i] = nil
562                           end
563                           for i=1,numAdded do
564                                   usedHeaders[startIndex + i] = toggleTempList[i];
565                                   usedHeaders[startIndex + i].index = startIndex + i;
566                                   toggleTempList[i] = nil;
567                           end
568                   end
 
570                   if topLevelSection and usedHeaders[1] then
571                           usedHeaders[1]:SetPoint("TOPRIGHT", 0 , -8 - self.description:GetHeight() - SECTION_BUTTON_OFFSET);
572                   end
573           end
 
575           if self.myID then
576                   EJ_section_openTable[self.myID] = self.expanded;
577           end
 
579           if not doNotShift then
580                   EncounterJournal_ShiftHeaders(self.index or 1);
 
582                   --check to see if it is offscreen
583                   if self.index then
584                           local scrollValue = EncounterJournal.encounter.info.detailsScroll.ScrollBar:GetValue();
585                           local cutoff = EncounterJournal.encounter.info.detailsScroll:GetHeight() + scrollValue;
 
587                           local _, _, _, _, anchorY = self:GetPoint();
588                           anchorY = anchorY - self:GetHeight();
589                           if self.description:IsShown() then
590                                   anchorY = anchorY - self.description:GetHeight() - SECTION_DESCRIPTION_OFFSET;
591                           end
 
593                           if cutoff < abs(anchorY) then
594                                   self.frameCount = 0;
595                                   self:SetScript("OnUpdate", EncounterJournal_MoveSectionUpdate);
596                           end
597                   end
598           end
599           return numAdded;
600   end
 
603   function EncounterJournal_ShiftHeaders(index)
604           local usedHeaders = EncounterJournal.encounter.usedHeaders;
605           if not usedHeaders[index] then
606                   return;
607           end
 
609           local _, _, _, _, anchorY = usedHeaders[index]:GetPoint();
610           for i=index,#usedHeaders-1 do
611                   anchorY = anchorY - usedHeaders[i]:GetHeight();
612                   if usedHeaders[i].description:IsShown() then
613                           anchorY = anchorY - usedHeaders[i].description:GetHeight() - SECTION_DESCRIPTION_OFFSET;
614                   else
615                           anchorY = anchorY - SECTION_BUTTON_OFFSET;
616                   end
 
618                   usedHeaders[i+1]:SetPoint("TOPRIGHT", 0 , anchorY);
619           end
620   end
 
623   function EncounterJournal_FocusSection(sectionID)
624           local usedHeaders = EncounterJournal.encounter.usedHeaders;
625           for _, section in pairs(usedHeaders) do
626                   if section.myID == sectionID then
627                           section.cbCount = 0;
628                           section.flashAnim:Play();
629                           section:SetScript("OnUpdate", EncounterJournal_FocusSectionCallback);
630                           return;
631                   end
632           end
633   end
 
636   function EncounterJournal_FocusSectionCallback(self)
637           if self.cbCount > 0 then
638                   local _, _, _, _, anchorY = self:GetPoint();
639                   anchorY = abs(anchorY);
640                   anchorY = anchorY - EncounterJournal.encounter.info.detailsScroll:GetHeight()/2;
641                   EncounterJournal.encounter.info.detailsScroll.ScrollBar:SetValue(anchorY);
642                   self:SetScript("OnUpdate", nil);
643           end
644           self.cbCount = self.cbCount + 1;
645   end
 
648   function EncounterJournal_MoveSectionUpdate(self)
 
650           if self.frameCount > 0 then
651                   local _, _, _, _, anchorY = self:GetPoint();
652                   local height = min(EJ_MAX_SECTION_MOVE, self:GetHeight() + self.description:GetHeight() + SECTION_DESCRIPTION_OFFSET);
653                   local scrollValue = abs(anchorY) - (EncounterJournal.encounter.info.detailsScroll:GetHeight()-height);
654                   EncounterJournal.encounter.info.detailsScroll.ScrollBar:SetValue(scrollValue);
655                   self:SetScript("OnUpdate", nil);
656           end
657           self.frameCount = self.frameCount + 1;
658   end
 
661   function EncounterJournal_ClearChildHeaders(self, doNotShift)
662           local usedHeaders = EncounterJournal.encounter.usedHeaders;
663           local freeHeaders = EncounterJournal.encounter.freeHeaders;
664           local numCleared = 0
665           for key,header in pairs(usedHeaders) do
666                   if header.parentID == self.myID then
667                           if header.expanded then
668                                   numCleared = numCleared + EncounterJournal_ClearChildHeaders(header, true)
669                           end
670                           header:Hide();
671                           usedHeaders[key] = nil;
672                           freeHeaders[#freeHeaders+1] = header;
673                           numCleared = numCleared + 1;
674                   end
675           end
 
677           if numCleared > 0 and not doNotShift then
678                   local placeIndex = self.index + 1;
679                   local shiftHeader = usedHeaders[placeIndex + numCleared];
680                   while shiftHeader do
681                           usedHeaders[placeIndex] = shiftHeader;
682                           usedHeaders[placeIndex].index = placeIndex;
683                           usedHeaders[placeIndex + numCleared] = nil;
684                           placeIndex = placeIndex + 1;
685                           shiftHeader = usedHeaders[placeIndex + numCleared];
686                   end
687           end
688           return numCleared
689   end
 
692   function EncounterJournal_ClearDetails()
693           EncounterJournal.encounter.instance:Hide();
694           EncounterJournal.encounter.infoFrame.description:SetText("");
 
696           EncounterJournal.encounter.info.lootScroll.scrollBar:SetValue(0);
697           EncounterJournal.encounter.info.detailsScroll.ScrollBar:SetValue(0);
 
699           local freeHeaders = EncounterJournal.encounter.freeHeaders;
700           local usedHeaders = EncounterJournal.encounter.usedHeaders;
 
702           for key,used in pairs(usedHeaders) do
703                   used:Hide();
704                   usedHeaders[key] = nil;
705                   freeHeaders[#freeHeaders+1] = used;
706           end
 
708           for i=1,MAX_CREATURES_PER_ENCOUNTER do
709                   EncounterJournal.encounter["creatureButton"..i]:Hide();
710           end
 
712           local bossIndex = 1
713           local bossButton = _G["EncounterJournalBossButton"..bossIndex];
714           while bossButton do
715                   bossButton:Hide();
716                   bossIndex = bossIndex + 1;
717                   bossButton = _G["EncounterJournalBossButton"..bossIndex];
718           end
 
720           EncounterJournal.searchResults:Hide();
721           EncounterJournal_HideSearchPreview();
722           EncounterJournal.searchBox:ClearFocus();
723   end
 
726   function EncounterJournal_TierDropDown_Select(self, instanceID, name)
727           EncounterJournal_DisplayInstance(instanceID);
728           UIDropDownMenu_SetText(EncounterJournal.instanceSelect.tierDropDown, name);
729   end
 
732   function EncounterJournal_TabClicked(self, button)
733           local tabType = self:GetID();
734           local info = EncounterJournal.encounter.info;
735           info.tab = tabType;
736           for key, data in pairs(EJ_Tabs) do
737                   if key == tabType then
738                           info[data.frame]:Show();
739                           info[data.button]:Disable();
740                   else
741                           info[data.frame]:Hide();
742                           info[data.button]:Enable();
743                   end
744           end
745   end
 
748   function EncounterJournal_LootCallback(itemID)
749           local scrollFrame = EncounterJournal.encounter.info.lootScroll;
 
751           for i,item in pairs(scrollFrame.buttons) do
752                   if item.itemID == itemID then
753                           local name, icon, slot, armorType, itemID = EJ_GetLootInfoByIndex(item.index);
754                           item.name:SetText(name);
755                           item.icon:SetTexture(icon);
756                           item.slot:SetText(slot);
757                           item.armorType:SetText(armorType);
758                   end
759           end
760   end
 
763   function EncounterJournal_LootUpdate()
764           local scrollFrame = EncounterJournal.encounter.info.lootScroll;
765           local offset = HybridScrollFrame_GetOffset(scrollFrame);
766           local items = scrollFrame.buttons;
767           local item, index;
 
769           local numLoot = EJ_GetNumLoot();
770           local buttonSize = items[1]:GetHeight();
 
772           for i = 1,#items do
773                   item = items[i];
774                   index = offset + i;
775                   if index <= numLoot then
776                           local name, icon, slot, armorType, itemID, link = EJ_GetLootInfoByIndex(index);
777                           item.name:SetText(name);
778                           item.icon:SetTexture(icon);
779                           item.slot:SetText(slot);
780                           item.armorType:SetText(armorType);
781                           item.itemID = itemID;
782                           item.index = index;
783                           item.link = link;
784                           item:Show();
 
786                           if item.showingTooltip then
787                                   GameTooltip:SetItemByID(itemID);
788                           end
789                   else
790                           item:Hide();
791                   end
792           end
 
794           local totalHeight = numLoot * buttonSize;
795           HybridScrollFrame_Update(scrollFrame, totalHeight, scrollFrame:GetHeight());
796   end
 
799   function EncounterJournal_Loot_OnUpdate(self)
800           if GameTooltip:IsOwned(self) then
801                   if IsModifiedClick("COMPAREITEMS") or
802                                    (GetCVarBool("alwaysCompareItems") and not self:IsEquippedItem()) then
803                           GameTooltip_ShowCompareItem();
804                   else
805                           ShoppingTooltip1:Hide();
806                           ShoppingTooltip2:Hide();
807                           ShoppingTooltip3:Hide();
808                   end
 
810                   if IsModifiedClick("DRESSUP") then
811                           ShowInspectCursor();
812                   else
813                           ResetCursor();
814                   end
815           end
816   end
 
819   function EncounterJournal_SetFlagIcon(texture, index)
820           local iconSize = 32;
821           local columns = 256/iconSize;
822           local rows = 64/iconSize;
 
824           l = mod(index, columns) / columns;
825           r = l + (1/columns);
826           t = floor(index/columns) / rows;
827           b = t + (1/rows);
828           texture:SetTexCoord(l,r,t,b);
829   end
 
832   function EncounterJournal_Refresh(self)
833           EJ_SetDifficulty(EncounterJournal.isHeroic, EncounterJournal.is10Man);
834           EncounterJournal_LootUpdate();
 
836           if EncounterJournal.encounterID then
837                   EncounterJournal_DisplayEncounter(EncounterJournal.encounterID, true)
838           elseif EncounterJournal.instanceID then
839                   EncounterJournal_DisplayInstance(EncounterJournal.instanceID, true);
840           end
841   end
 
844   function EncounterJournal_GetSearchDisplay(index)
845           local name, icon, path, typeText, displayInfo, itemID, _;
846           local id, stype, _, instanceID, encounterID  = EJ_GetSearchResult(index);
847           if stype == EJ_STYPE_INSTANCE then
848                   name, _, _, icon = EJ_GetInstanceInfo(id);
849                   typeText = ENCOUNTER_JOURNAL_INSTANCE;
850           elseif stype == EJ_STYPE_ENCOUNTER then
851                   name = EJ_GetEncounterInfo(id);
852                   typeText = ENCOUNTER_JOURNAL_ENCOUNTER;
853                   path = EJ_GetInstanceInfo(instanceID);
854                   _, _, _, displayInfo = EJ_GetCreatureInfo(1, encounterID, instanceID);
855           elseif stype == EJ_STYPE_SECTION then
856                   name, _, _, icon, displayInfo = EJ_GetSectionInfo(id)
857                   if displayInfo and displayInfo > 0 then
858                           typeText = ENCOUNTER_JOURNAL_ENCOUNTER_ADD;
859                   else
860                           typeText = ENCOUNTER_JOURNAL_ABILITY;
861                   end
862                   path = EJ_GetInstanceInfo(instanceID).." | "..EJ_GetEncounterInfo(encounterID);
863           elseif stype == EJ_STYPE_ITEM then
864                   name, icon, _, _, itemID = EJ_GetLootInfo(id)
865                   typeText = ENCOUNTER_JOURNAL_ITEM;
866                   path = EJ_GetInstanceInfo(instanceID).." | "..EJ_GetEncounterInfo(encounterID);
867           elseif stype == EJ_STYPE_CREATURE then
868                   for i=1,MAX_CREATURES_PER_ENCOUNTER do
869                           local cId, cName, _, cDisplayInfo = EJ_GetCreatureInfo(i, encounterID, instanceID);
870                           if cId == id then
871                                   name = cName
872                                   displayInfo = cDisplayInfo;
873                                   break;
874                           end
875                   end
876                   typeText = ENCOUNTER_JOURNAL_ENCOUNTER
877                   path = EJ_GetInstanceInfo(instanceID).." | "..EJ_GetEncounterInfo(encounterID);
878           end
879           return name, icon, path, typeText, displayInfo, itemID, stype;
880   end
 
883   function EncounterJournal_SelectSearch(index)
884           local _;
885           local id, stype, mask, instanceID, encounterID = EJ_GetSearchResult(index);
886           local sectionID, creatureID, itemID;
887           if stype == EJ_STYPE_INSTANCE then
888                   instanceID = id;
889           elseif stype == EJ_STYPE_SECTION then
890                   sectionID = id;
891           elseif stype == EJ_STYPE_ITEM then
892                   itemID = id;
893           elseif stype == EJ_STYPE_CREATURE then
894                   creatureID = id;
895           end
 
897           EncounterJournal_OpenJournal(mask, instanceID, encounterID, sectionID, creatureID, itemID);
898           EncounterJournal.searchResults:Hide();
899   end
 
902   function EncounterJournal_SearchUpdate()
903           local scrollFrame = EncounterJournal.searchResults.scrollFrame;
904           local offset = HybridScrollFrame_GetOffset(scrollFrame);
905           local results = scrollFrame.buttons;
906           local result, index;
 
908           local numResults = EJ_GetNumSearchResults();
 
910           for i = 1,#results do
911                   result = results[i];
912                   index = offset + i;
913                   if index <= numResults then
914                           local name, icon, path, typeText, displayInfo, itemID, stype = EncounterJournal_GetSearchDisplay(index);
915                           if stype == EJ_STYPE_INSTANCE then
916                                   result.icon:SetTexCoord(0.16796875, 0.51171875, 0.03125, 0.71875);
917                           else
918                                   result.icon:SetTexCoord(0, 1, 0, 1);
919                           end
 
921                           result.name:SetText(name);
922                           result.resultType:SetText(typeText);
923                           result.path:SetText(path);
924                           result.icon:SetTexture(icon);
925                           result.itemID = itemID;
926                           if displayInfo and displayInfo > 0 then
927                                   SetPortraitTexture(result.icon, displayInfo);
928                           end
929                           result:SetID(index);
930                           result:Show();
 
932                           if result.showingTooltip then
933                                   if itemID then
934                                           GameTooltip:SetOwner(result, "ANCHOR_RIGHT");
935                                           GameTooltip:SetItemByID(itemID);
936                                   else
937                                           GameTooltip:Hide();
938                                   end
939                           end
940                   else
941                           result:Hide();
942                   end
943           end
 
945           local totalHeight = numResults * 49;
946           HybridScrollFrame_Update(scrollFrame, totalHeight, 370);
947   end
 
950   function EncounterJournal_ShowFullSearch()
951           local numResults = EJ_GetNumSearchResults();
952           if numResults == 0 then
953                   EncounterJournal.searchResults:Hide();
954                   return;
955           end
 
957           EncounterJournal.searchResults.TitleText:SetText(string.format(ENCOUNTER_JOURNAL_SEARCH_RESULTS, EncounterJournal.searchBox:GetText(), numResults));
958           EncounterJournal.searchResults:Show();
959           EncounterJournal_SearchUpdate();
960           EncounterJournal.searchResults.scrollFrame.scrollBar:SetValue(0);
961           EncounterJournal_HideSearchPreview();
962   end
 
965   function EncounterJournal_HideSearchPreview()
966           EncounterJournal.searchBox.showAllResults:Hide();
967           local index = 1;
968           local unusedButton = EncounterJournal.searchBox["sbutton"..index];
969           while unusedButton do
970                   unusedButton:Hide();
971                   index = index + 1;
972                   unusedButton = EncounterJournal.searchBox["sbutton"..index]
973           end
974   end
 
977   function EncounterJournal_ClearSearch(editbox)
978           EncounterJournal.searchResults:Hide();
979           EncounterJournal_HideSearchPreview();
980   end
 
983   function EncounterJournal_OnSearchTextChanged(self)
984           local text = self:GetText();
985           EncounterJournal_HideSearchPreview();
 
987           if strlen(text) < EJ_MIN_CHARACTER_SEARCH or text == SEARCH then
988                   EJ_ClearSearch();
989                   EncounterJournal.searchResults:Hide();
990                   return;
991           end
992           EJ_SetSearch(text);
 
994           if EncounterJournal.searchResults:IsShown() then
995                   EncounterJournal_ShowFullSearch();
996           else
997                   local numResults = EJ_GetNumSearchResults();
998                   local index = 1;
999                   local button;
1000                   while index <= numResults do
1001                           button = EncounterJournal.searchBox["sbutton"..index];
1002                           if button then
1003                                   local name, icon, path, typeText, displayInfo, itemID = EncounterJournal_GetSearchDisplay(index);
1004                                   button.name:SetText(name);
1005                                   button.icon:SetTexture(icon);
1006                                   button.itemID = itemID;
1007                                   if displayInfo and displayInfo > 0 then
1008                                           SetPortraitTexture(button.icon, displayInfo);
1009                                   end
1010                                   button:SetID(index);
1011                                   button:Show();
1012                           else
1013                                   button = EncounterJournal.searchBox.showAllResults;
1014                                   button.text:SetText(string.format(ENCOUNTER_JOURNAL_SHOW_SEARCH_RESULTS, numResults));
1015                                   EncounterJournal.searchBox.showAllResults:Show();
1016                                   break;
1017                           end
1018                           index = index + 1;
1019                   end
 
1021                   EncounterJournal.searchBox.sbutton1.boarderAnchor:SetPoint("BOTTOM", button, "BOTTOM", 0, -5);
1022           end
1023   end
 
1026   function EncounterJournal_AddMapButtons()
1027           local left = WorldMapBossButtonFrame:GetLeft();
1028           local right = WorldMapBossButtonFrame:GetRight();
1029           local top = WorldMapBossButtonFrame:GetTop();
1030           local bottom = WorldMapBossButtonFrame:GetBottom();
 
1032           if not left or not right or not top or not bottom then
1033                   --This frame is resizing
1034                   WorldMapBossButtonFrame.ready = false;
1035                   WorldMapBossButtonFrame:SetScript("OnUpdate", EncounterJournal_AddMapButtons);
1036                   return;
1037           else
1038                   WorldMapBossButtonFrame:SetScript("OnUpdate", nil);
1039           end
 
1041           local scale = WorldMapDetailFrame:GetScale();
1042           local width = WorldMapDetailFrame:GetWidth() * scale;
1043           local height = WorldMapDetailFrame:GetHeight() * scale;
 
1045           local bossButton, questPOI, displayInfo, _;
1046           local index = 1;
1047           local x, y, instanceID, name, description, encounterID = EJ_GetMapEncounter(index);
1048           while name do
1049                   bossButton = _G["EJMapButton"..index];
1050                   if not bossButton then -- create button
1051                           bossButton = CreateFrame("Button", "EJMapButton"..index, WorldMapBossButtonFrame, "EncounterMapButtonTemplate");
1052                   end
 
1054                   bossButton.instanceID = instanceID;
1055                   bossButton.encounterID = encounterID;
1056                   bossButton.tooltipTitle = name;
1057                   bossButton.tooltipText = description;
1058                   bossButton:SetPoint("CENTER", WorldMapBossButtonFrame, "BOTTOMLEFT", x*width, y*height);
1059                   _, _, _, displayInfo = EJ_GetCreatureInfo(1, encounterID, instanceID);
1060                   bossButton.displayInfo = displayInfo;
1061                   SetPortraitTexture(bossButton.bgImage, displayInfo);
1062                   bossButton:Show();
1063                   index = index + 1;
1064                   x, y, instanceID, name, description, encounterID = EJ_GetMapEncounter(index);
1065           end
 
1067           bossButton = _G["EJMapButton"..index];
1068           while bossButton do
1069                   bossButton:Hide();
1070                   index = index + 1;
1071                   bossButton = _G["EJMapButton"..index];
1072           end
 
1074           WorldMapBossButtonFrame.ready = true;
1075           EncounterJournal_CheckQuestButtons();
1076   end
 
1079   function EncounterJournal_CheckQuestButtons()
1080           if not WorldMapBossButtonFrame.ready then
1081                   return;
1082           end
 
1084           --Validate that there are no quest button intersection
1085           local questI, bossI = 1, 1;
1086           bossButton = _G["EJMapButton"..bossI];
1087           questPOI = _G["poiWorldMapPOIFrame1_"..questI];
1088           while bossButton and bossButton:IsShown() do
1089                   while questPOI and questPOI:IsShown() do
1090                           local qx,qy = questPOI:GetCenter();
1091                           local bx,by = bossButton:GetCenter();
1092                           if not qx or not qy or not bx or not by then
1093                                   _G["EJMapButton1"]:SetScript("OnUpdate", EncounterJournal_CheckQuestButtons);
1094                                   return;
1095                           end
 
1097                           local xdis = abs(bx-qx);
1098                           local ydis = abs(by-qy);
1099                           local disSqr = xdis*xdis + ydis*ydis;
 
1101                           if EJ_QUEST_POI_MINDIS_SQR > disSqr then
1102                                   questPOI:SetPoint("CENTER", bossButton, "BOTTOMRIGHT",  -15, 15);
1103                           end
1104                           questI = questI + 1;
1105                           questPOI = _G["poiWorldMapPOIFrame1_"..questI];
1106                   end
1107                   questI = 1;
1108                   bossI = bossI + 1;
1109                   bossButton = _G["EJMapButton"..bossI];
1110                   questPOI = _G["poiWorldMapPOIFrame1_"..questI];
1111           end
1112           if _G["EJMapButton1"] then
1113                   _G["EJMapButton1"]:SetScript("OnUpdate", nil);
1114           end
1115   end
 
1118   function EncounterJournal_SetClassFilter(classID, className)
1119           local index = 1;
1120           local classButton = EncounterJournal.encounter.info.lootScroll.classFilter["class"..index];
 
1122           while classButton do
1123                   if classButton:GetID() == classID then
1124                           classButton:SetChecked(true);
1125                   else
1126                           classButton:SetChecked(false);
1127                   end
1128                   index = index + 1;
1129                   classButton = EncounterJournal.encounter.info.lootScroll.classFilter["class"..index];
1130           end
 
1132           if classID then
1133                   EncounterJournal.encounter.info.lootScroll.classClearFilter.text:SetText(string.format(EJ_CLASS_FILTER, className));
1134                   EncounterJournal.encounter.info.lootScroll.classClearFilter:Show();
1135                   EJ_SetClassLootFilter(classID);
1136                   EncounterJournal.encounter.info.lootScroll:SetHeight(357);
1137           else
1138                   EncounterJournal.encounter.info.lootScroll.classClearFilter:Hide();
1139                   EJ_SetClassLootFilter(-1);
1140                   EncounterJournal.encounter.info.lootScroll:SetHeight(380);
1141           end
 
1143           EncounterJournal_LootUpdate();
1144   end
 
1147   function EncounterJournal_OpenJournalLink(tag, jtype, id, mask)
1148           jtype = tonumber(jtype);
1149           id = tonumber(id);
1150           mask = tonumber(mask);
1151           local instanceID, encounterID, sectionID = EJ_HandleLinkPath(jtype, id);
1152           EncounterJournal_OpenJournal(mask, instanceID, encounterID, sectionID);
1153   end
 
1156   function EncounterJournal_OpenJournal(mask, instanceID, encounterID, sectionID, creatureID, itemID)
1157           ShowUIPanel(EncounterJournal);
1158           if instanceID then
1159                   NavBar_Reset(EncounterJournal.navBar);
1160                   EncounterJournal_DisplayInstance(instanceID);
1161                   EJ_SetDifficultyByMask(mask);
1162                   if encounterID then
1163                           if sectionID then
1164                                   EncounterJournal.encounter.info.bossTab:Click();
1165                                   local sectionPath = {EJ_GetSectionPath(sectionID)};
1166                                   for _, id in pairs(sectionPath) do
1167                                           EJ_section_openTable[id] = true;
1168                                   end
1169                           end
 
1172                           EncounterJournal_DisplayEncounter(encounterID);
1173                           if sectionID then
1174                                   EncounterJournal_FocusSection(sectionID);
1175                           elseif itemID then
1176                                   EncounterJournal.encounter.info.lootTab:Click();
1177                           end
 
1180                           if creatureID then
1181                                   for i=1,MAX_CREATURES_PER_ENCOUNTER do
1182                                           local button = EncounterJournal.encounter["creatureButton"..i];
1183                                           if button and button:IsShown() and button.id == creatureID then
1184                                                   EncounterJournal_DisplayCreature(button);
1185                                           end
1186                                   end
1187                           end
1188                   end
1189           else
1190                   EncounterJournal_ListInstances()
1191           end
1192   end
 
1195   ----------------------------------------
1196   --------------Nav Bar Func--------------
1197   ----------------------------------------
1198   function EJNAV_RefreshInstance()
1199           EncounterJournal_DisplayInstance(EncounterJournal.instanceID, true);
1200   end
 
1202   function EJNAV_SelectInstance(self, index, navBar)
1203           local showRaid = EncounterJournal.instanceSelect.raidsTab:IsEnabled() == nil;
1204           local instanceID = EJ_GetInstanceByIndex(index, showRaid);
1205           EncounterJournal_DisplayInstance(instanceID);
1206   end
 
1209   function EJNAV_ListInstance(self, index)
1210           --local navBar = self:GetParent();
1211           local showRaid = EncounterJournal.instanceSelect.raidsTab:IsEnabled() == nil;
1212           local _, name = EJ_GetInstanceByIndex(index, showRaid);
1213           return name, EJNAV_SelectInstance;
1214   end
 
1217   function EJNAV_RefreshEncounter()
1218           EncounterJournal_DisplayInstance(EncounterJournal.encounterID);
1219   end
 
1222   function EJNAV_SelectEncounter(self, index, navBar)
1223           local _, _, bossID = EJ_GetEncounterInfoByIndex(index);
1224           EncounterJournal_DisplayEncounter(bossID);
1225   end
 
1228   function EJNAV_ListEncounter(self, index)
1229           --local navBar = self:GetParent();
1230           local name = EJ_GetEncounterInfoByIndex(index);
1231           return name, EJNAV_SelectEncounter;
1232   end
   
File: FrameXML\EncounterJournal.xml  
1   <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
2   ..\FrameXML\UI.xsd">
3           <Script file="EncounterJournal.lua"/>
 
6           <Texture name="_FilterButtonUp-Mid" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
7                   <Size x="64" y="26"/>  
8                   <TexCoords left="0.00000000" right="1.00000000" top="0.00195313" bottom="0.05273438"/> 
9           </Texture>
10           <Texture name="_FilterButtonDown-Mid" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
11                   <Size x="64" y="26"/>  
12                   <TexCoords left="0.00000000" right="1.00000000" top="0.05664063" bottom="0.10742188"/> 
13           </Texture>
14           <Texture name="_FilterButtonHighlight-Mid" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
15                   <Size x="64" y="26"/>  
16                   <TexCoords left="0.00000000" right="1.00000000" top="0.11132813" bottom="0.16210938"/> 
17           </Texture>
18           <Texture name="_SearchBarSm" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
19                   <Size x="64" y="27"/>  
20                   <TexCoords left="0.00000000" right="1.00000000" top="0.16601563" bottom="0.21875000"/> 
21           </Texture>
22           <Texture name="_PaperHeader-SelectUp-Mid" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
23                   <Size x="64" y="29"/>  
24                   <TexCoords left="0.00000000" right="1.00000000" top="0.22265625" bottom="0.27929688"/> 
25           </Texture>
26           <Texture name="_PaperHeader-UnSelectDown-Mid" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
27                   <Size x="64" y="29"/>  
28                   <TexCoords left="0.00000000" right="1.00000000" top="0.28320313" bottom="0.33984375"/> 
29           </Texture>
30           <Texture name="_PaperHeader-UnSelectUp-Mid" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
31                   <Size x="64" y="29"/>  
32                   <TexCoords left="0.00000000" right="1.00000000" top="0.34375000" bottom="0.40039063"/> 
33           </Texture>
34           <Texture name="_PaperHeader-SelectDown-Mid" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
35                   <Size x="64" y="29"/>  
36                   <TexCoords left="0.00000000" right="1.00000000" top="0.40429688" bottom="0.46093750"/> 
37           </Texture>
38           <Texture name="_PaperHeader-Highlight-Mid" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
39                   <Size x="64" y="29"/>  
40                   <TexCoords left="0.00000000" right="1.00000000" top="0.46484375" bottom="0.52148438"/> 
41           </Texture>
42           <Texture name="_DungeonGridTab-MidHighlight" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
43                   <Size x="64" y="36"/>  
44                   <TexCoords left="0.00000000" right="1.00000000" top="0.52539063" bottom="0.59570313"/> 
45           </Texture>
46           <Texture name="_DungeonGridTab-MidSelect" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
47                   <Size x="64" y="36"/>  
48                   <TexCoords left="0.00000000" right="1.00000000" top="0.59960938" bottom="0.66992188"/> 
49           </Texture>
50           <Texture name="_DungeonGridTab-Mid" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
51                   <Size x="64" y="36"/>  
52                   <TexCoords left="0.00000000" right="1.00000000" top="0.67382813" bottom="0.74414063"/> 
53           </Texture>
54           <Texture name="_SearchBarLg" file="Interface\EncounterJournal\UI-EncounterJournalTextures_Tile" virtual="true" horizTile="true" >
55                   <Size x="64" y="49"/>  
56                   <TexCoords left="0.00000000" right="1.00000000" top="0.74804688" bottom="0.84375000"/> 
57           </Texture>
 
61           <Texture name="UI-EJ-AbilityIconBorder" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
62                   <Size x="20" y="20"/>  
63                   <TexCoords left="0.00195313" right="0.04101563" top="0.00097656" bottom="0.02050781"/> 
64           </Texture>
65           <Texture name="UI-EJ-AbilityTextBottomBorder" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
66                   <Size x="243" y="9"/>  
67                   <TexCoords left="0.04492188" right="0.51953125" top="0.00097656" bottom="0.00976563"/> 
68           </Texture>
69           <Texture name="UI-EJ-DungeonGridTab-SelectedGlow" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
70                   <Size x="64" y="15"/>  
71                   <TexCoords left="0.52343750" right="0.64843750" top="0.00097656" bottom="0.01562500"/> 
72           </Texture>
73           <Texture name="UI-EJ-DungeonGridTab-Shadow" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
74                   <Size x="128" y="15"/> 
75                   <TexCoords left="0.65234375" right="0.90234375" top="0.00097656" bottom="0.01562500"/> 
76           </Texture>
77           <Texture name="UI-EJ-AbilityTextBG" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
78                   <Size x="256" y="80"/> 
79                   <TexCoords left="0.00195313" right="0.50195313" top="0.02246094" bottom="0.10058594"/> 
80           </Texture>
81           <Texture name="UI-EJ-BossModelButton" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
82                   <Size x="64" y="61"/>  
83                   <TexCoords left="0.50585938" right="0.63085938" top="0.02246094" bottom="0.08203125"/> 
84           </Texture>
85           <Texture name="UI-EJ-CreatureHeaderFrameSm-bg" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
86                   <Size x="45" y="44"/>  
87                   <TexCoords left="0.63476563" right="0.72265625" top="0.02246094" bottom="0.06542969"/> 
88           </Texture>
89           <Texture name="UI-EJ-FilterButtonDown" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
90                   <Size x="26" y="26"/>  
91                   <TexCoords left="0.63476563" right="0.68554688" top="0.06738281" bottom="0.09277344"/> 
92           </Texture>
93           <Texture name="UI-EJ-CreatureHeaderFrameSm" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
94                   <Size x="45" y="44"/>  
95                   <TexCoords left="0.72656250" right="0.81445313" top="0.02246094" bottom="0.06542969"/> 
96           </Texture>
97           <Texture name="UI-EJ-FilterButtonHighlight" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
98                   <Size x="26" y="26"/>  
99                   <TexCoords left="0.72656250" right="0.77734375" top="0.06738281" bottom="0.09277344"/> 
100           </Texture>
101           <Texture name="UI-EJ-DungeonGridTab-Left" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
102                   <Size x="12" y="36"/>  
103                   <TexCoords left="0.81835938" right="0.84179688" top="0.02246094" bottom="0.05761719"/> 
104           </Texture>
105           <Texture name="UI-EJ-DungeonGridTab-LeftHighlight" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
106                   <Size x="12" y="36"/>  
107                   <TexCoords left="0.81835938" right="0.84179688" top="0.05957031" bottom="0.09472656"/> 
108           </Texture>
109           <Texture name="UI-EJ-DungeonGridTab-LeftSelect" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
110                   <Size x="12" y="36"/>  
111                   <TexCoords left="0.84570313" right="0.86914063" top="0.02246094" bottom="0.05761719"/> 
112           </Texture>
113           <Texture name="UI-EJ-DungeonGridTab-Right" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
114                   <Size x="12" y="36"/>  
115                   <TexCoords left="0.84570313" right="0.86914063" top="0.05957031" bottom="0.09472656"/> 
116           </Texture>
117           <Texture name="UI-EJ-DungeonGridTab-RightHighlight" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
118                   <Size x="12" y="36"/>  
119                   <TexCoords left="0.87304688" right="0.89648438" top="0.02246094" bottom="0.05761719"/> 
120           </Texture>
121           <Texture name="UI-EJ-DungeonGridTab-RightSelect" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
122                   <Size x="12" y="36"/>  
123                   <TexCoords left="0.87304688" right="0.89648438" top="0.05957031" bottom="0.09472656"/> 
124           </Texture>
125           <Texture name="UI-EJ-FilterButtonSelect" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
126                   <Size x="26" y="26"/>  
127                   <TexCoords left="0.90039063" right="0.95117188" top="0.02246094" bottom="0.04785156"/> 
128           </Texture>
129           <Texture name="UI-EJ-SearchIconFrameSm" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
130                   <Size x="22" y="22"/>  
131                   <TexCoords left="0.95507813" right="0.99804688" top="0.02246094" bottom="0.04394531"/> 
132           </Texture>
133           <Texture name="UI-EJ-FilterButtonUp" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
134                   <Size x="26" y="26"/>  
135                   <TexCoords left="0.90039063" right="0.95117188" top="0.04980469" bottom="0.07519531"/> 
136           </Texture>
137           <Texture name="UI-EJ-BossButton-Down" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
138                   <Size x="325" y="55"/> 
139                   <TexCoords left="0.00195313" right="0.63671875" top="0.10253906" bottom="0.15625000"/> 
140           </Texture>
141           <Texture name="UI-EJ-MapButtonSm-Down" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
142                   <Size x="50" y="50"/>  
143                   <TexCoords left="0.64062500" right="0.73828125" top="0.10253906" bottom="0.15136719"/> 
144           </Texture>
145           <Texture name="UI-EJ-MapButtonSm-Highlight" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
146                   <Size x="50" y="50"/>  
147                   <TexCoords left="0.74218750" right="0.83984375" top="0.10253906" bottom="0.15136719"/> 
148           </Texture>
149           <Texture name="UI-EJ-MapButtonSm-Selection" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
150                   <Size x="50" y="50"/>  
151                   <TexCoords left="0.84375000" right="0.94140625" top="0.10253906" bottom="0.15136719"/> 
152           </Texture>
153           <Texture name="UI-EJ-BossButton-Highlight" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
154                   <Size x="325" y="55"/> 
155                   <TexCoords left="0.00195313" right="0.63671875" top="0.15820313" bottom="0.21191406"/> 
156           </Texture>
157           <Texture name="UI-EJ-MapButtonSm-Up" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
158                   <Size x="50" y="50"/>  
159                   <TexCoords left="0.64062500" right="0.73828125" top="0.15820313" bottom="0.20703125"/> 
160           </Texture>
161           <Texture name="UI-EJ-PaperHeader-Highlight-Left" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
162                   <Size x="64" y="29"/>  
163                   <TexCoords left="0.74218750" right="0.86718750" top="0.15820313" bottom="0.18652344"/> 
164           </Texture>
165           <Texture name="UI-EJ-PaperHeader-Highlight-Right" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
166                   <Size x="64" y="29"/>  
167                   <TexCoords left="0.87109375" right="0.99609375" top="0.15820313" bottom="0.18652344"/> 
168           </Texture>
169           <Texture name="UI-EJ-BossButton-Up" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
170                   <Size x="325" y="55"/> 
171                   <TexCoords left="0.00195313" right="0.63671875" top="0.21386719" bottom="0.26757813"/> 
172           </Texture>
173           <Texture name="UI-EJ-PaperHeader-SelectDown-Left" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
174                   <Size x="64" y="29"/>  
175                   <TexCoords left="0.64062500" right="0.76562500" top="0.21386719" bottom="0.24218750"/> 
176           </Texture>
177           <Texture name="UI-EJ-PaperHeader-SelectDown-Right" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
178                   <Size x="64" y="29"/>  
179                   <TexCoords left="0.76953125" right="0.89453125" top="0.21386719" bottom="0.24218750"/> 
180           </Texture>
181           <Texture name="UI-EJ-SearchIconFrameLg" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
182                   <Size x="38" y="38"/>  
183                   <TexCoords left="0.89843750" right="0.97265625" top="0.21386719" bottom="0.25097656"/> 
184           </Texture>
185           <Texture name="UI-EJ-BossNameShadow" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
186                   <Size x="395" y="63"/> 
187                   <TexCoords left="0.00195313" right="0.77343750" top="0.26953125" bottom="0.33105469"/> 
188           </Texture>
189           <Texture name="UI-EJ-MapButtonLg-Down" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
190                   <Size x="62" y="61"/>  
191                   <TexCoords left="0.77734375" right="0.89843750" top="0.26953125" bottom="0.32910156"/> 
192           </Texture>
193           <Texture name="UI-EJ-Tab-BossIcon-Selected" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
194                   <Size x="48" y="43"/>  
195                   <TexCoords left="0.90234375" right="0.99609375" top="0.26953125" bottom="0.31152344"/> 
196           </Texture>
197           <Texture name="UI-EJ-DungeonButton-Down" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
198                   <Size x="174" y="96"/> 
199                   <TexCoords left="0.00195313" right="0.34179688" top="0.33300781" bottom="0.42675781"/> 
200           </Texture>
201           <Texture name="UI-EJ-DungeonButton-Highlight" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
202                   <Size x="174" y="96"/> 
203                   <TexCoords left="0.34570313" right="0.68554688" top="0.33300781" bottom="0.42675781"/> 
204           </Texture>
205           <Texture name="UI-EJ-MapButtonLg-Highlight" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
206                   <Size x="62" y="61"/>  
207                   <TexCoords left="0.68945313" right="0.81054688" top="0.33300781" bottom="0.39257813"/> 
208           </Texture>
209           <Texture name="UI-EJ-MapButtonLg-Select" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
210                   <Size x="62" y="61"/>  
211                   <TexCoords left="0.81445313" right="0.93554688" top="0.33300781" bottom="0.39257813"/> 
212           </Texture>
213           <Texture name="UI-EJ-PaperHeader-SelectUp-Left" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
214                   <Size x="64" y="29"/>  
215                   <TexCoords left="0.81445313" right="0.93945313" top="0.39453125" bottom="0.42285156"/> 
216           </Texture>
217           <Texture name="UI-EJ-DungeonButton-Up" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
218                   <Size x="174" y="96"/> 
219                   <TexCoords left="0.00195313" right="0.34179688" top="0.42871094" bottom="0.52246094"/> 
220           </Texture>
221           <Texture name="UI-EJ-DungeonNameBg" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
222                   <Size x="256" y="64"/> 
223                   <TexCoords left="0.34570313" right="0.84570313" top="0.42871094" bottom="0.49121094"/> 
224           </Texture>
225           <Texture name="UI-EJ-PaperHeader-SelectUp-Right" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
226                   <Size x="64" y="29"/>  
227                   <TexCoords left="0.34570313" right="0.47070313" top="0.49316406" bottom="0.52148438"/> 
228           </Texture>
229           <Texture name="UI-EJ-PaperHeader-UnSelectDown-Left" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
230                   <Size x="64" y="29"/>  
231                   <TexCoords left="0.47460938" right="0.59960938" top="0.49316406" bottom="0.52148438"/> 
232           </Texture>
233           <Texture name="UI-EJ-PaperHeader-UnSelectDown-Right" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
234                   <Size x="64" y="29"/>  
235                   <TexCoords left="0.60351563" right="0.72851563" top="0.49316406" bottom="0.52148438"/> 
236           </Texture>
237           <Texture name="UI-EJ-MapButtonLg-Up" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
238                   <Size x="62" y="61"/>  
239                   <TexCoords left="0.84960938" right="0.97070313" top="0.42871094" bottom="0.48828125"/> 
240           </Texture>
241           <Texture name="UI-EJ-PaperHeader-UnSelectUp-Left" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
242                   <Size x="64" y="29"/>  
243                   <TexCoords left="0.84960938" right="0.97460938" top="0.49023438" bottom="0.51855469"/> 
244           </Texture>
245           <Texture name="UI-EJ-FilterBar" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
246                   <Size x="320" y="28"/> 
247                   <TexCoords left="0.00195313" right="0.62695313" top="0.52441406" bottom="0.55175781"/> 
248           </Texture>
249           <Texture name="UI-EJ-SearchBarHighlightSm" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
250                   <Size x="128" y="27"/> 
251                   <TexCoords left="0.63085938" right="0.88085938" top="0.52441406" bottom="0.55078125"/> 
252           </Texture>
253           <Texture name="UI-EJ-LootFrame" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
254                   <Size x="321" y="45"/> 
255                   <TexCoords left="0.00195313" right="0.62890625" top="0.55371094" bottom="0.59765625"/> 
256           </Texture>
257           <Texture name="UI-EJ-PaperHeader-UnSelectUp-Right" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
258                   <Size x="64" y="29"/>  
259                   <TexCoords left="0.63281250" right="0.75781250" top="0.55371094" bottom="0.58203125"/> 
260           </Texture>
261           <Texture name="UI-EJ-Tab-BossIcon-UnSelected" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
262                   <Size x="48" y="43"/>  
263                   <TexCoords left="0.76171875" right="0.85546875" top="0.55371094" bottom="0.59570313"/> 
264           </Texture>
265           <Texture name="UI-EJ-Tab-LootIcon-Selected" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
266                   <Size x="48" y="43"/>  
267                   <TexCoords left="0.85937500" right="0.95312500" top="0.55371094" bottom="0.59570313"/> 
268           </Texture>
269           <Texture name="UI-EJ-LoreTextCover-Bottom" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
270                   <Size x="386" y="29"/> 
271                   <TexCoords left="0.00195313" right="0.75585938" top="0.59960938" bottom="0.62792969"/> 
272           </Texture>
273           <Texture name="UI-EJ-LoreTextCover-Top" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
274                   <Size x="386" y="32"/> 
275                   <TexCoords left="0.00195313" right="0.75585938" top="0.62988281" bottom="0.66113281"/> 
276           </Texture>
277           <Texture name="UI-EJ-MainTextCover-Bottom" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
278                   <Size x="386" y="43"/> 
279                   <TexCoords left="0.00195313" right="0.75585938" top="0.66308594" bottom="0.70507813"/> 
280           </Texture>
281           <Texture name="UI-EJ-Tab-LootIcon-UnSelected" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
282                   <Size x="48" y="43"/>  
283                   <TexCoords left="0.75976563" right="0.85351563" top="0.66308594" bottom="0.70507813"/> 
284           </Texture>
285           <Texture name="UI-EJ-MainTextCover-Top" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
286                   <Size x="386" y="13"/> 
287                   <TexCoords left="0.00195313" right="0.75585938" top="0.70703125" bottom="0.71972656"/> 
288           </Texture>
289           <Texture name="UI-EJ-MoreTextBelowHighlight" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
290                   <Size x="259" y="17"/> 
291                   <TexCoords left="0.00195313" right="0.50781250" top="0.72167969" bottom="0.73828125"/> 
292           </Texture>
293           <Texture name="UI-EJ-SearchBarHighlightLg" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
294                   <Size x="256" y="47"/> 
295                   <TexCoords left="0.00195313" right="0.50195313" top="0.74023438" bottom="0.78613281"/> 
296           </Texture>
297           <Texture name="UI-EJ-ShowMapBG" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
298                   <Size x="171" y="50"/> 
299                   <TexCoords left="0.00195313" right="0.33593750" top="0.78808594" bottom="0.83691406"/> 
300           </Texture>
301           <Texture name="UI-EJ-Tab-Highlight" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
302                   <Size x="63" y="57"/>  
303                   <TexCoords left="0.00195313" right="0.12500000" top="0.83886719" bottom="0.89453125"/> 
304           </Texture>
305           <Texture name="UI-EJ-Tab-Selected" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
306                   <Size x="63" y="57"/>  
307                   <TexCoords left="0.00195313" right="0.12500000" top="0.89648438" bottom="0.95214844"/> 
308           </Texture>
309           <Texture name="UI-EJ-Tab-UnSelected" file="Interface\EncounterJournal\UI-EncounterJournalTextures" virtual="true" >
310                   <Size x="63" y="57"/>  
311                   <TexCoords left="0.12890625" right="0.25195313" top="0.83886719" bottom="0.89453125"/> 
312           </Texture>
 
316           <CheckButton name="EncounterClassFilterTemplate" virtual="true" motionScriptsWhileDisabled="true">
317                   <Size x="50" y="50"/>
318                   <Layers>
319                           <Layer level="BACKGROUND">
320                                   <Texture name="$parentShadow" parentKey="shadow" file="Interface\Glues\CharacterCreate\UI-CharacterCreate-IconShadow">
321                                           <Size x="70" y="70"/>
322                                           <Anchors>
323                                                   <Anchor point="CENTER" x="0" y="0"/>
324                                           </Anchors>
325                                           <Color r="1.0" g="1.0" b="1.0" a="0.85"/>
326                                   </Texture>
327                           </Layer>
328                           <Layer level="OVERLAY">
329                                   <Texture name="$parentBevelEdge" parentKey="bevel" file="Interface\Glues\CharacterCreate\UI-CharacterCreate-Highlights">
330                                           <Size x="50" y="50"/>
331                                           <Anchors>
332                                                   <Anchor point="CENTER" x="0" y="0"/>
333                                           </Anchors>
334                                           <TexCoords left="0" right="0.5" top="0.5" bottom="1.0"/>
335                                   </Texture>
336                           </Layer>
337                   </Layers>
338                   <Scripts>
339                           <OnMouseDown>
340                                   if( self:IsEnabled() == 1 ) then
341                                           self.bevel:SetPoint("CENTER", self, "CENTER", 2, -2);
342                                           self.shadow:SetSize(52, 52);
343                                   end
344                           </OnMouseDown>
345                           <OnMouseUp>
346                                   if( self:IsEnabled() == 1 ) then
347                                           self.bevel:SetPoint("CENTER", self, "CENTER", 0, 0);
348                                           self.shadow:SetSize(58, 58);
349                                   end
350                           </OnMouseUp>
351                           <OnClick>
352                                   EncounterJournal_SetClassFilter(self:GetID(), self.name);
353                                   self:GetParent():Hide();
354                           </OnClick>
355                   </Scripts>
356                   <HighlightTexture file="Interface\Glues\CharacterCreate\UI-CharacterCreate-Highlights" alphaMode="ADD">
357                           <TexCoords left="0" right="0.5" top="0" bottom="0.5"/>
358                   </HighlightTexture>
359                   <CheckedTexture file="Interface\Glues\CharacterCreate\UI-CharacterCreate-Highlights" alphaMode="ADD">
360                           <TexCoords left="0.5" right="1" top="0" bottom="0.5"/>
361                   </CheckedTexture>
362                   <NormalTexture name="$parentNormalTexture" file="Interface\Glues\CharacterCreate\UI-CharacterCreate-Classes"/>
363                   <PushedTexture name="$parentPushedTexture" file="Interface\Glues\CharacterCreate\UI-CharacterCreate-Classes">
364                           <Size x="55" y="55"/>
365                           <Anchors>
366                                   <Anchor point="CENTER" x="2" y="-2"/>
367                           </Anchors>
368                   </PushedTexture>
369           </CheckButton>
 
371           <Button name="EncounterMapButtonTemplate" virtual="true">
372                   <Size x="62" y="61"/>
373                   <Layers>
374                           <Layer level="BACKGROUND">
375                                   <Texture name="$parentbgImage" parentKey="bgImage">
376                                           <Size x="45" y="45"/>
377                                           <Anchors>
378                                                   <Anchor point="CENTER" x="0" y="0"/>
379                                           </Anchors>
380                                   </Texture>
381                           </Layer>
382                   </Layers>
383                   <NormalTexture inherits="UI-EJ-MapButtonLg-Up">
384                   </NormalTexture>
385                   <PushedTexture inherits="UI-EJ-MapButtonLg-Down">
386                   </PushedTexture>
387                   <HighlightTexture inherits="UI-EJ-MapButtonLg-Highlight">
388                   </HighlightTexture>
389                   <Scripts>
390                           <OnEnter>
391                                   if self.tooltipTitle then
392                                           WorldMapTooltip:SetOwner(self, "ANCHOR_LEFT");
393                                           WorldMapTooltip:SetText(self.tooltipTitle,1,1,1);
394                                           WorldMapTooltip:AddLine(self.tooltipText, nil, nil, nil, 1);
395                                           WorldMapTooltip:Show();
396                                           WorldMapTooltip.EJ_using = true;
397                                   end
398                           </OnEnter>
399                           <OnLeave>
400                                   WorldMapTooltip:Hide();
401                                   WorldMapTooltip.EJ_using = false;
402                           </OnLeave>
403                           <OnShow>
404                                   self:SetFrameLevel(self:GetParent():GetFrameLevel() + 10);
405                           </OnShow>
406                           <OnClick>
407                                   if WORLDMAP_SETTINGS.size ~= WORLDMAP_WINDOWED_SIZE then
408                                           ToggleFrame(WorldMapFrame);
409                                   end
 
411                                   if not EncounterJournal:IsShown() then
412                                           ToggleFrame(EncounterJournal);
413                                   end
414                                   EncounterJournal_ListInstances();
415                                   EncounterJournal_DisplayInstance(self.instanceID);
416                                   EncounterJournal_DisplayEncounter(self.encounterID);
417                           </OnClick>
418                   </Scripts>
419           </Button>
 
421           <Button name="EncounterInstanceButtonTemplate" virtual="true">
422                   <Size x="174" y="96"/>
423                   <Layers>
424                           <Layer level="BACKGROUND">
425                                   <Texture name="$parentbgImage" parentKey="bgImage">
426                                           <Anchors>
427                                                   <Anchor point="TOPLEFT" x="0" y="0"/>
428                                                   <Anchor point="BOTTOMRIGHT" x="0" y="0"/>
429                                           </Anchors>
430                                           <TexCoords left="0" right="0.68359375" top="0" bottom="0.7421875"/>    
431                                   </Texture>
432                           </Layer>
433                           <Layer level="OVERLAY">
434                                   <Texture name="$parentHeroicIcon" file="Interface\EncounterJournal\UI-EJ-HeroicTextIcon" parentKey="heroicIcon" hidden="true">
435                                           <Anchors>
436                                                   <Anchor point="BOTTOMRIGHT" x="-7" y="7"/>
437                                           </Anchors>
438                                   </Texture>
439                                   <FontString name="$parentName" inherits="QuestTitleFontBlackShadow" parentKey="name">
440                                           <Size x="150" y="0"/>
441                                           <Anchors>
442                                                   <Anchor point="TOP" x="0" y="-15"/>
443                                           </Anchors>
444                                   </FontString>
445                                   <FontString name="$parentRange" inherits="GameFontNormal" justifyH="LEFT" parentKey="range" text="82-83" hidden="true">
446                                           <Size x="100" y="12"/>
447                                           <Anchors>
448                                                   <Anchor point="BOTTOMLEFT" x="7" y="7"/>
449                                           </Anchors>
450                                   </FontString>
451                           </Layer>
452                   </Layers>
453                   <NormalTexture inherits="UI-EJ-DungeonButton-Up">
454                   </NormalTexture>
455                   <PushedTexture inherits="UI-EJ-DungeonButton-Down">
456                   </PushedTexture>
457                   <HighlightTexture inherits="UI-EJ-DungeonButton-Highlight">
458                   </HighlightTexture>
459                   <Scripts>
460                           <OnEnter>
461                                   if self.itemID then
462                                           GameTooltip:SetOwner(self, "ANCHOR_LEFT");
463                                           GameTooltip:SetItemByID(self.itemID);
464                                           self.showingTooltip = true;
465                                   end
466                           </OnEnter>
467                           <OnLeave>
468                                   GameTooltip:Hide();
469                                   self.showingTooltip = false;
470                           </OnLeave>
471                           <OnClick>
472                                   if IsModifiedClick("CHATLINK") and ChatEdit_GetActiveWindow() then
473                                           if self.link then
474                                                   ChatEdit_InsertLink(self.link);
475                                           end
476                                           return;
477                                   end
478                                   EncounterJournal_DisplayInstance(self.instanceID);
479                           </OnClick>
480                   </Scripts>
481           </Button>
 
483           <Button name="EncounterSearchSMTemplate" virtual="true">
484                   <Size x="275" y="27"/>
485                   <Layers>
486                           <Layer level="OVERLAY" textureSubLevel="2">
487                                   <Texture name="$parentIconFrame" inherits="UI-EJ-SearchIconFrameLg">
488                                           <Size x="21" y="21"/>
489                                           <Anchors>
490                                                   <Anchor point="LEFT" x="5" y="1"/>
491                                           </Anchors>
492                                   </Texture>
493                           </Layer>
494                           <Layer level="OVERLAY">
495                                   <Texture name="$parentIcon" file="Interface\Icons\Ability_ThunderClap" parentKey="icon">
496                                           <Anchors>
497                                                   <Anchor point="TOPLEFT" relativeTo="$parentIconFrame" x="1" y="-2"/>
498                                                   <Anchor point="BOTTOMRIGHT" relativeTo="$parentIconFrame" x="-1" y="1"/>
499                                           </Anchors>
500                                   </Texture>
501                                   <FontString name="$parentName" inherits="GameFontNormalSmall" justifyH="LEFT" parentKey="name" text="ENCOUNTER">
502                                           <Size x="400" y="0"/>
503                                           <Anchors>
504                                                   <Anchor point="LEFT" relativeTo="$parentIcon" relativePoint="RIGHT" x="5" y="0"/>
505                                                   <Anchor point="RIGHT" x="-5" y="0"/>
506                                           </Anchors>
507                                           <Color r="0.96875" g="0.8984375" b="0.578125" a="1"/>
508                                   </FontString>
509                           </Layer>
510                   </Layers>
511                   <NormalTexture inherits="_SearchBarSm">
512                   </NormalTexture>
513                   <PushedTexture inherits="_SearchBarSm">
514                   </PushedTexture>
515                   <HighlightTexture inherits="UI-EJ-SearchBarHighlightSm">
516                   </HighlightTexture>
517                   <Scripts>
518                           <OnEnter>
519                                   if self.itemID then
520                                           GameTooltip:SetOwner(self, "ANCHOR_LEFT");
521                                           GameTooltip:SetItemByID(self.itemID);
522                                           self.showingTooltip = true;
523                                   end
524                           </OnEnter>
525                           <OnLeave>
526                                   GameTooltip:Hide();
527                                   self.showingTooltip = false;
528                           </OnLeave>
529                           <OnShow>
530                                   self:SetFrameLevel(self:GetParent():GetFrameLevel() + 10);
531                           </OnShow>
532                           <OnClick>
533                                   EncounterJournal_SelectSearch(self:GetID())
534                           </OnClick>
535                   </Scripts>
536           </Button>
 
538           <Button name="EncounterSearchLGTemplate" virtual="true">
539                   <Size x="575" y="49"/>
540                   <Layers>
541                           <Layer level="OVERLAY" textureSubLevel="2">
542                                   <Texture name="$parentIconFrame" inherits="UI-EJ-SearchIconFrameLg">
543                                           <Anchors>
544                                                   <Anchor point="LEFT" x="10" y="0"/>
545                                           </Anchors>
546                                   </Texture>
547                           </Layer>
548                           <Layer level="OVERLAY">
549                                   <Texture name="$parentIcon" file="Interface\Icons\Ability_ThunderClap" parentKey="icon">
550                                           <Anchors>
551                                                   <Anchor point="TOPLEFT" relativeTo="$parentIconFrame" x="1" y="-2"/>
552                                                   <Anchor point="BOTTOMRIGHT" relativeTo="$parentIconFrame" x="-1" y="1"/>
553                                           </Anchors>
554                                   </Texture>
555                                   <FontString name="$parentName" inherits="GameFontNormalLarge" justifyH="LEFT" parentKey="name" text="ENCOUNTER">
556                                           <Size x="460" y="12"/>
557                                           <Anchors>
558                                                   <Anchor point="TOPLEFT" relativeTo="$parentIcon" relativePoint="TOPRIGHT" x="10" y="0"/>
559                                           </Anchors>
560                                           <Color r="0.96875" g="0.8984375" b="0.578125" a="1"/>
561                                   </FontString>
562                                   <FontString name="$parentPath" inherits="GameFontNormal" justifyH="LEFT" parentKey="path" text="ENCOUNTER">
563                                           <Size x="400" y="0"/>
564                                           <Anchors>
565                                                   <Anchor point="TOPLEFT" relativeTo="$parentName" relativePoint="BOTTOMLEFT" x="0" y="-7"/>
566                                           </Anchors>
567                                           <Color r="0.66796875" g="0.51171875" b="0.3359375" a="1"/>
568                                   </FontString>
569                                   <FontString name="$parentType" inherits="GameFontNormal" justifyH="RIGHT" parentKey="resultType" text="ENCOUNTER">
570                                           <Size x="140" y="0"/>
571                                           <Anchors>
572                                                   <Anchor point="RIGHT" x="-14" y="0"/>
573                                           </Anchors>
574                                           <Color r="0.66796875" g="0.51171875" b="0.3359375" a="1"/>
575                                   </FontString>
576                           </Layer>
577                   </Layers>
578                   <NormalTexture inherits="_SearchBarLg">
579                   </NormalTexture>
580                   <PushedTexture inherits="_SearchBarLg">
581                   </PushedTexture>
582                   <HighlightTexture inherits="UI-EJ-SearchBarHighlightLg">
583                   </HighlightTexture>
584                   <Scripts>
585                           <OnEnter>
586                                   if self.itemID then
587                                           GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
588                                           GameTooltip:SetItemByID(self.itemID);
589                                   end
590                                   self.showingTooltip = true;
591                           </OnEnter>
592                           <OnLeave>
593                                   GameTooltip:Hide();
594                                   self.showingTooltip = false;
595                           </OnLeave>             
596                           <OnClick>
597                                   EncounterJournal_SelectSearch(self:GetID())
598                           </OnClick>
599                   </Scripts>
600           </Button>
 
602           <Button name="EncounterCreatureButtonTemplate" motionScriptsWhileDisabled="true" virtual="true" hidden="true">
603                   <Size x="64" y="61"/>
604                   <Layers>
605                           <Layer level="BACKGROUND" TextureSubLevel="6">
606                                   <Texture name="$parentCreature" parentKey="creature">
607                                           <Size x="40" y="40"/>
608                                           <Anchors>
609                                                   <Anchor point="CENTER" x="0" y="0"/>
610                                           </Anchors>
611                                   </Texture>
612                           </Layer>
613                   </Layers>
614                   <NormalTexture inherits="UI-EJ-BossModelButton">
615                   </NormalTexture>
616                   <HighlightTexture inherits="UI-EJ-BossModelButton" alphaMode="ADD"/>
617                   <Scripts>
618                           <OnShow>
619                                   self:SetFrameLevel(self:GetParent():GetFrameLevel()+2);
620                                   self:Disable();
621                                   self:Enable();
622                           </OnShow>
623                           <OnDisable>
624                                   self:SetSize(64, 61);
625                                   self.creature:SetSize(40, 40);
626                           </OnDisable>
627                           <OnEnable>
628                                   self:SetSize(50, 49);
629                                   self.creature:SetSize(30, 30);
630                           </OnEnable>
631                           <OnClick>
632                                   EncounterJournal_DisplayCreature(self);
633                           </OnClick>
634                           <OnEnter>
 
636                                   if self.name then
637                                           GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
638                                           GameTooltip:SetText(self.name,1,1,1);
639                                           if self.description then
640                                                   GameTooltip:AddLine(self.description, nil, nil, nil, 1);
641                                           end
642                                           GameTooltip:Show();
643                                   end
644                           </OnEnter>
645                           <OnLeave>
646                                   GameTooltip:Hide();
647                           </OnLeave>
648                   </Scripts>
649           </Button>
 
651           <Button name="EncounterBossButtonTemplate" virtual="true" hidden="true">
652                   <Size x="325" y="55"/>
653                   <Frames>
654                           <Frame>
655                                   <Size x="1" y="1"/>
656                                   <Anchors>
657                                           <Anchor point="TOPLEFT" x="-4" y="13"/>
658                                   </Anchors>
659                                   <Layers>
660                                           <Layer level="OVERLAY" TextureSubLevel="6">
661                                                   <Texture name="$parentCreature" file="Interface\EncounterJournal\UI-EJ-BOSS-Default" parentKey="creature">
662                                                           <Size x="128" y="64"/>
663                                                           <Anchors>
664                                                                   <Anchor point="TOPLEFT" x="0" y="0"/>
665                                                           </Anchors>
666                                                   </Texture>
667                                           </Layer>
668                                   </Layers>
669                                   <Scripts>
670                                           <OnLoad>
671                                                   self:GetParent().creature = self.creature;
672                                           </OnLoad>
673                                   </Scripts>
674                           </Frame>
675                   </Frames>
676                   <NormalTexture inherits="UI-EJ-BossButton-Up">
677                   </NormalTexture>
678                   <PushedTexture inherits="UI-EJ-BossButton-Down">
679                   </PushedTexture>
680                   <HighlightTexture inherits="UI-EJ-BossButton-Highlight">
681                   </HighlightTexture>
682                   <ButtonText name="$parentText" parentKey="text" justifyH="LEFT"  justifyV="MIDDLE">
683                           <Size x="160" y="40"/>
684                           <Anchors>
685                                   <Anchor point="LEFT">
686                                           <Offset>
687                                                   <AbsDimension x="105" y="-3"/>
688                                           </Offset>
689                                   </Anchor>
690                           </Anchors>
691                           <Color r="0.827" g="0.659" b="0.463"/>
692                   </ButtonText>
693                   <NormalFont style="GameFontNormalMed3"/>
694                   <DisabledFont style="GameFontHighlightMedium"/>
695                   <Scripts>
696                           <OnClick>
697                                   if IsModifiedClick("CHATLINK") and ChatEdit_GetActiveWindow() then
698                                           if self.link then
699                                                   ChatEdit_InsertLink(self.link);
700                                           end
701                                           return;
702                                   end
703                                   EncounterJournal_DisplayEncounter(self.encounterID)
704                           </OnClick>
705                           <OnEnter>
706                                   self.text:SetTextColor(0.973, 0.902, 0.581);
707                           </OnEnter>
708                           <OnLeave>
709                                   self.text:SetTextColor(0.827, 0.659, 0.463);
710                           </OnLeave>
711                   </Scripts>
712           </Button>
 
714           <Button name="EncounterTabTemplate" virtual="true">
715                   <Size x="63" y="57"/>  
716                   <NormalTexture inherits="UI-EJ-Tab-UnSelected"/>
717                   <PushedTexture inherits="UI-EJ-Tab-Selected"/>
718                   <DisabledTexture inherits="UI-EJ-Tab-Selected"/>
719                   <HighlightTexture inherits="UI-EJ-Tab-Highlight" alphaMode="ADD"/>
720                   <Scripts>
721                           <OnClick function="EncounterJournal_TabClicked"/>
722                           <OnDisable>
723                                   self.selected:Show();
724                                   self.unselected:Hide();
725                                   --self:SetFrameLevel(self:GetParent():GetFrameLevel()+3);
726                           </OnDisable>
727                           <OnEnable>
728                                   self.unselected:Show();
729                                   self.selected:Hide();
730                                   --self:SetFrameLevel(self:GetParent():GetFrameLevel()+1);
731                           </OnEnable>
732                   </Scripts>
733           </Button>
 
735           <Button name="EncounterDifficultyTemplate" virtual="true">
736                   <Size x="26" y="26"/>
737                   <Layers>
738                           <Layer level="OVERLAY">
739                                   <Texture name="$parentSelected" inherits="UI-EJ-FilterButtonSelect" parentKey="selected" alphaMode="ADD" hidden="true">
740                                           <Anchors>
741                                                   <Anchor point="CENTER" x="0" y="0"/>
742                                           </Anchors>
743                                   </Texture>
744                           </Layer>
745                   </Layers>
746                   <NormalTexture inherits="UI-EJ-FilterButtonUp">
747                   </NormalTexture>
748                   <PushedTexture inherits="UI-EJ-FilterButtonDown">
749                   </PushedTexture>
750                   <HighlightTexture inherits="UI-EJ-FilterButtonHighlight" alphaMode="ADD">
751                   </HighlightTexture>
752                   <NormalFont style="GameFontNormalSmall"/>
753                   <ButtonText>
754                           <Anchors>
755                                   <Anchor point="CENTER" x="0" y="-1"/>
756                           </Anchors>
757                           <Color r="0.973" g="0.902" b="0.581"/>
758                   </ButtonText>
759           </Button>
 
761           <Frame name="EncounterSectionIconTemplate" virtual="true">
762                   <Size x="32" y="32"/>
763                   <Layers>
764                           <Layer level="OVERLAY">
765                                   <Texture name="$parentIcon" file="Interface\EncounterJournal\UI-EJ-Icons" parentKey="icon">
766                                           <Size x="32" y="32"/>
767                                           <Anchors>
768                                                   <Anchor point="CENTER" x="0" y="0"/>
769                                           </Anchors>
770                                   </Texture>
771                           </Layer>
772                   </Layers>
773                   <Scripts>
774                           <OnEnter>
775                                   if self.tooltipTitle then
776                                           GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
777                                           GameTooltip:SetText(self.tooltipTitle,1,1,1);
778                                           GameTooltip:AddLine(self.tooltipText, nil, nil, nil, 1);
779                                           GameTooltip:Show();
780                                   end
781                           </OnEnter>
782                           <OnLeave>
783                                   GameTooltip:Hide();
784                           </OnLeave>
785                   </Scripts>
786           </Frame>
 
788           <Frame name="EncounterInfoTemplate" virtual="true">
789                   <Animations>
790                           <AnimationGroup parentKey="flashAnim">
791                                   <Alpha target="$parentHeaderButtonGlow" change="1.0" duration="0.6" order="1"/>
792                                   <Alpha target="$parentHeaderButtonGlow" change="-1.0"  duration="0.6" order="2"/>
793                                   <Alpha target="$parentHeaderButtonGlow" change="1.0" duration="0.6" order="3"/>
794                                   <Alpha target="$parentHeaderButtonGlow" change="-1.0"  duration="0.9" order="4"/>
795                           </AnimationGroup>
796                   </Animations>
797                   <Size x="5" y="24"/>
798                   <Frames>
799                           <Button name="$parentHeaderButton" parentKey="button">
800                                   <Size x="5" y="24"/>
801                                   <Anchors>
802                                           <Anchor point="TOPLEFT" x="0" y="0"/>
803                                           <Anchor point="RIGHT" x="0" y="0"/>
804                                   </Anchors>
805                                   <Layers>
806                                           <Layer level="OVERLAY">
807                                                   <FontString name="$parentExpandedIcon" inherits="GameFontNormalLarge" parentKey="expandedIcon">
808                                                           <Size x="12" y="12"/>
809                                                           <Anchors>
810                                                                   <Anchor point="LEFT" x="5" y="0"/>
811                                                           </Anchors>
812                                                   </FontString>
813                                                   <Texture name="$parentAbilityIcon" parentKey="abilityIcon">
814                                                           <Size x="18" y="18"/>
815                                                           <Anchors>
816                                                                   <Anchor point="LEFT" relativeTo="$parentExpandedIcon" relativePoint="RIGHT" x="5" y="0"/>
817                                                           </Anchors>
818                                                   </Texture>
819                                                   <FontString name="$parentTitle" inherits="GameFontNormal" parentKey="title" justifyH="LEFT">
820                                                           <Size x="5" y="10"/>
821                                                           <Anchors>
822                                                                   <Anchor point="LEFT" relativeTo="$parentAbilityIcon" relativePoint="RIGHT" x="5" y="-1"/>
823                                                                   <Anchor point="RIGHT" relativeTo="$parentIcon4" relativePoint="LEFT" x="-5" y="0"/>
824                                                           </Anchors>
825                                                   </FontString>
826                                           </Layer>
827                                           <Layer level="BACKGROUND">
828                                                   <Texture name="$parentELeftUp" inherits="UI-EJ-PaperHeader-SelectUp-Left" parentKey="eLeftUp" hidden="true">
829                                                           <Anchors>
830                                                                   <Anchor point="LEFT" x="-1" y="-1"/>
831                                                           </Anchors>
832                                                   </Texture>
833                                                   <Texture name="$parentERightUp" inherits="UI-EJ-PaperHeader-SelectUp-Right" parentKey="eRightUp" hidden="true">
834                                                           <Anchors>
835                                                                   <Anchor point="RIGHT" x="3" y="-1"/>
836                                                           </Anchors>
837                                                   </Texture>
838                                                   <Texture name="$parentELeftDown" inherits="UI-EJ-PaperHeader-SelectDown-Left" parentKey="eLeftDown" hidden="true">
839                                                           <Anchors>
840                                                                   <Anchor point="LEFT" relativeTo="$parentELeftUp" x="0" y="0"/>
841                                                           </Anchors>
842                                                   </Texture>
843                                                   <Texture name="$parentERightDown" inherits="UI-EJ-PaperHeader-SelectDown-Right" parentKey="eRightDown" hidden="true">
844                                                           <Anchors>
845                                                                   <Anchor point="RIGHT" relativeTo="$parentERightUp" x="0" y="0"/>
846                                                           </Anchors>
847                                                   </Texture>
848                                                   <Texture name="$parentCLeftUp" inherits="UI-EJ-PaperHeader-UnSelectUp-Left" parentKey="cLeftUp">
849                                                           <Anchors>
850                                                                   <Anchor point="LEFT" relativeTo="$parentELeftUp" x="0" y="0"/>
851                                                           </Anchors>
852                                                   </Texture>
853                                                   <Texture name="$parentCRightUp" inherits="UI-EJ-PaperHeader-UnSelectUp-Right" parentKey="cRightUp">
854                                                           <Anchors>
855                                                                   <Anchor point="RIGHT" relativeTo="$parentERightUp" x="0" y="0"/>
856                                                           </Anchors>
857                                                   </Texture>
858                                                   <Texture name="$parentCLeftDown" inherits="UI-EJ-PaperHeader-UnSelectDown-Left" parentKey="cLeftDown" hidden="true">
859                                                           <Anchors>
860                                                                   <Anchor point="LEFT" relativeTo="$parentELeftUp" x="0" y="0"/>
861                                                           </Anchors>
862                                                   </Texture>
863                                                   <Texture name="$parentCRightDown" inherits="UI-EJ-PaperHeader-UnSelectDown-Right" parentKey="cRightDown" hidden="true">
864                                                           <Anchors>
865                                                                   <Anchor point="RIGHT" relativeTo="$parentERightUp" x="0" y="0"/>
866                                                           </Anchors>
867                                                   </Texture>
868                                           </Layer>
869                                           <Layer level="BACKGROUND" textureSubLevel="-2">
870                                                   <Texture name="$parentEMidUp" inherits="_PaperHeader-SelectUp-Mid" parentKey="eMidUp" hidden="true">
871                                                           <Anchors>
872                                                                   <Anchor point="LEFT" relativeTo="$parentELeftUp" relativePoint="RIGHT" x="-32" y="0"/>
873                                                                   <Anchor point="RIGHT" relativeTo="$parentERightUp" relativePoint="LEFT" x="32" y="0"/>
874                                                           </Anchors>
875                                                   </Texture>
876                                                   <Texture name="$parentEMidDown" inherits="_PaperHeader-SelectDown-Mid" parentKey="eMidDown" hidden="true">
877                                                           <Anchors>
878                                                                   <Anchor point="LEFT" relativeTo="$parentELeftDown" relativePoint="RIGHT" x="-32" y="0"/>
879                                                                   <Anchor point="RIGHT" relativeTo="$parentERightDown" relativePoint="LEFT" x="32" y="0"/>
880                                                           </Anchors>
881                                                   </Texture>
882                                                   <Texture name="$parentCMidUp" inherits="_PaperHeader-UnSelectUp-Mid" parentKey="cMidUp">
883                                                           <Anchors>
884                                                                   <Anchor point="LEFT" relativeTo="$parentELeftUp" relativePoint="RIGHT" x="-32" y="0"/>
885                                                                   <Anchor point="RIGHT" relativeTo="$parentERightUp" relativePoint="LEFT" x="32" y="0"/>
886                                                           </Anchors>
887                                                   </Texture>
888                                                   <Texture name="$parentCMidDown" inherits="_PaperHeader-UnSelectDown-Mid" parentKey="cMidDown" hidden="true">
889                                                           <Anchors>
890                                                                   <Anchor point="LEFT" relativeTo="$parentELeftDown" relativePoint="RIGHT" x="-32" y="0"/>
891                                                                   <Anchor point="RIGHT" relativeTo="$parentERightDown" relativePoint="LEFT" x="32" y="0"/>
892                                                           </Anchors>
893                                                   </Texture>
894                                           </Layer>
895                                           <Layer level="HIGHLIGHT">
896                                                   <Texture name="$parentHighlightLeft" inherits="UI-EJ-PaperHeader-Highlight-Left">
897                                                           <Anchors>
898                                                                   <Anchor point="LEFT" x="-1" y="-1"/>
899                                                           </Anchors>
900                                                   </Texture>
901                                                   <Texture name="$parentHighlightRight" inherits="UI-EJ-PaperHeader-Highlight-Right">
902                                                           <Anchors>
903                                                                   <Anchor point="RIGHT" x="3" y="-1"/>
904                                                           </Anchors>
905                                                   </Texture>
906                                                   <Texture name="$parentHighlightMid" inherits="_PaperHeader-Highlight-Mid">
907                                                           <Anchors>
908                                                                   <Anchor point="LEFT" relativeTo="$parentHighlightLeft" relativePoint="RIGHT" x="-32" y="0"/>
909                                                                   <Anchor point="RIGHT" relativeTo="$parentHighlightRight" relativePoint="LEFT" x="32" y="0"/>
910                                                           </Anchors>
911                                                   </Texture>
912                                           </Layer>
913                                   </Layers>
914                                   <Frames>
915                                           <Frame name="$parentGlow" alpha="0">
916                                                   <Anchors>
917                                                           <Anchor point="TOPLEFT" x="0" y="0"/>
918                                                           <Anchor point="BOTTOMRIGHT" x="0" y="0"/>
919                                                   </Anchors>
920                                                   <Layers>
921                                                           <Layer level="OVERLAY">
922                                                                   <Texture name="$parentHighlightLeft" inherits="UI-EJ-PaperHeader-Highlight-Left">
923                                                                           <Anchors>
924                                                                                   <Anchor point="LEFT" x="-1" y="-1"/>
925                                                                           </Anchors>
926                                                                   </Texture>
927                                                                   <Texture name="$parentHighlightRight" inherits="UI-EJ-PaperHeader-Highlight-Right">
928                                                                           <Anchors>
929                                                                                   <Anchor point="RIGHT" x="3" y="-1"/>
930                                                                           </Anchors>
931                                                                   </Texture>
932                                                                   <Texture name="$parentHighlightMid" inherits="_PaperHeader-Highlight-Mid">
933                                                                           <Anchors>
934                                                                                   <Anchor point="LEFT" relativeTo="$parentHighlightLeft" relativePoint="RIGHT" x="-32" y="0"/>
935                                                                                   <Anchor point="RIGHT" relativeTo="$parentHighlightRight" relativePoint="LEFT" x="32" y="0"/>
936                                                                           </Anchors>
937                                                                   </Texture>
938                                                           </Layer>
939                                                   </Layers>
940                                           </Frame>
941                                           <Frame name="$parentIcon1" inherits="EncounterSectionIconTemplate" parentKey="icon1">
942                                                   <Anchors>
943                                                           <Anchor point="RIGHT" x="5" y="0"/>
944                                                   </Anchors>
945                                           </Frame>
946                                           <Frame name="$parentIcon2" inherits="EncounterSectionIconTemplate" parentKey="icon2">
947                                                   <Anchors>
948                                                           <Anchor point="RIGHT" relativeTo="$parentIcon1" relativePoint="LEFT" x="10" y="0"/>
949                                                   </Anchors>
950                                           </Frame>
951                                           <Frame name="$parentIcon3" inherits="EncounterSectionIconTemplate" parentKey="icon3">
952                                                   <Anchors>
953                                                           <Anchor point="RIGHT" relativeTo="$parentIcon2" relativePoint="LEFT" x="10" y="0"/>
954                                                   </Anchors>
955                                           </Frame>
956                                           <Frame name="$parentIcon4" inherits="EncounterSectionIconTemplate" parentKey="icon4">
957                                                   <Anchors>
958                                                           <Anchor point="RIGHT" relativeTo="$parentIcon3" relativePoint="LEFT" x="19" y="0"/>
959                                                   </Anchors>
960                                           </Frame>
961                                           <Button name="$parentPortrait" parentKey="portrait">
962                                                   <Size x="26" y="26"/>
963                                                   <Anchors>
964                                                           <Anchor point="CENTER" relativeTo="$parentAbilityIcon" x="0" y="0"/>
965                                                   </Anchors>
966                                                   <Layers>
967                                                           <Layer level="OVERLAY">
968                                                                   <Texture name="$parentIcon" parentKey="icon">
969                                                                           <Size x="26" y="26"/>
970                                                                           <Anchors>
971                                                                                   <Anchor point="CENTER" x="0" y="0"/>
972                                                                           </Anchors>
973                                                                   </Texture>
974                                                           </Layer>
975                                                           <Layer level="OVERLAY" textureSubLevel="2">
976                                                                   <Texture name="$parentFrame" inherits="UI-EJ-CreatureHeaderFrameSm">
977                                                                           <Anchors>
978                                                                                   <Anchor point="CENTER" relativeTo="$parentIcon" x="0" y="0"/>
979                                                                           </Anchors>
980                                                                   </Texture>     
981                                                           </Layer>
982                                                           <Layer level="HIGHLIGHT">
983                                                                   <Texture name="$parentFrameHighlight" inherits="UI-EJ-CreatureHeaderFrameSm" alphaMode="ADD">
984                                                                           <Anchors>
985                                                                                   <Anchor point="CENTER" relativeTo="$parentIcon" x="0" y="0"/>
986                                                                           </Anchors>
987                                                                   </Texture>     
988                                                           </Layer>
989                                                   </Layers>
990                                                   <Scripts>
991                                                           <OnClick>
992                                                                   if self.displayInfo then
993                                                                           EncounterJournal_DisplayCreature(self);
994                                                                   end
995                                                                   self:Enable();
996                                                           </OnClick>
997                                                   </Scripts>
998                                           </Button>
999                                   </Frames>
1000                                   <Scripts>
1001                                           <OnLoad>
1002                                                   self.textures = {
1003                                                           expanded = {
1004                                                                   up = {self.eLeftUp, self.eMidUp, self.eRightUp},
1005                                                                   down = {self.eLeftDown, self.eMidDown, self.eRightDown}
1006                                                           },
1007                                                           collapsed = {
1008                                                                   up = {self.cLeftUp, self.cMidUp, self.cRightUp},
1009                                                                   down = {self.cLeftDown, self.cMidDown, self.cRightDown}
1010                                                           },
1011                                                   }
1012                                                   self.tex = self.textures.collapsed;
1013                                           </OnLoad>
1014                                           <OnShow>
1015                                                   local oldtex = self.textures.expanded;
1016                                                   if self:GetParent().expanded then
1017                                                           self.tex = self.textures.expanded;
1018                                                           oldtex = self.textures.collapsed;
1019                                                           self.expandedIcon:SetTextColor(0.929, 0.788, 0.620);
1020                                                           self.title:SetTextColor(0.929, 0.788, 0.620);
1021                                                   else
1022                                                           self.tex = self.textures.collapsed;
1023                                                           self.expandedIcon:SetTextColor(0.827, 0.659, 0.463);
1024                                                           self.title:SetTextColor(0.827, 0.659, 0.463);
1025                                                   end
 
1027                                                   oldtex.up[1]:Hide();
1028                                                   oldtex.up[2]:Hide();
1029                                                   oldtex.up[3]:Hide();
1030                                                   oldtex.down[1]:Hide();
1031                                                   oldtex.down[2]:Hide();
1032                                                   oldtex.down[3]:Hide();
 
1035                                                   self.tex.up[1]:Show();
1036                                                   self.tex.up[2]:Show();
1037                                                   self.tex.up[3]:Show();
1038                                                   self.tex.down[1]:Hide();
1039                                                   self.tex.down[2]:Hide();
1040                                                   self.tex.down[3]:Hide();
1041                                           </OnShow>
1042                                           <OnClick>
1043                                                   if IsModifiedClick("CHATLINK") and ChatEdit_GetActiveWindow() then
1044                                                           if self.link then
1045                                                                   ChatEdit_InsertLink(self.link);
1046                                                           end
1047                                                           return;
1048                                                   end
 
1050                                                   EncounterJournal_ToggleHeaders(self:GetParent())
1051                                                   self:GetScript("OnShow")(self);
1052                                           </OnClick>
1053                                           <OnMouseDown>
1054                                                   self.tex.up[1]:Hide();
1055                                                   self.tex.up[2]:Hide();
1056                                                   self.tex.up[3]:Hide();
 
1058                                                   self.tex.down[1]:Show();
1059                                                   self.tex.down[2]:Show();
1060                                                   self.tex.down[3]:Show();
1061                                           </OnMouseDown>
1062                                           <OnMouseUp>
1063                                                   self.tex.up[1]:Show();
1064                                                   self.tex.up[2]:Show();
1065                                                   self.tex.up[3]:Show();
 
1067                                                   self.tex.down[1]:Hide();
1068                                                   self.tex.down[2]:Hide();
1069                                                   self.tex.down[3]:Hide();
1070                                           </OnMouseUp>
1071                                           <OnEnter>
1072                                                   if ( self.title:IsTruncated() ) then
1073                                                           GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
1074                                                           GameTooltip:SetText(self.title:GetText(), nil, nil, nil, nil, 1);
1075                                                   end
1076                                           </OnEnter>
1077                                           <OnLeave>
1078                                                   GameTooltip:Hide();
1079                                           </OnLeave>
1080                                   </Scripts>
1081                           </Button>
1082                   </Frames>
1083                   <Layers>
1084                           <Layer level="ARTWORK">
1085                                   <FontString name="$parentDescription" inherits="GameFontBlack" justifyH="LEFT" parentKey="description">
1086                                           <Size x="0" y="0"/>
1087                                           <Anchors>
1088                                                   <Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parentHeaderButton" x="0" y="-9"/>
1089                                           </Anchors>
1090                                           <Color r="0.25" g="0.1484375" b=".02" a="1"/>
1091                                   </FontString>
1092                           </Layer>
1093                           <Layer level="BACKGROUND">
1094                                   <Texture name="$parentDescriptionBG" inherits="UI-EJ-AbilityTextBG" parentKey="descriptionBG">
1095                                           <Size x="12" y="12"/>
1096                                           <Anchors>
1097                                                   <Anchor point="TOPLEFT" relativeTo="$parentDescription" x="-9" y="12"/>
1098                                                   <Anchor point="BOTTOMRIGHT" relativeTo="$parentDescription" x="9" y="-11"/>
1099                                           </Anchors>
1100                                   </Texture>
1101                                   <Texture inherits="UI-EJ-AbilityTextBottomBorder" parentKey="descriptionBGBottom">
1102                                           <Anchors>
1103                                                   <Anchor point="LEFT" relativeTo="$parentDescriptionBG" relativePoint="BOTTOMLEFT" x="0" y="0"/>
1104                                                   <Anchor point="RIGHT" relativeTo="$parentDescriptionBG" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
1105                                           </Anchors>
1106                                   </Texture>
1107                           </Layer>
1108                   </Layers>
1109                   <Scripts>
1110                           <OnHide>
1111                                   self:SetScript("OnUpdate", nil);
1112                           </OnHide>
1113                   </Scripts>
1114           </Frame>
 
1116           <Button name="EncounterItemTemplate" virtual="true">
1117                   <Size x="321" y="45"/>
1118                   <Layers>
1119                           <Layer level="BACKGROUND">
1120                                   <Texture name="$parentIcon" parentKey="icon">
1121                                           <Size x="42" y="42"/>
1122                                           <Anchors>
1123                                                   <Anchor point="LEFT" x="2" y="0"/>
1124                                           </Anchors>
1125                                   </Texture>
1126                           </Layer>
1127                           <Layer level="BORDER">
1128                                   <Texture inherits="UI-EJ-LootFrame">
1129                                           <Anchors>
1130                                                   <Anchor point="CENTER" x="0" y="0"/>
1131                                           </Anchors>
1132                                   </Texture>
1133                           </Layer>
1134                           <Layer level="OVERLAY">
1135                                   <FontString name="$parentName" inherits="GameFontNormalMed3" justifyH="LEFT" parentKey="name">
1136                                           <Size x="200" y="12"/>
1137                                           <Anchors>
1138                                                   <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="$parentIcon" x="7" y="-7`"/>
1139                                           </Anchors>
1140                                   </FontString>
1141                                   <FontString name="$parentSlot" inherits="GameFontBlack" justifyH="LEFT" parentKey="slot">
1142                                           <Size x="90" y="12"/>
1143                                           <Anchors>
1144                                                   <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" relativeTo="$parentIcon" x="7" y="5"/>
1145                                           </Anchors>
1146                                           <Color r="0.25" g="0.1484375" b=".02" a="1"/>
1147                                   </FontString>
1148                                   <FontString name="$parentArmorClass" inherits="GameFontBlack" justifyH="RIGHT" parentKey="armorType">
1149                                           <Size x="90" y="12"/>
1150                                           <Anchors>
1151                                                   <Anchor point="BOTTOMRIGHT" x="-5" y="7"/>
1152                                           </Anchors>
1153                                           <Color r="0.25" g="0.1484375" b=".02" a="1"/>
1154                                   </FontString>
1155                           </Layer>
1156                   </Layers>
1157                   <Scripts>
1158                           <OnClick>
1159                                   HandleModifiedItemClick(self.link);
1160                           </OnClick>
1161                           <OnEnter>
1162                                   GameTooltip:SetOwner(self, "ANCHOR_LEFT");
1163                                   GameTooltip:SetItemByID(self.itemID);
1164                                   self.showingTooltip = true;
1165                                   self:SetScript("OnUpdate", EncounterJournal_Loot_OnUpdate);
1166                           </OnEnter>
1167                           <OnLeave>
1168                                   GameTooltip:Hide();
1169                                   self.showingTooltip = false;
1170                                   self:SetScript("OnUpdate", nil);
1171                                   ResetCursor();
1172                           </OnLeave>
1173                   </Scripts>
1174           </Button>
 
1176           <Button name="EncounterTierTabTemplate" virtual="true">
1177                   <Size x="120" y="36"/> 
1178                   <HitRectInsets>
1179                           <AbsInset left="-12" right="-12" top="0" bottom="0"/>
1180                   </HitRectInsets>
1181                   <Layers>
1182                           <Layer level="BACKGROUND">
1183                                   <Texture name="$parentMid" inherits="_DungeonGridTab-Mid" parentKey="mid" horizTile="true">
1184                                           <Anchors>
1185                                                   <Anchor point="TOPLEFT" x="0" y="0"/>
1186                                                   <Anchor point="BOTTOMRIGHT" x="0" y="0"/>
1187                                           </Anchors>
1188                                   </Texture>
1189                                   <Texture name="$parentLeft" inherits="UI-EJ-DungeonGridTab-Left" parentKey="left">
1190                                           <Anchors>
1191                                                   <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" x="0" y="0"/>
1192                                                   <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
1193                                           </Anchors>
1194                                   </Texture>
1195                                   <Texture name="$parentRight" inherits="UI-EJ-DungeonGridTab-Right" parentKey="right">
1196                                           <Anchors>
1197                                                   <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="0" y="0"/>
1198                                                   <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
1199                                           </Anchors>
1200                                   </Texture>
1201                           </Layer>
1202                           <Layer level="OVERLAY">
1203                                   <Texture name="$parentMidSelect" inherits="_DungeonGridTab-MidSelect" parentKey="midSelect" horizTile="true" hidden="true">
1204                                           <Anchors>
1205                                                   <Anchor point="TOPLEFT" x="0" y="0"/>
1206                                                   <Anchor point="BOTTOMRIGHT" x="0" y="0"/>
1207                                           </Anchors>
1208                                   </Texture>
1209                                   <Texture name="$parentLeftSelect" inherits="UI-EJ-DungeonGridTab-LeftSelect" parentKey="leftSelect" hidden="true">
1210                                           <Anchors>
1211                                                   <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" x="0" y="0"/>
1212                                                   <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
1213                                           </Anchors>
1214                                   </Texture>
1215                                   <Texture name="$parentRightSelect" inherits="UI-EJ-DungeonGridTab-RightSelect" parentKey="rightSelect" hidden="true">
1216                                           <Anchors>
1217                                                   <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="0" y="0"/>
1218                                                   <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
1219                                           </Anchors>
1220                                   </Texture>
1221                                   <Texture name="$parentSelectedGlow" inherits="UI-EJ-DungeonGridTab-SelectedGlow" parentKey="selectedGlow" hidden="true">
1222                                           <Anchors>
1223                                                   <Anchor point="BOTTOMLEFT" x="-18" y="0"/>
1224                                                   <Anchor point="BOTTOMRIGHT" x="18" y="0"/>
1225                                           </Anchors>
1226                                   </Texture>
1227                           </Layer>
1228                           <Layer level="HIGHLIGHT">      
1229                                   <Texture name="$parentMidHighlight" inherits="_DungeonGridTab-MidHighlight" parentKey="midHighlight" horizTile="true">
1230                                           <Anchors>
1231                                                   <Anchor point="TOPLEFT" x="0" y="0"/>
1232                                                   <Anchor point="BOTTOMRIGHT" x="0" y="0"/>
1233                                           </Anchors>
1234                                   </Texture>
1235                                   <Texture name="$parentLeftHighlight" inherits="UI-EJ-DungeonGridTab-LeftHighlight" parentKey="leftHighlight">
1236                                           <Anchors>
1237                                                   <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" x="0" y="0"/>
1238                                                   <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
1239                                           </Anchors>
1240                                   </Texture>
1241                                   <Texture name="$parentRightHighlight" inherits="UI-EJ-DungeonGridTab-RightHighlight" parentKey="rightHighlight">
1242                                           <Anchors>
1243                                                   <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="0" y="0"/>
1244                                                   <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
1245                                           </Anchors>
1246                                   </Texture>
1247                           </Layer>
1248                   </Layers>
1249                   <NormalFont style="GameFontNormalLarge"/>
1250                   <ButtonText>
1251                           <Anchors>
1252                                   <Anchor point="CENTER" x="0" y="-3"/>
1253                           </Anchors>
1254                   </ButtonText>
1255                   <Scripts>
1256                           <OnLoad>
1257                                   self.storedHeight = self:GetHeight();
1258                                   self:SetHeight(self.storedHeight-4);
1259                           </OnLoad>
1260                           <OnEnable>
1261                                   self.leftSelect:Hide();
1262                                   self.midSelect:Hide();
1263                                   self.rightSelect:Hide();
1264                                   self:SetHeight(self.storedHeight-4);
1265                           </OnEnable>
1266                           <OnDisable>
1267                                   self.leftSelect:Show();
1268                                   self.midSelect:Show();
1269                                   self.rightSelect:Show();
1270                                   self:SetHeight(self.storedHeight);
1271                           </OnDisable>
1272                   </Scripts>
1273           </Button>
 
1277           <Frame name="EncounterJournal" inherits="PortraitFrameTemplate" toplevel="true" enableMouse="true" parent="UIParent" hidden="true">
1278                   <Size x="800" y="496"/>
1279                   <Anchors>
1280                           <Anchor point="CENTER" x="0" y="0"/>
1281                   </Anchors>
1282                   <Frames>
1283                           <EditBox name="$parentSearchBox" inherits="SearchBoxTemplate" parentKey="searchBox" letters="40">
1284                                   <Size x="210" y="20"/>
1285                                   <Anchors>
1286                                           <Anchor point="TOPRIGHT" x="-10" y="-32"/>
1287                                   </Anchors>
1288                                   <Frames>
1289                                           <Button name="$parentSearchButton1" inherits="EncounterSearchSMTemplate" parentKey="sbutton1">
1290                                                   <Anchors>
1291                                                           <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" x="0" y="0"/>
1292                                                           <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" x="-5" y="0"/>
1293                                                   </Anchors>
1294                                                   <Layers>
1295                                                           <Layer level="OVERLAY">
1296                                                                   <Texture name="$parentBotLeftCorner" inherits="UI-Frame-BotCornerLeft" parentKey="boarderAnchor">
1297                                                                           <Anchors>
1298                                                                                   <Anchor point="LEFT" x="-7" y="0"/>
1299                                                                                   <Anchor point="BOTTOM" x="0" y="-5"/>
1300                                                                           </Anchors>
1301                                                                           <Color r="0.5" g="0.5" b="0.5" a="1"/>
1302                                                                   </Texture>
1303                                                                   <Texture name="$parentBotRightCorner" inherits="UI-Frame-BotCornerRight">
1304                                                                           <Anchors>
1305                                                                                   <Anchor point="BOTTOM" relativeTo="$parentBotLeftCorner" x="0" y="0"/>
1306                                                                                   <Anchor point="RIGHT" x="4" y="0"/>
1307                                                                           </Anchors>
1308                                                                           <Color r="0.5" g="0.5" b="0.5" a="1"/>
1309                                                                   </Texture>
1310                                                                   <Texture name="$parentBottomBorder" inherits="_UI-Frame-Bot">
1311                                                                           <Anchors>
1312                                                                                   <Anchor point="BOTTOMLEFT" relativeTo="$parentBotLeftCorner" relativePoint="BOTTOMRIGHT" y="0"/>
1313                                                                                   <Anchor point="BOTTOMRIGHT" relativeTo="$parentBotRightCorner" relativePoint="BOTTOMLEFT" y="0"/>
1314                                                                           </Anchors>
1315                                                                           <Color r="0.5" g="0.5" b="0.5" a="1"/>
1316                                                                   </Texture>
1317                                                                   <Texture name="$parentLeftBorder" inherits="!UI-Frame-LeftTile" parentKey="leftBorderBar">
1318                                                                           <Anchors>
1319                                                                                   <Anchor point="TOP" x="0" y="1" />
1320                                                                                   <Anchor point="BOTTOMLEFT" relativeTo="$parentBotLeftCorner" relativePoint="TOPLEFT"/>
1321                                                                           </Anchors>
1322                                                                           <Color r="0.5" g="0.5" b="0.5" a="1"/>
1323                                                                   </Texture>
1324                                                                   <Texture name="$parentRightBorder" inherits="!UI-Frame-RightTile">
1325                                                                           <Anchors>
1326                                                                                   <Anchor point="TOP" x="0" y="1" />
1327                                                                                   <Anchor point="BOTTOMRIGHT" relativeTo="$parentBotRightCorner" relativePoint="TOPRIGHT" x="1" y="0"/>
1328                                                                           </Anchors>
1329                                                                           <Color r="0.5" g="0.5" b="0.5" a="1"/>
1330                                                                   </Texture>
1331                                                           </Layer>
1332                                                   </Layers>
1333                                           </Button>
1334                                           <Button name="$parentSearchButton2" inherits="EncounterSearchSMTemplate" parentKey="sbutton2">
1335                                                   <Anchors>
1336                                                           <Anchor point="TOPLEFT" relativeTo="$parentSearchButton1" relativePoint="BOTTOMLEFT" x="0" y="0"/>
1337                                                           <Anchor point="TOPRIGHT" relativeTo="$parentSearchButton1" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
1338                                                   </Anchors>
1339                                           </Button>
1340                                           <Button name="$parentSearchButton3" inherits="EncounterSearchSMTemplate" parentKey="sbutton3">
1341                                                   <Anchors>
1342                                                           <Anchor point="TOPLEFT" relativeTo="$parentSearchButton2" relativePoint="BOTTOMLEFT" x="0" y="0"/>
1343                                                           <Anchor point="TOPRIGHT" relativeTo="$parentSearchButton2" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
1344                                                   </Anchors>
1345                                           </Button>
1346                                           <Button name="$parentSearchButton4" inherits="EncounterSearchSMTemplate" parentKey="sbutton4">
1347                                                   <Anchors>
1348                                                           <Anchor point="TOPLEFT" relativeTo="$parentSearchButton3" relativePoint="BOTTOMLEFT" x="0" y="0"/>
1349                                                           <Anchor point="TOPRIGHT" relativeTo="$parentSearchButton3" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
1350                                                   </Anchors>
1351                                           </Button>
1352                                           <Button name="$parentSearchButton5" inherits="EncounterSearchSMTemplate" parentKey="sbutton5">
1353                                                   <Anchors>
1354                                                           <Anchor point="TOPLEFT" relativeTo="$parentSearchButton4" relativePoint="BOTTOMLEFT" x="0" y="0"/>
1355                                                           <Anchor point="TOPRIGHT" relativeTo="$parentSearchButton4" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
1356                                                   </Anchors>
1357                                           </Button>
1358                                           <Button name="$parentShowALL" parentKey="showAllResults">
1359                                                   <Size x="275" y="24"/>
1360                                                   <Anchors>
1361                                                           <Anchor point="LEFT" relativeTo="$parentSearchButton1" x="0" y="0"/>
1362                                                           <Anchor point="RIGHT" relativeTo="$parentSearchButton1" x="0" y="0"/>
1363                                                           <Anchor point="TOP" relativeTo="$parentSearchButton5" relativePoint="BOTTOM" x="0" y="0"/>
1364                                                   </Anchors>
1365                                                   <Layers>
1366                                                           <Layer level="OVERLAY">
1367                                                                   <FontString name="$parentText" inherits="GameFontNormal" justifyH="LEFT" parentKey="text" text="ENCOUNTER">
1368                                                                           <Size x="0" y="0"/>
1369                                                                           <Anchors>
1370                                                                                   <Anchor point="CENTER" x="0" y="0"/>
1371                                                                           </Anchors>
1372                                                                   </FontString>
1373                                                           </Layer>
1374                                                   </Layers>
1375                                                   <NormalTexture inherits="_SearchBarSm">
1376                                                   </NormalTexture>
1377                                                   <PushedTexture inherits="_SearchBarSm">
1378                                                   </PushedTexture>
1379                                                   <HighlightTexture inherits="UI-EJ-SearchBarHighlightSm">
1380                                                   </HighlightTexture>
1381                                                   <Scripts>
1382                                                           <OnShow>
1383                                                                   self:SetFrameLevel(self:GetParent():GetFrameLevel() + 10);
1384                                                           </OnShow>
1385                                                           <OnClick>
1386                                                                   EncounterJournal_ShowFullSearch()
1387                                                           </OnClick>
1388                                                   </Scripts>
1389                                           </Button>
1390                                   </Frames>
1391                                   <Scripts>
1392                                           <OnEnterPressed function="EncounterJournal_ShowFullSearch"/>
1393                                           <OnTextChanged function="EncounterJournal_OnSearchTextChanged"/>
1394                                   </Scripts>
1395                           </EditBox>
1396                           <Frame name="$parentSearchResults" parentKey="searchResults" hidden="true">
1397                                   <Size x="600" y="400"/>
1398                                   <Anchors>
1399                                           <Anchor point="BOTTOM" x="0" y="7"/>
1400                                   </Anchors>
1401                                   <Layers>
1402                                           <Layer level="BACKGROUND">
1403                                                   <Texture name="$parentBg" file="Interface\FrameGeneral\UI-Background-Rock" horizTile="true" vertTile="true">
1404                                                           <Anchors>
1405                                                                   <Anchor point="TOPLEFT" x="0" y="0"/>
1406                                                                   <Anchor point="BOTTOMRIGHT" x="0" y="0"/>
1407                                                           </Anchors>
1408                                                           <Color r="0.9" g="0.8" b="0.7" a="1"/>
1409                                                   </Texture>
1410                                           </Layer>
1411                                           <Layer level="BORDER">
1412                                                   <FontString name="$parentTitleText" inherits="GameFontNormal" text="" parentKey="TitleText">
1413                                                           <Anchors>
1414                                                                   <Anchor point="TOP" x="0" y="-7"/>
1415                                                                   <Anchor point="LEFT" x="60"/>
1416                                                                   <Anchor point="RIGHT" x="-60"/>
1417                                                           </Anchors>
1418                                                   </FontString>
1419                                                   <Texture name="$parentTopLeftCorner" inherits="UI-Frame-TopCornerLeft" parentKey="boarderAnchor">
1420                                                           <Anchors>
1421                                                                   <Anchor point="TOPLEFT" x="-7" y="4"/>
1422                                                           </Anchors>
1423                                                           <Color r="0.5" g="0.5" b="0.5" a="1"/>
1424                                                   </Texture>
1425                                                   <Texture name="$parentTopRightCorner" inherits="UI-Frame-TopCornerRightSimple">
1426                                                           <Anchors>
1427                                                                   <Anchor point="TOPRIGHT" x="4" y="4"/>
1428                                                           </Anchors>
1429                                                           <Color r="0.5" g="0.5" b="0.5" a="1"/>
1430                                                   </Texture>
1431                                                   <Texture name="$parentTopBorder" inherits="_UI-Frame-Top">
1432                                                           <Anchors>
1433                                                                   <Anchor point="TOPLEFT" relativeTo="$parentTopLeftCorner" relativePoint="TOPRIGHT" y="0"/>
1434                                                                   <Anchor point="TOPRIGHT" relativeTo="$parentTopRightCorner" relativePoint="TOPLEFT" y="0"/>
1435                                                           </Anchors>
1436                                                           <Color r="0.5" g="0.5" b="0.5" a="1"/>
1437                                                   </Texture>
1438                                                   <Texture name="$parentLeftBorder" inherits="!UI-Frame-LeftTile" parentKey="leftBorderBar">
1439                                                           <Anchors>
1440                                                                   <Anchor point="BOTTOM" x="0" y="0" />
1441                                                                   <Anchor point="TOPLEFT" relativeTo="$parentTopLeftCorner" relativePoint="BOTTOMLEFT"/>
1442                                                           </Anchors>
1443                                                           <Color r="0.5" g="0.5" b="0.5" a="1"/>
1444                                                   </Texture>
1445                                                   <Texture name="$parentRightBorder" inherits="!UI-Frame-RightTile">
1446                                                           <Anchors>
1447                                                                   <Anchor point="BOTTOM" x="0" y="0" />
1448                                                                   <Anchor point="TOPRIGHT" relativeTo="$parentTopRightCorner" relativePoint="BOTTOMRIGHT" x="1" y="0"/>
1449                                                           </Anchors>
1450                                                           <Color r="0.5" g="0.5" b="0.5" a="1"/>
1451                                                   </Texture>
1452                                           </Layer>
1453                                           <Layer level="BORDER" textureSubLevel="-1">
1454                                                   <Texture name="$parentTopTileStreaks" inherits="_UI-Frame-TopTileStreaks">
1455                                                           <Anchors>
1456                                                                   <Anchor point="TOPLEFT" x="0" y="0"/>
1457                                                                   <Anchor point="TOPRIGHT" x="0" y="0"/>
1458                                                           </Anchors>
1459                                                   </Texture>
1460                                           </Layer>
1461                                           <Layer level="BORDER" textureSubLevel="1">
1462                                                   <Texture name="$parentTopLeftCorner2" inherits="UI-Frame-TopCornerLeft" parentKey="boarderAnchor">
1463                                                           <Anchors>
1464                                                                   <Anchor point="TOPLEFT" x="-7" y="-20"/>
1465                                                           </Anchors>
1466                                                           <Color r="0.5" g="0.5" b="0.5" a="1"/>
1467                                                   </Texture>
1468                                                   <Texture name="$parentTopRightCorner2" inherits="UI-Frame-TopCornerRightSimple">
1469                                                           <Anchors>
1470                                                                   <Anchor point="TOPRIGHT" x="4" y="-20"/>
1471                                                           </Anchors>
1472                                                           <Color r="0.5" g="0.5" b="0.5" a="1"/>
1473                                                   </Texture>
1474                                                   <Texture name="$parentTopBorder2" inherits="_UI-Frame-Top">
1475                                                           <Anchors>
1476                                                                   <Anchor point="TOPLEFT" relativeTo="$parentTopLeftCorner2" relativePoint="TOPRIGHT" y="0"/>
1477                                                                   <Anchor point="TOPRIGHT" relativeTo="$parentTopRightCorner2" relativePoint="TOPLEFT" y="0"/>
1478                                                           </Anchors>
1479                                                           <Color r="0.5" g="0.5" b="0.5" a="1"/>
1480                                                   </Texture>
1481                                           </Layer>
1482                                   </Layers>
1483                                   <Frames>
1484                                           <Button name="$parentCloseButton" inherits="UIPanelCloseButton">
1485                                                   <Anchors>
1486                                                           <Anchor point="TOPRIGHT" x="7" y="2"/>
1487                                                   </Anchors>
1488                                                   <Scripts>
1489                                                           <OnClick>
1490                                                                   self:GetParent():Hide();
1491                                                           </OnClick>
1492                                                   </Scripts>
1493                                           </Button>
1494                                           <ScrollFrame name="$parentScrollFrame" parentKey="scrollFrame" inherits="HybridScrollFrameTemplate">
1495                                                   <Size x="578" y="371"/>
1496                                                   <Anchors>
1497                                                           <Anchor point="BOTTOMLEFT" x="1" y="1"/>
1498                                                   </Anchors>
1499                                                   <Frames>
1500                                                           <Slider name="$parentScrollBar" parentKey="scrollBar" inherits="HybridScrollBarTrimTemplate">
1501                                                                   <Anchors>
1502                                                                           <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="0" y="-16"/>
1503                                                                           <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="0" y="14"/>
1504                                                                   </Anchors>
1505                                                                   <Scripts>
1506                                                                           <OnLoad>
1507                                                                                   self.trackBG:Show();
1508                                                                                   self.trackBG:SetVertexColor(0, 0, 0, 1);
1509                                                                           </OnLoad>
1510                                                                   </Scripts>
1511                                                           </Slider>
1512                                                   </Frames>
1513                                           </ScrollFrame>
1514                                   </Frames>
1515                                   <Scripts>
1516                                           <OnShow>
1517                                                   --always on top
1518                                                   self:SetFrameLevel(self:GetParent():GetFrameLevel()+10);
1519                                           </OnShow>
1520                                   </Scripts>
1521                           </Frame>
1522                           <Frame name="$parentNavBar" inherits="NavBarTemplate" parentKey="navBar">
1523                                   <Size x="500" y="34"/>
1524                                   <Anchors>
1525                                           <Anchor point="TOPLEFT" x="61" y="-22"/>
1526                                   </Anchors>
1527                                   <Layers>
1528                                           <Layer level="BORDER" textureSubLevel="-5">
1529                                                   <Texture name="$parentInsetBotLeftCorner" inherits="UI-Frame-InnerBotLeftCorner" parentKey="InsetBorderBottomLeft">
1530                                                           <Anchors>
1531                                                                   <Anchor point="BOTTOMLEFT"  x="-3" y="-3"/>
1532                                                           </Anchors>
1533                                                   </Texture>
1534                                                   <Texture name="$parentInsetBotRightCorner" inherits="UI-Frame-InnerBotRight" parentKey="InsetBorderBottomRight">
1535                                                           <Anchors>
1536                                                                   <Anchor point="BOTTOMRIGHT"  x="3" y="-3"/>
1537                                                           </Anchors>
1538                                                   </Texture>
1539                                                   <Texture name="$parentInsetBottomBorder" inherits="_UI-Frame-InnerBotTile" parentKey="InsetBorderBottom">
1540                                                           <Anchors>
1541                                                                   <Anchor point="BOTTOMLEFT" relativeTo="$parentInsetBotLeftCorner" relativePoint="BOTTOMRIGHT"/>
1542                                                                   <Anchor point="BOTTOMRIGHT" relativeTo="$parentInsetBotRightCorner" relativePoint="BOTTOMLEFT"/>
1543                                                           </Anchors>
1544                                                   </Texture>
1545                                                   <Texture name="$parentInsetLeftBorder" inherits="!UI-Frame-InnerLeftTile" parentKey="InsetBorderLeft">
1546                                                           <Anchors>
1547                                                                   <Anchor point="TOPLEFT" x="-3" y="0"/>
1548                                                                   <Anchor point="BOTTOMLEFT" relativeTo="$parentInsetBotLeftCorner" relativePoint="TOPLEFT"/>
1549                                                           </Anchors>
1550                                                   </Texture>
1551                                                   <Texture name="$parentInsetRightBorder" inherits="!UI-Frame-InnerRightTile" parentKey="InsetBorderRight">
1552                                                           <Anchors>
1553                                                                   <Anchor point="TOPRIGHT"  x="3" y="0"/>
1554                                                                   <Anchor point="BOTTOMRIGHT" relativeTo="$parentInsetBotRightCorner" relativePoint="TOPRIGHT"/>
1555                                                           </Anchors>
1556                                                   </Texture>     
1557                                           </Layer>
1558                                   </Layers>
1559                                   <Scripts>
1560                                           <OnShow>
1561                                           </OnShow>
1562                                   </Scripts>
1563                           </Frame>
1564                           <Frame name="$parentInset" useParentLevel="true" inherits="InsetFrameTemplate" parentKey="inset">
1565                                   <Anchors>
1566                                           <Anchor point="TOPRIGHT" x="-4" y="-60" />
1567                                           <Anchor point="BOTTOMLEFT" x="4" y="5"/>
1568                                   </Anchors>
1569                           </Frame>
1570                           <Frame name="$parentInstanceSelect" parentKey="instanceSelect" useParentLevel="true">
1571                                   <Anchors>
1572                                           <Anchor point="TOPLEFT" relativeTo="$parentInset" x="0" y="-2" />
1573                                           <Anchor point="BOTTOMRIGHT" relativeTo="$parentInset" x="-3" y="0"/>
1574                                   </Anchors>
1575                                   <Layers>
1576                                           <Layer level="BACKGROUND">
1577                                                   <Texture name="$parentBG" file="Interface\EncounterJournal\UI-EJ-Cataclysm" parentKey="bg">
1578                                                           <Anchors>
1579                                                                   <Anchor point="TOPLEFT" x="0" y="0"/>
1580                                                                   <Anchor point="BOTTOMRIGHT" x="0" y="0"/>
1581                                                           </Anchors>
1582                                                           <TexCoords left="0" right="0.763671875" top="0" bottom="0.82421875"/>
1583                                                   </Texture>
1584                                           </Layer>
1585                                           <Layer level="OVERLAY">
1586                                                   <FontString name="$parentTier" inherits="QuestFont_Super_Huge" text="EXPANSION_NAME3" justifyH="LEFT" parentKey="tier">
1587                                                           <Size x="300" y="0"/>
1588                                                           <Anchors>
1589                                                                   <Anchor point="TOPLEFT" x="10" y="-15"/>
1590                                                           </Anchors>
1591                                                           <Color r="0.961" g="0.824" b="0.412"/>
1592                                                   </FontString>
1593                                           </Layer>
1594                                   </Layers>
1595                                   <Frames>
1596                                           <Button name="$parentRaidTab" inherits="EncounterTierTabTemplate" text="RAIDS" parentKey="raidsTab">
1597                                                   <Anchors>
1598                                                           <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" x="-35" y="-45"/>
1599                                                   </Anchors>
1600                                                   <Scripts>
1601                                                           <OnClick>
1602                                                                   self:Disable();
1603                                                                   self:GetFontString():SetTextColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b);
1604                                                                   self.selectedGlow:Show();
1605                                                                   local dungeonsTab = self:GetParent().dungeonsTab;
1606                                                                   dungeonsTab:Enable();
1607                                                                   dungeonsTab:GetFontString():SetTextColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b);
1608                                                                   dungeonsTab.selectedGlow:Hide();
1609                                                                   EncounterJournal_ListInstances();
1610                                                           </OnClick>
1611                                                   </Scripts>
1612                                           </Button>
1613                                           <Button name="$parentDungeonTab" inherits="EncounterTierTabTemplate" text="DUNGEONS" parentKey="dungeonsTab">
1614                                                   <Anchors>
1615                                                           <Anchor point="BOTTOMRIGHT" relativeTo="$parentRaidTab" relativePoint="BOTTOMLEFT" x="-35" y="0"/>
1616                                                   </Anchors>
1617                                                   <Scripts>
1618                                                           <OnClick>
1619                                                                   self:Disable();
1620                                                                   self:GetFontString():SetTextColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b);
1621                                                                   self.selectedGlow:Show();
1622                                                                   local raidsTab = self:GetParent().raidsTab;
1623                                                                   raidsTab:Enable();
1624                                                                   raidsTab:GetFontString():SetTextColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b);
1625                                                                   raidsTab.selectedGlow:Hide();
1626                                                                   EncounterJournal_ListInstances();
1627                                                           </OnClick>
1628                                                   </Scripts>
1629                                           </Button>
1630                                           <Frame name="$parentTierDropDown" inherits="UIDropDownMenuTemplate" enableMouse="true" parentKey="tierDropDown" hidden="true">
1631                                                   <Anchors>
1632                                                           <Anchor point="TOPLEFT" x="-2" y="-6"/>
1633                                                   </Anchors>
1634                                           </Frame>
1635                                           <ScrollFrame name="$parentScrollFrame" parentKey="scroll" inherits="UIPanelScrollFrameCodeTemplate">
1636                                                   <Size x="785" y="377"/>
1637                                                   <Anchors>
1638                                                           <Anchor point="TOPLEFT" x="5" y="-49"/>
1639                                                   </Anchors>
1640                                                   <Frames>
1641                                                           <Slider name="$parentScrollBar" inherits="MinimalScrollBarTemplate" parentKey="ScrollBar">
1642                                                                   <Anchors>
1643                                                                           <Anchor point="TOPRIGHT" x="0" y="-17"/>
1644                                                                           <Anchor point="BOTTOMRIGHT" x="0" y="17"/>
1645                                                                   </Anchors>
1646                                                                   <Scripts>
1647                                                                           <OnLoad>
1648                                                                                   self.trackBG:SetVertexColor(0.2, 0.13, 0.08, 0.25);
1649                                                                           </OnLoad>
1650                                                                   </Scripts>
1651                                                           </Slider>
1652                                                   </Frames>
1653                                                   <ScrollChild>
1654                                                           <Frame name="$parentScrollChild" parentKey="child">
1655                                                                   <Size x="785" y="375"/>
1656                                                                   <Anchors>
1657                                                                           <Anchor point="TOPLEFT" x="0" y="0"/>
1658                                                                   </Anchors>
1659                                                                   <Frames>
1660                                                                           <Button name="$parentInstanceButton1" inherits="EncounterInstanceButtonTemplate" parentKey="instance1">
1661                                                                                   <Anchors>
1662                                                                                           <Anchor point="TOPLEFT" x="12" y="-10"/>
1663                                                                                   </Anchors>
1664                                                                           </Button>
1665                                                                   </Frames>
1666                                                           </Frame>
1667                                                   </ScrollChild>
1668                                           </ScrollFrame>
1669                                   </Frames>
1670                           </Frame>
1671                           <Frame name="$parentEncounterFrame" parentKey="encounter" hidden="true" useParentLevel="true">
1672                                   <Anchors>
1673                                           <Anchor point="TOPLEFT" relativeTo="$parentInset" x="0" y="0" />
1674                                           <Anchor point="BOTTOMRIGHT" relativeTo="$parentInset" x="-3" y="0"/>
1675                                   </Anchors>
1676                                   <Frames>
1677                                           <Frame name="$parentInstanceFrame" parentKey="instance">
1678                                                   <Size x="390" y="425"/>
1679                                                   <Anchors>
1680                                                           <Anchor point="TOPLEFT" x="0" y="0"/>
1681                                                   </Anchors>
1682                                                   <Layers>
1683                                                           <Layer level="BACKGROUND">
1684                                                                   <Texture name="$parentBG" file="Interface\EncounterJournal\UI-EJ-LOREBG-Default" parentKey="loreBG">
1685                                                                           <Size x="390" y="336"/>
1686                                                                           <Anchors>
1687                                                                                   <Anchor point="TOP" x="3" y="-4"/>
1688                                                                           </Anchors>
1689                                                                           <TexCoords left="0" right="0.7617187" top="0" bottom="0.65625"/>
1690                                                                   </Texture>
1691                                                           </Layer>
1692                                                           <Layer level="OVERLAY">
1693                                                                   <FontString name="$parentTitle" inherits="QuestFont_Super_Huge" justifyH="CENTER" justifyV="BOTTOM" parentKey="title">
1694                                                                           <Size x="0" y="10"/>
1695                                                                           <Anchors>
1696                                                                                   <Anchor point="TOP" x="0" y="-67"/>
1697                                                                           </Anchors>
1698                                                                   </FontString>
1699                                                           </Layer>
1700                                                           <Layer level="ARTWORK">
1701                                                                   <Texture name="$parentTitleBG" inherits="UI-EJ-DungeonNameBg">
1702                                                                           <Anchors>
1703                                                                                   <Anchor point="TOP" relativeTo="$parentBG" x="0" y="-38"/>
1704                                                                                   <Anchor point="LEFT" relativeTo="$parentTitle" relativePoint="LEFT" x="-40" y="0"/>
1705                                                                                   <Anchor point="RIGHT" relativeTo="$parentTitle" relativePoint="RIGHT" x="40" y="0"/>
1706                                                                           </Anchors>
1707                                                                   </Texture>
1708                                                           </Layer>
1709                                                   </Layers>
1710                                                   <Frames>
1711                                                           <Button name="$parentMapButton" parentKey="mapButton">
1712                                                                   <Size x="48" y="32"/>
1713                                                                   <Anchors>
1714                                                                           <Anchor point="BOTTOMLEFT" x="33" y="126"/>
1715                                                                   </Anchors>
1716                                                                   <Layers>
1717                                                                           <Layer level="BACKGROUND">
1718                                                                                   <Texture name="$parentShadow" inherits="UI-EJ-ShowMapBG">
1719                                                                                           <Anchors>
1720                                                                                                   <Anchor point="LEFT" x="-3" y="5"/>
1721                                                                                           </Anchors>
1722                                                                                   </Texture>
1723                                                                           </Layer>
1724                                                                           <Layer level="ARTWORK">
1725                                                                                   <FontString name="$parentText" font="GameFontNormal" justifyH="LEFT" text="ENCOUNTER_JOURNAL_SHOW_MAP">
1726                                                                                           <Size x="0" y="0"/>
1727                                                                                           <Anchors>
1728                                                                                                   <Anchor point="LEFT" relativePoint="RIGHT" x="2" y="0"/>
1729                                                                                           </Anchors>
1730                                                                                   </FontString>
1731                                                                                   <Texture name="$parentTexture" file="Interface\QuestFrame\UI-QuestMap_Button" parentKey="texture">
1732                                                                                           <Size x="48" y="32"/>
1733                                                                                           <Anchors>
1734                                                                                                   <Anchor point="RIGHT"/>
1735                                                                                           </Anchors>
1736                                                                                           <TexCoords left="0.125" right="0.875" top="0.0" bottom="0.5"/>
1737                                                                                   </Texture>
1738                                                                           </Layer>
1739                                                                           <Layer level="HIGHLIGHT">
1740                                                                                   <Texture name="$parentHighlight" file="Interface\BUTTONS\ButtonHilight-Square" alphaMode="ADD">
1741                                                                                           <Size x="36" y="25"/>
1742                                                                                           <Anchors>
1743                                                                                                   <Anchor point="RIGHT" x="-7" y="0"/>
1744                                                                                           </Anchors>
1745                                                                                   </Texture>
1746                                                                           </Layer>
1747                                                                   </Layers>
1748                                                                   <Scripts>
1749                                                                           <OnClick>
1750                                                                                   local _, _, _, _, _, dungeonAreaMapID = EJ_GetInstanceInfo();
1751                                                                                   if dungeonAreaMapID and dungeonAreaMapID > 0 then
1752                                                                                           ShowUIPanel(WorldMapFrame);
1753                                                                                           SetMapByID(dungeonAreaMapID);
1754                                                                                   end
1755                                                                           </OnClick>
1756                                                                           <OnMouseDown>
1757                                                                                   self.texture:SetTexCoord(0.125, 0.875, 0.5, 1.0);
1758                                                                           </OnMouseDown>
1759                                                                           <OnMouseUp>
1760                                                                                   self.texture:SetTexCoord(0.125, 0.875, 0.0, 0.5);
1761                                                                           </OnMouseUp>
1762                                                                   </Scripts>
1763                                                           </Button>
1764                                                           <ScrollFrame name="$parentLoreScrollFrame" parentKey="loreScroll" inherits="UIPanelScrollFrameCodeTemplate">
1765                                                                   <Size x="315" y="102"/>
1766                                                                   <Anchors>
1767                                                                           <Anchor point="BOTTOM" x="0" y="5"/>
1768                                                                   </Anchors>
1769                                                                   <Frames>
1770                                                                           <Slider name="$parentScrollBar" inherits="MinimalScrollBarTemplate" parentKey="ScrollBar">
1771                                                                                   <Anchors>
1772                                                                                           <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="0" y="-17"/>
1773                                                                                           <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="0" y="17"/>
1774                                                                                   </Anchors>
1775                                                                                   <Scripts>
1776                                                                                           <OnLoad>
1777                                                                                                   self.trackBG:SetVertexColor(0.2, 0.13, 0.08, 0.25);
1778                                                                                           </OnLoad>
1779                                                                                   </Scripts>
1780                                                                           </Slider>
1781                                                                   </Frames>
1782                                                                   <ScrollChild>
1783                                                                           <Frame name="$parentScrollChild" parentKey="child">
1784                                                                                   <Size x="315" y="102"/>
1785                                                                                   <Anchors>
1786                                                                                           <Anchor point="TOPLEFT" x="0" y="0"/>
1787                                                                                   </Anchors>
1788                                                                                   <Layers>
1789                                                                                           <Layer level="ARTWORK">
1790                                                                                                   <FontString name="$parentLore" inherits="GameFontBlack" justifyH="LEFT" parentKey="lore">
1791                                                                                                           <Size x="300" y="0"/>
1792                                                                                                           <Anchors>
1793                                                                                                                   <Anchor point="TOPLEFT" x="5" y="-5"/>
1794                                                                                                           </Anchors>
1795                                                                                                           <Color r="0.13" g="0.07" b=".01" a="1"/>
1796                                                                                                   </FontString>
1797                                                                                           </Layer>
1798                                                                                   </Layers>
1799                                                                           </Frame>
1800                                                                   </ScrollChild>
1801                                                           </ScrollFrame>
1802                                                   </Frames>
1803                                           </Frame>
1804                                           <PlayerModel name="$parentModelFrame" parentKey="model">
1805                                                   <Size x="390" y="425"/>
1806                                                   <Anchors>
1807                                                           <Anchor point="TOPLEFT" x="3" y="-4"/>
1808                                                   </Anchors>
1809                                                   <Layers>
1810                                                           <Layer level="OVERLAY">
1811                                                                   <Texture name="$parentShadow" file="Interface\EncounterJournal\UI-EJ-BossModelPaperFrame">
1812                                                                           <Size x="393" y="424"/>
1813                                                                           <Anchors>
1814                                                                                   <Anchor point="TOPLEFT" x="0" y="0"/>
1815                                                                           </Anchors>
1816                                                                           <TexCoords left="0" right="0.767578125" top="0" bottom="0.828125"/>
1817                                                                   </Texture>
1818                                                           </Layer>
1819                                                           <Layer level="OVERLAY" textureSubLevel="1">
1820                                                                   <Texture name="$parentTitleBG" inherits="UI-EJ-BossNameShadow">
1821                                                                           <Anchors>
1822                                                                                   <Anchor point="BOTTOM" x="0" y="0"/>
1823                                                                           </Anchors>
1824                                                                   </Texture>
1825                                                           </Layer>
1826                                                           <Layer level="OVERLAY" textureSubLevel="2">
1827                                                                   <FontString name="$parentImageTile" inherits="QuestTitleFontBlackShadow" justifyH="CENTER" parentKey="imageTitle">
1828                                                                           <Size x="380" y="10"/>
1829                                                                           <Anchors>
1830                                                                                   <Anchor point="BOTTOM" x="0" y="8"/>
1831                                                                           </Anchors>
1832                                                                   </FontString>
1833                                                           </Layer>
1834                                                   </Layers>
1835                                                   <Scripts>
1836                                                           <OnLoad>
1837                                                                   Model_OnLoad(self);
1838                                                                   self:SetCamDistanceScale(1.0);
1839                                                                   self:GetParent().imageTitle = self.imageTitle;
1840                                                           </OnLoad>
1841                                                           <OnEvent function="Model_OnEvent"/>
1842                                                           <OnUpdate function="Model_OnUpdate"/>
1843                                                           <OnMouseDown function="Model_OnMouseDown"/>
1844                                                           <OnMouseUp function="Model_OnMouseUp"/>
1845                                                           <OnMouseWheel>
1846                                                                   --Model_OnMouseWheel(self, delta, MODELFRAME_MAX_PET_ZOOM);
1847                                                           </OnMouseWheel>
1848                                                   </Scripts>
1849                                           </PlayerModel>
1850                                           <Button name="$parentCreatureButton1" inherits="EncounterCreatureButtonTemplate" parentKey="creatureButton1">
1851                                                   <Anchors>
1852                                                           <Anchor point="TOPLEFT" x="3" y="-35"/>
1853                                                   </Anchors>
1854                                           </Button>
1855                                           <Button name="$parentCreatureButton2" inherits="EncounterCreatureButtonTemplate" parentKey="creatureButton2">
1856                                                   <Anchors>
1857                                                           <Anchor point="TOPLEFT" relativeTo="$parentCreatureButton1" relativePoint="BOTTOMLEFT" x="0" y="0"/>
1858                                                   </Anchors>
1859                                           </Button>
1860                                           <Button name="$parentCreatureButton3" inherits="EncounterCreatureButtonTemplate" parentKey="creatureButton3">
1861                                                   <Anchors>
1862                                                           <Anchor point="TOPLEFT" relativeTo="$parentCreatureButton2" relativePoint="BOTTOMLEFT" x="0" y="0"/>
1863                                                   </Anchors>
1864                                           </Button>
1865                                           <Button name="$parentCreatureButton4" inherits="EncounterCreatureButtonTemplate" parentKey="creatureButton4">
1866                                                   <Anchors>
1867                                                           <Anchor point="TOPLEFT" relativeTo="$parentCreatureButton3" relativePoint="BOTTOMLEFT" x="0" y="0"/>
1868                                                   </Anchors>
1869                                           </Button>
1870                                           <Button name="$parentCreatureButton5" inherits="EncounterCreatureButtonTemplate" parentKey="creatureButton5">
1871                                                   <Anchors>
1872                                                           <Anchor point="TOPLEFT" relativeTo="$parentCreatureButton4" relativePoint="BOTTOMLEFT" x="0" y="0"/>
1873                                                   </Anchors>
1874                                           </Button>
1875                                           <Button name="$parentCreatureButton6" inherits="EncounterCreatureButtonTemplate" parentKey="creatureButton6">
1876                                                   <Anchors>
1877                                                           <Anchor point="TOPLEFT" relativeTo="$parentCreatureButton5" relativePoint="BOTTOMLEFT" x="0" y="0"/>
1878                                                   </Anchors>
1879                                           </Button>
1880                                           <Frame name="$parentInfo" parentKey="info" useParentLevel="true">
1881                                                   <Size x="785" y="425"/>
1882                                                   <Anchors>
1883                                                           <Anchor point="BOTTOMRIGHT" x="-1`" y="2"/>
1884                                                   </Anchors>
1885                                                   <Layers>
1886                                                           <Layer level="BACKGROUND">
1887                                                                           <Texture name="$parentBG" file="Interface\EncounterJournal\UI-EJ-JournalBG">
1888                                                                           <Size x="785" y="425"/>
1889                                                                           <Anchors>
1890                                                                                   <Anchor point="BOTTOMRIGHT" x="0" y="0"/>
1891                                                                           </Anchors>
1892                                                                           <TexCoords left="0" right="0.766601562" top="0" bottom="0.830078125"/>
1893                                                                   </Texture>
1894                                                           </Layer>
1895                                                           <Layer level="BACKGROUND" textureSubLevel="1">
1896                                                                   <Texture name="$parentDungeonBG" file="Interface\EncounterJournal\UI-EJ-BACKGROUND-Default" parentKey="dungeonBG">
1897                                                                           <Size x="394" y="425"/>
1898                                                                           <Anchors>
1899                                                                                   <Anchor point="BOTTOMLEFT" x="0" y="0"/>
1900                                                                           </Anchors>
1901                                                                           <TexCoords left="0" right="0.76953125" top="0" bottom="0.830078125"/>
1902                                                                   </Texture>
1903                                                           </Layer>
1904                                                           <Layer level="OVERLAY">
1905                                                                   <FontString name="$parentEncounterTile" inherits="GameFontNormalLarge" justifyH="LEFT" parentKey="encounterTitle">
1906                                                                           <Size x="0" y="0"/>
1907                                                                           <Anchors>
1908                                                                                   <Anchor point="BOTTOMLEFT" relativePoint="TOPRIGHT" x="-350" y="-36"/>
1909                                                                           </Anchors>
1910                                                                           <Color r="0.902" g="0.788" b="0.671"/>
1911                                                                   </FontString>
1912                                                           </Layer>
1913                                                   </Layers>
1914                                                   <Frames>
1915                                                           <Button name="$parentBossTab" inherits="EncounterTabTemplate" useParentLevel="true" parentKey="bossTab" id="1">
1916                                                                   <Anchors>
1917                                                                           <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="-12" y="-35"/>
1918                                                                   </Anchors>
1919                                                                   <Layers>
1920                                                                           <Layer level="OVERLAY">
1921                                                                                   <Texture name="$parentUnselect" inherits="UI-EJ-Tab-BossIcon-UnSelected" parentKey="unselected">
1922                                                                                           <Anchors>
1923                                                                                                   <Anchor point="RIGHT" x="-6" y="0"/>
1924                                                                                           </Anchors>
1925                                                                                   </Texture>
1926                                                                                   <Texture name="$parentSelect" inherits="UI-EJ-Tab-BossIcon-Selected" parentKey="selected">
1927                                                                                           <Anchors>
1928                                                                                                   <Anchor point="CENTER" relativeTo="$parentUnselect" x="0" y="0"/>
1929                                                                                           </Anchors>
1930                                                                                   </Texture>
1931                                                                           </Layer>
1932                                                                   </Layers>
1933                                                           </Button>
1934                                                           <Button name="$parentLootTab" inherits="EncounterTabTemplate" useParentLevel="true" parentKey="lootTab" id="2">
1935                                                                   <Anchors>
1936                                                                           <Anchor point="TOP" relativeTo="$parentBossTab" relativePoint="BOTTOM" x="0" y="2"/>
1937                                                                   </Anchors>
1938                                                                   <Layers>
1939                                                                           <Layer level="OVERLAY">
1940                                                                                   <Texture name="$parentUnselect" inherits="UI-EJ-Tab-LootIcon-UnSelected" parentKey="unselected">
1941                                                                                           <Anchors>
1942                                                                                                   <Anchor point="RIGHT" x="-6" y="0"/>
1943                                                                                           </Anchors>
1944                                                                                   </Texture>
1945                                                                                   <Texture name="$parentSelect" inherits="UI-EJ-Tab-LootIcon-Selected" parentKey="selected">
1946                                                                                           <Anchors>
1947                                                                                                   <Anchor point="CENTER" relativeTo="$parentUnselect" x="0" y="0"/>
1948                                                                                           </Anchors>
1949                                                                                   </Texture>
1950                                                                           </Layer>
1951                                                                   </Layers>
1952                                                           </Button>
1953                                                           <Button name="$parentHeroicButton" inherits="EncounterDifficultyTemplate" parentKey="heroButton">
1954                                                                   <Anchors>
1955                                                                           <Anchor point="TOPRIGHT" x="-8" y="-13"/>
1956                                                                   </Anchors>
1957                                                                   <Layers>
1958                                                                           <Layer level="OVERLAY">
1959                                                                                   <Texture name="$parentSkull" file="Interface\EncounterJournal\UI-EJ-HeroicTextIcon" parentKey="skull">
1960                                                                                           <Size x="14" y="14"/>
1961                                                                                           <Anchors>
1962                                                                                                   <Anchor point="CENTER" x="0" y="0"/>
1963                                                                                           </Anchors>
1964                                                                                   </Texture>
1965                                                                           </Layer>
1966                                                                   </Layers>
1967                                                                   <Scripts>
1968                                                                           <OnClick>
1969                                                                                   EncounterJournal.isHeroic = not EncounterJournal.isHeroic;
1970                                                                                   if EncounterJournal.isHeroic then
1971                                                                                           self.selected:Show();
1972                                                                                   else
1973                                                                                           self.selected:Hide();
1974                                                                                   end
1975                                                                                   EncounterJournal_Refresh();
1976                                                                           </OnClick>
1977                                                                   </Scripts>
1978                                                           </Button>
1979                                                           <Button name="$parent25ManButton" inherits="EncounterDifficultyTemplate" text="25" parentKey="diff25man">
1980                                                                   <Anchors>
1981                                                                           <Anchor point="RIGHT" relativeTo="$parentHeroicButton" relativePoint="LEFT" x="-1" y="0"/>
1982                                                                   </Anchors>
1983                                                                   <Scripts>
1984                                                                           <OnClick>
1985                                                                                   EncounterJournal.is10Man = false;
1986                                                                                   self.selected:Show();
1987                                                                                   self:GetParent().diff10man.selected:Hide();
1988                                                                                   EncounterJournal_Refresh();
1989                                                                           </OnClick>
1990                                                                   </Scripts>
1991                                                           </Button>
1992                                                           <Button name="$parent10ManButton" inherits="EncounterDifficultyTemplate" text="10" parentKey="diff10man">
1993                                                                   <Anchors>
1994                                                                           <Anchor point="RIGHT" relativeTo="$parent25ManButton" relativePoint="LEFT" x="-1" y="0"/>
1995                                                                   </Anchors>
1996                                                                   <Scripts>
1997                                                                           <OnLoad>
1998                                                                                   self.selected:Show();
1999                                                                           </OnLoad>
2000                                                                           <OnClick>
2001                                                                                   EncounterJournal.is10Man = true;
2002                                                                                   self.selected:Show();
2003                                                                                   self:GetParent().diff25man.selected:Hide();
2004                                                                                   EncounterJournal_Refresh();
2005                                                                           </OnClick>
2006                                                                   </Scripts>
2007                                                           </Button>
2008                                                           <ScrollFrame name="$parentDetailsScrollFrame" parentKey="detailsScroll" inherits="UIPanelScrollFrameCodeTemplate">
2009                                                                   <Size x="350" y="380"/>
2010                                                                   <Anchors>
2011                                                                           <Anchor point="BOTTOMRIGHT" x="-5" y="1"/>
2012                                                                   </Anchors>
2013                                                                   <Layers>
 
2023                                                                   </Layers>
2024                                                                   <Frames>
2025                                                                           <Slider name="$parentScrollBar" inherits="MinimalScrollBarTemplate" parentKey="ScrollBar">
2026                                                                                   <Anchors>
2027                                                                                           <Anchor point="TOPRIGHT" x="0" y="-17"/>
2028                                                                                           <Anchor point="BOTTOMRIGHT" x="0" y="17"/>
2029                                                                                   </Anchors>
2030                                                                                   <Scripts>
2031                                                                                           <OnLoad>
2032                                                                                                   self.trackBG:SetVertexColor(0.2, 0.13, 0.08, 0.25);
2033                                                                                           </OnLoad>
2034                                                                                   </Scripts>
2035                                                                           </Slider>
2036                                                                   </Frames>
2037                                                                   <ScrollChild>
2038                                                                           <Frame name="$parentScrollChild" parentKey="child">
2039                                                                                   <Size x="320" y="372"/>
2040                                                                                   <Anchors>
2041                                                                                           <Anchor point="TOPLEFT" x="0" y="0"/>
2042                                                                                   </Anchors>
2043                                                                                   <Layers>
2044                                                                                           <Layer level="ARTWORK">
2045                                                                                                   <FontString name="$parentDescription" inherits="GameFontBlack" justifyH="LEFT" parentKey="description">
2046                                                                                                           <Size x="0" y="0"/>
2047                                                                                                           <Anchors>
2048                                                                                                                   <Anchor point="TOPLEFT" x="2" y="-8"/>
2049                                                                                                           </Anchors>
2050                                                                                                           <Color r="0.25" g="0.1484375" b=".02" a="1"/>
2051                                                                                                   </FontString>
2052                                                                                           </Layer>
2053                                                                                   </Layers>
2054                                                                           </Frame>
2055                                                                   </ScrollChild>
2056                                                           </ScrollFrame>
2057                                                           <ScrollFrame name="$parentLootScrollFrame" parentKey="lootScroll" inherits="HybridScrollFrameTemplate">
2058                                                                   <Size x="345" y="380"/>
2059                                                                   <Anchors>
2060                                                                           <Anchor point="BOTTOMRIGHT" x="-5" y="1"/>
2061                                                                   </Anchors>
2062                                                                   <Layers>
2063                                                                           <Layer level="OVERLAY">
 
2071                                                                           </Layer>
2072                                                                   </Layers>
2073                                                                   <Frames>
2074                                                                           <Frame name="$parentClassFilterClearFrame" parentKey="classClearFilter" hidden="true" enableMouse="true">
2075                                                                                   <Size x="355" y="28"/> 
2076                                                                                   <Anchors>
2077                                                                                           <Anchor point="BOTTOM" relativePoint="TOP" x="-10" y="-5"/>
2078                                                                                   </Anchors>
2079                                                                                   <Layers>
2080                                                                                           <Layer level="BACKGROUND">
2081                                                                                                   <Texture inherits="UI-EJ-FilterBar">
2082                                                                                                           <Size x="355" y="28"/> 
2083                                                                                                           <Anchors>
2084                                                                                                                   <Anchor point="CENTER" x="0" y="0"/>
2085                                                                                                           </Anchors>
2086                                                                                                   </Texture>
2087                                                                                           </Layer>
2088                                                                                           <Layer level="OVERLAY">
2089                                                                                                   <FontString inherits="GameFontNormalSmall" parentKey="text">
2090                                                                                                           <Size x="0" y="0"/>
2091                                                                                                           <Anchors>
2092                                                                                                                   <Anchor point="LEFT" x="25" y="2"/>
2093                                                                                                           </Anchors>
2094                                                                                                           <Color r="0.973" g="0.902" b="0.581"/>
2095                                                                                                   </FontString>
2096                                                                                           </Layer>
2097                                                                                   </Layers>
2098                                                                                   <Frames>
2099                                                                                           <Button name="$parentExitButton">
2100                                                                                                   <Size x="17" y="17"/>
2101                                                                                                   <Anchors>
2102                                                                                                           <Anchor point="RIGHT" x="-7" y="3"/>
2103                                                                                                   </Anchors>
2104                                                                                                   <Layers>
2105                                                                                                           <Layer level="ARTWORK">
2106                                                                                                                   <Texture file="Interface\FriendsFrame\ClearBroadcastIcon" alpha="0.5" parentKey="texture">
2107                                                                                                                           <Size x="17" y="17"/>
2108                                                                                                                           <Anchors>
2109                                                                                                                                   <Anchor point="TOPLEFT" x="0" y="0"/>
2110                                                                                                                           </Anchors>
2111                                                                                                                   </Texture>
2112                                                                                                           </Layer>
2113                                                                                                   </Layers>
2114                                                                                                   <Scripts>
2115                                                                                                           <OnEnter>
2116                                                                                                                   self.texture:SetAlpha(1.0);
2117                                                                                                           </OnEnter>
2118                                                                                                           <OnLeave>
2119                                                                                                                   self.texture:SetAlpha(0.5);
2120                                                                                                           </OnLeave>
2121                                                                                                           <OnMouseDown>
2122                                                                                                                   self.texture:SetPoint("TOPLEFT", 1, -1);
2123                                                                                                           </OnMouseDown>
2124                                                                                                           <OnMouseUp>
2125                                                                                                                   self.texture:SetPoint("TOPLEFT", 0, 0);
2126                                                                                                           </OnMouseUp>
2127                                                                                                           <OnClick>
2128                                                                                                                   EncounterJournal_SetClassFilter();--Clear
2129                                                                                                                   self:GetParent():Hide();
2130                                                                                                           </OnClick>
2131                                                                                                   </Scripts>
2132                                                                                           </Button>
2133                                                                                   </Frames>
2134                                                                           </Frame>
2135                                                                           <Frame name="$parentClassFilterFrame" parentKey="classFilter" hidden="true" enableMouse="true">
2136                                                                                   <Anchors>
2137                                                                                           <Anchor point="TOPLEFT" x="0" y="0"/>
2138                                                                                           <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" x="-25" y="-170"/>
2139                                                                                   </Anchors>
2140                                                                                   <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
2141                                                                                           <EdgeSize>
2142                                                                                                   <AbsValue val="16"/>
2143                                                                                           </EdgeSize>
2144                                                                                           <TileSize>
2145                                                                                                   <AbsValue val="16"/>
2146                                                                                           </TileSize>
2147                                                                                           <BackgroundInsets>
2148                                                                                                   <AbsInset left="5" right="5" top="5" bottom="5"/>
2149                                                                                           </BackgroundInsets>
2150                                                                                   </Backdrop>
2151                                                                                   <Layers>
2152                                                                                           <Layer level="OVERLAY">
2153                                                                                                   <FontString inherits="GameFontNormalMed3" text="CLASS">
2154                                                                                                           <Size x="0" y="0"/>
2155                                                                                                           <Anchors>
2156                                                                                                                   <Anchor point="TOP" x="0" y="-15"/>
2157                                                                                                           </Anchors>
2158                                                                                                   </FontString>
2159                                                                                           </Layer>
2160                                                                                   </Layers>
2161                                                                                   <Frames>
2162                                                                                           <CheckButton name="$parentClass1" inherits="EncounterClassFilterTemplate" parentKey="class1" id="1">
2163                                                                                                   <Anchors>
2164                                                                                                           <Anchor point="TOPLEFT" x="20" y="-40"/>
2165                                                                                                   </Anchors>
2166                                                                                           </CheckButton>
2167                                                                                           <CheckButton name="$parentClass2" inherits="EncounterClassFilterTemplate" parentKey="class2" id="2">
2168                                                                                                   <Anchors>
2169                                                                                                           <Anchor point="LEFT" relativeTo="$parentClass1" relativePoint="RIGHT" x="8" y="0"/>
2170                                                                                                   </Anchors>
2171                                                                                           </CheckButton>
2172                                                                                           <CheckButton name="$parentClass3" inherits="EncounterClassFilterTemplate" parentKey="class3" id="3">
2173                                                                                                   <Anchors>
2174                                                                                                           <Anchor point="LEFT" relativeTo="$parentClass2" relativePoint="RIGHT" x="8" y="0"/>
2175                                                                                                   </Anchors>
2176                                                                                           </CheckButton>
2177                                                                                           <CheckButton name="$parentClass4" inherits="EncounterClassFilterTemplate" parentKey="class4" id="4">
2178                                                                                                   <Anchors>
2179                                                                                                           <Anchor point="LEFT" relativeTo="$parentClass3" relativePoint="RIGHT" x="8" y="0"/>
2180                                                                                                   </Anchors>
2181                                                                                           </CheckButton>
2182                                                                                           <CheckButton name="$parentClass5" inherits="EncounterClassFilterTemplate" parentKey="class5" id="5">
2183                                                                                                   <Anchors>
2184                                                                                                           <Anchor point="LEFT" relativeTo="$parentClass4" relativePoint="RIGHT" x="8" y="0"/>
2185                                                                                                   </Anchors>
2186                                                                                           </CheckButton>
2187                                                                                           <CheckButton name="$parentClass6" inherits="EncounterClassFilterTemplate" parentKey="class6" id="6">
2188                                                                                                   <Anchors>
2189                                                                                                           <Anchor point="TOP" relativeTo="$parentClass1" relativePoint="BOTTOM" x="0" y="-8"/>
2190                                                                                                   </Anchors>
2191                                                                                           </CheckButton>
2192                                                                                           <CheckButton name="$parentClass7" inherits="EncounterClassFilterTemplate" parentKey="class7" id="7">
2193                                                                                                   <Anchors>
2194                                                                                                           <Anchor point="TOP" relativeTo="$parentClass2" relativePoint="BOTTOM" x="0" y="-8"/>
2195                                                                                                   </Anchors>
2196                                                                                           </CheckButton>
2197                                                                                           <CheckButton name="$parentClass8" inherits="EncounterClassFilterTemplate" parentKey="class8" id="8">
2198                                                                                                   <Anchors>
2199                                                                                                           <Anchor point="TOP" relativeTo="$parentClass3" relativePoint="BOTTOM" x="0" y="-8"/>
2200                                                                                                   </Anchors>
2201                                                                                           </CheckButton>
2202                                                                                           <CheckButton name="$parentClass9" inherits="EncounterClassFilterTemplate" parentKey="class9" id="9">
2203                                                                                                   <Anchors>
2204                                                                                                           <Anchor point="TOP" relativeTo="$parentClass4" relativePoint="BOTTOM" x="0" y="-8"/>
2205                                                                                                   </Anchors>
2206                                                                                           </CheckButton>
2207                                                                                           <CheckButton name="$parentClass10" inherits="EncounterClassFilterTemplate" parentKey="class10" id="10">
2208                                                                                                   <Anchors>
2209                                                                                                           <Anchor point="TOP" relativeTo="$parentClass5" relativePoint="BOTTOM" x="0" y="-8"/>
2210                                                                                                   </Anchors>
2211                                                                                           </CheckButton>
2212                                                                                   </Frames>
2213                                                                                   <Scripts>
2214                                                                                           <OnShow>
2215                                                                                                   self:SetFrameLevel(self:GetParent():GetFrameLevel() + 10);
2216                                                                                                   self:SetBackdropColor(0.0, 0.0, 0.0, 0.9);
2217                                                                                           </OnShow>
2218                                                                                           <OnLoad>
2219                                                                                                   local classes = {EJ_GetAvailableClasses()};
2220                                                                                                   local name, class;
2221                                                                                                   for i=1,#classes,2 do
2222                                                                                                           name = classes[i];
2223                                                                                                           class = classes[i+1];
 
2225                                                                                                           local coords = CLASS_ICON_TCOORDS[class];
2226                                                                                                           local button = self["class"..floor((i+1)/2)];
2227                                                                                                           button.name = name;
 
2229                                                                                                           button:GetNormalTexture():SetTexCoord(coords[1], coords[2], coords[3], coords[4]);
2230                                                                                                           button:GetPushedTexture():SetTexCoord(coords[1], coords[2], coords[3], coords[4]);
2231                                                                                                   end
2232                                                                                           </OnLoad>
2233                                                                                   </Scripts>
2234                                                                           </Frame>
2235                                                                           <Button name="$parentFilter" parentKey="filter" text="GEAR_FILTER">
2236                                                                                   <Size x="75" y="26"/>
2237                                                                                   <HitRectInsets>
2238                                                                                           <AbsInset left="-13" right="-13" top="0" bottom="0"/>
2239                                                                                   </HitRectInsets>
2240                                                                                   <Layers>
2241                                                                                           <Layer level="BACKGROUND">
2242                                                                                                   <Texture name="$parentUpLeft" inherits="UI-EJ-FilterButtonUp" parentKey="upLeft">
2243                                                                                                           <Size x="13" y="26"/>
2244                                                                                                           <Anchors>
2245                                                                                                                   <Anchor point="RIGHT" relativePoint="LEFT" x="0" y="0"/>
2246                                                                                                           </Anchors>
2247                                                                                                   </Texture>
2248                                                                                                   <Texture name="$parentUpRIGHT" inherits="UI-EJ-FilterButtonUp" parentKey="upRight">
2249                                                                                                           <Size x="13" y="26"/>
2250                                                                                                           <Anchors>
2251                                                                                                                   <Anchor point="LEFT" relativePoint="RIGHT" x="0" y="0"/>
2252                                                                                                           </Anchors>
2253                                                                                                   </Texture>
 
2255                                                                                                   <Texture name="$parentDownLeft" inherits="UI-EJ-FilterButtonDown" parentKey="downLeft" hidden="true">
2256                                                                                                           <Size x="13" y="26"/>
2257                                                                                                           <Anchors>
2258                                                                                                                   <Anchor point="RIGHT" relativePoint="LEFT" x="0" y="0"/>
2259                                                                                                           </Anchors>
2260                                                                                                   </Texture>
2261                                                                                                   <Texture name="$parentDownRIGHT" inherits="UI-EJ-FilterButtonDown" parentKey="downRight" hidden="true">
2262                                                                                                           <Size x="13" y="26"/>
2263                                                                                                           <Anchors>
2264                                                                                                                   <Anchor point="LEFT" relativePoint="RIGHT" x="0" y="0"/>
2265                                                                                                           </Anchors>
2266                                                                                                   </Texture>
2267                                                                                           </Layer>
2268                                                                                           <Layer level="HIGHLIGHT">
2269                                                                                                   <Texture name="$parentUpLeft" inherits="UI-EJ-FilterButtonHighlight" parentKey="highLeft">
2270                                                                                                           <Size x="13" y="26"/>
2271                                                                                                           <Anchors>
2272                                                                                                                   <Anchor point="RIGHT" relativePoint="LEFT" x="0" y="0"/>
2273                                                                                                           </Anchors>
2274                                                                                                   </Texture>
2275                                                                                                   <Texture name="$parentUpRIGHT" inherits="UI-EJ-FilterButtonHighlight" parentKey="highRight">
2276                                                                                                           <Size x="13" y="26"/>
2277                                                                                                           <Anchors>
2278                                                                                                                   <Anchor point="LEFT" relativePoint="RIGHT" x="0" y="0"/>
2279                                                                                                           </Anchors>
2280                                                                                                   </Texture>
2281                                                                                           </Layer>
2282                                                                                   </Layers>
2283                                                                                   <NormalTexture inherits="_FilterButtonUp-Mid">
2284                                                                                   </NormalTexture>
2285                                                                                   <PushedTexture inherits="_FilterButtonDown-Mid">
2286                                                                                   </PushedTexture>
2287                                                                                   <HighlightTexture inherits="_FilterButtonHighlight-Mid">
2288                                                                                   </HighlightTexture>
2289                                                                                   <NormalFont style="GameFontNormal"/>
2290                                                                                   <ButtonText>
2291                                                                                           <Anchors>
2292                                                                                                   <Anchor point="CENTER" x="0" y="0"/>
2293                                                                                           </Anchors>
2294                                                                                           <Color r="0.973" g="0.902" b="0.581"/>
2295                                                                                   </ButtonText>
2296                                                                                   <Scripts>
2297                                                                                           <OnClick>
2298                                                                                                   if not self:GetParent().classFilter:IsShown() then
2299                                                                                                           self:GetParent().classFilter:Show();
2300                                                                                                   else
2301                                                                                                           self:GetParent().classFilter:Hide();
2302                                                                                                   end
2303                                                                                           </OnClick>
2304                                                                                           <OnLoad>
2305                                                                                                   self:SetPoint("TOPLEFT", self:GetParent():GetParent(), "TOPRIGHT", -340, -10);
 
2307                                                                                                   local l, t, _, b, r = self.upLeft:GetTexCoord();
2308                                                                                                   self.upLeft:SetTexCoord(l, l + (r-l)/2, t, b);
2309                                                                                                   l, t, _, b, r = self.upRight:GetTexCoord();
2310                                                                                                   self.upRight:SetTexCoord(l + (r-l)/2, r, t, b);
 
2313                                                                                                   l, t, _, b, r = self.downLeft:GetTexCoord();
2314                                                                                                   self.downLeft:SetTexCoord(l, l + (r-l)/2, t, b);
2315                                                                                                   l, t, _, b, r = self.downRight:GetTexCoord();
2316                                                                                                   self.downRight:SetTexCoord(l + (r-l)/2, r, t, b);
 
2319                                                                                                   l, t, _, b, r = self.highLeft:GetTexCoord();
2320                                                                                                   self.highLeft:SetTexCoord(l, l + (r-l)/2, t, b);
2321                                                                                                   l, t, _, b, r = self.highRight:GetTexCoord();
2322                                                                                                   self.highRight:SetTexCoord(l + (r-l)/2, r, t, b);
2323                                                                                           </OnLoad>
2324                                                                                           <OnShow>
2325                                                                                                   self:GetParent():GetParent().encounterTitle:Hide();
2326                                                                                           </OnShow>
2327                                                                                           <OnHide>
2328                                                                                                   self:GetParent():GetParent().encounterTitle:Show();
2329                                                                                           </OnHide>
2330                                                                                           <OnMouseDown>
2331                                                                                                   self.upLeft:Hide();
2332                                                                                                   self.upRight:Hide();
 
2334                                                                                                   self.downLeft:Show();
2335                                                                                                   self.downRight:Show();
2336                                                                                           </OnMouseDown>
2337                                                                                           <OnMouseUp>
2338                                                                                                   self.upLeft:Show();
2339                                                                                                   self.upRight:Show();
 
2341                                                                                                   self.downLeft:Hide();
2342                                                                                                   self.downRight:Hide();
2343                                                                                           </OnMouseUp>
2344                                                                                   </Scripts>
2345                                                                           </Button>
2346                                                                           <Slider name="$parentScrollBar" inherits="MinimalHybridScrollBarTemplate" parentKey="scrollBar">
2347                                                                                   <Anchors>
2348                                                                                           <Anchor point="TOPRIGHT" x="0" y="-17"/>
2349                                                                                           <Anchor point="BOTTOMRIGHT" x="0" y="17"/>
2350                                                                                   </Anchors>
2351                                                                                   <Scripts>
2352                                                                                           <OnLoad>
2353                                                                                                   self.trackBG:SetVertexColor(0.2, 0.13, 0.08, 0.25);
2354                                                                                           </OnLoad>
2355                                                                                   </Scripts>
2356                                                                           </Slider>
2357                                                                   </Frames>
2358                                                                   <Scripts>
2359                                                                           <OnShow>
2360                                                                                   EncounterJournal_LootUpdate();
2361                                                                           </OnShow>
2362                                                                           <OnHide>
2363                                                                                   self.classFilter:Hide();
2364                                                                           </OnHide>
2365                                                                   </Scripts>
2366                                                           </ScrollFrame>
2367                                                   </Frames>
2368                                           </Frame>
2369                                   </Frames>
2370                           </Frame>
2371                   </Frames>
2372                   <Scripts>
2373                           <OnShow function="EncounterJournal_OnShow"/>
2374                           <OnHide function="EncounterJournal_OnHide"/>
2375                           <OnLoad function="EncounterJournal_OnLoad"/>
2376                           <OnEvent function="EncounterJournal_OnEvent"/>
2377                   </Scripts>
2378           </Frame>
2379   </Ui>
   
File: FrameXML\EquipmentFlyout.lua  
  1 EQUIPMENTFLYOUT_MAXITEMS = 23;
 
  3 EQUIPMENTFLYOUT_ONESLOT_LEFT_COORDS = { 0, 0.09765625, 0.5546875, 0.77734375 }
  4 EQUIPMENTFLYOUT_ONESLOT_RIGHT_COORDS = { 0.41796875, 0.51171875, 0.5546875, 0.77734375 }
 
  6 EQUIPMENTFLYOUT_ONESLOT_LEFTWIDTH = 25;
  7 EQUIPMENTFLYOUT_ONESLOT_RIGHTWIDTH = 24;
 
  9 EQUIPMENTFLYOUT_ONESLOT_WIDTH = 49;
  10 EQUIPMENTFLYOUT_ONESLOT_HEIGHT = 54;
 
  12 EQUIPMENTFLYOUT_ONEROW_LEFT_COORDS = { 0, 0.16796875, 0.5546875, 0.77734375 }
  13 EQUIPMENTFLYOUT_ONEROW_CENTER_COORDS = { 0.16796875, 0.328125, 0.5546875, 0.77734375 }
  14 EQUIPMENTFLYOUT_ONEROW_RIGHT_COORDS = { 0.328125, 0.51171875, 0.5546875, 0.77734375 }
 
  16 EQUIPMENTFLYOUT_MULTIROW_TOP_COORDS = { 0, 0.8359375, 0, 0.19140625 }
  17 EQUIPMENTFLYOUT_MULTIROW_MIDDLE_COORDS = { 0, 0.8359375, 0.19140625, 0.35546875 }
  18 EQUIPMENTFLYOUT_MULTIROW_BOTTOM_COORDS = { 0, 0.8359375, 0.35546875, 0.546875 }
 
  20 EQUIPMENTFLYOUT_ONEROW_HEIGHT = 54;
 
  22 EQUIPMENTFLYOUT_ONEROW_LEFT_WIDTH = 43;
  23 EQUIPMENTFLYOUT_ONEROW_CENTER_WIDTH = 41;
  24 EQUIPMENTFLYOUT_ONEROW_RIGHT_WIDTH = 47;
 
  26 EQUIPMENTFLYOUT_MULTIROW_WIDTH = 214;
 
  28 EQUIPMENTFLYOUT_MULTIROW_TOP_HEIGHT = 49;
  29 EQUIPMENTFLYOUT_MULTIROW_MIDDLE_HEIGHT = 42;
  30 EQUIPMENTFLYOUT_MULTIROW_BOTTOM_HEIGHT = 49;
 
  32 EQUIPMENTFLYOUT_PLACEINBAGS_LOCATION = 0xFFFFFFFF;
  33 EQUIPMENTFLYOUT_IGNORESLOT_LOCATION = 0xFFFFFFFE;
  34 EQUIPMENTFLYOUT_UNIGNORESLOT_LOCATION = 0xFFFFFFFD;
  35 EQUIPMENTFLYOUT_FIRST_SPECIAL_LOCATION = EQUIPMENTFLYOUT_UNIGNORESLOT_LOCATION
 
  37 EQUIPMENTFLYOUT_ITEMS_PER_ROW = 5;
  38 EQUIPMENTFLYOUT_BORDERWIDTH = 3;
  39 EQUIPMENTFLYOUT_WIDTH = 43;
  40 EQUIPMENTFLYOUT_HEIGHT = 43;
 
  42 EFITEM_WIDTH = 37;
  43 EFITEM_HEIGHT = 37;
  44 EFITEM_XOFFSET = 4;
  45 EFITEM_YOFFSET = -5;
 
  47 VERTICAL_FLYOUTS = { [16] = true, [17] = true, [18] = true }
 
  49 local itemTable = {}; -- Used for items and locations
  50 local itemDisplayTable = {} -- Used for ordering items by location
 
  52 function EquipmentFlyout_OnLoad(self)
  53         self.buttons = {};
  54 end
 
  56 function EquipmentFlyout_CreateButton()
  57         local buttons = EquipmentFlyoutFrame.buttons;
  58         local buttonAnchor = EquipmentFlyoutFrame.buttonFrame;
  59         local numButtons = #buttons;
 
  61         local button = CreateFrame("BUTTON", "EquipmentFlyoutFrameButton" .. numButtons + 1, buttonAnchor, "EquipmentFlyoutButtonTemplate");
 
  63         local pos = numButtons/EQUIPMENTFLYOUT_ITEMS_PER_ROW;
  64         if ( math.floor(pos) == pos ) then
  65                 -- This is the first button in a row.
  66                 button:SetPoint("TOPLEFT", buttonAnchor, "TOPLEFT", EQUIPMENTFLYOUT_BORDERWIDTH, -EQUIPMENTFLYOUT_BORDERWIDTH - (EFITEM_HEIGHT - EFITEM_YOFFSET)* pos);
  67         else
  68                 button:SetPoint("TOPLEFT", buttons[numButtons], "TOPRIGHT", EFITEM_XOFFSET, 0);
  69         end
 
  71         tinsert(buttons, button);
  72         return button
  73 end
 
  75 function EquipmentFlyout_OnUpdate(self, elapsed)
  76         if ( not IsModifiedClick("SHOWITEMFLYOUT") ) then
  77                 local button = self.button;
 
  79                 if ( button and button.popoutButton and button.popoutButton.flyoutLocked ) then
  80                         EquipmentFlyout_UpdateFlyout(button);
  81                 elseif ( button and button:IsMouseOver() ) then
  82                         local onEnterFunc = button:GetScript("OnEnter");
  83                         if ( onEnterFunc ) then
  84                                 onEnterFunc(button);
  85                         end
  86                 else
  87                         self:Hide();
  88                 end
  89         end
  90 end
 
  92 function EquipmentFlyout_OnShow(self)
  93         self:RegisterEvent("BAG_UPDATE");
  94         self:RegisterEvent("UNIT_INVENTORY_CHANGED");
  95 end
 
  97 function EquipmentFlyout_OnHide(self)
  98         if ( self.button and self.button.popoutButton ) then
  99                 local popoutButton = self.button.popoutButton;
  100                 popoutButton.flyoutLocked = false;
  101                 EquipmentFlyoutPopoutButton_SetReversed(popoutButton, false);
  102         end
  103         self.button = nil;
  104         self:UnregisterEvent("BAG_UPDATE");
  105         self:UnregisterEvent("UNIT_INVENTORY_CHANGED");
  106 end
 
  108 function EquipmentFlyout_OnEvent (self, event, ...)
  109         if ( event == "BAG_UPDATE" ) then
  110                 -- This spams a lot, four times when we equip an item, but we need to use it. EquipmentFlyout_Show needs to stay fast for this reason.
  111                 EquipmentFlyout_Show(self.button);
  112         elseif ( event == "UNIT_INVENTORY_CHANGED" ) then
  113                 local arg1 = ...;
  114                 if ( arg1 == "player" ) then
  115                         EquipmentFlyout_Show(self.button);
  116                 end
  117         end
  118 end
 
  120 local function _createFlyoutBG(buttonAnchor)
  121         local numBGs = buttonAnchor["numBGs"];
  122         numBGs = numBGs + 1;
  123         local texture = buttonAnchor:CreateTexture(nil, nil, "EquipmentFlyoutTexture");
  124         buttonAnchor["bg" .. numBGs] = texture;
  125         buttonAnchor["numBGs"] = numBGs;
  126         return texture;
  127 end
 
  129 function EquipmentFlyout_Show(itemButton)
  130         local id = itemButton.id or itemButton:GetID();
 
  132         local flyout = EquipmentFlyoutFrame;
  133         local buttons = flyout.buttons;
  134         local buttonAnchor = flyout.buttonFrame;
 
  136         if ( flyout.button and flyout.button ~= itemButton ) then
  137                 local popoutButton = flyout.button.popoutButton;
  138                 if ( popoutButton and popoutButton.flyoutLocked ) then
  139                         popoutButton.flyoutLocked = false;
  140                         EquipmentFlyoutPopoutButton_SetReversed(popoutButton, false);
  141                 end
  142         end
 
  144         wipe(itemDisplayTable);
  145         wipe(itemTable);
 
  147         local flyoutSettings = itemButton:GetParent().flyoutSettings;
 
  149         flyoutSettings.getItemsFunc(id, itemTable);
  150         for location, itemID in next, itemTable do
  151                 if ( location - id == ITEM_INVENTORY_LOCATION_PLAYER ) then -- Remove the currently equipped item from the list
  152                         itemTable[location] = nil;
  153                 else
  154                         tinsert(itemDisplayTable, location);
  155                 end
  156         end
 
  158         table.sort(itemDisplayTable); -- Sort by location. This ends up as: inventory, backpack, bags, bank, and bank bags.
 
  160         local numItems = #itemDisplayTable;
 
  162         for i = EQUIPMENTFLYOUT_MAXITEMS + 1, numItems do
  163                 itemDisplayTable[i] = nil;
  164         end
 
  166         numItems = min(numItems, EQUIPMENTFLYOUT_MAXITEMS);
 
  168         if ( flyoutSettings.postGetItemsFunc ) then
  169                 numItems = flyoutSettings.postGetItemsFunc(itemButton, itemDisplayTable, numItems);
  170         end
 
  172         while #buttons < numItems do -- Create any buttons we need.
  173                 EquipmentFlyout_CreateButton();
  174         end
 
  176         if ( numItems == 0 ) then
  177                 flyout:Hide();
  178                 return;
  179         end
 
  181         for i, button in ipairs(buttons) do
  182                 if ( i <= numItems ) then
  183                         button.id = id;
  184                         button.location = itemDisplayTable[i];
  185                         button:Show();
 
  187                         EquipmentFlyout_DisplayButton(button, itemButton);
  188                 else
  189                         button:Hide();
  190                 end
  191         end
 
  193         flyout:SetParent(flyoutSettings.parent);
  194         flyout:SetFrameStrata("HIGH");
  195         flyout:ClearAllPoints();
  196         flyout:SetFrameLevel(itemButton:GetFrameLevel() - 1);
  197         flyout.button = itemButton;
  198         flyout:SetPoint("TOPLEFT", itemButton, "TOPLEFT", -EQUIPMENTFLYOUT_BORDERWIDTH, EQUIPMENTFLYOUT_BORDERWIDTH);
  199         local horizontalItems = min(numItems, EQUIPMENTFLYOUT_ITEMS_PER_ROW);
  200         local relativeAnchor = itemButton.popoutButton or itemButton;
  201         if ( itemButton.verticalFlyout ) then
  202                 buttonAnchor:SetPoint("TOPLEFT", relativeAnchor, "BOTTOMLEFT", flyoutSettings.verticalAnchorX, flyoutSettings.verticalAnchorY);
  203         else
  204                 buttonAnchor:SetPoint("TOPLEFT", relativeAnchor, "TOPRIGHT", flyoutSettings.anchorX, flyoutSettings.anchorY);
  205         end
  206         buttonAnchor:SetWidth((horizontalItems * EFITEM_WIDTH) + ((horizontalItems - 1) * EFITEM_XOFFSET) + EQUIPMENTFLYOUT_BORDERWIDTH);
  207         buttonAnchor:SetHeight(EQUIPMENTFLYOUT_HEIGHT + (math.floor((numItems - 1)/EQUIPMENTFLYOUT_ITEMS_PER_ROW) * (EFITEM_HEIGHT - EFITEM_YOFFSET)));
 
  209         if ( flyout.numItems ~= numItems ) then
  210                 local texturesUsed = 0;
  211                 if ( numItems == 1 ) then
  212                         local bgTex, lastBGTex;
  213                         bgTex = buttonAnchor.bg1;
  214                         bgTex:ClearAllPoints();
  215                         bgTex:SetTexCoord(unpack(EQUIPMENTFLYOUT_ONESLOT_LEFT_COORDS));
  216                         bgTex:SetWidth(EQUIPMENTFLYOUT_ONESLOT_LEFTWIDTH);
  217                         bgTex:SetHeight(EQUIPMENTFLYOUT_ONEROW_HEIGHT);
  218                         bgTex:SetPoint("TOPLEFT", -5, 4);
  219                         bgTex:Show();
  220                         texturesUsed = texturesUsed + 1;
  221                         lastBGTex = bgTex;
 
  223                         bgTex = buttonAnchor.bg2 or _createFlyoutBG(buttonAnchor);
  224                         bgTex:ClearAllPoints();
  225                         bgTex:SetTexCoord(unpack(EQUIPMENTFLYOUT_ONESLOT_RIGHT_COORDS));
  226                         bgTex:SetWidth(EQUIPMENTFLYOUT_ONESLOT_RIGHTWIDTH);
  227                         bgTex:SetHeight(EQUIPMENTFLYOUT_ONEROW_HEIGHT);
  228                         bgTex:SetPoint("TOPLEFT", lastBGTex, "TOPRIGHT");
  229                         bgTex:Show();
  230                         texturesUsed = texturesUsed + 1;
  231                         lastBGTex = bgTex;
  232                 elseif ( numItems <= EQUIPMENTFLYOUT_ITEMS_PER_ROW ) then
  233                         local bgTex, lastBGTex;
  234                         bgTex = buttonAnchor.bg1;
  235                         bgTex:ClearAllPoints();
  236                         bgTex:SetTexCoord(unpack(EQUIPMENTFLYOUT_ONEROW_LEFT_COORDS));
  237                         bgTex:SetWidth(EQUIPMENTFLYOUT_ONEROW_LEFT_WIDTH);
  238                         bgTex:SetHeight(EQUIPMENTFLYOUT_ONEROW_HEIGHT);
  239                         bgTex:SetPoint("TOPLEFT", -5, 4);
  240                         bgTex:Show();
  241                         texturesUsed = texturesUsed + 1;
  242                         lastBGTex = bgTex;
  243                         for i = texturesUsed + 1, numItems - 1 do
  244                                 bgTex = buttonAnchor["bg"..i] or _createFlyoutBG(buttonAnchor);
  245                                 bgTex:ClearAllPoints();
  246                                 bgTex:SetTexCoord(unpack(EQUIPMENTFLYOUT_ONEROW_CENTER_COORDS));
  247                                 bgTex:SetWidth(EQUIPMENTFLYOUT_ONEROW_CENTER_WIDTH);
  248                                 bgTex:SetHeight(EQUIPMENTFLYOUT_ONEROW_HEIGHT);
  249                                 bgTex:SetPoint("TOPLEFT", lastBGTex, "TOPRIGHT");
  250                                 bgTex:Show();
  251                                 texturesUsed = texturesUsed + 1;
  252                                 lastBGTex = bgTex;
  253                         end
 
  255                         bgTex = buttonAnchor["bg"..numItems] or _createFlyoutBG(buttonAnchor);
  256                         bgTex:ClearAllPoints();
  257                         bgTex:SetTexCoord(unpack(EQUIPMENTFLYOUT_ONEROW_RIGHT_COORDS));
  258                         bgTex:SetWidth(EQUIPMENTFLYOUT_ONEROW_RIGHT_WIDTH);
  259                         bgTex:SetHeight(EQUIPMENTFLYOUT_ONEROW_HEIGHT);
  260                         bgTex:SetPoint("TOPLEFT", lastBGTex, "TOPRIGHT");
  261                         bgTex:Show();
  262                         texturesUsed = texturesUsed + 1;
  263                 elseif ( numItems > EQUIPMENTFLYOUT_ITEMS_PER_ROW ) then
  264                         local numRows = math.ceil(numItems/EQUIPMENTFLYOUT_ITEMS_PER_ROW);
  265                         local bgTex, lastBGTex;
  266                         bgTex = buttonAnchor.bg1;
  267                         bgTex:ClearAllPoints();
  268                         bgTex:SetTexCoord(unpack(EQUIPMENTFLYOUT_MULTIROW_TOP_COORDS));
  269                         bgTex:SetWidth(EQUIPMENTFLYOUT_MULTIROW_WIDTH);
  270                         bgTex:SetHeight(EQUIPMENTFLYOUT_MULTIROW_TOP_HEIGHT);
  271                         bgTex:SetPoint("TOPLEFT", -5, 4);
  272                         bgTex:Show();
  273                         texturesUsed = texturesUsed + 1;
  274                         lastBGTex = bgTex;
  275                         for i = 2, numRows - 1 do -- Middle rows
  276                                 bgTex = buttonAnchor["bg"..i] or _createFlyoutBG(buttonAnchor);
  277                                 bgTex:ClearAllPoints();
  278                                 bgTex:SetTexCoord(unpack(EQUIPMENTFLYOUT_MULTIROW_MIDDLE_COORDS));
  279                                 bgTex:SetWidth(EQUIPMENTFLYOUT_MULTIROW_WIDTH);
  280                                 bgTex:SetHeight(EQUIPMENTFLYOUT_MULTIROW_MIDDLE_HEIGHT);
  281                                 bgTex:SetPoint("TOPLEFT", lastBGTex, "BOTTOMLEFT");
  282                                 bgTex:Show();
  283                                 texturesUsed = texturesUsed + 1;
  284                                 lastBGTex = bgTex;
  285                         end
 
  287                         bgTex = buttonAnchor["bg"..numRows] or _createFlyoutBG(buttonAnchor);
  288                         bgTex:ClearAllPoints();
  289                         bgTex:SetTexCoord(unpack(EQUIPMENTFLYOUT_MULTIROW_BOTTOM_COORDS));
  290                         bgTex:SetWidth(EQUIPMENTFLYOUT_MULTIROW_WIDTH);
  291                         bgTex:SetHeight(EQUIPMENTFLYOUT_MULTIROW_BOTTOM_HEIGHT);
  292                         bgTex:SetPoint("TOPLEFT", lastBGTex, "BOTTOMLEFT");
  293                         bgTex:Show();
  294                         texturesUsed = texturesUsed + 1;
  295                         lastBGTex = bgTex;
  296                 end
 
  298                 for i = texturesUsed + 1, buttonAnchor["numBGs"] do
  299                         buttonAnchor["bg" .. i]:Hide();
  300                 end
  301                 flyout.numItems = numItems;
  302         end
 
  304         flyout:Show();
  305 end
 
  307 function EquipmentFlyout_DisplayButton(button, paperDollItemSlot)
  308         local location = button.location;
  309         if ( not location ) then
  310                 return;
  311         end
  312         if ( location >= EQUIPMENTFLYOUT_FIRST_SPECIAL_LOCATION ) then
  313                 EquipmentFlyout_DisplaySpecialButton(button, paperDollItemSlot);
  314                 return;
  315         end
 
  317         local id, name, textureName, count, durability, maxDurability, invType, locked, start, duration, enable, setTooltip = EquipmentManager_GetItemInfoByLocation(location);
 
  319         local broken = ( maxDurability and durability == 0 );
  320         if ( textureName ) then
  321                 SetItemButtonTexture(button, textureName);
  322                 SetItemButtonCount(button, count);
  323                 if ( broken ) then
  324                         SetItemButtonTextureVertexColor(button, 0.9, 0, 0);
  325                         SetItemButtonNormalTextureVertexColor(button, 0.9, 0, 0);
  326                 else
  327                         SetItemButtonTextureVertexColor(button, 1.0, 1.0, 1.0);
  328                         SetItemButtonNormalTextureVertexColor(button, 1.0, 1.0, 1.0);
  329                 end
 
  331                 CooldownFrame_SetTimer(button.cooldown, start, duration, enable);
 
  333                 button.UpdateTooltip = function () GameTooltip:SetOwner(EquipmentFlyoutFrame.buttonFrame, "ANCHOR_RIGHT", 6, -EquipmentFlyoutFrame.buttonFrame:GetHeight() - 6); setTooltip(); end;
  334                 if ( button:IsMouseOver() ) then
  335                         button.UpdateTooltip();
  336                 end
  337         else
  338                 textureName = paperDollItemSlot.backgroundTextureName;
  339                 if ( paperDollItemSlot.checkRelic and UnitHasRelicSlot("player") ) then
  340                         textureName = "Interface\\Paperdoll\\UI-PaperDoll-Slot-Relic.blp";
  341                 end
  342                 SetItemButtonTexture(button, textureName);
  343                 SetItemButtonCount(button, 0);
  344                 SetItemButtonTextureVertexColor(button, 1.0, 1.0, 1.0);
  345                 SetItemButtonNormalTextureVertexColor(button, 1.0, 1.0, 1.0);
  346                 button.cooldown:Hide();
  347                 button.UpdateTooltip = nil;
  348         end
  349 end
 
  351 function EquipmentFlyout_DisplaySpecialButton(button, paperDollItemSlot)
  352         local location = button.location;
  353         if ( location == EQUIPMENTFLYOUT_IGNORESLOT_LOCATION ) then
  354                 SetItemButtonTexture(button, "Interface\\PaperDollInfoFrame\\UI-GearManager-LeaveItem-Opaque");
  355                 SetItemButtonCount(button, nil);
  356                 button.UpdateTooltip =
  357                         function ()
  358                                 GameTooltip:SetOwner(EquipmentFlyoutFrame.buttonFrame, "ANCHOR_RIGHT", 6, -EquipmentFlyoutFrame.buttonFrame:GetHeight() - 6);
  359                                 GameTooltip:SetText(EQUIPMENT_MANAGER_IGNORE_SLOT, 1.0, 1.0, 1.0);
  360                                 if ( SHOW_NEWBIE_TIPS == "1" ) then
  361                                         GameTooltip:AddLine(NEWBIE_TOOLTIP_EQUIPMENT_MANAGER_IGNORE_SLOT, NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, 1);
  362                                 end
  363                                 GameTooltip:Show();
  364                         end;
  365                 SetItemButtonTextureVertexColor(button, 1.0, 1.0, 1.0);
  366                 SetItemButtonNormalTextureVertexColor(button, 1.0, 1.0, 1.0);
  367         elseif ( location == EQUIPMENTFLYOUT_UNIGNORESLOT_LOCATION ) then
  368                 SetItemButtonTexture(button, "Interface\\PaperDollInfoFrame\\UI-GearManager-Undo");
  369                 SetItemButtonCount(button, nil);
  370                 button.UpdateTooltip =
  371                         function ()
  372                                 GameTooltip:SetOwner(EquipmentFlyoutFrame.buttonFrame, "ANCHOR_RIGHT", 6, -EquipmentFlyoutFrame.buttonFrame:GetHeight() - 6);
  373                                 GameTooltip:SetText(EQUIPMENT_MANAGER_UNIGNORE_SLOT, 1.0, 1.0, 1.0);
  374                                 if ( SHOW_NEWBIE_TIPS == "1" ) then
  375                                         GameTooltip:AddLine(NEWBIE_TOOLTIP_EQUIPMENT_MANAGER_UNIGNORE_SLOT, NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, 1);
  376                                 end
  377                                 GameTooltip:Show();
  378                         end;
  379                 SetItemButtonTextureVertexColor(button, 1.0, 1.0, 1.0);
  380                 SetItemButtonNormalTextureVertexColor(button, 1.0, 1.0, 1.0);          
  381         elseif ( location == EQUIPMENTFLYOUT_PLACEINBAGS_LOCATION ) then
  382                 SetItemButtonTexture(button, "Interface\\PaperDollInfoFrame\\UI-GearManager-ItemIntoBag");
  383                 SetItemButtonCount(button, nil);
  384                 button.UpdateTooltip =
  385                         function ()
  386                                 GameTooltip:SetOwner(EquipmentFlyoutFrame.buttonFrame, "ANCHOR_RIGHT", 6, -EquipmentFlyoutFrame.buttonFrame:GetHeight() - 6);
  387                                 GameTooltip:SetText(EQUIPMENT_MANAGER_PLACE_IN_BAGS, 1.0, 1.0, 1.0);
  388                                 if ( SHOW_NEWBIE_TIPS == "1" ) then
  389                                         GameTooltip:AddLine(NEWBIE_TOOLTIP_EQUIPMENT_MANAGER_PLACE_IN_BAGS, NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, 1);
  390                                 end
  391                                 GameTooltip:Show();
  392                         end;
  393                 SetItemButtonTextureVertexColor(button, 1.0, 1.0, 1.0);
  394                 SetItemButtonNormalTextureVertexColor(button, 1.0, 1.0, 1.0);  
  395         end
  396         if ( button:IsMouseOver() and button.UpdateTooltip ) then
  397                 button.UpdateTooltip();
  398         end
  399 end
 
  401 function EquipmentFlyoutButton_OnEnter(self)
  402         if ( self.UpdateTooltip ) then
  403                 self.UpdateTooltip(); -- This shows the tooltip, and gets called repeatedly thereafter by GameTooltip.
  404         end
  405 end
 
  407 function EquipmentFlyoutButton_OnClick(self)
  408         local flyoutSettings = EquipmentFlyoutFrame.button:GetParent().flyoutSettings;
  409         if ( flyoutSettings.onClickFunc ) then
  410                 flyoutSettings.onClickFunc(self);
  411         end
  412         if ( EquipmentFlyoutFrame.button.popoutButton and EquipmentFlyoutFrame.button.popoutButton.flyoutLocked ) then
  413                 EquipmentFlyoutFrame:Hide();
  414         end
  415 end
 
  417 function EquipmentFlyout_UpdateFlyout(button)
  418         local id = button.id or button:GetID();
  419         if ( id ~= INVSLOT_AMMO ) then
  420                 local flyoutSettings = button:GetParent().flyoutSettings;
  421                 local hasLock = button.popoutButton and button.popoutButton.flyoutLocked;
  422                 if ( (IsModifiedClick("SHOWITEMFLYOUT") and not (EquipmentFlyoutFrame:IsVisible() and EquipmentFlyoutFrame.button == button)) or
  423                         hasLock) then
  424                         EquipmentFlyout_Show(button);
  425                 elseif ( (EquipmentFlyoutFrame:IsVisible() and EquipmentFlyoutFrame.button == button) and
  426                         not hasLock and not IsModifiedClick("SHOWITEMFLYOUT") ) then
  427                         EquipmentFlyoutFrame:Hide();
  428                 end
  429         end
  430 end
 
  432 function EquipmentFlyout_SetTooltipAnchor(button)
  433         if ( EquipmentFlyoutFrame:IsShown() ) then
  434                 GameTooltip:SetOwner(EquipmentFlyoutFrame.buttonFrame, "ANCHOR_RIGHT", 6, -EquipmentFlyoutFrame.buttonFrame:GetHeight() - 6);
  435                 return true;
  436         end
  437 end
 
  439 --
  440 -- Popouts - can only have 1 set, needs more work to be a template
  441 --
 
  443 local popoutButtons = {}
 
  445 function EquipmentFlyoutPopoutButton_OnLoad(self)
  446         tinsert(popoutButtons, self);
  447 end
 
  449 function EquipmentFlyoutPopoutButton_HideAll()
  450         local flyout = EquipmentFlyoutFrame;
  451         if ( flyout.button and flyout.button.popoutButton.flyoutLocked ) then
  452                 flyout:Hide();
  453         end
  454         for _, button in pairs(popoutButtons) do
  455                 if ( button.flyoutLocked ) then
  456                         button.flyoutLocked = false;
  457                         flyout:Hide();
  458                         EquipmentFlyoutPopoutButton_SetReversed(button, false);
  459                 end
 
  461                 button:Hide();
  462         end
  463 end
 
  465 function EquipmentFlyoutPopoutButton_ShowAll()
  466         for _, button in pairs(popoutButtons) do
  467                 button:Show();
  468         end
  469 end
 
  471 function EquipmentFlyoutPopoutButton_OnClick(self)
  472         if ( self.flyoutLocked ) then
  473                 self.flyoutLocked = false;
  474                 EquipmentFlyoutFrame:Hide();
  475                 EquipmentFlyoutPopoutButton_SetReversed(self, false);
  476         else
  477                 self.flyoutLocked = true;
  478                 EquipmentFlyout_Show(self:GetParent());
  479                 EquipmentFlyoutPopoutButton_SetReversed(self, true);
  480         end
  481 end
 
  483 function EquipmentFlyoutPopoutButton_SetReversed(self, isReversed)
  484         if ( self:GetParent().verticalFlyout ) then
  485                 if ( isReversed ) then
  486                         self:GetNormalTexture():SetTexCoord(0.15625, 0.84375, 0, 0.5);
  487                         self:GetHighlightTexture():SetTexCoord(0.15625, 0.84375, 0.5, 1);
  488                 else
  489                         self:GetNormalTexture():SetTexCoord(0.15625, 0.84375, 0.5, 0);
  490                         self:GetHighlightTexture():SetTexCoord(0.15625, 0.84375, 1, 0.5);
  491                 end
  492         else
  493                 if ( isReversed ) then
  494                         self:GetNormalTexture():SetTexCoord(0.15625, 0, 0.84375, 0, 0.15625, 0.5, 0.84375, 0.5);
  495                         self:GetHighlightTexture():SetTexCoord(0.15625, 0.5, 0.84375, 0.5, 0.15625, 1, 0.84375, 1);
  496                 else
  497                         self:GetNormalTexture():SetTexCoord(0.15625, 0.5, 0.84375, 0.5, 0.15625, 0, 0.84375, 0);
  498                         self:GetHighlightTexture():SetTexCoord(0.15625, 1, 0.84375, 1, 0.15625, 0.5, 0.84375, 0.5);
  499                 end
  500         end
  501 end
   
File: FrameXML\EquipmentFlyout.xml  
  1 <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
  2 ..\FrameXML\UI.xsd">
  3     <Script file="EquipmentFlyout.lua"/>
 
  5         <Texture name="EquipmentFlyoutTexture" file="Interface\PaperDollInfoFrame\UI-GearManager-Flyout" hidden="true" virtual="true"/>
  6         <Button name="EquipmentFlyoutButtonTemplate" inherits="ItemButtonTemplate" virtual="true">
  7                 <Frames>
  8                         <Cooldown name="$parentCooldown" parentKey="cooldown" inherits="CooldownFrameTemplate"/>
  9                 </Frames>
  10                 <Scripts>
  11                         <OnEnter function="EquipmentFlyoutButton_OnEnter"/>
  12                         <OnLeave>
  13                                 GameTooltip:Hide();
  14                                 ResetCursor();
  15                         </OnLeave>
  16                         <OnClick function="EquipmentFlyoutButton_OnClick"/>
  17                 </Scripts>
  18         </Button>
  19         <Button name="EquipmentFlyoutPopoutButtonTemplate" hidden="true" virtual="true">
  20                 <Size>
  21                         <AbsDimension x="16" y="32"/>
  22                 </Size>
  23                 <Anchors>
  24                         <Anchor point="LEFT" relativePoint="RIGHT"/>
  25                 </Anchors>
  26                 <Scripts>
  27                         <OnLoad function="EquipmentFlyoutPopoutButton_OnLoad"/>
  28                         <OnClick function="EquipmentFlyoutPopoutButton_OnClick"/>
  29                 </Scripts>
  30                 <NormalTexture file="Interface\PaperDollInfoFrame\UI-GearManager-FlyoutButton"/>
  31                 <HighlightTexture file="Interface\PaperDollInfoFrame\UI-GearManager-FlyoutButton"/>
  32         </Button>      
  33         <Frame name="EquipmentFlyoutFrame" hidden="true" enableMouse="false" frameStrata="HIGH">
  34                 <Size x="43" y="43"/>
  35                 <Layers>
  36                         <Layer level="OVERLAY">
  37                                 <Texture name="$parentHighlight" file="Interface\PaperDollInfoFrame\UI-GearManager-ItemButton-Highlight">
  38                                         <Size x="50" y="50"/>
  39                                         <Anchors>
  40                                                 <Anchor point="LEFT">
  41                                                         <Offset x="-4" y="0"/>
  42                                                 </Anchor>
  43                                         </Anchors>
  44                                         <TexCoords left="0" right="0.78125" top="0" bottom="0.78125"/>
  45                                 </Texture>
  46                         </Layer>
  47                 </Layers>
  48                 <Frames>
  49                         <Frame name="$parentButtons" frameStrata="HIGH" enableMouse="true" parentKey="buttonFrame" clampedToScreen="true">
  50                                 <Anchors>
  51                                         <Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
  52                                                 <Offset x="0" y="0"/>
  53                                         </Anchor>
  54                                 </Anchors>
  55                                 <Layers>
  56                                         <Layer level="BACKGROUND">
  57                                                 <Texture parentKey="bg1" inherits="EquipmentFlyoutTexture">
  58                                                         <Anchors>
  59                                                                 <Anchor point="TOPLEFT">
  60                                                                         <Offset x="-5" y="4"/>
  61                                                                 </Anchor>
  62                                                         </Anchors>
  63                                                 </Texture>
  64                                         </Layer>
  65                                 </Layers>
  66                                 <Scripts>
  67                                         <OnLoad>
  68                                                 self.numBGs = 1;
  69                                         </OnLoad>
  70                                 </Scripts>
  71                         </Frame>
  72                 </Frames>
  73                 <Scripts>
  74                         <OnLoad function="EquipmentFlyout_OnLoad"/>
  75                         <OnUpdate function="EquipmentFlyout_OnUpdate"/>
  76                         <OnShow function="EquipmentFlyout_OnShow"/>
  77                         <OnHide function="EquipmentFlyout_OnHide"/>
  78                         <OnEvent function="EquipmentFlyout_OnEvent"/>
  79                 </Scripts>
  80         </Frame>
  81 </Ui>
   
File: FrameXML\FloatingChatFrame.lua  
212           if ( FCF_GetCurrentChatFrame(dropDown) and FCF_GetCurrentChatFrame(dropDown).isLocked ) then
  212         local dropDownChatFrame = FCF_GetCurrentChatFrame(dropDown);
  213         if ( dropDownChatFrame and dropDownChatFrame ~= DEFAULT_CHAT_FRAME and dropDownChatFrame.isDocked ) then
  214                 info.text = UNDOCK_WINDOW;
  215         elseif ( dropDownChatFrame and dropDownChatFrame.isLocked ) then
 
  787 function FCF_RemoveAllMessagesFromChanSender(chatFrame, chanSender)
  788         local ids = ChatHistory_GetAllAccessIDsByChanSender(chanSender);
  789         for i=1, #ids do
  790                 chatFrame:RemoveMessagesByExtraData(ids[i]);
  791         end
  792 end
 
  1569         if (button == "MiddleButton") then
  1570                 if ( chatFrame and (chatFrame ~= DEFAULT_CHAT_FRAME and not IsCombatLog(chatFrame)) ) then
  1571                         if ( not chatFrame.isTemporary ) then
  1572                                 FCF_PopInWindow(self, chatFrame);
  1573                                 return;
  1574                         elseif ( chatFrame.isTemporary and (chatFrame.chatType == "WHISPER" or chatFrame.chatType == "BN_WHISPER") ) then
  1575                                 FCF_PopInWindow(self, chatFrame);
  1576                                 return;
  1577                         elseif ( chatFrame.isTemporary and (chatFrame.chatType == "BN_CONVERSATION" ) ) then
  1578                                 if ( GetCVar("conversationMode") == "popout" or GetCVar("conversationMode") == "popout_and_inline" ) then
  1579                                         FCF_LeaveConversation(self, chatFrame);
  1580                                         return;
  1581                                 else
  1582                                         FCF_PopInWindow(self, chatFrame);
  1583                                         return;
  1584                                 end
  1585                         else
  1586                                 error(format("Unhandled temporary window type. chatType: %s, chatTarget %s", tostring(chatFrame.chatType), tostring(chatFrame.chatTarget)));
  1587                         end
  1588                 end
  1589         end
   
File: FrameXML\FloatingChatFrame.xml  
9                                                   <Anchor point="TOPLEFT">
10                                                           <Offset>
11                                                                   <AbsDimension x="-2" y="3"/>
12                                                           </Offset>
13                                                   </Anchor>
14                                                   <Anchor point="TOPRIGHT">
15                                                           <Offset>
16                                                                   <AbsDimension x="2" y="3"/>
17                                                           </Offset>
18                                                   </Anchor>
19                                                   <Anchor point="BOTTOMLEFT">
20                                                           <Offset>
21                                                                   <AbsDimension x="-2" y="-6"/>
22                                                           </Offset>
23                                                   </Anchor>
24                                                   <Anchor point="BOTTOMRIGHT">
25                                                           <Offset>
26                                                                   <AbsDimension x="3" y="-6"/>
27                                                           </Offset>
28                                                   </Anchor>
  9                                                 <Anchor point="TOPLEFT" x="-2" y="3"/>
  10                                                 <Anchor point="TOPRIGHT" x="2" y="3"/>
  11                                                 <Anchor point="BOTTOMLEFT" x="-2" y="-6"/>
  12                                                 <Anchor point="BOTTOMRIGHT" x="3" y="-6"/>
 
36                                                   <Anchor point="TOPLEFT" relativeTo="$parentBackground">
37                                                           <Offset>
38                                                                   <AbsDimension x="-4" y="4"/>
39                                                           </Offset>
40                                                   </Anchor>
  20                                                 <Anchor point="TOPLEFT" relativeTo="$parentBackground" x="-4" y="4"/>
 
46                                                   <Anchor point="BOTTOMLEFT" relativeTo="$parentBackground">
47                                                           <Offset>
48                                                                   <AbsDimension x="-4" y="-4"/>
49                                                           </Offset>
50                                                   </Anchor>
  26                                                 <Anchor point="BOTTOMLEFT" relativeTo="$parentBackground" x="-4" y="-4"/>
 
57                                                   <Anchor point="TOPRIGHT" relativeTo="$parentBackground">
58                                                           <Offset>
59                                                                   <AbsDimension x="4" y="4"/>
60                                                           </Offset>
61                                                   </Anchor>
  33                                                 <Anchor point="TOPRIGHT" relativeTo="$parentBackground" x="4" y="4"/>
 
68                                                   <Anchor point="BOTTOMRIGHT" relativeTo="$parentBackground">
69                                                           <Offset>
70                                                                   <AbsDimension x="4" y="-4"/>
71                                                           </Offset>
72                                                   </Anchor>
  40                                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parentBackground" x="4" y="-4"/>
 
127                                                   <Anchor point="LEFT">
128                                                           <Offset>
129                                                                   <AbsDimension x="2" y="-1"/>
130                                                           </Offset>
131                                                   </Anchor>
  95                                                 <Anchor point="LEFT" x="2" y="-1"/>
 
149                                   <Anchor point="LEFT">
150                                           <Offset>
151                                                   <AbsDimension x="20" y="0"/>
152                                           </Offset>
153                                   </Anchor>
154                                   <Anchor point="RIGHT">
155                                           <Offset>
156                                                   <AbsDimension x="-20" y="0"/>
157                                           </Offset>
158                                   </Anchor>
  113                                 <Anchor point="LEFT" x="20" y="0"/>
  114                                 <Anchor point="RIGHT" x="-20" y="0"/>
 
169                                                   <Anchor point="TOPLEFT">
170                                                           <Offset>
171                                                                   <AbsDimension x="24" y="-5"/>
172                                                           </Offset>
173                                                   </Anchor>
  125                                                 <Anchor point="TOPLEFT" x="24" y="-5"/>
 
209                                           <Anchor point="BOTTOMRIGHT">
210                                                   <Offset>
211                                                           <AbsDimension x="0" y="-5"/>
212                                                   </Offset>
213                                           </Anchor>
  161                                         <Anchor point="BOTTOMRIGHT" x="0" y="-5"/>
 
246                                           <Anchor point="BOTTOMRIGHT">
247                                                   <Offset>
248                                                           <AbsDimension x="0" y="-5"/>
249                                                   </Offset>
250                                           </Anchor>
  194                                         <Anchor point="BOTTOMRIGHT" x="0" y="-5"/>
 
276                   <Size>
277                           <AbsDimension x="64" y="32"/>
278                   </Size>
  220                 <Size x="64" y="32"/>
 
280                           <Anchor point="BOTTOMLEFT">
281                                   <Offset>
282                                           <AbsDimension x="0" y="2"/>
283                                   </Offset>
284                           </Anchor>
  222                         <Anchor point="BOTTOMLEFT" x="0" y="2"/>
 
289                                           <Size>
290                                                   <AbsDimension x="16" y="32"/>
291                                           </Size>
  227                                         <Size x="16" y="32"/>
 
297                                           <Size>
298                                                   <AbsDimension x="44" y="32"/>
299                                           </Size>
  233                                         <Size x="44" y="32"/>
 
305                                           <Size>
306                                                   <AbsDimension x="16" y="32"/>
307                                           </Size>
  239                                         <Size x="16" y="32"/>
 
315                                           <Size>
316                                                   <AbsDimension x="16" y="32"/>
317                                           </Size>
  247                                         <Size x="16" y="32"/>
 
324                                           <Size>
325                                                   <AbsDimension x="44" y="32"/>
326                                           </Size>
  254                                         <Size x="44" y="32"/>
 
333                                           <Size>
334                                                   <AbsDimension x="16" y="32"/>
335                                           </Size>
  261                                         <Size x="16" y="32"/>
 
350                                           <Size>
351                                                   <AbsDimension x="16" y="32"/>
352                                           </Size>
  276                                         <Size x="16" y="32"/>
 
359                                           <Size>
360                                                   <AbsDimension x="44" y="32"/>
361                                           </Size>
  283                                         <Size x="44" y="32"/>
 
368                                           <Size>
369                                                   <AbsDimension x="16" y="32"/>
370                                           </Size>
  290                                         <Size x="16" y="32"/>
 
380                                   <Size>
381                                           <AbsDimension x="5" y="32"/>
382                                   </Size>
  300                                 <Size x="5" y="32"/>
 
384                                           <Anchor point="LEFT" relativeTo="$parentLeft">
385                                                   <Offset>
386                                                           <AbsDimension x="0" y="-7"/>
387                                                   </Offset>
388                                           </Anchor>
389                                           <Anchor point="RIGHT" relativeTo="$parentRight">
390                                                   <Offset>
391                                                           <AbsDimension x="0" y="-7"/>
392                                                   </Offset>
393                                           </Anchor>
  302                                         <Anchor point="LEFT" relativeTo="$parentLeft" x="0" y="-7"/>
  303                                         <Anchor point="RIGHT" relativeTo="$parentRight" x="0" y="-7"/>
 
403                                           <Anchor point="TOP">
404                                                   <Offset>
405                                                           <AbsDimension x="-80" y="-35"/>
406                                                   </Offset>
407                                           </Anchor>
  313                                         <Anchor point="TOP" x="-80" y="-35"/>
 
417                                   self:RegisterForClicks("LeftButtonUp", "RightButtonUp");
  323                                 self:RegisterForClicks("LeftButtonUp", "RightButtonUp", "MiddleButtonUp");
 
489                           <Size>
490                                   <AbsDimension x="50" y="8"/>
491                           </Size>
  395                         <Size x="50" y="8"/>
 
493                                   <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT">
494                                           <Offset>
495                                                   <AbsDimension x="0" y="-5"/>
496                                           </Offset>
497                                   </Anchor>
  397                                 <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT" x="0" y="-5"/>
 
506                   <Size>
507                           <AbsDimension x="430" y="120"/>
508                   </Size>
  406                 <Size x="430" y="120"/>
 
510                           <Anchor point="BOTTOMLEFT">
511                                   <Offset>
512                                           <AbsDimension x="100" y="100"/>
513                                   </Offset>
514                           </Anchor>
  408                         <Anchor point="BOTTOMLEFT" x="100" y="100"/>
 
542                                           <Anchor point="BOTTOMRIGHT" relativeTo="$parentBackground">
543                                                   <Offset>
544                                                           <AbsDimension x="0" y="0"/>
545                                                   </Offset>
546                                           </Anchor>
  436                                         <Anchor point="BOTTOMRIGHT" relativeTo="$parentBackground" x="0" y="0"/>
 
576                                                   <Size>
577                                                           <AbsDimension x="32" y="32"/>
578                                                   </Size>
  466                                                 <Size x="32" y="32"/>
 
580                                                           <Anchor point="BOTTOM">
581                                                                   <Offset>
582                                                                           <AbsDimension x="0" y="-7"/>
583                                                                   </Offset>
584                                                           </Anchor>
  468                                                         <Anchor point="BOTTOM" x="0" y="-7"/>
 
603                                                   <Size>
604                                                           <AbsDimension x="32" y="32"/>
605                                                   </Size>
  487                                                 <Size x="32" y="32"/>
 
607                                                           <Anchor point="BOTTOM" relativeTo="$parentBottomButton" relativePoint="TOP">
608                                                                   <Offset>
609                                                                           <AbsDimension x="0" y="-2"/>
610                                                                   </Offset>
611                                                           </Anchor>
  489                                                         <Anchor point="BOTTOM" relativeTo="$parentBottomButton" relativePoint="TOP" x="0" y="-2"/>
 
635                                                   <Size>
636                                                           <AbsDimension x="32" y="32"/>
637                                                   </Size>
  513                                                 <Size x="32" y="32"/>
 
663                                                   <Size>
664                                                           <AbsDimension x="32" y="32"/>
665                                                   </Size>
  539                                                 <Size x="32" y="32"/>
 
682                                   <Size>
683                                           <AbsDimension x="5" y="32"/>
684                                   </Size>
  556                                 <Size x="5" y="32"/>
 
686                                           <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT">
687                                                   <Offset>
688                                                           <AbsDimension x="-5" y="-2"/>
689                                                   </Offset>
690                                           </Anchor>
691                                           <Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT">
692                                                   <Offset>
693                                                           <AbsDimension x="5" y="-2"/>
694                                                   </Offset>
695                                           </Anchor>
  558                                         <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT" x="-5" y="-2"/>
  559                                         <Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT" x="5" y="-2"/>
 
776                                                   <Anchor point="LEFT">
777                                                           <Offset>
778                                                                   <AbsDimension x="12" y="-1"/>
779                                                           </Offset>
780                                                   </Anchor>
  640                                                 <Anchor point="LEFT" x="12" y="-1"/>
 
808                                   <Size>
809                                           <AbsDimension x="25" y="25"/>
810                                   </Size>
  668                                 <Size x="25" y="25"/>
 
812                                           <Anchor point="RIGHT">
813                                                   <Offset>
814                                                           <AbsDimension x="-3" y="0"/>
815                                                   </Offset>
816                                           </Anchor>
  670                                         <Anchor point="RIGHT" x="-3" y="0"/>
 
848                           <Size>
849                                   <AbsDimension x="0" y="8"/>
850                           </Size>
  702                         <Size x="0" y="8"/>
 
872                   <Size>
873                           <AbsDimension x="430" y="120"/>
874                   </Size>
  724                 <Size x="430" y="120"/>
 
876                           <Anchor point="BOTTOMLEFT">
877                                   <Offset>
878                                           <AbsDimension x="32" y="95"/>
879                                   </Offset>
880                           </Anchor>
  726                         <Anchor point="BOTTOMLEFT" x="32" y="95"/>
 
906                   <Size>
907                           <AbsDimension x="32" y="32"/>
908                   </Size>
  752                 <Size x="32" y="32"/>
 
928                   <Size>
929                           <AbsDimension x="32" y="32"/>
930                   </Size>
  772                 <Size x="32" y="32"/>
   
File: FrameXML\FontStyles.xml  
  151         <Font name="NumberFontNormalGray" inherits="NumberFont_Outline_Med" virtual="true" >
  152                 <Color r="0.6" g="0.6" b="0.6"/>
  153         </Font>
   
File: FrameXML\FrameXML.toc  
2   ## Interface: 40200
  2 ## Interface: 40300
 
  31 ModelFrames.xml
 
  70 EquipmentFlyout.xml
 
  108 ScrollOfResurrection.xml
 
128   DressUpFrame.xml
 
  137 RaidFinder.xml
 
163   EncounterJournal.xml
   
File: FrameXML\FriendsFrame.lua  
72   FRIENDSFRAME_SUBFRAMES = { "FriendsListFrame", "IgnoreListFrame", "PendingListFrame", "WhoFrame", "ChannelFrame", "RaidFrame" };
  72 FRIENDSFRAME_SUBFRAMES = { "FriendsListFrame", "IgnoreListFrame", "PendingListFrame", "WhoFrame", "ChannelFrame", "LFRParentFrame" };
 
80           end
81   end
 
83   function FriendsFrame_SummonButton_OnEvent (self, event, ...)
84           if ( event == "SPELL_UPDATE_COOLDOWN" and self:GetParent().id ) then
85                   FriendsFrame_SummonButton_Update(self);
 
  209         self:RegisterEvent("SPELL_UPDATE_COOLDOWN");
 
  231         --Create lists of buttons for various subframes
  232         for i = 2, 19 do
  233                 local button = CreateFrame("Button", "FriendsFrameIgnoreButton"..i, IgnoreListFrame, "FriendsFrameIgnoreButtonTemplate");
  234                 button:SetPoint("TOP", _G["FriendsFrameIgnoreButton"..(i-1)], "BOTTOM");
  235         end
  236         for i = 2, 17 do
  237                 local button = CreateFrame("Button", "WhoFrameButton"..i, WhoFrame, "FriendsFrameWhoButtonTemplate");
  238                 button:SetID(i);
  239                 button:SetPoint("TOP", _G["WhoFrameButton"..(i-1)], "BOTTOM");
  240         end
 
  255                 ButtonFrameTemplate_ShowButtonBar(FriendsFrame);
  256                 FriendsFrameInset:SetPoint("TOPLEFT", 4, -83);
 
251                           FriendsFrameTopLeft:SetTexture("Interface\\FriendsFrame\\UI-FriendsFrame-TopLeft-bnet");
252                           FriendsFrameTopRight:SetTexture("Interface\\FriendsFrame\\UI-FriendsFrame-TopRight-bnet");
253                           FriendsFrameBottomLeft:SetTexture("Interface\\FriendsFrame\\UI-FriendsFrameMute-BotLeft-bnet");
254                           FriendsFrameBottomRight:SetTexture("Interface\\FriendsFrame\\UI-FriendsFrameMute-BotRight-bnet");
 
258                           FriendsFrameTopLeft:SetTexture("Interface\\FriendsFrame\\UI-FriendsFrame-TopLeft-bnet");
259                           FriendsFrameTopRight:SetTexture("Interface\\FriendsFrame\\UI-FriendsFrame-TopRight-bnet");             
260                           FriendsFrameBottomRight:SetTexture("Interface\\FriendsFrame\\UI-FriendsFrame-Pending-BotRight");
261                           FriendsFrameBottomLeft:SetTexture("Interface\\FriendsFrame\\UI-FriendsFrame-Pending-BotLeft");
 
265                           FriendsFrameTopLeft:SetTexture("Interface\\FriendsFrame\\UI-FriendsFrame-TopLeft-bnet");
266                           FriendsFrameTopRight:SetTexture("Interface\\FriendsFrame\\UI-FriendsFrame-TopRight-bnet");
 
269                                   FriendsFrameBottomLeft:SetTexture("Interface\\FriendsFrame\\UI-FriendsFrameThree-BotLeft-bnet");
270                                   FriendsFrameBottomRight:SetTexture("Interface\\FriendsFrame\\UI-FriendsFrameThree-BotRight-bnet");
 
275                                   FriendsFrameBottomLeft:SetTexture("Interface\\FriendsFrame\\UI-FriendsFrameMute-BotLeft-bnet");
276                                   FriendsFrameBottomRight:SetTexture("Interface\\FriendsFrame\\UI-FriendsFrameMute-BotRight-bnet");
 
  283                         ButtonFrameTemplate_ShowButtonBar(FriendsFrame);
  284                         FriendsFrameInset:SetPoint("TOPLEFT", 4, -80);
 
288                           FriendsFrameTopLeft:SetTexture("Interface\\ClassTrainerFrame\\UI-ClassTrainer-TopLeft");
289                           FriendsFrameTopRight:SetTexture("Interface\\ClassTrainerFrame\\UI-ClassTrainer-TopRight");
290                           FriendsFrameBottomLeft:SetTexture("Interface\\FriendsFrame\\WhoFrame-BotLeft");
291                           FriendsFrameBottomRight:SetTexture("Interface\\FriendsFrame\\WhoFrame-BotRight");
 
  290                         ButtonFrameTemplate_ShowButtonBar(FriendsFrame);
  291                         FriendsFrameInset:SetPoint("TOPLEFT", 4, -60);
 
297                           FriendsFrameTopLeft:SetTexture("Interface\\PaperDollInfoFrame\\UI-Character-General-TopLeft");
298                           FriendsFrameTopRight:SetTexture("Interface\\PaperDollInfoFrame\\UI-Character-General-TopRight");
299                           FriendsFrameBottomLeft:SetTexture("Interface\\FriendsFrame\\UI-ChannelFrame-BotLeft");
300                           FriendsFrameBottomRight:SetTexture("Interface\\FriendsFrame\\UI-ChannelFrame-BotRight");
 
  296                         ButtonFrameTemplate_ShowButtonBar(FriendsFrame);
  297                         FriendsFrameInset:SetPoint("TOPLEFT", 4, -60);
 
305                           FriendsFrameTopLeft:SetTexture("Interface\\PaperDollInfoFrame\\UI-Character-General-TopLeft");
306                           FriendsFrameTopRight:SetTexture("Interface\\PaperDollInfoFrame\\UI-Character-General-TopRight");
307                           FriendsFrameBottomLeft:SetTexture("Interface\\PaperDollInfoFrame\\UI-Character-General-BottomLeft");
308                           FriendsFrameBottomRight:SetTexture("Interface\\PaperDollInfoFrame\\UI-Character-General-BottomRight");
309                           FriendsFrameTitleText:SetText(RAID);
310                           FriendsFrame_ShowSubFrame("RaidFrame");
  299                         FriendsFrameTitleText:SetText(LOOKING_FOR_RAID);
  300                         FriendsFrame_ShowSubFrame("LFRParentFrame");
  301                         LFRFrame_SetActiveTab(LFRParentFrame.activeTab);
 
866           if ( event == "FRIENDLIST_SHOW" ) then
  857         if ( event == "SPELL_UPDATE_COOLDOWN" and self:IsShown() ) then
  858                 local buttons = FriendsFrameFriendsScrollFrame.buttons;
  859                 for _, button in pairs(buttons) do
  860                         if ( button.summonButton:IsShown() ) then
  861                                 FriendsFrame_SummonButton_Update(button.summonButton);
  862                         end
  863                 end
  864         elseif ( event == "FRIENDLIST_SHOW" ) then
 
  1087 function OpenFriendsFrame(tab)
  1088         if ( not tab ) then
  1089                 ShowUIPanel(FriendsFrame);
  1090         else
  1091                 PanelTemplates_SetTab(FriendsFrame, tab);
  1092                 if ( FriendsFrame:IsShown() ) then
  1093                         FriendsFrame_OnShow();
  1094                 else
  1095                         ShowUIPanel(FriendsFrame);
  1096                 end
  1097         end
  1098 end
 
  1332                                 button.soRButton:Hide();
 
1323                                   local presenceID, givenName, surname, toonName, toonID, client, isOnline, lastOnline, isAFK, isDND, messageText, noteText = BNGetFriendInfo(FriendButtons[index].id);
  1335                                 local presenceID, givenName, surname, toonName, toonID, client, isOnline, lastOnline, isAFK, isDND, messageText, noteText, isRIDFriend, messageTime, canSoR = BNGetFriendInfo(FriendButtons[index].id);
 
  1337                                 if ( givenName and surname ) then
  1338                                         if ( toonName ) then
  1339                                                 if ( client == BNET_CLIENT_WOW and CanCooperateWithToon(toonID, hasTravelPass) ) then
  1340                                                         nameText = string.format(BATTLENET_NAME_FORMAT, givenName, surname).." "..FRIENDS_WOW_NAME_COLOR_CODE.."("..toonName..")";
  1341                                                 else
  1342                                                         if ( ENABLE_COLORBLIND_MODE == "1" ) then
  1343                                                                 toonName = toonName..CANNOT_COOPERATE_LABEL;
  1344                                                         end
  1345                                                         nameText = string.format(BATTLENET_NAME_FORMAT, givenName, surname).." "..FRIENDS_OTHER_NAME_COLOR_CODE.."("..toonName..")";
  1346                                                 end
  1347                                         else
  1348                                                 nameText = string.format(BATTLENET_NAME_FORMAT, givenName, surname);
  1349                                         end
  1350                                 else
  1351                                         nameText = UNKNOWN;
  1352                                 end
 
1369                                   if ( givenName and surname ) then
1370                                           if ( toonName ) then
1371                                                   if ( client == BNET_CLIENT_WOW and CanCooperateWithToon(toonID, hasTravelPass) ) then
1372                                                           nameText = string.format(BATTLENET_NAME_FORMAT, givenName, surname).." "..FRIENDS_WOW_NAME_COLOR_CODE.."("..toonName..")";
1373                                                   else
1374                                                           if ( ENABLE_COLORBLIND_MODE == "1" ) then
1375                                                                   toonName = toonName..CANNOT_COOPERATE_LABEL;
1376                                                           end
1377                                                           nameText = string.format(BATTLENET_NAME_FORMAT, givenName, surname).." "..FRIENDS_OTHER_NAME_COLOR_CODE.."("..toonName..")";
1378                                                   end
1379                                           else
1380                                                   nameText = string.format(BATTLENET_NAME_FORMAT, givenName, surname);
1381                                           end
  1397                                 if ( canSoR ) then
  1398                                         button.soRButton:Show();
  1399                                         button.soRButton.type = "bn";
  1400                                         button.soRButton.target = presenceID;
  1401                                         button.soRButton.text = nameText;
 
1383                                           nameText = UNKNOWN;
  1403                                         button.soRButton:Hide();
   
File: FrameXML\FriendsFrame.xml  
26                   <Size>
27                           <AbsDimension x="302" y="16"/>
28                   </Size>
  26                 <Size x="302" y="16"/>
 
41                   <Size>
42                           <AbsDimension x="298" y="20"/>
43                   </Size>
  39                 <Size x="298" y="20"/>
 
49                                                   <Anchor point="TOPLEFT">
50                                                           <Offset>
51                                                                   <AbsDimension x="0" y="0"/>
52                                                           </Offset>
53                                                   </Anchor>
54                                                   <Anchor point="BOTTOMRIGHT">
55                                                           <Offset>
56                                                                   <AbsDimension x="0" y="2"/>
57                                                           </Offset>
58                                                   </Anchor>
  45                                                 <Anchor point="TOPLEFT" x="0" y="0"/>
  46                                                 <Anchor point="BOTTOMRIGHT" x="0" y="2"/>
 
65                                           <Size>
66                                                   <AbsDimension x="16" y="16"/>
67                                           </Size>
  53                                         <Size x="16" y="16"/>
 
69                                                   <Anchor point="TOPLEFT">
70                                                           <Offset>
71                                                                   <AbsDimension x="4" y="-2"/>
72                                                           </Offset>
73                                                   </Anchor>
  55                                                 <Anchor point="TOPLEFT" x="4" y="-2"/>
 
77                                           <Size>
78                                                   <AbsDimension x="28" y="28"/>
79                                           </Size>
  59                                         <Size x="28" y="28"/>
 
81                                                   <Anchor point="TOPRIGHT">
82                                                           <Offset>
83                                                                   <AbsDimension x="-2" y="-2"/>
84                                                           </Offset>
85                                                   </Anchor>
  61                                                 <Anchor point="TOPRIGHT" x="-2" y="-2"/>
 
89                                           <Size>
90                                                   <AbsDimension x="248" y="12"/>
91                                           </Size>
  65                                         <Size x="248" y="12"/>
 
93                                                   <Anchor point="TOPLEFT">
94                                                           <Offset>
95                                                                   <AbsDimension x="20" y="-3"/>
96                                                           </Offset>
97                                                   </Anchor>
  67                                                 <Anchor point="TOPLEFT" x="20" y="-3"/>
 
102                                           <Size>
103                                                   <AbsDimension x="260" y="10"/>
104                                           </Size>
  72                                         <Size x="260" y="10"/>
 
106                                                   <Anchor point="TOPLEFT">
107                                                           <Offset>
108                                                                   <AbsDimension x="20" y="-5"/>
109                                                           </Offset>
110                                                   </Anchor>
  74                                                 <Anchor point="TOPLEFT" x="20" y="-5"/>
 
115                                           <Size>
116                                                   <AbsDimension x="260" y="10"/>
117                                           </Size>                        
  79                                         <Size x="260" y="10"/>
 
127                                           <Size>
128                                                   <AbsDimension x="250" y="12"/>
129                                           </Size>                                                        
  89                                         <Size x="250" y="12"/>
 
135                                           <Size>
136                                                   <AbsDimension x="16" y="16"/>
137                                           </Size>
  95                                         <Size x="16" y="16"/>
 
181                                           <Anchor point="TOPRIGHT">
182                                                   <Offset x="-4" y="-4"/>
183                                           </Anchor>
  139                                         <Anchor point="TOPRIGHT" x="-4" y="-4"/>
 
192                                                           <Size>
193                                                                   <AbsDimension x="32" y="10"/>
194                                                           </Size>
  148                                                         <Size x="32" y="10"/>
 
196                                                                   <Anchor point="TOPLEFT">
197                                                                           <Offset>
198                                                                                   <AbsDimension x="-2" y="-2"/>
199                                                                           </Offset>
200                                                                   </Anchor>
  150                                                                 <Anchor point="TOPLEFT" x="-2" y="-2"/>
 
205                                                                   <Anchor point="BOTTOMRIGHT">
206                                                                           <Offset>
207                                                                                   <AbsDimension x="-2" y="2"/>
208                                                                           </Offset>
209                                                                   </Anchor>
  155                                                                 <Anchor point="BOTTOMRIGHT" x="-2" y="2"/>
 
215                                                           <Size>
216                                                                   <AbsDimension x="32" y="10"/>
217                                                           </Size>
  161                                                         <Size x="32" y="10"/>
 
219                                                                   <Anchor point="BOTTOM">
220                                                                           <Offset>
221                                                                                   <AbsDimension x="0" y="2"/>
222                                                                           </Offset>
223                                                                   </Anchor>
  163                                                                 <Anchor point="BOTTOM" x="0" y="2"/>
 
232                                                           <Anchor point="CENTER">
233                                                                   <Offset>
234                                                                           <AbsDimension x="0" y="-1"/>
235                                                                   </Offset>
236                                                           </Anchor>
  172                                                         <Anchor point="CENTER" x="0" y="-1"/>
 
243                                                   self:RegisterEvent("SPELL_UPDATE_COOLDOWN");
 
248                                           <OnEvent>
249                                                   FriendsFrame_SummonButton_OnEvent(self, event, ...);
250                                           </OnEvent>
 
  205                         <Button name="$parentSoRButton" inherits="ScrollOfResurrectionButtonTemplate" parentKey="soRButton">
  206                                 <Size x="22" y="22"/>
  207                                 <Anchors>
  208                                         <Anchor point="RIGHT" relativeTo="$parentGameIcon" relativePoint="LEFT" x="-4" y="-1"/>
  209                                 </Anchors>
  210                         </Button>
 
495                   <Size>
496                           <AbsDimension x="298" y="16"/>
497                   </Size>
  391                 <Size x="298" y="16"/>
 
501                                           <Size>
502                                                   <AbsDimension x="288" y="12"/>
503                                           </Size>
  395                                         <Size x="288" y="12"/>
 
505                                                   <Anchor point="LEFT">
506                                                           <Offset>
507                                                                   <AbsDimension x="10" y="1"/>
508                                                           </Offset>
509                                                   </Anchor>
  397                                                 <Anchor point="LEFT" x="10" y="1"/>
 
523                   <Size>
524                           <AbsDimension x="298" y="82"/>
525                   </Size>
  411                 <Size x="298" y="82"/>
 
540                                           <Size>
541                                                   <AbsDimension x="290" y="60"/>
542                                           </Size>
  426                                         <Size x="290" y="60"/>
 
544                                                   <Anchor point="TOP">
545                                                           <Offset>
546                                                                   <AbsDimension x="0" y="5"/>
547                                                           </Offset>
548                                                   </Anchor>
  428                                                 <Anchor point="TOP" x="0" y="5"/>
 
554                                           <Size>
555                                                   <AbsDimension x="235" y="10"/>
556                                           </Size>
  434                                         <Size x="235" y="10"/>
 
558                                                   <Anchor point="TOPLEFT">
559                                                           <Offset>
560                                                                   <AbsDimension x="12" y="-7"/>
561                                                           </Offset>
562                                                   </Anchor>
  436                                                 <Anchor point="TOPLEFT" x="12" y="-7"/>
 
568                                                   <Anchor point="TOPLEFT">
569                                                           <Offset>
570                                                                   <AbsDimension x="20" y="-30"/>
571                                                           </Offset>
572                                                   </Anchor>
  442                                                 <Anchor point="TOPLEFT" x="20" y="-30"/>
 
577                                           <Size>
578                                                   <AbsDimension x="260" y="0"/>
579                                           </Size>
  447                                         <Size x="260" y="0"/>
 
581                                                   <Anchor point="TOPLEFT" relativeTo="$parentSent" relativePoint="BOTTOMLEFT">
582                                                           <Offset>
583                                                                   <AbsDimension x="0" y="-6"/>
584                                                           </Offset>
585                                                   </Anchor>
  449                                                 <Anchor point="TOPLEFT" relativeTo="$parentSent" relativePoint="BOTTOMLEFT" x="0" y="-6"/>
 
593                                   <Size>
594                                           <AbsDimension x="290" y="60"/>
595                                   </Size>
  457                                 <Size x="290" y="60"/>
 
597                                           <Anchor point="TOP">
598                                                   <Offset>
599                                                           <AbsDimension x="0" y="5"/>
600                                                   </Offset>
601                                           </Anchor>
  459                                         <Anchor point="TOP" x="0" y="5"/>
 
617                                   <Size>
618                                           <AbsDimension x="98" y="22"/>
619                                   </Size>
  475                                 <Size x="98" y="22"/>
 
631                                   <Size>
632                                           <AbsDimension x="98" y="22"/>
633                                   </Size>
  487                                 <Size x="98" y="22"/>
 
645                                   <Size>
646                                           <AbsDimension x="17" y="14"/>
647                                   </Size>
  499                                 <Size x="17" y="14"/>
 
654                                                           <Size>
655                                                                   <AbsDimension x="28" y="28"/>
656                                                           </Size>
  506                                                         <Size x="28" y="28"/>
 
685                                   <Size>
686                                           <AbsDimension x="16" y="14"/>
687                                   </Size>
  535                                 <Size x="16" y="14"/>
 
694                                                           <Size>
695                                                                   <AbsDimension x="28" y="28"/>
696                                                           </Size>
  542                                                         <Size x="28" y="28"/>
 
733                   <Size>
734                           <AbsDimension x="248" y="16"/>
735                   </Size>
  579                 <Size x="248" y="16"/>
 
739                                           <Size>
740                                                   <AbsDimension x="240" y="16"/>
741                                           </Size>
  583                                         <Size x="240" y="16"/>
 
743                                                   <Anchor point="LEFT">
744                                                           <Offset>
745                                                                   <AbsDimension x="6" y="1"/>
746                                                           </Offset>
747                                                   </Anchor>
  585                                                 <Anchor point="LEFT" x="6" y="1"/>
 
758                   <Size>
759                           <AbsDimension x="298" y="16"/>
760                   </Size>
  596                 <Size x="298" y="16"/>
 
764                                           <Size>
765                                                   <AbsDimension x="88" y="14"/>
766                                           </Size>
  600                                         <Size x="88" y="14"/>
 
768                                                   <Anchor point="TOPLEFT">
769                                                           <Offset>
770                                                                   <AbsDimension x="10" y="-3"/>
771                                                           </Offset>
772                                                   </Anchor>
  602                                                 <Anchor point="TOPLEFT" x="10" y="-3"/>
 
776                                           <Size>
777                                                   <AbsDimension x="95" y="14"/>
778                                           </Size>
  606                                         <Size x="95" y="14"/>
 
780                                                   <Anchor point="LEFT" relativeTo="$parentName" relativePoint="RIGHT">
781                                                           <Offset>
782                                                                   <AbsDimension x="0" y="0"/>
783                                                           </Offset>
784                                                   </Anchor>
  608                                                 <Anchor point="LEFT" relativeTo="$parentName" relativePoint="RIGHT" x="0" y="0"/>
 
788                                           <Size>
789                                                   <AbsDimension x="20" y="14"/>
790                                           </Size>
  612                                         <Size x="20" y="14"/>
 
792                                                   <Anchor point="LEFT" relativeTo="$parentVariable" relativePoint="RIGHT">
793                                                           <Offset>
794                                                                   <AbsDimension x="2" y="0"/>
795                                                           </Offset>
796                                                   </Anchor>
  614                                                 <Anchor point="LEFT" relativeTo="$parentVariable" relativePoint="RIGHT" x="2" y="0"/>
 
800                                           <Size>
801                                                   <AbsDimension x="80" y="8"/>
802                                           </Size>
  618                                         <Size x="80" y="8"/>
 
804                                                   <Anchor point="LEFT" relativeTo="$parentLevel" relativePoint="RIGHT">
805                                                           <Offset>
806                                                                   <AbsDimension x="12" y="0"/>
807                                                           </Offset>
808                                                   </Anchor>
  620                                                 <Anchor point="LEFT" relativeTo="$parentLevel" relativePoint="RIGHT" x="12" y="0"/>
 
837                           <Size>
838                                   <AbsDimension x="298" y="16"/>
839                           </Size>
  649                         <Size x="298" y="16"/>
 
841                                   <Anchor point="TOP">
842                                           <Offset>
843                                                   <AbsDimension x="5" y="-2"/>
844                                           </Offset>
845                                   </Anchor>
  651                                 <Anchor point="TOP" x="5" y="-2"/>
 
850                   <Size>
851                           <AbsDimension x="10" y="24"/>
852                   </Size>
  656                 <Size x="10" y="24"/>
 
856                                           <Size>
857                                                   <AbsDimension x="5" y="24"/>
858                                           </Size>
  660                                         <Size x="5" y="24"/>
 
865                                           <Size>
866                                                   <AbsDimension x="53" y="24"/>
867                                           </Size>
  667                                         <Size x="53" y="24"/>
 
874                                           <Size>
875                                                   <AbsDimension x="4" y="24"/>
876                                           </Size>
  674                                         <Size x="4" y="24"/>
 
894                                   <Anchor point="LEFT">
895                                           <Offset>
896                                                   <AbsDimension x="8" y="0"/>
897                                           </Offset>
898                                   </Anchor>
  692                                 <Anchor point="LEFT" x="8" y="0"/>
 
904                                   <Anchor point="TOPLEFT" relativeTo="$parentLeft">
905                                           <Offset>
906                                                   <AbsDimension x="-2" y="5"/>
907                                           </Offset>
908                                   </Anchor>
909                                   <Anchor point="BOTTOMRIGHT" relativeTo="$parentRight">
910                                           <Offset>
911                                                   <AbsDimension x="2" y="-7"/>
912                                           </Offset>
913                                   </Anchor>
  698                                 <Anchor point="TOPLEFT" relativeTo="$parentLeft" x="-2" y="5"/>
  699                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parentRight" x="2" y="-7"/>
 
926           <Frame name="FriendsFrame" toplevel="true" parent="UIParent" movable="true" enableMouse="true" hidden="true">
927                   <Size>
928                           <AbsDimension x="384" y="512"/>
929                   </Size>
930                   <Anchors>
931                           <Anchor point="TOPLEFT">
932                                   <Offset>
933                                           <AbsDimension x="0" y="-104"/>
934                                   </Offset>
935                           </Anchor>
936                   </Anchors>
937                   <HitRectInsets>
938                           <AbsInset left="0" right="30" top="0" bottom="45"/>
939                   </HitRectInsets>
  712         <Frame name="FriendsFrame" toplevel="true" parent="UIParent" movable="true" enableMouse="true" hidden="true" inherits="ButtonFrameTemplate">
 
941                           <Layer level="BACKGROUND">
  714                         <Layer level="OVERLAY" textureSubLevel="-1">
 
943                                           <Size>
944                                                   <AbsDimension x="60" y="60"/>
945                                           </Size>
  716                                         <Size x="60" y="60"/>
 
947                                                   <Anchor point="TOPLEFT">
948                                                           <Offset>
949                                                                   <AbsDimension x="7" y="-6"/>
950                                                           </Offset>
951                                                   </Anchor>
  718                                                 <Anchor point="TOPLEFT" x="-5" y="7"/>
 
955                           <Layer level="ARTWORK">
956                                   <Texture name="FriendsFrameTopLeft" file="Interface\FriendsFrame\UI-FriendsFrame-TopLeft-bnet">
957                                           <Size>
958                                                   <AbsDimension x="256" y="256"/>
959                                           </Size>
960                                           <Anchors>
961                                                   <Anchor point="TOPLEFT">
962                                                           <Offset>
963                                                                   <AbsDimension x="0" y="0"/>
964                                                           </Offset>
965                                                   </Anchor>
966                                           </Anchors>
967                                   </Texture>
968                                   <Texture name="FriendsFrameTopRight" file="Interface\FriendsFrame\UI-FriendsFrame-TopRight-bnet">
969                                           <Size>
970                                                   <AbsDimension x="128" y="256"/>
971                                           </Size>
972                                           <Anchors>
973                                                   <Anchor point="TOPRIGHT">
974                                                           <Offset>
975                                                                   <AbsDimension x="0" y="0"/>
976                                                           </Offset>
977                                                   </Anchor>
978                                           </Anchors>
979                                   </Texture>
980                                   <Texture name="FriendsFrameBottomLeft" file="Interface\FriendsFrame\UI-FriendsFrame-BotLeft-bnet">
981                                           <Size>
982                                                   <AbsDimension x="256" y="256"/>
983                                           </Size>
984                                           <Anchors>
985                                                   <Anchor point="BOTTOMLEFT">
986                                                           <Offset>
987                                                                   <AbsDimension x="0" y="0"/>
988                                                           </Offset>
989                                                   </Anchor>
990                                           </Anchors>
991                                   </Texture>
992                                   <Texture name="FriendsFrameBottomRight" file="Interface\FriendsFrame\UI-FriendsFrame-BotRight-bnet">
993                                           <Size>
994                                                   <AbsDimension x="128" y="256"/>
995                                           </Size>
996                                           <Anchors>
997                                                   <Anchor point="BOTTOMRIGHT">
998                                                           <Offset>
999                                                                   <AbsDimension x="0" y="0"/>
1000                                                           </Offset>
1001                                                   </Anchor>
1002                                           </Anchors>
1003                                   </Texture>
1004                           </Layer>
 
1007                                           <Size>
1008                                                   <AbsDimension x="250" y="16"/>
1009                                           </Size>
  724                                         <Size x="250" y="16"/>
 
1011                                                   <Anchor point="TOP">
1012                                                           <Offset>
1013                                                                   <AbsDimension x="3" y="-16"/>
1014                                                           </Offset>
1015                                                   </Anchor>
  726                                                 <Anchor point="BOTTOM" x="3" y="-16"/>
 
1027                           <Button name="FriendsFrameCloseButton" inherits="UIPanelCloseButton">
1028                                   <Anchors>
1029                                           <Anchor point="TOPRIGHT">
1030                                                   <Offset>
1031                                                           <AbsDimension x="-30" y="-8"/>
1032                                                   </Offset>
1033                                           </Anchor>
1034                                   </Anchors>
1035                           </Button>
 
1039                                                   <Size>
1040                                                           <AbsDimension x="270" y="32"/>
1041                                                   </Size>
  741                                                 <Size x="270" y="32"/>
 
1043                                                           <Anchor point="TOPLEFT">
1044                                                                   <Offset>
1045                                                                           <AbsDimension x="74" y="-40"/>
1046                                                                   </Offset>
1047                                                           </Anchor>
  743                                                         <Anchor point="TOPLEFT" x="61" y="-27"/>
 
1063                                                                           <Size>
1064                                                                                   <AbsDimension x="28" y="28"/>
1065                                                                           </Size>
  759                                                                         <Size x="28" y="28"/>
 
1087                                                           <Anchor point="TOPLEFT">
1088                                                                   <Offset>
1089                                                                           <AbsDimension x="56" y="-40"/>
1090                                                                   </Offset>
1091                                                           </Anchor>
  781                                                         <Anchor point="TOPLEFT" x="43" y="-27"/>
 
1097                                                                                   <Anchor point="LEFT">
1098                                                                                           <Offset>
1099                                                                                                   <AbsDimension x="24" y="1"/>
1100                                                                                           </Offset>
1101                                                                                   </Anchor>
  787                                                                                 <Anchor point="LEFT" x="24" y="1"/>
 
1108                                                                   <Size>
1109                                                                           <AbsDimension x="22" y="23"/>
1110                                                                   </Size>
  794                                                                 <Size x="22" y="23"/>
 
1128                                                   <Size>
1129                                                           <AbsDimension x="190" y="20"/>
1130                                                   </Size>
  812                                                 <Size x="190" y="20"/>
 
1132                                                           <Anchor point="LEFT" relativeTo="FriendsFrameStatusDropDown" relativePoint="RIGHT">
1133                                                                   <Offset x="14" y="2"/>
1134                                                           </Anchor>
  814                                                         <Anchor point="LEFT" relativeTo="FriendsFrameStatusDropDown" relativePoint="RIGHT" x="14" y="2"/>
 
1139                                                                           <Size>
1140                                                                                   <AbsDimension x="8" y="20"/>
1141                                                                           </Size>
  819                                                                         <Size x="8" y="20"/>
 
1143                                                                                   <Anchor point="TOPLEFT">
1144                                                                                           <Offset x="-21" y="0"/>
1145                                                                                   </Anchor>
  821                                                                                 <Anchor point="TOPLEFT" x="-21" y="0"/>
 
1150                                                                           <Size>
1151                                                                                   <AbsDimension x="8" y="20"/>
1152                                                                           </Size>
  826                                                                         <Size x="8" y="20"/>
 
1154                                                                                   <Anchor point="RIGHT">
1155                                                                                           <Offset x="0" y="0"/>
1156                                                                                   </Anchor>
  828                                                                                 <Anchor point="RIGHT" x="0" y="0"/>
 
1161                                                                           <Size>
1162                                                                                   <AbsDimension x="0" y="20"/>
1163                                                                           </Size>
  833                                                                         <Size x="0" y="20"/>
 
1174                                                                                   <Anchor point="LEFT">
1175                                                                                           <Offset>
1176                                                                                                   <AbsDimension x="3" y="0"/>
1177                                                                                           </Offset>
1178                                                                                   </Anchor>
  844                                                                                 <Anchor point="LEFT" x="3" y="0"/>
 
1185                                                                           <Size>
1186                                                                                   <AbsDimension x="16" y="16"/>                                                                          
1187                                                                           </Size>
  851                                                                         <Size x="16" y="16"/>                                                                          
 
1189                                                                                   <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT">
1190                                                                                           <Offset x="-5" y="-1"/>
1191                                                                                   </Anchor>
  853                                                                                 <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT" x="-5" y="-1"/>
 
1241                                                                   <Size>
1242                                                                           <AbsDimension x="16" y="16"/>
1243                                                                   </Size>
  903                                                                 <Size x="16" y="16"/>
 
1245                                                                           <Anchor point="RIGHT">
1246                                                                                   <Offset x="-2" y="0"/>
1247                                                                           </Anchor>
  905                                                                         <Anchor point="RIGHT" x="-2" y="0"/>
 
1277                                                           <Anchor point="TOPLEFT">
1278                                                                   <Offset>
1279                                                                           <AbsDimension x="30" y="-64"/>
1280                                                                   </Offset>
1281                                                           </Anchor>
  935                                                         <Anchor point="TOPLEFT" x="18" y="-51"/>
 
1297                                                           <Anchor point="LEFT" relativeTo="FriendsTabHeaderTab1" relativePoint="RIGHT">
1298                                                                   <Offset>
1299                                                                           <AbsDimension x="0" y="0"/>
1300                                                                   </Offset>
1301                                                           </Anchor>
  951                                                         <Anchor point="LEFT" relativeTo="FriendsTabHeaderTab1" relativePoint="RIGHT" x="0" y="0"/>
 
1313                                                           <Anchor point="LEFT" relativeTo="FriendsTabHeaderTab2" relativePoint="RIGHT">
1314                                                                   <Offset>
1315                                                                           <AbsDimension x="0" y="0"/>
1316                                                                   </Offset>
1317                                                           </Anchor>
  963                                                         <Anchor point="LEFT" relativeTo="FriendsTabHeaderTab2" relativePoint="RIGHT" x="0" y="0"/>
 
  993                                         <Button name="$parentSoRButton" inherits="ScrollOfResurrectionButtonTemplate" parentKey="soRButton" hidden="true">
  994                                                 <Size x="26" y="26"/>
  995                                                 <Anchors>
  996                                                         <Anchor point="TOPRIGHT" x="-8" y="-55"/>
  997                                                 </Anchors>
  998                                                 <Scripts>
  999                                                         <OnLoad>
  1000                                                                 self.icon:SetTexture("Interface\\Icons\\SOR-mail");
  1001                                                                 self:RegisterEvent("SOR_BY_TEXT_UPDATED");
  1002                                                         </OnLoad>
  1003                                                         <OnEvent>
  1004                                                                 if ( CanSendSoRByText() ) then
  1005                                                                         self:Show();
  1006                                                                 else
  1007                                                                         self:Hide();
  1008                                                                 end
  1009                                                         </OnEvent>
  1010                                                 </Scripts>
  1011                                         </Button>
 
1359                                                   <Size>
1360                                                           <AbsDimension x="131" y="21"/>
1361                                                   </Size>
  1024                                                 <Size x="131" y="21"/>
 
1363                                                           <Anchor point="BOTTOMLEFT" relativeTo="FriendsFrame">
1364                                                                   <Offset>
1365                                                                           <AbsDimension x="15" y="81"/>
1366                                                                   </Offset>
1367                                                           </Anchor>
  1026                                                         <Anchor point="BOTTOMLEFT" relativeTo="FriendsFrame" x="4" y="4"/>
 
1378                                                   <Size>
1379                                                           <AbsDimension x="131" y="21"/>
1380                                                   </Size>
  1037                                                 <Size x="131" y="21"/>
 
1382                                                           <Anchor point="BOTTOMRIGHT" relativeTo="FriendsFrame">
1383                                                                   <Offset>
1384                                                                           <AbsDimension x="-41" y="81"/>
1385                                                                   </Offset>
1386                                                           </Anchor>
  1039                                                         <Anchor point="BOTTOMRIGHT" relativeTo="FriendsFrame" x="-6" y="4"/>
 
1397                                                   <Size>
1398                                                           <AbsDimension x="302" y="307"/>
1399                                                   </Size>
  1050                                                 <Size x="302" y="307"/>
 
1401                                                           <Anchor point="TOPLEFT" relativeTo="FriendsFrame">
1402                                                                   <Offset>
1403                                                                           <AbsDimension x="21" y="-100"/>
1404                                                                   </Offset>
1405                                                           </Anchor>
  1052                                                         <Anchor point="TOPLEFT" relativeTo="FriendsFrame" x="8" y="-87"/>
 
  1058                                                         <Layer level="BACKGROUND">
  1059                                                                 <Texture name="$parentTop" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
  1060                                                                         <Size x="29" y="102"/>
  1061                                                                         <Anchors>
  1062                                                                                 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="-6" y="5"/>
  1063                                                                         </Anchors>
  1064                                                                         <TexCoords left="0" right="0.445" top="0" bottom="0.4"/>
  1065                                                                 </Texture>
  1066                                                                 <Texture name="$parentBottom" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
  1067                                                                         <Size x="29" y="106"/>
  1068                                                                         <Anchors>
  1069                                                                                 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="-6" y="-5"/>
  1070                                                                         </Anchors>
  1071                                                                         <TexCoords left="0.515625" right="0.960625" top="0" bottom="0.4140625"/>
  1072                                                                 </Texture>
  1073                                                                 <Texture name="$parentMiddle" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
  1074                                                                         <Size x="29" y="1"/>
  1075                                                                         <Anchors>
  1076                                                                                 <Anchor point="TOP" relativeTo="$parentTop" relativePoint="BOTTOM"/>
  1077                                                                                 <Anchor point="BOTTOM" relativeTo="$parentBottom" relativePoint="TOP"/>
  1078                                                                         </Anchors>
  1079                                                                         <TexCoords left="0" right="0.445" top=".75" bottom="1.0"/>
  1080                                                                 </Texture>
  1081                                                         </Layer>
 
1415                                                                           <Anchor point="TOPRIGHT" relativeTo="FriendsFrame" relativePoint="TOPRIGHT">
1416                                                                                   <Offset>
1417                                                                                           <AbsDimension x="-47" y="-114"/>
1418                                                                                   </Offset>
1419                                                                           </Anchor>
1420                                                                           <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
1421                                                                                   <Offset>
1422                                                                                           <AbsDimension x="6" y="14"/>
1423                                                                                   </Offset>
1424                                                                           </Anchor>
  1086                                                                         <Anchor point="TOPRIGHT" relativeTo="FriendsFrame" relativePoint="TOPRIGHT" x="-14" y="-101"/>
  1087                                                                         <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="6" y="12"/>
 
  1095                                 <Layers>
  1096                                         <Layer level="BACKGROUND">
  1097                                                 <Texture name="$parentTop" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
  1098                                                         <Size x="29" y="102"/>
  1099                                                         <Anchors>
  1100                                                                 <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-5" y="-82"/>
  1101                                                         </Anchors>
  1102                                                         <TexCoords left="0" right="0.445" top="0" bottom="0.4"/>
  1103                                                 </Texture>
  1104                                                 <Texture name="$parentBottom" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
  1105                                                         <Size x="29" y="106"/>
  1106                                                         <Anchors>
  1107                                                                 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="-5" y="25"/>
  1108                                                         </Anchors>
  1109                                                         <TexCoords left="0.515625" right="0.960625" top="0" bottom="0.4140625"/>
  1110                                                 </Texture>
  1111                                                 <Texture name="$parentMiddle" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
  1112                                                         <Size x="29" y="1"/>
  1113                                                         <Anchors>
  1114                                                                 <Anchor point="TOP" relativeTo="$parentTop" relativePoint="BOTTOM"/>
  1115                                                                 <Anchor point="BOTTOM" relativeTo="$parentBottom" relativePoint="TOP"/>
  1116                                                         </Anchors>
  1117                                                         <TexCoords left="0" right="0.445" top=".75" bottom="1.0"/>
  1118                                                 </Texture>
  1119                                         </Layer>
  1120                                 </Layers>
 
1434                                                   <Size>
1435                                                           <AbsDimension x="131" y="21"/>
1436                                                   </Size>
  1123                                                 <Size x="131" y="21"/>
 
1438                                                           <Anchor point="BOTTOMLEFT" relativeTo="FriendsFrame">
1439                                                                   <Offset>
1440                                                                           <AbsDimension x="15" y="81"/>
1441                                                                   </Offset>
1442                                                           </Anchor>
  1125                                                         <Anchor point="BOTTOMLEFT" relativeTo="FriendsFrame" x="4" y="4"/>
 
1463                                                   <Size>
1464                                                           <AbsDimension x="134" y="21"/>
1465                                                   </Size>
  1146                                                 <Size x="134" y="21"/>
 
1467                                                           <Anchor point="BOTTOMRIGHT" relativeTo="FriendsFrame">
1468                                                                   <Offset>
1469                                                                           <AbsDimension x="-38" y="81"/>
1470                                                                   </Offset>
1471                                                           </Anchor>
  1148                                                         <Anchor point="BOTTOMRIGHT" relativeTo="FriendsFrame" x="-6" y="4"/>
 
1485                                                   <Size>
1486                                                           <AbsDimension x="110" y="21"/>
1487                                                   </Size>
  1162                                                 <Size x="110" y="21"/>
 
1515                                                           <Anchor point="TOPLEFT" relativeTo="FriendsFrame">
1516                                                                   <Offset>
1517                                                                           <AbsDimension x="21" y="-102"/>
1518                                                                   </Offset>
1519                                                           </Anchor>
  1190                                                         <Anchor point="TOPLEFT" relativeTo="FriendsFrame" x="8" y="-89"/>
 
1522                                           <Button name="FriendsFrameIgnoreButton2" inherits="FriendsFrameIgnoreButtonTemplate">
1523                                                   <Anchors>
1524                                                           <Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton1" relativePoint="BOTTOM">
1525                                                                   <Offset>
1526                                                                           <AbsDimension x="0" y="0"/>
1527                                                                   </Offset>
1528                                                           </Anchor>
1529                                                   </Anchors>
1530                                           </Button>
1531                                           <Button name="FriendsFrameIgnoreButton3" inherits="FriendsFrameIgnoreButtonTemplate">
1532                                                   <Anchors>
1533                                                           <Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton2" relativePoint="BOTTOM">
1534                                                                   <Offset>
1535                                                                           <AbsDimension x="0" y="0"/>
1536                                                                   </Offset>
1537                                                           </Anchor>
1538                                                   </Anchors>
1539                                           </Button>
1540                                           <Button name="FriendsFrameIgnoreButton4" inherits="FriendsFrameIgnoreButtonTemplate">
1541                                                   <Anchors>
1542                                                           <Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton3" relativePoint="BOTTOM">
1543                                                                   <Offset>
1544                                                                           <AbsDimension x="0" y="0"/>
1545                                                                   </Offset>
1546                                                           </Anchor>
1547                                                   </Anchors>
1548                                           </Button>
1549                                           <Button name="FriendsFrameIgnoreButton5" inherits="FriendsFrameIgnoreButtonTemplate">
1550                                                   <Anchors>
1551                                                           <Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton4" relativePoint="BOTTOM">
1552                                                                   <Offset>
1553                                                                           <AbsDimension x="0" y="0"/>
1554                                                                   </Offset>
1555                                                           </Anchor>
1556                                                   </Anchors>
1557                                           </Button>
1558                                           <Button name="FriendsFrameIgnoreButton6" inherits="FriendsFrameIgnoreButtonTemplate">
1559                                                   <Anchors>
1560                                                           <Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton5" relativePoint="BOTTOM">
1561                                                                   <Offset>
1562                                                                           <AbsDimension x="0" y="0"/>
1563                                                                   </Offset>
1564                                                           </Anchor>
1565                                                   </Anchors>
1566                                           </Button>
1567                                           <Button name="FriendsFrameIgnoreButton7" inherits="FriendsFrameIgnoreButtonTemplate">
1568                                                   <Anchors>
1569                                                           <Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton6" relativePoint="BOTTOM">
1570                                                                   <Offset>
1571                                                                           <AbsDimension x="0" y="0"/>
1572                                                                   </Offset>
1573                                                           </Anchor>
1574                                                   </Anchors>
1575                                           </Button>
1576                                           <Button name="FriendsFrameIgnoreButton8" inherits="FriendsFrameIgnoreButtonTemplate">
1577                                                   <Anchors>
1578                                                           <Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton7" relativePoint="BOTTOM">
1579                                                                   <Offset>
1580                                                                           <AbsDimension x="0" y="0"/>
1581                                                                   </Offset>
1582                                                           </Anchor>
1583                                                   </Anchors>
1584                                           </Button>
1585                                           <Button name="FriendsFrameIgnoreButton9" inherits="FriendsFrameIgnoreButtonTemplate">
1586                                                   <Anchors>
1587                                                           <Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton8" relativePoint="BOTTOM">
1588                                                                   <Offset>
1589                                                                           <AbsDimension x="0" y="0"/>
1590                                                                   </Offset>
1591                                                           </Anchor>
1592                                                   </Anchors>
1593                                           </Button>
1594                                           <Button name="FriendsFrameIgnoreButton10" inherits="FriendsFrameIgnoreButtonTemplate">
1595                                                   <Anchors>
1596                                                           <Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton9" relativePoint="BOTTOM">
1597                                                                   <Offset>
1598                                                                           <AbsDimension x="0" y="0"/>
1599                                                                   </Offset>
1600                                                           </Anchor>
1601                                                   </Anchors>
1602                                           </Button>
1603                                           <Button name="FriendsFrameIgnoreButton11" inherits="FriendsFrameIgnoreButtonTemplate">
1604                                                   <Anchors>
1605                                                           <Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton10" relativePoint="BOTTOM">
1606                                                                   <Offset>
1607                                                                           <AbsDimension x="0" y="0"/>
1608                                                                   </Offset>
1609                                                           </Anchor>
1610                                                   </Anchors>
1611                                           </Button>
1612                                           <Button name="FriendsFrameIgnoreButton12" inherits="FriendsFrameIgnoreButtonTemplate">
1613                                                   <Anchors>
1614                                                           <Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton11" relativePoint="BOTTOM">
1615                                                                   <Offset>
1616                                                                           <AbsDimension x="0" y="0"/>
1617                                                                   </Offset>
1618                                                           </Anchor>
1619                                                   </Anchors>
1620                                           </Button>
1621                                           <Button name="FriendsFrameIgnoreButton13" inherits="FriendsFrameIgnoreButtonTemplate">
1622                                                   <Anchors>
1623                                                           <Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton12" relativePoint="BOTTOM">
1624                                                                   <Offset>
1625                                                                           <AbsDimension x="0" y="0"/>
1626                                                                   </Offset>
1627                                                           </Anchor>
1628                                                   </Anchors>
1629                                           </Button>
1630                                           <Button name="FriendsFrameIgnoreButton14" inherits="FriendsFrameIgnoreButtonTemplate">
1631                                                   <Anchors>
1632                                                           <Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton13" relativePoint="BOTTOM">
1633                                                                   <Offset>
1634                                                                           <AbsDimension x="0" y="0"/>
1635                                                                   </Offset>
1636                                                           </Anchor>
1637                                                   </Anchors>
1638                                           </Button>
1639                                           <Button name="FriendsFrameIgnoreButton15" inherits="FriendsFrameIgnoreButtonTemplate">
1640                                                   <Anchors>
1641                                                           <Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton14" relativePoint="BOTTOM">
1642                                                                   <Offset>
1643                                                                           <AbsDimension x="0" y="0"/>
1644                                                                   </Offset>
1645                                                           </Anchor>
1646                                                   </Anchors>
1647                                           </Button>
1648                                           <Button name="FriendsFrameIgnoreButton16" inherits="FriendsFrameIgnoreButtonTemplate">
1649                                                   <Anchors>
1650                                                           <Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton15" relativePoint="BOTTOM">
1651                                                                   <Offset>
1652                                                                           <AbsDimension x="0" y="0"/>
1653                                                                   </Offset>
1654                                                           </Anchor>
1655                                                   </Anchors>
1656                                           </Button>
1657                                           <Button name="FriendsFrameIgnoreButton17" inherits="FriendsFrameIgnoreButtonTemplate">
1658                                                   <Anchors>
1659                                                           <Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton16" relativePoint="BOTTOM">
1660                                                                   <Offset>
1661                                                                           <AbsDimension x="0" y="0"/>
1662                                                                   </Offset>
1663                                                           </Anchor>
1664                                                   </Anchors>
1665                                           </Button>
1666                                           <Button name="FriendsFrameIgnoreButton18" inherits="FriendsFrameIgnoreButtonTemplate">
1667                                                   <Anchors>
1668                                                           <Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton17" relativePoint="BOTTOM">
1669                                                                   <Offset>
1670                                                                           <AbsDimension x="0" y="0"/>
1671                                                                   </Offset>
1672                                                           </Anchor>
1673                                                   </Anchors>
1674                                           </Button>
1675                                           <Button name="FriendsFrameIgnoreButton19" inherits="FriendsFrameIgnoreButtonTemplate">
1676                                                   <Anchors>
1677                                                           <Anchor point="TOP" relativeTo="FriendsFrameIgnoreButton18" relativePoint="BOTTOM">
1678                                                                   <Offset>
1679                                                                           <AbsDimension x="0" y="0"/>
1680                                                                   </Offset>
1681                                                           </Anchor>
1682                                                   </Anchors>
1683                                           </Button>
  1193                                         <!-- Other 18 IgnoreButtons are made in FriendsFrame.lua -->
 
1685                                                   <Size>
1686                                                           <AbsDimension x="298" y="309"/>
1687                                                   </Size>
  1195                                                 <Size x="298" y="309"/>
 
1689                                                           <Anchor point="TOPRIGHT" relativeTo="FriendsFrame">
1690                                                                   <Offset>
1691                                                                           <AbsDimension x="-65" y="-99"/>
1692                                                                   </Offset>
1693                                                           </Anchor>
  1197                                                         <Anchor point="TOPRIGHT" relativeTo="FriendsFrame" x="-65" y="-99"/>
 
  1216                                 <Layers>
  1217                                         <Layer level="BACKGROUND">
  1218                                                 <Texture name="$parentTop" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
  1219                                                         <Size x="29" y="102"/>
  1220                                                         <Anchors>
  1221                                                                 <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-5" y="-82"/>
  1222                                                         </Anchors>
  1223                                                         <TexCoords left="0" right="0.445" top="0" bottom="0.4"/>
  1224                                                 </Texture>
  1225                                                 <Texture name="$parentBottom" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
  1226                                                         <Size x="29" y="106"/>
  1227                                                         <Anchors>
  1228                                                                 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="-5" y="25"/>
  1229                                                         </Anchors>
  1230                                                         <TexCoords left="0.515625" right="0.960625" top="0" bottom="0.4140625"/>
  1231                                                 </Texture>
  1232                                                 <Texture name="$parentMiddle" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
  1233                                                         <Size x="29" y="1"/>
  1234                                                         <Anchors>
  1235                                                                 <Anchor point="TOP" relativeTo="$parentTop" relativePoint="BOTTOM"/>
  1236                                                                 <Anchor point="BOTTOM" relativeTo="$parentBottom" relativePoint="TOP"/>
  1237                                                         </Anchors>
  1238                                                         <TexCoords left="0" right="0.445" top=".75" bottom="1.0"/>
  1239                                                 </Texture>
  1240                                         </Layer>
  1241                                 </Layers>
 
1714                                                   <Size>
1715                                                           <AbsDimension x="10" y="10"/>
1716                                                   </Size>
  1244                                                 <Size x="10" y="10"/>
 
1718                                                           <Anchor point="TOP">
1719                                                                   <Offset>
1720                                                                           <AbsDimension x="10" y="-60"/>
1721                                                                   </Offset>
1722                                                           </Anchor>
  1246                                                         <Anchor point="TOP" x="10" y="-60"/>
 
1729                                                   <Size>
1730                                                           <AbsDimension x="298" y="309"/>
1731                                                   </Size>
  1253                                                 <Size x="298" y="309"/>
 
1733                                                           <Anchor point="TOPLEFT" relativeTo="FriendsFrame">
1734                                                                   <Offset>
1735                                                                           <AbsDimension x="22" y="-99"/>
1736                                                                   </Offset>
1737                                                           </Anchor>
  1255                                                         <Anchor point="TOPLEFT" relativeTo="FriendsFrame" x="22" y="-99"/>
 
1773                                                                           <Size>
1774                                                                                   <AbsDimension x="200" y="0"/>
1775                                                                           </Size>
  1291                                                                         <Size x="200" y="0"/>
 
1777                                                                                   <Anchor point="TOP" relativeTo="$parentTitle" relativePoint="BOTTOM">
1778                                                                                           <Offset>
1779                                                                                                   <AbsDimension x="0" y="-4"/>
1780                                                                                           </Offset>
1781                                                                                   </Anchor>
  1293                                                                                 <Anchor point="TOP" relativeTo="$parentTitle" relativePoint="BOTTOM" x="0" y="-4"/>
 
1788                                                                   <Size>
1789                                                                           <AbsDimension x="131" y="22"/>
1790                                                                   </Size>
  1300                                                                 <Size x="131" y="22"/>
 
1792                                                                           <Anchor point="BOTTOM">
1793                                                                                   <Offset>
1794                                                                                           <AbsDimension x="0" y="30"/>
1795                                                                                   </Offset>
1796                                                                           </Anchor>
  1302                                                                         <Anchor point="BOTTOM" x="0" y="30"/>
 
1808                                                   <Size>
1809                                                           <AbsDimension x="298" y="308"/>
1810                                                   </Size>
  1314                                                 <Size x="298" y="308"/>
 
1812                                                           <Anchor point="TOPRIGHT" relativeTo="FriendsFrame">
1813                                                                   <Offset>
1814                                                                           <AbsDimension x="-65" y="-99"/>
1815                                                                   </Offset>
1816                                                           </Anchor>
  1316                                                         <Anchor point="TOPRIGHT" relativeTo="FriendsFrame" x="-33" y="-85"/>
 
1822                                                                                   <Offset>
1823                                                                                           <AbsDimension x="6" y="-16"/>
1824                                                                                   </Offset>
  1322                                                                                 <Offset x="6" y="-16"/>
 
1826                                                                           <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
1827                                                                                   <Offset>
1828                                                                                           <AbsDimension x="6" y="15"/>
1829                                                                                   </Offset>
1830                                                                           </Anchor>
  1324                                                                         <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="6" y="15"/>
 
1870                                                                   <Size>
1871                                                                           <AbsDimension x="10" y="10"/>
1872                                                                   </Size>
  1364                                                                 <Size x="10" y="10"/>
 
1876                                                                                           <Anchor point="TOPLEFT">
1877                                                                                                   <Offset>
1878                                                                                                           <AbsDimension x="0" y="0"/>
1879                                                                                                   </Offset>
1880                                                                                           </Anchor>
  1368                                                                                         <Anchor point="TOPLEFT" x="0" y="0"/>
 
1885                                                                                           <Anchor point="TOPLEFT" relativeTo="FriendsFramePendingButton1" relativePoint="BOTTOMLEFT">
1886                                                                                                   <Offset>
1887                                                                                                           <AbsDimension x="0" y="0"/>
1888                                                                                                   </Offset>
1889                                                                                           </Anchor>
  1373                                                                                         <Anchor point="TOPLEFT" relativeTo="FriendsFramePendingButton1" relativePoint="BOTTOMLEFT" x="0" y="0"/>
 
1894                                                                                           <Anchor point="TOPLEFT" relativeTo="FriendsFramePendingButton2" relativePoint="BOTTOMLEFT">
1895                                                                                                   <Offset>
1896                                                                                                           <AbsDimension x="0" y="0"/>
1897                                                                                                   </Offset>
1898                                                                                           </Anchor>
  1378                                                                                         <Anchor point="TOPLEFT" relativeTo="FriendsFramePendingButton2" relativePoint="BOTTOMLEFT" x="0" y="0"/>
 
1903                                                                                           <Anchor point="TOPLEFT" relativeTo="FriendsFramePendingButton3" relativePoint="BOTTOMLEFT">
1904                                                                                                   <Offset>
1905                                                                                                           <AbsDimension x="0" y="0"/>
1906                                                                                                   </Offset>
1907                                                                                           </Anchor>
  1383                                                                                         <Anchor point="TOPLEFT" relativeTo="FriendsFramePendingButton3" relativePoint="BOTTOMLEFT" x="0" y="0"/>
 
  1397                                 <Frames>
  1398                                         <Frame name="WhoFrameListInset" inherits="InsetFrameTemplate" frameStrata="MEDIUM">
  1399                                                 <Anchors>
  1400                                                         <Anchor point="TOPLEFT" x="5" y="-80"/>
  1401                                                         <Anchor point="BOTTOMRIGHT" x="-5" y="46"/>
  1402                                                 </Anchors>
 
1924                                                           <Size>
1925                                                                   <AbsDimension x="298" y="16"/>
1926                                                           </Size>
  1406                                                                         <Size x="298" y="16"/>
 
1928                                                                   <Anchor point="BOTTOM">
1929                                                                           <Offset>
1930                                                                                   <AbsDimension x="-10" y="127"/>
1931                                                                           </Offset>
1932                                                                   </Anchor>
  1408                                                                                 <Anchor point="BOTTOM" x="0" y="5"/>
 
1937                                   <Frames>
  1413                                         </Frame>
 
1940                                                           <Anchor point="TOPLEFT">
1941                                                                   <Offset>
1942                                                                           <AbsDimension x="20" y="-70"/>
1943                                                                   </Offset>
1944                                                           </Anchor>
  1416                                                         <Anchor point="TOPLEFT" x="7" y="-57"/>
 
1955                                                           <Anchor point="LEFT" relativeTo="WhoFrameColumnHeader1" relativePoint="RIGHT">
1956                                                                   <Offset>
1957                                                                           <AbsDimension x="-2" y="0"/>
1958                                                                   </Offset>
1959                                                           </Anchor>
  1427                                                         <Anchor point="LEFT" relativeTo="WhoFrameColumnHeader1" relativePoint="RIGHT" x="-2" y="0"/>
 
1964                                                                           <Anchor point="TOPLEFT">
1965                                                                                   <Offset>
1966                                                                                           <AbsDimension x="-15" y="0"/>
1967                                                                                   </Offset>
1968                                                                           </Anchor>
  1432                                                                         <Anchor point="TOPLEFT" x="-15" y="0"/>
 
1974                                                                                                   <Anchor point="TOPLEFT">
1975                                                                                                           <Offset>
1976                                                                                                                   <AbsDimension x="15" y="3"/>
1977                                                                                                           </Offset>
1978                                                                                                   </Anchor>
1979                                                                                                   <Anchor point="BOTTOMRIGHT">
1980                                                                                                           <Offset>
1981                                                                                                                   <AbsDimension x="-30" y="-2"/>
1982                                                                                                           </Offset>
1983                                                                                                   </Anchor>
  1438                                                                                                 <Anchor point="TOPLEFT" x="15" y="3"/>
  1439                                                                                                 <Anchor point="BOTTOMRIGHT" x="-30" y="-2"/>
 
2017                                                           <Anchor point="LEFT" relativeTo="WhoFrameColumnHeader2" relativePoint="RIGHT">
2018                                                                   <Offset>
2019                                                                           <AbsDimension x="-2" y="0"/>
2020                                                                   </Offset>
2021                                                           </Anchor>
  1473                                                         <Anchor point="LEFT" relativeTo="WhoFrameColumnHeader2" relativePoint="RIGHT" x="-2" y="0"/>
 
2032                                                           <Anchor point="LEFT" relativeTo="WhoFrameColumnHeader3" relativePoint="RIGHT">
2033                                                                   <Offset>
2034                                                                           <AbsDimension x="-2" y="0"/>
2035                                                                   </Offset>
2036                                                           </Anchor>
  1484                                                         <Anchor point="LEFT" relativeTo="WhoFrameColumnHeader3" relativePoint="RIGHT" x="-2" y="0"/>
 
2064                                                           <Anchor point="TOPLEFT" relativeTo="WhoFrame">
2065                                                                   <Offset>
2066                                                                           <AbsDimension x="15" y="-95"/>
2067                                                                   </Offset>
2068                                                           </Anchor>
  1512                                                         <Anchor point="TOPLEFT" relativeTo="WhoFrame" x="2" y="-82"/>
 
2071                                           <Button name="WhoFrameButton2" inherits="FriendsFrameWhoButtonTemplate" id="2">
2072                                                   <Anchors>
2073                                                           <Anchor point="TOPLEFT" relativeTo="WhoFrameButton1" relativePoint="BOTTOMLEFT">
2074                                                                   <Offset>
2075                                                                           <AbsDimension x="0" y="0"/>
2076                                                                   </Offset>
2077                                                           </Anchor>
2078                                                   </Anchors>
2079                                           </Button>
2080                                           <Button name="WhoFrameButton3" inherits="FriendsFrameWhoButtonTemplate" id="3">
2081                                                   <Anchors>
2082                                                           <Anchor point="TOPLEFT" relativeTo="WhoFrameButton2" relativePoint="BOTTOMLEFT">
2083                                                                   <Offset>
2084                                                                           <AbsDimension x="0" y="0"/>
2085                                                                   </Offset>
2086                                                           </Anchor>
2087                                                   </Anchors>
2088                                           </Button>
2089                                           <Button name="WhoFrameButton4" inherits="FriendsFrameWhoButtonTemplate" id="4">
2090                                                   <Anchors>
2091                                                           <Anchor point="TOPLEFT" relativeTo="WhoFrameButton3" relativePoint="BOTTOMLEFT">
2092                                                                   <Offset>
2093                                                                           <AbsDimension x="0" y="0"/>
2094                                                                   </Offset>
2095                                                           </Anchor>
2096                                                   </Anchors>
2097                                           </Button>
2098                                           <Button name="WhoFrameButton5" inherits="FriendsFrameWhoButtonTemplate" id="5">
2099                                                   <Anchors>
2100                                                           <Anchor point="TOPLEFT" relativeTo="WhoFrameButton4" relativePoint="BOTTOMLEFT">
2101                                                                   <Offset>
2102                                                                           <AbsDimension x="0" y="0"/>
2103                                                                   </Offset>
2104                                                           </Anchor>
2105                                                   </Anchors>
2106                                           </Button>
2107                                           <Button name="WhoFrameButton6" inherits="FriendsFrameWhoButtonTemplate" id="6">
2108                                                   <Anchors>
2109                                                           <Anchor point="TOPLEFT" relativeTo="WhoFrameButton5" relativePoint="BOTTOMLEFT">
2110                                                                   <Offset>
2111                                                                           <AbsDimension x="0" y="0"/>
2112                                                                   </Offset>
2113                                                           </Anchor>
2114                                                   </Anchors>
2115                                           </Button>
2116                                           <Button name="WhoFrameButton7" inherits="FriendsFrameWhoButtonTemplate" id="7">
2117                                                   <Anchors>
2118                                                           <Anchor point="TOPLEFT" relativeTo="WhoFrameButton6" relativePoint="BOTTOMLEFT">
2119                                                                   <Offset>
2120                                                                           <AbsDimension x="0" y="0"/>
2121                                                                   </Offset>
2122                                                           </Anchor>
2123                                                   </Anchors>
2124                                           </Button>
2125                                           <Button name="WhoFrameButton8" inherits="FriendsFrameWhoButtonTemplate" id="8">
2126                                                   <Anchors>
2127                                                           <Anchor point="TOPLEFT" relativeTo="WhoFrameButton7" relativePoint="BOTTOMLEFT">
2128                                                                   <Offset>
2129                                                                           <AbsDimension x="0" y="0"/>
2130                                                                   </Offset>
2131                                                           </Anchor>
2132                                                   </Anchors>
2133                                           </Button>
2134                                           <Button name="WhoFrameButton9" inherits="FriendsFrameWhoButtonTemplate" id="9">
2135                                                   <Anchors>
2136                                                           <Anchor point="TOPLEFT" relativeTo="WhoFrameButton8" relativePoint="BOTTOMLEFT">
2137                                                                   <Offset>
2138                                                                           <AbsDimension x="0" y="0"/>
2139                                                                   </Offset>
2140                                                           </Anchor>
2141                                                   </Anchors>
2142                                           </Button>
2143                                           <Button name="WhoFrameButton10" inherits="FriendsFrameWhoButtonTemplate" id="10">
2144                                                   <Anchors>
2145                                                           <Anchor point="TOPLEFT" relativeTo="WhoFrameButton9" relativePoint="BOTTOMLEFT">
2146                                                                   <Offset>
2147                                                                           <AbsDimension x="0" y="0"/>
2148                                                                   </Offset>
2149                                                           </Anchor>
2150                                                   </Anchors>
2151                                           </Button>
2152                                           <Button name="WhoFrameButton11" inherits="FriendsFrameWhoButtonTemplate" id="11">
2153                                                   <Anchors>
2154                                                           <Anchor point="TOPLEFT" relativeTo="WhoFrameButton10" relativePoint="BOTTOMLEFT">
2155                                                                   <Offset>
2156                                                                           <AbsDimension x="0" y="0"/>
2157                                                                   </Offset>
2158                                                           </Anchor>
2159                                                   </Anchors>
2160                                           </Button>
2161                                           <Button name="WhoFrameButton12" inherits="FriendsFrameWhoButtonTemplate" id="12">
2162                                                   <Anchors>
2163                                                           <Anchor point="TOPLEFT" relativeTo="WhoFrameButton11" relativePoint="BOTTOMLEFT">
2164                                                                   <Offset>
2165                                                                           <AbsDimension x="0" y="0"/>
2166                                                                   </Offset>
2167                                                           </Anchor>
2168                                                   </Anchors>
2169                                           </Button>
2170                                           <Button name="WhoFrameButton13" inherits="FriendsFrameWhoButtonTemplate" id="13">
2171                                                   <Anchors>
2172                                                           <Anchor point="TOPLEFT" relativeTo="WhoFrameButton12" relativePoint="BOTTOMLEFT">
2173                                                                   <Offset>
2174                                                                           <AbsDimension x="0" y="0"/>
2175                                                                   </Offset>
2176                                                           </Anchor>
2177                                                   </Anchors>
2178                                           </Button>
2179                                           <Button name="WhoFrameButton14" inherits="FriendsFrameWhoButtonTemplate" id="14">
2180                                                   <Anchors>
2181                                                           <Anchor point="TOPLEFT" relativeTo="WhoFrameButton13" relativePoint="BOTTOMLEFT">
2182                                                                   <Offset>
2183                                                                           <AbsDimension x="0" y="0"/>
2184                                                                   </Offset>
2185                                                           </Anchor>
2186                                                   </Anchors>
2187                                           </Button>
2188                                           <Button name="WhoFrameButton15" inherits="FriendsFrameWhoButtonTemplate" id="15">
2189                                                   <Anchors>
2190                                                           <Anchor point="TOPLEFT" relativeTo="WhoFrameButton14" relativePoint="BOTTOMLEFT">
2191                                                                   <Offset>
2192                                                                           <AbsDimension x="0" y="0"/>
2193                                                                   </Offset>
2194                                                           </Anchor>
2195                                                   </Anchors>
2196                                           </Button>
2197                                           <Button name="WhoFrameButton16" inherits="FriendsFrameWhoButtonTemplate" id="16">
2198                                                   <Anchors>
2199                                                           <Anchor point="TOPLEFT" relativeTo="WhoFrameButton15" relativePoint="BOTTOMLEFT">
2200                                                                   <Offset>
2201                                                                           <AbsDimension x="0" y="0"/>
2202                                                                   </Offset>
2203                                                           </Anchor>
2204                                                   </Anchors>
2205                                           </Button>
2206                                           <Button name="WhoFrameButton17" inherits="FriendsFrameWhoButtonTemplate" id="17">
2207                                                   <Anchors>
2208                                                           <Anchor point="TOPLEFT" relativeTo="WhoFrameButton16" relativePoint="BOTTOMLEFT">
2209                                                                   <Offset>
2210                                                                           <AbsDimension x="0" y="0"/>
2211                                                                   </Offset>
2212                                                           </Anchor>
2213                                                   </Anchors>
2214                                           </Button>
  1515                                         <!-- Other 16 WhoFrameButtons are made in FriendsFrame.lua -->
 
2216                                                   <Size>
2217                                                           <AbsDimension x="120" y="22"/>
2218                                                   </Size>
  1517                                                 <Size x="120" y="22"/>
 
2220                                                           <Anchor point="BOTTOMRIGHT">
2221                                                                   <Offset>
2222                                                                           <AbsDimension x="-40" y="82"/>
2223                                                                   </Offset>
2224                                                           </Anchor>
  1519                                                         <Anchor point="BOTTOMRIGHT" x="-6" y="4"/>
 
2233                                                   <Size>
2234                                                           <AbsDimension x="120" y="22"/>
2235                                                   </Size>
  1528                                                 <Size x="120" y="22"/>
 
2237                                                           <Anchor point="RIGHT" relativeTo="WhoFrameGroupInviteButton" relativePoint="LEFT">
2238                                                                   <Offset>
2239                                                                           <AbsDimension x="0" y="0"/>
2240                                                                   </Offset>
2241                                                           </Anchor>
  1530                                                         <Anchor point="RIGHT" relativeTo="WhoFrameGroupInviteButton" relativePoint="LEFT" x="0" y="0"/>
 
2250                                                   <Size>
2251                                                           <AbsDimension x="85" y="22"/>
2252                                                   </Size>
  1539                                                 <Size x="85" y="22"/>
 
2254                                                           <Anchor point="RIGHT" relativeTo="WhoFrameAddFriendButton" relativePoint="LEFT">
2255                                                                   <Offset>
2256                                                                           <AbsDimension x="0" y="0"/>
2257                                                                   </Offset>
2258                                                           </Anchor>
  1541                                                         <Anchor point="RIGHT" relativeTo="WhoFrameAddFriendButton" relativePoint="LEFT" x="0" y="0"/>
 
  1551                                         <Frame name="WhoFrameEditBoxInset" inherits="InsetFrameTemplate">
  1552                                                 <Anchors>
  1553                                                         <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" x="5" y="46"/>
  1554                                                         <Anchor point="BOTTOMRIGHT" x="-5" y="26"/>
  1555                                                 </Anchors>
  1556                                         </Frame>
 
2269                                                   <Size>
2270                                                           <AbsDimension x="296" y="32"/>
2271                                                   </Size>
  1558                                                 <Size x="296" y="32"/>
 
2273                                                           <Anchor point="BOTTOM">
2274                                                                   <Offset>
2275                                                                           <AbsDimension x="-20" y="100"/>
2276                                                                   </Offset>
2277                                                           </Anchor>
  1560                                                         <Anchor point="BOTTOM" x="-10" y="20"/>
 
2287                                                   <Size>
2288                                                           <AbsDimension x="296" y="287"/>
2289                                                   </Size>
  1570                                                 <Size x="296" y="287"/>
 
2291                                                           <Anchor point="TOPRIGHT" relativeTo="FriendsFrame" relativePoint="TOPRIGHT">
2292                                                                   <Offset>
2293                                                                           <AbsDimension x="-67" y="-96"/>
2294                                                                   </Offset>
2295                                                           </Anchor>
  1572                                                         <Anchor point="TOPRIGHT" relativeTo="FriendsFrame" relativePoint="TOPRIGHT" x="-67" y="-96"/>
 
2305                                                                           <Size>
2306                                                                                   <AbsDimension x="31" y="256"/>
2307                                                                           </Size>
  1582                                                                         <Size x="31" y="256"/>
 
2309                                                                                   <Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
2310                                                                                           <Offset>
2311                                                                                                   <AbsDimension x="-2" y="5"/>
2312                                                                                           </Offset>
2313                                                                                   </Anchor>
  1584                                                                                 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="-2" y="5"/>
 
2318                                                                           <Size>
2319                                                                                   <AbsDimension x="31" y="106"/>
2320                                                                           </Size>
  1589                                                                         <Size x="31" y="106"/>
 
2322                                                                                   <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
2323                                                                                           <Offset>
2324                                                                                                   <AbsDimension x="-2" y="-2"/>
2325                                                                                           </Offset>
2326                                                                                   </Anchor>
  1591                                                                                 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="-2" y="-2"/>
 
2348                                           <Anchor point="BOTTOMLEFT">
2349                                                   <Offset>
2350                                                           <AbsDimension x="11" y="46"/>
2351                                                   </Offset>
2352                                           </Anchor>
  1613                                         <Anchor point="BOTTOMLEFT" x="5" y="-30"/>
 
2382                                           <Anchor point="LEFT" relativeTo="FriendsFrameTab1" relativePoint="RIGHT">
2383                                                   <Offset>
2384                                                           <AbsDimension x="-15" y="0"/>
2385                                                   </Offset>
2386                                           </Anchor>
  1639                                         <Anchor point="LEFT" relativeTo="FriendsFrameTab1" relativePoint="RIGHT" x="-15" y="0"/>
 
2397                                           <Anchor point="LEFT" relativeTo="FriendsFrameTab2" relativePoint="RIGHT">
2398                                                   <Offset>
2399                                                           <AbsDimension x="-15" y="0"/>
2400                                                   </Offset>
2401                                           </Anchor>
  1650                                         <Anchor point="LEFT" relativeTo="FriendsFrameTab2" relativePoint="RIGHT" x="-15" y="0"/>
 
2412                           <Button name="FriendsFrameTab4" inherits="FriendsFrameTabTemplate" id="4" text="RAID">
  1661                         <Button name="FriendsFrameTab4" inherits="FriendsFrameTabTemplate" id="4" text="LOOKING_FOR_RAID">
 
2424                                                   GameTooltip_AddNewbieTip(self, MicroButtonTooltipText(RAID, "TOGGLERAIDTAB"), 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_RAIDTAB, 1);
  1673                                                 GameTooltip_AddNewbieTip(self, MicroButtonTooltipText(LOOKING_FOR_RAID, "TOGGLELFRPARENT"), 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_RAID_BROWSER, 1);
 
2430                                   <Size>
2431                                           <AbsDimension x="200" y="200"/>
2432                                   </Size>
  1679                                 <Size x="200" y="200"/>
 
2448                                                           <Size>
2449                                                                   <AbsDimension x="176" y="0"/>
2450                                                           </Size>
  1695                                                         <Size x="176" y="0"/>
 
2457                                                           <Size>
2458                                                                   <AbsDimension x="176" y="0"/>
2459                                                           </Size>
  1702                                                         <Size x="176" y="0"/>
 
2466                                                           <Size>
2467                                                                   <AbsDimension x="168" y="0"/>
2468                                                           </Size>
  1709                                                         <Size x="168" y="0"/>
 
2476                                                           <Size>
2477                                                                   <AbsDimension x="158" y="0"/>
2478                                                           </Size>
  1717                                                         <Size x="158" y="0"/>
 
2486                                                           <Size>
2487                                                                   <AbsDimension x="14" y="12"/>
2488                                                           </Size>
  1725                                                         <Size x="14" y="12"/>
 
2495                                                           <Size>
2496                                                                   <AbsDimension x="158" y="0"/>
2497                                                           </Size>
  1732                                                         <Size x="158" y="0"/>
 
2505                                                           <Size>
2506                                                                   <AbsDimension x="16" y="16"/>
2507                                                           </Size>
  1740                                                         <Size x="16" y="16"/>
 
2513                                                           <Size>
2514                                                                   <AbsDimension x="176" y="0"/>
2515                                                           </Size>
  1746                                                         <Size x="176" y="0"/>
 
2530                                                           <Size>
2531                                                                   <AbsDimension x="176" y="0"/>
2532                                                           </Size>
  1761                                                         <Size x="176" y="0"/>
 
2539                                                           <Size>
2540                                                                   <AbsDimension x="168" y="0"/>
2541                                                           </Size>
  1768                                                         <Size x="168" y="0"/>
 
2549                                                           <Size>
2550                                                                   <AbsDimension x="176" y="0"/>
2551                                                           </Size>
  1776                                                         <Size x="176" y="0"/>
 
2558                                                           <Size>
2559                                                                   <AbsDimension x="168" y="0"/>
2560                                                           </Size>
  1783                                                         <Size x="168" y="0"/>
 
2568                                                           <Size>
2569                                                                   <AbsDimension x="176" y="0"/>
2570                                                           </Size>
  1791                                                         <Size x="176" y="0"/>
 
2577                                                           <Size>
2578                                                                   <AbsDimension x="168" y="0"/>
2579                                                           </Size>
  1798                                                         <Size x="168" y="0"/>
 
2587                                                           <Size>
2588                                                                   <AbsDimension x="176" y="0"/>
2589                                                           </Size>
  1806                                                         <Size x="176" y="0"/>
 
2596                                                           <Size>
2597                                                                   <AbsDimension x="168" y="0"/>
2598                                                           </Size>
  1813                                                         <Size x="168" y="0"/>
 
2606                                                           <Size>
2607                                                                   <AbsDimension x="176" y="0"/>
2608                                                           </Size>
  1821                                                         <Size x="176" y="0"/>
 
2629                   <Size>
2630                           <AbsDimension x="446" y="272"/>
2631                   </Size>
  1842                 <Size x="446" y="272"/>
 
2645                                   <Size>
2646                                           <AbsDimension x="446" y="272"/>
2647                                   </Size>
  1856                                 <Size x="446" y="272"/>
 
2677                                                                   <Anchor point="BOTTOMLEFT" relativeTo="$parentLeftFriend">
2678                                                                           <Offset>
2679                                                                                   <AbsDimension x="-2" y="-6"/>
2680                                                                           </Offset>
2681                                                                   </Anchor>
  1886                                                                 <Anchor point="BOTTOMLEFT" relativeTo="$parentLeftFriend" x="-2" y="-6"/>
 
2686                                                                   <Anchor point="BOTTOMLEFT" relativeTo="$parentRightFriend">
2687                                                                           <Offset>
2688                                                                                   <AbsDimension x="-2" y="-6"/>
2689                                                                           </Offset>
2690                                                                   </Anchor>
  1891                                                                 <Anchor point="BOTTOMLEFT" relativeTo="$parentRightFriend" x="-2" y="-6"/>
 
2694                                                           <Size>
2695                                                                   <AbsDimension x="160" y="0"/>
2696                                                           </Size>
  1895                                                         <Size x="160" y="0"/>
 
2698                                                                   <Anchor point="TOPLEFT" relativeTo="$parentLeftTitle" relativePoint="BOTTOMLEFT">
2699                                                                           <Offset>
2700                                                                                   <AbsDimension x="0" y="-4"/>
2701                                                                           </Offset>
2702                                                                   </Anchor>
  1897                                                                 <Anchor point="TOPLEFT" relativeTo="$parentLeftTitle" relativePoint="BOTTOMLEFT" x="0" y="-4"/>
 
2706                                                           <Size>
2707                                                                   <AbsDimension x="160" y="0"/>
2708                                                           </Size>
  1901                                                         <Size x="160" y="0"/>
 
2710                                                                   <Anchor point="TOPLEFT" relativeTo="$parentRightTitle" relativePoint="BOTTOMLEFT">
2711                                                                           <Offset>
2712                                                                                   <AbsDimension x="0" y="-4"/>
2713                                                                           </Offset>
2714                                                                   </Anchor>
  1903                                                                 <Anchor point="TOPLEFT" relativeTo="$parentRightTitle" relativePoint="BOTTOMLEFT" x="0" y="-4"/>
 
2721                                                   <Size>
2722                                                           <AbsDimension x="131" y="22"/>
2723                                                   </Size>
  1910                                                 <Size x="131" y="22"/>
 
2725                                                           <Anchor point="BOTTOM" relativeTo="$parent" relativePoint="BOTTOM">
2726                                                                   <Offset>
2727                                                                           <AbsDimension x="0" y="30"/>
2728                                                                   </Offset>
2729                                                           </Anchor>
  1912                                                         <Anchor point="BOTTOM" relativeTo="$parent" relativePoint="BOTTOM" x="0" y="30"/>
 
2741                                   <Size>
2742                                           <AbsDimension x="384" y="218"/>
2743                                   </Size>
  1924                                 <Size x="384" y="218"/>
 
2750                                                           <Size>
2751                                                                   <AbsDimension x="40" y="40"/>
2752                                                           </Size>
  1931                                                         <Size x="40" y="40"/>
 
2758                                                           <Size>
2759                                                                   <AbsDimension x="40" y="40"/>
2760                                                           </Size>
  1937                                                         <Size x="40" y="40"/>
 
2768                                                           <Size>
2769                                                                   <AbsDimension x="36" y="36"/>
2770                                                           </Size>
  1945                                                         <Size x="36" y="36"/>
 
2776                                                           <Size>
2777                                                                   <AbsDimension x="36" y="36"/>
2778                                                           </Size>
  1951                                                         <Size x="36" y="36"/>
 
2835                                                   <Size>
2836                                                           <AbsDimension x="280" y="20"/>
2837                                                   </Size>
  2008                                                 <Size x="280" y="20"/>
 
2839                                                           <Anchor point="TOP">
2840                                                                   <Offset x="0" y="-130"/>
2841                                                           </Anchor>
  2010                                                         <Anchor point="TOP" x="0" y="-130"/>
 
2846                                                                           <Size>
2847                                                                                   <AbsDimension x="8" y="20"/>
2848                                                                           </Size>
  2015                                                                         <Size x="8" y="20"/>
 
2850                                                                                   <Anchor point="TOPLEFT">
2851                                                                                           <Offset x="-5" y="0"/>
2852                                                                                   </Anchor>
  2017                                                                                 <Anchor point="TOPLEFT" x="-5" y="0"/>
 
2857                                                                           <Size>
2858                                                                                   <AbsDimension x="8" y="20"/>
2859                                                                           </Size>
  2022                                                                         <Size x="8" y="20"/>
 
2861                                                                                   <Anchor point="RIGHT">
2862                                                                                           <Offset x="0" y="0"/>
2863                                                                                   </Anchor>
  2024                                                                                 <Anchor point="RIGHT" x="0" y="0"/>
 
2868                                                                           <Size>
2869                                                                                   <AbsDimension x="0" y="20"/>
2870                                                                           </Size>
  2029                                                                         <Size x="0" y="20"/>
 
2881                                                                                   <Anchor point="LEFT">
2882                                                                                           <Offset>
2883                                                                                                   <AbsDimension x="3" y="0"/>
2884                                                                                           </Offset>
2885                                                                                   </Anchor>
  2040                                                                                 <Anchor point="LEFT" x="3" y="0"/>
 
2917                                                           <Anchor point="TOP">
2918                                                                   <Offset x="-2" y="-164"/>
2919                                                           </Anchor>
  2072                                                         <Anchor point="TOP" x="-2" y="-164"/>
 
2924                                                                           <Size>
2925                                                                                   <AbsDimension x="8" y="8"/>
2926                                                                           </Size>
  2077                                                                         <Size x="8" y="8"/>
 
2928                                                                                   <Anchor point="TOPLEFT">
2929                                                                                           <Offset x="0" y="0"/>
2930                                                                                   </Anchor>
  2079                                                                                 <Anchor point="TOPLEFT" x="0" y="0"/>
 
2934                                                                           <Size>
2935                                                                                   <AbsDimension x="8" y="8"/>
2936                                                                           </Size>
  2083                                                                         <Size x="8" y="8"/>
 
2938                                                                                   <Anchor point="TOPRIGHT">
2939                                                                                           <Offset x="0" y="0"/>
2940                                                                                   </Anchor>
  2085                                                                                 <Anchor point="TOPRIGHT" x="0" y="0"/>
 
2950                                                                           <Size>
2951                                                                                   <AbsDimension x="8" y="8"/>
2952                                                                           </Size>
  2095                                                                         <Size x="8" y="8"/>
 
2954                                                                                   <Anchor point="BOTTOMLEFT">
2955                                                                                           <Offset x="0" y="0"/>
2956                                                                                   </Anchor>
  2097                                                                                 <Anchor point="BOTTOMLEFT" x="0" y="0"/>
 
2960                                                                           <Size>
2961                                                                                   <AbsDimension x="8" y="8"/>
2962                                                                           </Size>
  2101                                                                         <Size x="8" y="8"/>
 
2964                                                                                   <Anchor point="BOTTOMRIGHT">
2965                                                                                           <Offset x="0" y="0"/>
2966                                                                                   </Anchor>
  2103                                                                                 <Anchor point="BOTTOMRIGHT" x="0" y="0"/>
 
3033                                                                                                                   <Anchor point="LEFT">
3034                                                                                                                           <Offset>
3035                                                                                                                                   <AbsDimension x="3" y="0"/>
3036                                                                                                                           </Offset>
3037                                                                                                                   </Anchor>
  2170                                                                                                                 <Anchor point="LEFT" x="3" y="0"/>
 
3070                                                   <Size>
3071                                                           <AbsDimension x="118" y="22"/>
3072                                                   </Size>
  2203                                                 <Size x="118" y="22"/>
 
3074                                                           <Anchor point="BOTTOMLEFT">
3075                                                                   <Offset>
3076                                                                           <AbsDimension x="45" y="30"/>
3077                                                                   </Offset>
3078                                                           </Anchor>
  2205                                                         <Anchor point="BOTTOMLEFT" x="45" y="30"/>
 
3085                                                   <Size>
3086                                                           <AbsDimension x="118" y="22"/>
3087                                                   </Size>
  2212                                                 <Size x="118" y="22"/>
 
3089                                                           <Anchor point="BOTTOMRIGHT">
3090                                                                   <Offset>
3091                                                                           <AbsDimension x="-50" y="30"/>
3092                                                                   </Offset>
3093                                                           </Anchor>
  2214                                                         <Anchor point="BOTTOMRIGHT" x="-50" y="30"/>
 
3117                   <Size>
3118                           <AbsDimension x="314" y="390"/>
3119                   </Size>
  2238                 <Size x="314" y="390"/>
 
3137                                           <Size>
3138                                                   <AbsDimension x="270" y="16"/>
3139                                           </Size>
  2256                                         <Size x="270" y="16"/>
 
3150                                           <Anchor point="TOPLEFT">
3151                                                   <Offset>
3152                                                           <AbsDimension x="8" y="-40"/>
3153                                                   </Offset>
3154                                           </Anchor>
  2267                                         <Anchor point="TOPLEFT" x="8" y="-40"/>
 
3158                                   <Size>
3159                                           <AbsDimension x="266" y="192"/>
3160                                   </Size>
  2271                                 <Size x="266" y="192"/>
 
3184                                           <Anchor point="TOPLEFT" relativeTo="FriendsFriendsList">
3185                                                   <Offset>
3186                                                           <AbsDimension x="4" y="-8"/>
3187                                                   </Offset>
3188                                           </Anchor>
  2295                                         <Anchor point="TOPLEFT" relativeTo="FriendsFriendsList" x="4" y="-8"/>
 
3193                                           <Anchor point="TOP" relativeTo="FriendsFriendsButton1" relativePoint="BOTTOM">
3194                                                   <Offset>
3195                                                           <AbsDimension x="0" y="0"/>
3196                                                   </Offset>
3197                                           </Anchor>
  2300                                         <Anchor point="TOP" relativeTo="FriendsFriendsButton1" relativePoint="BOTTOM" x="0" y="0"/>
 
3202                                           <Anchor point="TOP" relativeTo="FriendsFriendsButton2" relativePoint="BOTTOM">
3203                                                   <Offset>
3204                                                           <AbsDimension x="0" y="0"/>
3205                                                   </Offset>
3206                                           </Anchor>
  2305                                         <Anchor point="TOP" relativeTo="FriendsFriendsButton2" relativePoint="BOTTOM" x="0" y="0"/>
 
3211                                           <Anchor point="TOP" relativeTo="FriendsFriendsButton3" relativePoint="BOTTOM">
3212                                                   <Offset>
3213                                                           <AbsDimension x="0" y="0"/>
3214                                                   </Offset>
3215                                           </Anchor>
  2310                                         <Anchor point="TOP" relativeTo="FriendsFriendsButton3" relativePoint="BOTTOM" x="0" y="0"/>
 
3220                                           <Anchor point="TOP" relativeTo="FriendsFriendsButton4" relativePoint="BOTTOM">
3221                                                   <Offset>
3222                                                           <AbsDimension x="0" y="0"/>
3223                                                   </Offset>
3224                                           </Anchor>
  2315                                         <Anchor point="TOP" relativeTo="FriendsFriendsButton4" relativePoint="BOTTOM" x="0" y="0"/>
 
3229                                           <Anchor point="TOP" relativeTo="FriendsFriendsButton5" relativePoint="BOTTOM">
3230                                                   <Offset>
3231                                                           <AbsDimension x="0" y="0"/>
3232                                                   </Offset>
3233                                           </Anchor>
  2320                                         <Anchor point="TOP" relativeTo="FriendsFriendsButton5" relativePoint="BOTTOM" x="0" y="0"/>
 
3238                                           <Anchor point="TOP" relativeTo="FriendsFriendsButton6" relativePoint="BOTTOM">
3239                                                   <Offset>
3240                                                           <AbsDimension x="0" y="0"/>
3241                                                   </Offset>
3242                                           </Anchor>
  2325                                         <Anchor point="TOP" relativeTo="FriendsFriendsButton6" relativePoint="BOTTOM" x="0" y="0"/>
 
3247                                           <Anchor point="TOP" relativeTo="FriendsFriendsButton7" relativePoint="BOTTOM">
3248                                                   <Offset>
3249                                                           <AbsDimension x="0" y="0"/>
3250                                                   </Offset>
3251                                           </Anchor>
  2330                                         <Anchor point="TOP" relativeTo="FriendsFriendsButton7" relativePoint="BOTTOM" x="0" y="0"/>
 
3256                                           <Anchor point="TOP" relativeTo="FriendsFriendsButton8" relativePoint="BOTTOM">
3257                                                   <Offset>
3258                                                           <AbsDimension x="0" y="0"/>
3259                                                   </Offset>
3260                                           </Anchor>
  2335                                         <Anchor point="TOP" relativeTo="FriendsFriendsButton8" relativePoint="BOTTOM" x="0" y="0"/>
 
3265                                           <Anchor point="TOP" relativeTo="FriendsFriendsButton9" relativePoint="BOTTOM">
3266                                                   <Offset>
3267                                                           <AbsDimension x="0" y="0"/>
3268                                                   </Offset>
3269                                           </Anchor>
  2340                                         <Anchor point="TOP" relativeTo="FriendsFriendsButton9" relativePoint="BOTTOM" x="0" y="0"/>
 
3274                                           <Anchor point="TOP" relativeTo="FriendsFriendsButton10" relativePoint="BOTTOM">
3275                                                   <Offset>
3276                                                           <AbsDimension x="0" y="0"/>
3277                                                   </Offset>
3278                                           </Anchor>
  2345                                         <Anchor point="TOP" relativeTo="FriendsFriendsButton10" relativePoint="BOTTOM" x="0" y="0"/>
 
3283                                           <Anchor point="TOPLEFT" relativeTo="FriendsFriendsList">
3284                                                   <Offset>
3285                                                           <AbsDimension x="0" y="-4"/>
3286                                                   </Offset>
3287                                           </Anchor>
3288                                           <Anchor point="BOTTOMRIGHT" relativeTo="FriendsFriendsList">
3289                                                   <Offset>
3290                                                           <AbsDimension x="-26" y="3"/>
3291                                                   </Offset>
3292                                           </Anchor>
  2350                                         <Anchor point="TOPLEFT" relativeTo="FriendsFriendsList" x="0" y="-4"/>
  2351                                         <Anchor point="BOTTOMRIGHT" relativeTo="FriendsFriendsList" x="-26" y="3"/>
 
3326                                           <Anchor point="TOPLEFT" relativeTo="FriendsFriendsScrollFrame" relativePoint="BOTTOMLEFT">
3327                                                   <Offset x="2" y="-10"/>
3328                                           </Anchor>
  2385                                         <Anchor point="TOPLEFT" relativeTo="FriendsFriendsScrollFrame" relativePoint="BOTTOMLEFT" x="2" y="-10"/>
 
3333                                                           <Size>
3334                                                                   <AbsDimension x="8" y="8"/>
3335                                                           </Size>
  2390                                                         <Size x="8" y="8"/>
 
3337                                                                   <Anchor point="TOPLEFT">
3338                                                                           <Offset x="0" y="0"/>
3339                                                                   </Anchor>
  2392                                                                 <Anchor point="TOPLEFT" x="0" y="0"/>
 
3343                                                           <Size>
3344                                                                   <AbsDimension x="8" y="8"/>
3345                                                           </Size>
  2396                                                         <Size x="8" y="8"/>
 
3347                                                                   <Anchor point="TOPRIGHT">
3348                                                                           <Offset x="0" y="0"/>
3349                                                                   </Anchor>
  2398                                                                 <Anchor point="TOPRIGHT" x="0" y="0"/>
 
3359                                                           <Size>
3360                                                                   <AbsDimension x="8" y="8"/>
3361                                                           </Size>
  2408                                                         <Size x="8" y="8"/>
 
3363                                                                   <Anchor point="BOTTOMLEFT">
3364                                                                           <Offset x="0" y="0"/>
3365                                                                   </Anchor>
  2410                                                                 <Anchor point="BOTTOMLEFT" x="0" y="0"/>
 
3369                                                           <Size>
3370                                                                   <AbsDimension x="8" y="8"/>
3371                                                           </Size>
  2414                                                         <Size x="8" y="8"/>
 
3373                                                                   <Anchor point="BOTTOMRIGHT">
3374                                                                           <Offset x="0" y="0"/>
3375                                                                   </Anchor>
  2416                                                                 <Anchor point="BOTTOMRIGHT" x="0" y="0"/>
 
3442                                                                                                   <Anchor point="LEFT">
3443                                                                                                           <Offset>
3444                                                                                                                   <AbsDimension x="3" y="0"/>
3445                                                                                                           </Offset>
3446                                                                                                   </Anchor>
  2483                                                                                                 <Anchor point="LEFT" x="3" y="0"/>
 
3476                                   <Size>
3477                                           <AbsDimension x="118" y="22"/>
3478                                   </Size>
  2513                                 <Size x="118" y="22"/>
 
3480                                           <Anchor point="BOTTOMLEFT">
3481                                                   <Offset>
3482                                                           <AbsDimension x="30" y="24"/>
3483                                                   </Offset>
3484                                           </Anchor>
  2515                                         <Anchor point="BOTTOMLEFT" x="30" y="24"/>
 
3491                                   <Size>
3492                                           <AbsDimension x="118" y="22"/>
3493                                   </Size>
  2522                                 <Size x="118" y="22"/>
 
3495                                           <Anchor point="BOTTOMRIGHT">
3496                                                   <Offset>
3497                                                           <AbsDimension x="-30" y="24"/>
3498                                                   </Offset>
3499                                           </Anchor>
  2524                                         <Anchor point="BOTTOMRIGHT" x="-30" y="24"/>
   
File: FrameXML\GameMenuFrame.xml  
35                                   <FontString inherits="GameFontNormal" text="MAIN_MENU">
  35                                 <FontString inherits="GameFontNormal" text="MAINMENU_BUTTON">
   
File: FrameXML\GlobalStrings.lua  
534   ADVANCED_WORLD_MAP_TEXT = "Movable World Map";
 
  545 ALL_ASSIST_DESCRIPTION = "If checked, all raid members will have the permissions of a Raid Assistant.";
  546 ALL_ASSIST_LABEL = "All |TInterface\\GroupFrame\\UI-Group-AssistantIcon:20:20:0:1|t";
  547 ALL_ASSIST_LABEL_LONG = "Make Everyone Assistant";
  548 ALL_ASSIST_NOT_LEADER_ERROR = "Only the Raid Leader may change this option.";
 
829   BINDING_HEADER_RAID_TARGET = "Raid Targeting";
  832 BINDING_HEADER_RAID_TARGET = "Target Markers";
 
  883 BINDING_NAME_EXTRAACTIONBUTTON1 = "Extra Action Button 1";
 
994   BINDING_NAME_RAIDTARGETNONE = "Clear Raid Target Icon";
  998 BINDING_NAME_RAIDTARGETNONE = "Clear Target Marker Icon";
 
  1161 BNET_REPORT_ABUSE_BUTTON_SHORT = "Report Abuse";
 
  1213 BOSS_INFO_STRING = "Boss: %s";
 
1666   CHAT_RESTRICTED = "A trial account may only send whispers to characters that have you on their friends list.  \124cffffd000\124HurlIndex:2\124h[Click To Upgrade]\124h\124r";
  1672 CHAT_RESTRICTED = "A Starter Edition account may only send whispers to characters that have you on their friends list.  \124cffffd000\124HurlIndex:2\124h[Click To Upgrade]\124h\124r";
 
  1690 CHAT_TRIAL_RESTRICTED_NOTICE = "|Hchannel:%d|h[%s]|h Starter Edition accounts cannot send messages to this channel. \124cffffd000\124HurlIndex:2\124h[Click To Upgrade]\124h\124r";
 
2117   DEFAULT_AFK_MESSAGE = "Away";
  2124 DEFAULT_AFK_MESSAGE = "AFK";
 
2121   DEFAULT_DND_MESSAGE = "Busy";
  2128 DEFAULT_DND_MESSAGE = "DND";
 
  2192 DRAG_MODEL = "Drag";
  2193 DRAG_MODEL_TOOLTIP = "Right-click on character and drag to move it within the window.";
 
  2281 DUNGEON_FLOOR_DRAGONSOUL0 = "Dragonblight";
  2282 DUNGEON_FLOOR_DRAGONSOUL1 = "Maw of Unmaking";
  2283 DUNGEON_FLOOR_DRAGONSOUL2 = "Maw of Ruin";
  2284 DUNGEON_FLOOR_DRAGONSOUL3 = "Eye of Eternity";
  2285 DUNGEON_FLOOR_DRAGONSOUL4 = "Skyfire Airship";
  2286 DUNGEON_FLOOR_DRAGONSOUL5 = "Spine of Deathwing";
  2287 DUNGEON_FLOOR_DRAGONSOUL6 = "The Maelstrom";
 
  2290 DUNGEON_FLOOR_ENDTIME0 = "Entryway of Time";
  2291 DUNGEON_FLOOR_ENDTIME1 = "Azure Dragonshrine";
  2292 DUNGEON_FLOOR_ENDTIME2 = "Ruby Dragonshrine";
  2293 DUNGEON_FLOOR_ENDTIME3 = "Obsidian Dragonshrine";
  2294 DUNGEON_FLOOR_ENDTIME4 = "Emerald Dragonshrine";
  2295 DUNGEON_FLOOR_ENDTIME5 = "Bronze Dragonshrine";
 
  2313 DUNGEON_FLOOR_HOUROFTWILIGHT0 = "Hour of Twilight";
  2314 DUNGEON_FLOOR_HOUROFTWILIGHT1 = "Wyrmrest Temple";
 
  2437 DUNGEON_FLOOR_WELLOFETERNITY = "Well of Eternity";
 
  3216 ENTER_EMAIL = "Enter email address";
  3217 ENTER_EMAIL_OR_CHARACTER = "Enter email or character-realm name";
 
  3360 ERR_BATTLEGROUND_DUPE_QUEUE = "Someone in your group is already queued for that.";
 
3382   ERR_CHAT_RESTRICTED = "Trial accounts cannot send unlimited tells, you must wait before you can send tells to more players.  \124cffffd000\124HurlIndex:2\124h[Click To Upgrade]\124h\124r";
  3410 ERR_CHAT_RESTRICTED = "Starter Edition accounts cannot send unlimited tells. You must wait before you can send tells to more players.  \124cffffd000\124HurlIndex:2\124h[Click To Upgrade]\124h\124r";
 
  3441 ERR_DIFFICULTY_DISABLED_IN_LFG = "[PH]DIFFICULTY_DISABLED_IN_LFG";
 
  3521 ERR_GUILD_LEADER_REPLACED = "Because the previous guild master %s has not logged in for an extended time, %s has become the new Guild Master.";
 
  3542 ERR_GUILD_REP_TOO_LOW = "Your guild reputation isn't high enough to do that.";
 
3513   ERR_GUILD_TRIAL_ACCOUNT = "Feature not available for trial accounts.";
  3544 ERR_GUILD_TRIAL_ACCOUNT = "Feature not available for Starter Edition accounts.";
 
3535   ERR_INVALID_RAID_TARGET = "You cannot raid target enemy players";
  3566 ERR_INVALID_RAID_TARGET = "You cannot target mark enemy players";
 
3546   ERR_INVITE_RESTRICTED = "Trial accounts cannot invite characters into groups. \124cffffd000\124HurlIndex:2\124h[Click To Upgrade]\124h\124r";
  3577 ERR_INVITE_RESTRICTED = "Starter Edition accounts cannot invite characters into groups. \124cffffd000\124HurlIndex:2\124h[Click To Upgrade]\124h\124r";
 
  3777 ERR_PARENTAL_CONTROLS_CHAT_MUTED = "Your current parental control settings prohibit the ability to send or receive chat messages.";
 
3772   ERR_PETITION_RESTRICTED_ACCOUNT = "Trial accounts may not sign guild charters. \124cffffd000\124HurlIndex:2\124h[Click To Upgrade]\124h\124r";
  3804 ERR_PETITION_RESTRICTED_ACCOUNT = "Starter Edition accounts may not sign guild charters. \124cffffd000\124HurlIndex:2\124h[Click To Upgrade]\124h\124r";
 
3893   ERR_RESTRICTED_ACCOUNT = "Trial accounts cannot perform that action";
  3925 ERR_RESTRICTED_ACCOUNT = "Starter Edition accounts cannot perform that action";
 
  4021 ERR_TRANSMOGRIFY_CANT_EQUIP = "You must be able to equip an item to use its appearance.";
  4022 ERR_TRANSMOGRIFY_INVALID_DESTINATION = "%s cannot be transmogrified.";
  4023 ERR_TRANSMOGRIFY_INVALID_ITEM_TYPE = "This item does not have a valid appearance.";
  4024 ERR_TRANSMOGRIFY_INVALID_SOURCE = "This item's appearance cannot be used.";
  4025 ERR_TRANSMOGRIFY_LEGENDARY = "You cannot transmogrify or use the appearance of a legendary item.";
  4026 ERR_TRANSMOGRIFY_MISMATCH = "You can only transmogrify an item to take the appearance of an item of the same type and slot.";
  4027 ERR_TRANSMOGRIFY_NOT_EQUIPPED = "You can only transmogrify an item equipped in the same slot.";
  4028 ERR_TRANSMOGRIFY_NOT_SOULBOUND = "%s cannot be transmogrified because it is not bound to you.";
  4029 ERR_TRANSMOGRIFY_SAME_APPEARANCE = "%s already has that appearance.";
  4030 ERR_TRANSMOGRIFY_SAME_ITEM = "You cannot transmogrify an item with the same item.";
 
  4069 ERR_VOID_DEPOSIT_FULL = "You can't deposit more than 9 items at once.";
  4070 ERR_VOID_STORAGE_BAG = "You cannot deposit a non-empty bag in void storage.";
  4071 ERR_VOID_STORAGE_CHARGES = "You cannot deposit an item with used charges in void storage.";
  4072 ERR_VOID_STORAGE_CONJURED = "You cannot deposit conjured items in void storage.";
  4073 ERR_VOID_STORAGE_DURATION = "You cannot deposit items with limited duration in void storage.";
  4074 ERR_VOID_STORAGE_HOLIDAY = "You cannot deposit Holiday related items in void storage.";
  4075 ERR_VOID_STORAGE_LOOT = "You cannot deposit lootable items in void storage.";
  4076 ERR_VOID_STORAGE_MAIL = "You cannot deposit mail items in void storage.";
  4077 ERR_VOID_STORAGE_QUEST = "You cannot deposit quest items in void storage.";
  4078 ERR_VOID_STORAGE_REPAIR = "You must repair that item before you can deposit it in void storage.";
  4079 ERR_VOID_STORAGE_STACKABLE = "You cannot deposit stackable items in void storage.";
  4080 ERR_VOID_STORAGE_UNBOUND = "Only soulbound items can be deposited in void storage.";
  4081 ERR_VOID_STORAGE_UNIQUE = "You cannot deposit unique items in void storage.";
  4082 ERR_VOID_STORAGE_WRAPPED = "You cannot deposit wrapped items in void storage.";
  4083 ERR_VOID_TRANSFER_INTERNAL_ERROR = "Internal void storage error.";
  4084 ERR_VOID_TRANSFER_INV_FULL = "There is not enough room in your bags to complete the withdrawal.";
  4085 ERR_VOID_TRANSFER_STORAGE_FULL = "There is not enough room in void storage to complete the deposit.";
  4086 ERR_VOID_WITHDRAW_FULL = "You can't withdraw more than 9 items at once.";
 
4033   ERR_YELL_RESTRICTED = "Trial accounts cannot yell. \124cffffd000\124HurlIndex:2\124h[Click To Upgrade]\124h\124r";
  4093 ERR_YELL_RESTRICTED = "Starter Edition accounts cannot yell. \124cffffd000\124HurlIndex:2\124h[Click To Upgrade]\124h\124r";
 
  4196 FIND_RAID = "Find Raid";
 
4295   GM_TICKET_WAIT_TIME = "Approximate time remaining:\n%s";
  4356 GM_TICKET_WAIT_TIME = "Average ticket wait time:\n%s";
 
  4366 GRAPHICS_OPTIONS_UNAVAILABLE = "Some options are unavailable while %1$s is set to %2$s.";
 
  4406 GUILDBANK_UNLOCKTAB_FORMAT = "%s unlocked a guild bank tab with a Guild Vault Voucher.";
 
  4527 GUILD_FACTION_TITLE_EXALTED_FEMALE = "Champion of %s";
 
  4529 GUILD_FACTION_TITLE_FRIENDLY_FEMALE = "Recruit of %s";
 
  4531 GUILD_FACTION_TITLE_HONORED_FEMALE = "Guardian of %s";
 
  4533 GUILD_FACTION_TITLE_REVERED_FEMALE = "Veteran of %s";
 
  4554 GUILD_IMPEACH_BUTTON_TEXT = "|cFFFF0000Guild Master Inactive!|r |cFFFFFFFF[Click Here for Info]|r";
  4555 GUILD_IMPEACH_POPUP_CONFIRM = "Dethrone";
  4556 GUILD_IMPEACH_POPUP_TEXT = "Your guild master has been flagged as inactive.  You may assume control of the guild. Do you want to remove the guild master?";
 
4529   GUILD_NAME_ALERT_MEMBER_HELP = "Your guildmaster must pick a new name within then guidelines of our naming policy.";
  4599 GUILD_NAME_ALERT_MEMBER_HELP = "Your guildmaster must pick a new name within the guidelines of our naming policy.";
 
4788   HELP_BUTTON = "Help Request";
  4858 HELP_BUTTON = "Customer Support";
 
  4927 HUNTER_TRACKING_TEXT = "Hunter Tracking";
 
  5123 ITEM_LEVEL_ABBR = "iLvl";
 
  5641 LOOT_ROLL_ROLLED_NEED_ROLE_BONUS = "Need Roll - %d for %s by %s + Role Bonus";
 
  5670 MAC_DISABLE_OS_SHORTCUTS = "Disable OS Keyboard Shortcuts";
  5671 MAC_DISABLE_OS_SHORTCUTS_TOOLTIP = "Disables the operating system keyboard shortcuts. Use this if you don't want to accidentally fire operating system shortcuts during the game.";
 
  5673 MAC_OPTIONS_MISC = "Miscellaneous";
  5674 MAC_SWAP_CONTROL_AND_COMMAND = "Use Command instead of Control for key bindings";
  5675 MAC_SWAP_CONTROL_AND_COMMAND_TOOLTIP = "Use this if you want to use the Command key modifier for key bindings instead of the Control key.";
 
  5721 MAP_OPTIONS_TEXT = "Map Options";
 
  5745 MELEE_ATTACK_POWER_SPELL_POWER_TOOLTIP = "Increases damage with melee weapons by %.1f damage per second.\nIncreases Spell Power by %d.";
 
  5765 MINIMAP_TRACKING_DIGSITES = "Track Digsites";
 
  5772 MINIMAP_TRACKING_QUEST_POIS = "Track Quest POIs";
 
  5983 NEWBIE_TOOLTIP_RAID_BROWSER = "Allows you to view a list of other players looking to perform particular activities. Also allows you to control your appearance on that list.";
 
6057   OPTION_TOOLTIP_ADVANCED_WORLD_MAP = "Enabling this will allow you to move the smaller world map by right-clicking its title bar.";
 
  6310 OPTION_TOOLTIP_SHOW_ALL_ENEMY_DEBUFFS = "Show all debuffs on enemy targets instead of just those deemed relevant to you.";
 
6422   PARTY_PHASED_MESSAGE = "This player is in a different phase. You cannot see nor interact with this player.";
  6505 PARTY_PHASED_MESSAGE = "This player is in a different phase. You can neither see nor interact with this player.";
 
  6626 PLAYERS_FOUND_OUT_OF_MAX = "%d/%d";
 
  6684 POWER_TYPE_REGENERATIVE_BLOOD = "Regenerative Blood";
 
  6881 PVP_SUSPENDED_QUEUE_STATUS = "Your queue has been suspended because you or a party member are currently participating in another activity. You will retain your place in the queue.";
 
  6985 RAID_FINDER = "Raid Finder";
 
6954   RAID_TARGET_ICON = "Raid Target Icon";
  7041 RAID_TARGET_ICON = "Target Marker Icon";
 
  7101 REFORGE_RESTORE_MESSAGE = "This item has already been reforged and cannot be reforged again until it has been restored to its previous state.";
 
  7154 REQUIRES_GUILD_FACTION_TOOLTIP = "Requires %s with guild";
 
  7158 REQ_LEVEL_ABBR = "Lvl";
 
  7206 RETRIEVING_INVITE_LIST = "Retrieving invite list";
 
  7208 RETURN_TO_DEFAULT = "Return to default";
 
  7239 ROTATE_LEFT = "Rotate Left";
 
  7241 ROTATE_RIGHT = "Rotate Right";
  7242 ROTATE_TOOLTIP = "Left-click on character and drag to rotate.";
 
  7282 SCROLL_OF_RESURRECTION = "Scroll Of Resurrection";
  7283 SCROLL_OF_RESURRECTION_TOOLTIP = "You can send a Scroll of Resurrection to players with inactive accounts. Click here for more information.";
 
  7308 SEND_SCROLL_OF_RESURRECTION = "Send Scroll of Resurrection";
 
  7344 SHOW_ALL_ENEMY_DEBUFFS_TEXT = "Show All Enemy Debuffs";
 
  7351 SHOW_BOSSES_ON_MAP_TEXT = "Show Bosses";
 
  7434 SKILL_ABBR = "Skill";
 
  7563 SLASH_CLEAR_WORLD_MARKER1 = "/cwm";
  7564 SLASH_CLEAR_WORLD_MARKER2 = "/cwm";
  7565 SLASH_CLEAR_WORLD_MARKER3 = "/clearworldmarker";
  7566 SLASH_CLEAR_WORLD_MARKER4 = "/clearworldmarker";
 
  7847 SLASH_RANDOM8 = "/roll";
 
  7914 SLASH_TARGET_MARKER1 = "/tm";
  7915 SLASH_TARGET_MARKER2 = "/tm";
  7916 SLASH_TARGET_MARKER3 = "/targetmarker";
  7917 SLASH_TARGET_MARKER4 = "/targetmarker";
 
  7996 SLASH_WORLD_MARKER1 = "/wm";
  7997 SLASH_WORLD_MARKER2 = "/wm";
  7998 SLASH_WORLD_MARKER3 = "/worldmarker";
  7999 SLASH_WORLD_MARKER4 = "/worldmarker";
 
  8008 SLOT_ABBR = "Slots";
 
  8579 STAT4_NOSPELLPOWER_TOOLTIP = "Increases Mana by %d\nIncreases Spell Critical Hit by %.2f%%";
 
  8600 STAT_AVERAGE_ITEM_LEVEL_EQUIPPED = "(Equipped %d)";
 
  8952 TOWNSFOLK_TRACKING_TEXT = "Townsfolk";
 
  9012 TRANSFER = "Transfer";
 
  9032 TRANSMOGRIFIED = "Transmogrified to:\n%s";
  9033 TRANSMOGRIFY = "Transmogrify";
  9034 TRANSMOGRIFY_BIND_CONFIRMATION = "Using this item for transmogrify will bind it to you and make it non-refundable and non-tradeable.";
  9035 TRANSMOGRIFY_INVALID_REASON1 = "There is no equipped item in this slot.";
  9036 TRANSMOGRIFY_INVALID_REASON2 = "This item is not soulbound.";
  9037 TRANSMOGRIFY_INVALID_REASON3 = "Legendary items cannot be transmogrified.";
  9038 TRANSMOGRIFY_INVALID_REASON4 = "This item cannot be transmogrified.";
  9039 TRANSMOGRIFY_INVALID_REASON5 = "This item cannot be transmogrified.";
  9040 TRANSMOGRIFY_TOOLTIP_APPLY = "To be transmogrified to:\n%s";
  9041 TRANSMOGRIFY_TOOLTIP_REVERT = "To be reverted";
 
8914   TRIAL_ACCOUNT_LEVEL_CAP_REACHED = "You have reached the maximum possible level on a trial account. \124cffffd000\124HurlIndex:2\124h[Click Here]\124h\124r to upgrade your account!";
8915   TRIAL_ACCOUNT_MONEY_CAP_REACHED = "You already have the maximum amount of money on a trial account. \124cffffd000\124HurlIndex:2\124h[Click Here]\124h\124r to upgrade your account!";
8916   TRIAL_CAPPED = "Trial cap reached.";
8917   TRIAL_CAPPED_MONEY = "Trial money cap reached.";
8918   TRIAL_LEVEL_CAPPED = "Trial level cap reached.";
  9043 TRIAL_ACCOUNT_LEVEL_CAP_REACHED = "You have reached the maximum possible level on a Starter Edition account. \124cffffd000\124HurlIndex:2\124h[Click Here]\124h\124r to upgrade your account!";
  9044 TRIAL_ACCOUNT_MONEY_CAP_REACHED = "You already have the maximum amount of money on a Starter Edition account. \124cffffd000\124HurlIndex:2\124h[Click Here]\124h\124r to upgrade your account!";
  9045 TRIAL_CAPPED = "Starter Edition cap reached.";
  9046 TRIAL_CAPPED_MONEY = "Starter Edition money cap reached.";
  9047 TRIAL_LEVEL_CAPPED = "Starter Edition level cap reached.";
 
8930   TUTORIAL10_DWARF = "You recieved a quest to kill |cffffd200Rockjaw Invaders|r. |nUse the mini-map in the upper right corner to guide you.";
8931   TUTORIAL10_GNOME = "You recieved a quest to kill |cffffd200Crazed Leper Gnomes|r. |nUse the mini-map in the upper right corner to guide you.";
  9059 TUTORIAL10_DWARF = "You received a quest to kill |cffffd200Rockjaw Invaders|r. \nUse the mini-map in the upper right corner to guide you.";
  9060 TUTORIAL10_GNOME = "You received a quest to kill |cffffd200Crazed Leper Gnomes|r. \nUse the mini-map in the upper right corner to guide you.";
 
8933   TUTORIAL10_NIGHTELF = "You recieved a quest to kill |cffffd200Young Nightsabers|r. |nUse the mini-map in the upper right corner to guide you.";
8934   TUTORIAL10_ORC = "You recieved a quest to kill |cffffd200Mottled Boar|r. |nUse the mini-map in the upper right corner to guide you.";
8935   TUTORIAL10_SCOURGE = "You recieved a quest to kill |cffffd200Mindless Zombies|r. |nUse the mini-map in the upper right corner to guide you.";
8936   TUTORIAL10_TAUREN = "You recieved a quest to kill |cffffd200Bristleback Invaders|r. |nUse the mini-map in the upper right corner to guide you.";
8937   TUTORIAL10_TROLL = "You recieved a quest to kill |cffffd200Tiki Targets|r. |nUse the mini-map in the upper right corner to guide you.";
  9062 TUTORIAL10_NIGHTELF = "You received a quest to kill |cffffd200Young Nightsabers|r. \nUse the mini-map in the upper right corner to guide you.";
  9063 TUTORIAL10_ORC = "You received a quest to kill |cffffd200Mottled Boar|r. \nUse the mini-map in the upper right corner to guide you.";
  9064 TUTORIAL10_SCOURGE = "You received a quest to kill |cffffd200Mindless Zombies|r. \nUse the mini-map in the upper right corner to guide you.";
  9065 TUTORIAL10_TAUREN = "You received a quest to kill |cffffd200Bristleback Invaders|r. \nUse the mini-map in the upper right corner to guide you.";
  9066 TUTORIAL10_TROLL = "You received a quest to kill |cffffd200Tiki Targets|r. \nUse the mini-map in the upper right corner to guide you.";
 
8994   TUTORIAL4_DWARF = "The |cffffd200Rockjaw Invaders|r are nearby |cffffd200Left Click|r on any |cffffd200Rockjaw Invaders|r to target it.";
8995   TUTORIAL4_GNOME = "The |cffffd200Crazed Leper Gnomes|r are nearby |cffffd200Left Click|r on any |cffffd200Crazed Leper Gnome|r to target it.";
8996   TUTORIAL4_HUMAN = "The |cffffd200Blackrock Battle Worgs|r are nearby |cffffd200Left Click|r on any |cffffd200Blackrock Battle Worg|r to target it.";
8997   TUTORIAL4_NIGHTELF = "The |cffffd200Young Nightsabers|r are nearby |cffffd200Left Click|r on any |cffffd200Young Nightsaber|r to target it.";
8998   TUTORIAL4_ORC = "The |cffffd200Mottled Boar|r are nearby |cffffd200Left Click|r on any |cffffd200Mottled Boar|r to target it.";
8999   TUTORIAL4_SCOURGE = "The |cffffd200Mindless Zombies|r are nearby |cffffd200Left Click|r on any |cffffd200Mindless Zombie|r to target it.";
9000   TUTORIAL4_TAUREN = "The |cffffd200Bristleback Invaders|r are nearby |cffffd200Left Click|r on any |cffffd200Bristleback Invader|r to target it.";
9001   TUTORIAL4_TROLL = "The |cffffd200Tiki Targets|r are nearby |cffffd200Left Click|r on any |cffffd200Tiki Target|r to target it.";
  9123 TUTORIAL4_DWARF = "The |cffffd200Rockjaw Invaders|r are nearby. |cffffd200Left Click|r on any |cffffd200Rockjaw Invaders|r to target it.";
  9124 TUTORIAL4_GNOME = "The |cffffd200Crazed Leper Gnomes|r are nearby. |cffffd200Left Click|r on any |cffffd200Crazed Leper Gnome|r to target it.";
  9125 TUTORIAL4_HUMAN = "The |cffffd200Blackrock Battle Worgs|r are nearby. |cffffd200Left Click|r on any |cffffd200Blackrock Battle Worg|r to target it.";
  9126 TUTORIAL4_NIGHTELF = "The |cffffd200Young Nightsabers|r are nearby. |cffffd200Left Click|r on any |cffffd200Young Nightsaber|r to target it.";
  9127 TUTORIAL4_ORC = "The |cffffd200Mottled Boar|r are nearby. |cffffd200Left Click|r on any |cffffd200Mottled Boar|r to target it.";
  9128 TUTORIAL4_SCOURGE = "The |cffffd200Mindless Zombies|r are nearby. |cffffd200Left Click|r on any |cffffd200Mindless Zombie|r to target it.";
  9129 TUTORIAL4_TAUREN = "The |cffffd200Bristleback Invaders|r are nearby. |cffffd200Left Click|r on any |cffffd200Bristleback Invader|r to target it.";
  9130 TUTORIAL4_TROLL = "The |cffffd200Tiki Targets|r are nearby. |cffffd200Left Click|r on any |cffffd200Tiki Target|r to target it.";
 
  9275 UNDOCK_WINDOW = "Undock Window";
 
9227   UNLEARN_SKILL = "Do you want to unlearn %s?";
  9357 UNLEARN_SKILL = "Do you want to unlearn %s, and lose all associated recipes?";
 
  9359 UNLEARN_SPECIALIZATION_TOOLTIP = "Unlearn this specialization.";
 
  9366 UNLOCK_VOID_STORAGE = "Unlock Void Storage";
 
  9463 VOICECHAT_NO_64BIT_TEXT = "Voice Chat is not yet supported in 64-bit World of Warcraft.";
 
  10409 VOID_STORAGE = "Void Storage";
  10410 VOID_STORAGE_DEPOSIT_CONFIRMATION = "Depositing this item will remove all modifications and make it non-refundable and non-tradeable.";
  10411 VOID_STORAGE_TUTORIAL1 = "Drag items here to deposit them into Void Storage.";
  10412 VOID_STORAGE_TUTORIAL2 = "You can only store\nsoulbound gear.";
  10413 VOID_STORAGE_TUTORIAL3 = "Drag items to here from your Void Storage to withdraw them.";
  10414 VOID_STORAGE_TUTORIAL4 = "Finalize the transfer here to deposit and withdraw items.";
  10415 VOID_STORAGE_TUTORIAL5 = "Cost is determined per item.";
  10416 VOID_STORAGE_WELCOME = "Welcome to the Void Storage Service";
  10417 VOID_STORAGE_WELCOME_TEXT = "Only soulbound gear is allowed to be stored.\nItems stored will lose any modifications and will become\nnon-refundable and non-tradeable.";
 
10373   WORLD_PVP_PENDING = "You are queued for %s but have not yet been called to battle yet. You will be ported out in a few moments.";
10374   WORLD_PVP_PENDING_REMOTE = "You are queued for %s but have not yet been called to battle yet.";
  10515 WORLD_PVP_PENDING = "You are queued for %s but have not yet been called to battle. You will be ported out in a few moments.";
  10516 WORLD_PVP_PENDING_REMOTE = "You are queued for %s but have not yet been called to battle.";
   
File: FrameXML\GraphicsQualityLevels.lua  
  376         onCapCheck =
  377                 function(self)
  378                         if ( not self.maxValue ) then
  379                                 local settings = { GetMultisampleFormats(Graphics_PrimaryMonitorDropDown:GetValue()) };
  380                                 self.maxValue = #settings / self.TABLENEXT;
  381                         end
 
  383                         local capMaxValue = self.maxValue;
  384                         local tooltip;
  385                         for key, cvar in pairs(self.cvarCaps) do
  386                                 local dropDown = _G[key];
  387                                 if ( dropDown ) then
  388                                         local cvarValue = ControlGetCurrentCvarValue(dropDown, cvar);
  389                                         local capValue = GetMaxMultisampleFormatOnCvar(cvar, cvarValue);
  390                                         capMaxValue = min(capMaxValue, capValue);
  391                                         if ( capValue < self.maxValue ) then
  392                                                 local setting = dropDown.data[dropDown:GetValue()].text;
  393                                                 if ( setting ) then
  394                                                         if ( tooltip ) then
  395                                                                 tooltip = tooltip .. "|n" .. string.format(GRAPHICS_OPTIONS_UNAVAILABLE, dropDown.name, setting);
  396                                                         else
  397                                                                 tooltip = string.format(GRAPHICS_OPTIONS_UNAVAILABLE, dropDown.name, setting);
  398                                                         end
  399                                                 end
  400                                         end
  401                                 end
  402                         end
  403                         if ( self:GetValue() > capMaxValue ) then
  404                                 VideoOptions_OnClick(Graphics_MultiSampleDropDown, capMaxValue);
  405                                 -- update the text on the dropdown
  406                                 local settings = { GetMultisampleFormats(Graphics_PrimaryMonitorDropDown:GetValue()) };
  407                                 local mValue = settings[capMaxValue * self.TABLENEXT];
  408                                 VideoOptionsDropDownMenu_SetText(self, format(VIDEO_OPTIONS_MULTISAMPLE_FORMAT_STRING, mValue));
  409                         end
  410                         self.capMaxValue = capMaxValue;
  411                         if ( tooltip ) then
  412                                 self.cappedTooltip = "|cffff2020"..tooltip.."|r";
  413                         else
  414                                 self.cappedTooltip = nil;
  415                         end
  416                         Graphics_PrepareTooltip(self);
  417                 end,
  418         cvarCaps = {
  419                 Graphics_LiquidDetailDropDown = "waterDetail",
  420                 Graphics_SunshaftsDropDown = "sunshafts",
  421         },
 
  884         capTargets = {
  885                 "Graphics_MultiSampleDropDown",
  886         }
 
  920         capTargets = {
  921                 "Graphics_MultiSampleDropDown",
  922         }
   
File: FrameXML\HelpFrame.lua  
  104 local kbsetupLoaded = false;
 
  134         -- hearthstone button events
  135         local button = HelpFrameCharacterStuckHearthstone;
  136         button:RegisterEvent("BAG_UPDATE_COOLDOWN");
  137         button:RegisterEvent("BAG_UPDATE");
  138         button:RegisterEvent("SPELL_UPDATE_USABLE");
  139         button:RegisterEvent("SPELL_UPDATE_COOLDOWN");
  140         button:RegisterEvent("CURRENT_SPELL_CAST_CHANGED");    
 
  146         -- hearthstone button events
  147         local button = HelpFrameCharacterStuckHearthstone;
  148         button:UnregisterEvent("BAG_UPDATE_COOLDOWN");
  149         button:UnregisterEvent("BAG_UPDATE");
  150         button:UnregisterEvent("SPELL_UPDATE_USABLE");
  151         button:UnregisterEvent("SPELL_UPDATE_COOLDOWN");
  152         button:UnregisterEvent("CURRENT_SPELL_CAST_CHANGED");
 
593           self.loaded = 0;
 
604           if ( self.loaded == 0 ) then
  618         if ( not kbsetupLoaded ) then
 
612                   self.loaded = 1;
613                   local totalArticleHeaderCount = KBSetup_GetTotalArticleCount();
  626                 kbsetupLoaded = true;
 
615                   if ( totalArticleHeaderCount > 0 ) then
616                           self.totalArticleCount = totalArticleHeaderCount;
617                           self.dataFunc = KBSetup_GetArticleHeaderData;
618                           KnowledgeBase_UpdateArticles();
619                   else
620                           KnowledgeBase_ShowErrorFrame(self, KBASE_ERROR_NO_RESULTS);
621                   end
  627                 KnowledgeBase_SnapToTopIssues();
 
624                   self.loaded = 0;
  630                 kbsetupLoaded = false;
 
  639                         KnowledgeBase_HideErrorFrame(self, KBASE_ERROR_NO_RESULTS);
 
  813         if( not kbsetupLoaded ) then
  814                 --never loaded the setup so load setup and go to top issues.
  815                 KnowledgeBase_GotoTopIssues();
  816                 return;
  817         end
 
  937 function KnowledgeBase_HideErrorFrame(self, message)
  938         if ( self.errorFrame.text:GetText() == message ) then
  939                 self.errorFrame:Hide();
  940         end
  941 end
 
  948         if( kbsetupLoaded ) then
  949                 local totalArticleHeaderCount = KBSetup_GetTotalArticleCount();
 
  951                 if ( totalArticleHeaderCount > 0 ) then
  952                         HelpFrame.kbase.totalArticleCount = totalArticleHeaderCount;
  953                         HelpFrame.kbase.dataFunc = KBSetup_GetArticleHeaderData;
  954                         KnowledgeBase_UpdateArticles();
  955                         KnowledgeBase_HideErrorFrame(HelpFrame.kbase, KBASE_ERROR_NO_RESULTS);
  956                 else
  957                         KnowledgeBase_ShowErrorFrame(HelpFrame.kbase, KBASE_ERROR_NO_RESULTS);
  958                 end
  959         else
 
  961         end
 
941           KBSetup_BeginLoading(KBASE_NUM_ARTICLES_PER_PAGE, 0);
  972         KnowledgeBase_SnapToTopIssues();
   
File: FrameXML\HelpFrame.xml  
606                                                                   self:RegisterEvent("BAG_UPDATE_COOLDOWN");
607                                                                   self:RegisterEvent("BAG_UPDATE");
608                                                                   self:RegisterEvent("SPELL_UPDATE_USABLE");
609                                                                   self:RegisterEvent("SPELL_UPDATE_COOLDOWN");
610                                                                   self:RegisterEvent("CURRENT_SPELL_CAST_CHANGED");
 
615                                                                   if (self:IsShown()) then
  610                                                                 if ( self:IsVisible() ) then
 
1321                                                           <Frame>
1322                                                                   <Size>
1323                                                                           <AbsDimension x="10" y="10"/>
1324                                                                   </Size>
1325                                                                   <Anchors>
1326                                                                           <Anchor point="TOPLEFT"/>
1327                                                                   </Anchors>
1328                                                                   <Layers>
1329                                                                           <Layer level="ARTWORK">
1330                                                                                   <FontString name="HelpFrameGMResponse_IssueText" inherits="ChatFontNormal" justifyH="LEFT">
1331                                                                                           <Size x="413" y="0"/>
1332                                                                                           <Anchors>
1333                                                                                                   <Anchor point="TOPLEFT"/>
1334                                                                                           </Anchors>
1335                                                                                   </FontString>
1336                                                                           </Layer>
1337                                                                   </Layers>
1338                                                           </Frame>
  1316                                                         <EditBox name="HelpFrameGMResponse_IssueText" multiLine="true" letters="500" autoFocus="false">
  1317                                                                 <Size x="420" y="220"/>
  1318                                                                 <Scripts>
  1319                                                                         <OnTextChanged>
  1320                                                                                 self:GetParent():SetVerticalScroll(0);
  1321                                                                         </OnTextChanged>
  1322                                                                         <OnUpdate>
  1323                                                                                 ScrollingEdit_OnUpdate(self, elapsed, self:GetParent());
  1324                                                                         </OnUpdate>
  1325                                                                 </Scripts>
  1326                                                                 <FontString inherits="ChatFontNormal"/>
  1327                                                         </EditBox>
 
1364                                                           <Frame>
1365                                                                   <Size>
1366                                                                           <AbsDimension x="10" y="10"/>
1367                                                                   </Size>
1368                                                                   <Anchors>
1369                                                                           <Anchor point="TOPLEFT"/>
1370                                                                   </Anchors>
1371                                                                   <Layers>
1372                                                                           <Layer level="ARTWORK">
1373                                                                                   <FontString name="HelpFrameGMResponse_GMText" inherits="ChatFontNormal" justifyH="LEFT">
1374                                                                                           <Size x="413" y="0"/>
1375                                                                                           <Anchors>
1376                                                                                                   <Anchor point="TOPLEFT"/>
1377                                                                                           </Anchors>
1378                                                                                   </FontString>
1379                                                                           </Layer>
1380                                                                   </Layers>
1381                                                           </Frame>
  1353                                                         <EditBox name="HelpFrameGMResponse_GMText" multiLine="true" letters="500" autoFocus="false">
  1354                                                                 <Size x="420" y="220"/>
  1355                                                                 <Scripts>
  1356                                                                         <OnTextChanged>
  1357                                                                                 self:GetParent():SetVerticalScroll(0);
  1358                                                                         </OnTextChanged>
  1359                                                                         <OnUpdate>
  1360                                                                                 ScrollingEdit_OnUpdate(self, elapsed, self:GetParent());
  1361                                                                         </OnUpdate>
  1362                                                                 </Scripts>
  1363                                                                 <FontString inherits="ChatFontNormal"/>
  1364                                                         </EditBox>
 
  1417                                                 HelpFrameGMResponse_IssueText:Disable();
  1418                                                 HelpFrameGMResponse_GMText:Disable();
 
1470                           <Frame name="$parentTutorial" inherits="GlowBoxTemplate" parentKey="tutorial" enableMouse="true" hidden="true">
  1456                         <Frame name="$parentTutorial" inherits="GlowBoxTemplate" parentKey="tutorial" enableMouse="true" hidden="true" frameStrata="DIALOG">
 
  1510                                 GameTooltip:Hide();
   
File: FrameXML\HistoryKeeper.lua  
  6 local accessIDToChanSender = {};
 
7   function ChatHistory_GetAccessID(chatType, chatTarget)
8           if ( not accessIDs[ChatHistory_GetToken(chatType, chatTarget)] ) then
9                   accessIDs[ChatHistory_GetToken(chatType, chatTarget)] = nextAccessID;
  8 function ChatHistory_GetAccessID(chatType, chatTarget, chanSender)
  9         if ( not accessIDs[ChatHistory_GetToken(chatType, chatTarget, chanSender)] ) then
  10                 accessIDs[ChatHistory_GetToken(chatType, chatTarget, chanSender)] = nextAccessID;
 
  13                 accessIDToChanSender[nextAccessID] = chanSender;
 
14           return accessIDs[ChatHistory_GetToken(chatType, chatTarget)];
  16         return accessIDs[ChatHistory_GetToken(chatType, chatTarget, chanSender)];
 
18           return accessIDToType[accessID], accessIDToTarget[accessID];
  20         return accessIDToType[accessID], accessIDToTarget[accessID], accessIDToChanSender[accessID];
 
  23 function ChatHistory_GetAllAccessIDsByChanSender(chanSender)
  24         local results = {};     --Yes, GC. But shouldn't be called too frequently.
  25         for accessID, sender in pairs(accessIDToChanSender) do
  26                 if ( strlower(sender) == strlower(chanSender) ) then
  27                         results[#results + 1] = accessID;
  28                 end
  29         end
  30         return results;
  31 end
 
22   function ChatHistory_GetToken(chatType, chatTarget)
23           return strlower(chatType)..";;"..(chatTarget and strlower(chatTarget) or "");
  34 function ChatHistory_GetToken(chatType, chatTarget, chanSender)
  35         return strlower(chatType)..";;"..(chatTarget and strlower(chatTarget) or "")..";;"..(chanSender and strlower(chanSender) or "");
   
File: FrameXML\InterfaceOptionsFrame.lua  
343           ["SHOW_CASTABLE_DEBUFFS"] = { default = "0", cvar = "showCastableDebuffs", event = "SHOW_CASTABLE_DEBUFFS_TEXT" },
  343         ["SHOW_ALL_ENEMY_DEBUFFS"] = { default = "0", cvar = "showAllEnemyDebuffs", event = "SHOW_ALL_ENEMY_DEBUFFS_TEXT" },
   
File: FrameXML\InterfaceOptionsPanels.lua  
1517                   UIDropDownMenu_SetWidth(self, 110);
  1517                 UIDropDownMenu_SetWidth(self, 150);
 
1930           showCastableDebuffs = { text = "SHOW_CASTABLE_DEBUFFS_TEXT" },
  1930         showAllEnemyDebuffs = { text = "SHOW_ALL_ENEMY_DEBUFFS_TEXT" },
 
2092   --      enableMovePad = { text = "MOVE_PAD" },
  2092         enableMovePad = { text = "MOVE_PAD" },
   
File: FrameXML\InterfaceOptionsPanels.xml  
526                                           <Anchor point="TOPLEFT" relativeTo="$parentSubText" relativePoint="BOTTOMLEFT">
  526                                         <Anchor point="TOPLEFT" relativeTo="$parentAttackOnAssist" relativePoint="TOPRIGHT">
 
528                                                           <AbsDimension x="250" y="-10"/>
  528                                                         <AbsDimension x="260" y="-6"/>
 
895                                           <Anchor point="TOPLEFT" relativeTo="$parentShowSpellPointsAvg" relativePoint="BOTTOMLEFT">
  895                                         <Anchor point="TOPLEFT" relativeTo="$parentShowCloak" relativePoint="TOPRIGHT">
 
897                                                           <AbsDimension x="0" y="-8"/>
  897                                                         <AbsDimension x="260" y="0"/>
 
1097                           <CheckButton name="$parentAdvancedWorldMap" inherits="InterfaceOptionsCheckButtonTemplate">
  1097                         <CheckButton name="$parentWatchFrameWidth" inherits="InterfaceOptionsCheckButtonTemplate">
 
1100                                                   <Offset x="0" y="-8"/>
1101                                           </Anchor>
1102                                   </Anchors>
1103                                   <Scripts>
1104                                           <OnLoad>
1105                                                   self.type = CONTROLTYPE_CHECKBOX;
1106                                                   self.cvar = "advancedWorldMap";
1107                                                   self.setFunc = function () WorldMapFrame_ToggleAdvanced(); end;
1108                                                   BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
1109                                           </OnLoad>
1110                                   </Scripts>
1111                           </CheckButton>
1112                           <CheckButton name="$parentWatchFrameWidth" inherits="InterfaceOptionsCheckButtonTemplate">
1113                                   <Anchors>
1114                                           <Anchor point="TOPLEFT" relativeTo="$parentAdvancedWorldMap" relativePoint="BOTTOMLEFT">
 
1791                                           <Anchor point="TOPLEFT" relativeTo="$parentMyName" relativePoint="TOPLEFT">
  1776                                         <Anchor point="TOPLEFT" relativeTo="$parentMyName" relativePoint="TOPRIGHT">
 
1793                                                           <AbsDimension x="195" y="0"/>
  1778                                                         <AbsDimension x="260" y="0"/>
 
1939                                                           <AbsDimension x="60" y="0"/>
  1924                                                         <AbsDimension x="151" y="0"/>
 
2039                                                                           <AbsDimension x="0" y="-15"/>
  2024                                                                         <AbsDimension x="0" y="-55"/>
 
2106                                                                           <AbsDimension x="195" y="0"/>
  2091                                                                         <AbsDimension x="286" y="0"/>
 
2171                                                           <Anchor point="BOTTOMLEFT" relativeTo="$parentEnemies" relativePoint="TOPLEFT" x="-10" y="-2"/>
  2156                                                         <Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT">
  2157                                                                 <Offset>
  2158                                                                         <AbsDimension x="-12" y="-22"/>
  2159                                                                 </Offset>
  2160                                                         </Anchor>
 
2190                                                                   BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
  2179                                                                 BlizzardOptionsPanel_RegisterControl(self, self:GetParent():GetParent());
 
2332                                                           <AbsDimension x="200" y="0"/>
  2321                                                         <AbsDimension x="260" y="0"/>
 
2399                                           <Anchor point="TOPLEFT" relativeTo="$parentEnableFCT" relativePoint="TOPRIGHT">
2400                                                   <Offset>
2401                                                           <AbsDimension x="180" y="0"/>
2402                                                   </Offset>
  2388                                         <Anchor point="TOPLEFT" relativeTo="$parentEnableFCT" relativePoint="BOTTOMLEFT">
  2389                                                 <Offset x="-2" y="0"/>
 
2425                                                   <Offset x="10" y="-2"/>
  2412                                                 <Offset x="10" y="-30"/>
 
2526                                           <Anchor point="TOPLEFT" relativeTo="$parentCombatState" relativePoint="BOTTOMLEFT">
2527                                                   <Offset x="0" y="4"/>
  2513                                         <Anchor point="TOPLEFT" relativeTo="$parentDodgeParryMiss" relativePoint="TOPRIGHT">
  2514                                                 <Offset>
  2515                                                         <AbsDimension x="260" y="0"/>
  2516                                                 </Offset>
 
3083                           <CheckButton name="$parentShowCastableDebuffs" inherits="InterfaceOptionsCheckButtonTemplate">
  3072                         <CheckButton name="$parentShowAllEnemyDebuffs" inherits="InterfaceOptionsCheckButtonTemplate">
 
3094                                                   self.cvar = "showCastableDebuffs";
3095                                                   self.uvar = "SHOW_CASTABLE_DEBUFFS";
3096                                                   --self.setFunc = BlizzardOptionsPanel_UpdateRaidPullouts;
  3083                                                 self.cvar = "showAllEnemyDebuffs";
  3084                                                 self.uvar = "SHOW_ALL_ENEMY_DEBUFFS";
 
3813                           <CheckButton name="$parentMovePad" inherits="InterfaceOptionsCheckButtonTemplate">
3814                                   <Anchors>
3815                                           <Anchor point="TOPLEFT" relativeTo="$parentColorblindMode" relativePoint="BOTTOMLEFT">
3816                                                   <Offset>
3817                                                           <AbsDimension x="0" y="-8"/>
3818                                                   </Offset>
3819                                           </Anchor>
3820                                   </Anchors>
3821                                   <Scripts>
3822                                           <OnLoad>               
3823                                                   self.type = CONTROLTYPE_CHECKBOX;
3824                                                   self.cvar = "enableMovePad"
3825                                                   self.SetDisplayValue = self.SetValue;
3826                                                   self.setFunc = function(value)
3827                                                           if ( value == "1" ) then
3828                                                                   UIParentLoadAddOn("Blizzard_MovePad");
3829                                                                   MovePadFrame:Show();
3830                                                           elseif(IsAddOnLoaded("Blizzard_MovePad")) then
3831                                                                   MovePadFrame:Hide();
3832                                                           end
3833                                                   end
3834                                                   BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
3835                                                   self:RegisterEvent("VARIABLES_LOADED");
3836                                           </OnLoad>
3837                                           <OnEvent>
3838                                                   self.setFunc(GetCVar(self.cvar));
3839                                           </OnEvent>
3840                                   </Scripts>
3841                           </CheckButton>
  3800                         <CheckButton name="$parentMovePad" inherits="InterfaceOptionsCheckButtonTemplate">
  3801                                 <Anchors>
  3802                                         <Anchor point="TOPLEFT" relativeTo="$parentColorblindMode" relativePoint="BOTTOMLEFT">
  3803                                                 <Offset>
  3804                                                         <AbsDimension x="0" y="-8"/>
  3805                                                 </Offset>
  3806                                         </Anchor>
  3807                                 </Anchors>
  3808                                 <Scripts>
  3809                                         <OnLoad>               
  3810                                                 self.type = CONTROLTYPE_CHECKBOX;
  3811                                                 self.cvar = "enableMovePad"
  3812                                                 self.SetDisplayValue = self.SetValue;
  3813                                                 self.setFunc = function(value)
  3814                                                         if ( value == "1" ) then
  3815                                                                 UIParentLoadAddOn("Blizzard_MovePad");
  3816                                                                 MovePadFrame:Show();
  3817                                                         elseif(IsAddOnLoaded("Blizzard_MovePad")) then
  3818                                                                 MovePadFrame:Hide();
  3819                                                         end
  3820                                                 end
  3821                                                 BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
  3822                                                 self:RegisterEvent("VARIABLES_LOADED");
  3823                                         </OnLoad>
  3824                                         <OnEvent>
  3825                                                 self.setFunc(GetCVar(self.cvar));
  3826                                         </OnEvent>
  3827                                 </Scripts>
  3828                         </CheckButton>
   
File: FrameXML\ItemButtonTemplate.xml  
  11                         </Layer>
  12                         <Layer level="OVERLAY">
 
  31                         </Layer>
  32                         <Layer level="ARTWORK" textureSubLevel="2">
  33                                 <Texture name="$parentSearchOverlay" parentKey="searchOverlay" setAllPoints="true" hidden="true">
  34                                         <Color r="0" g="0" b="0" a="0.8"/>
  35                                 </Texture>
   
File: FrameXML\ItemRef.lua  
195           elseif ( strsub(link, 1, 7) == "journal" ) then
  195         elseif ( strsub(link, 1, 7) == "journal" and EncounterJournal ) then
   
File: FrameXML\LFDFrame.lua  
29           self:RegisterEvent("LFG_PROPOSAL_UPDATE");
30           self:RegisterEvent("LFG_PROPOSAL_SHOW");
31           self:RegisterEvent("LFG_PROPOSAL_FAILED");
32           self:RegisterEvent("LFG_PROPOSAL_SUCCEEDED");
  29         --self:RegisterEvent("LFG_PROPOSAL_UPDATE");
  30         --self:RegisterEvent("LFG_PROPOSAL_SHOW");
  31         --self:RegisterEvent("LFG_PROPOSAL_FAILED");
  32         --self:RegisterEvent("LFG_PROPOSAL_SUCCEEDED");
 
39           self:RegisterEvent("LFG_ROLE_UPDATE");
 
46           self.Inset:SetPoint("BOTTOMRIGHT", self, "BOTTOMRIGHT", 0, 26);
  45         self.Inset:SetPoint("BOTTOMRIGHT", self, "BOTTOMRIGHT", -2, 26);
 
50           if ( event == "LFG_PROPOSAL_UPDATE" ) then
51                   LFDDungeonReadyPopup_Update();
52           elseif ( event == "LFG_PROPOSAL_SHOW" ) then
53                   LFDDungeonReadyPopup.closeIn = nil;
54                   LFDDungeonReadyPopup:SetScript("OnUpdate", nil);
55                   LFDDungeonReadyStatus_ResetReadyStates();
56                   StaticPopupSpecial_Show(LFDDungeonReadyPopup);
57                   LFDSearchStatus:Hide();
58                   PlaySound("ReadyCheck");
59           elseif ( event == "LFG_PROPOSAL_FAILED" ) then
60                   LFDDungeonReadyPopup_OnFail();
61           elseif ( event == "LFG_PROPOSAL_SUCCEEDED" ) then
62                   LFGDebug("Proposal Hidden: Proposal succeeded.");
63                   StaticPopupSpecial_Hide(LFDDungeonReadyPopup);
64           elseif ( event == "LFG_ROLE_CHECK_SHOW" ) then
  49         if ( event == "LFG_ROLE_CHECK_SHOW" ) then
 
80           elseif ( event == "LFG_ROLE_UPDATE" ) then
81                   LFG_UpdateRoleCheckboxes();
 
356                           displayName = format(HEROIC_PREFIX, LFGGetDungeonInfoByID(dungeonID)[LFG_RETURN_VALUES.name]);
  339                         displayName = format(HEROIC_PREFIX, select(LFG_RETURN_VALUES.name, GetLFGDungeonInfo(dungeonID)));
 
358                           displayName = LFGGetDungeonInfoByID(dungeonID)[LFG_RETURN_VALUES.name];
  341                         displayName = select(LFG_RETURN_VALUES.name, GetLFGDungeonInfo(dungeonID));
 
365   function LFDFrameRoleCheckButton_OnEnter(self)
366           if ( self.checkButton:IsEnabled() == 1 ) then
367                   self.checkButton:LockHighlight();
368           end
369   end
 
373           local info = LFGGetDungeonInfoByID(dungeonID);
  350         local name, typeID, minLevel, maxLevel, recLevel, minRecLevel, maxRecLevel, expansionLevel, groupID, textureFilename, difficulty, maxPlayers, description, isHoliday = GetLFGDungeonInfo(dungeonID);
 
376                   local name = info[LFG_RETURN_VALUES.name];
 
383                   if ( info[LFG_RETURN_VALUES.typeID] == TYPEID_HEROIC_DIFFICULTY ) then
  359                 if ( typeID == TYPEID_HEROIC_DIFFICULTY ) then
 
400                   local name =  info[LFG_RETURN_VALUES.name];
401                   local minLevel, maxLevel = info[LFG_RETURN_VALUES.minLevel], info[LFG_RETURN_VALUES.maxLevel];
402                   local minRecLevel, maxRecLevel = info[LFG_RETURN_VALUES.minRecLevel], info[LFG_RETURN_VALUES.maxRecLevel];
403                   local recLevel = info[LFG_RETURN_VALUES.recLevel];
 
496                   if ( LFGGetDungeonInfoByID(dungeonID)[LFG_RETURN_VALUES.groupID] == headerID ) then
  467                 if ( select(LFG_RETURN_VALUES.groupID, GetLFGDungeonInfo(dungeonID)) == headerID ) then
 
501                   if ( LFGGetDungeonInfoByID(dungeonID)[LFG_RETURN_VALUES.groupID] == headerID ) then
  472                 if ( select(LFG_RETURN_VALUES.groupID, GetLFGDungeonInfo(dungeonID)) == headerID ) then
 
510                   local info = LFGGetDungeonInfoByID(queueID);
 
556                   if ( LFGGetDungeonInfoByID(dungeonID)[LFG_RETURN_VALUES.groupID] == headerID ) then
  526                 if ( select(LFG_RETURN_VALUES.groupID, GetLFGDungeonInfo(dungeonID)) == headerID ) then
 
561                   if ( LFGGetDungeonInfoByID(dungeonID)[LFG_RETURN_VALUES.groupID] == headerID ) then
  531                 if ( select(LFG_RETURN_VALUES.groupID, GetLFGDungeonInfo(dungeonID)) == headerID ) then
 
598   end
 
600   --Ready popup functions
 
602   function LFDDungeonReadyPopup_OnFail()
603           PlaySound("LFG_Denied");
604           if ( LFDDungeonReadyDialog:IsShown() ) then
605                   LFGDebug("Proposal Hidden: Proposal failed.");
606                   StaticPopupSpecial_Hide(LFDDungeonReadyPopup);
607           elseif ( LFDDungeonReadyPopup:IsShown() ) then
608                   LFDDungeonReadyPopup.closeIn = LFD_PROPOSAL_FAILED_CLOSE_TIME;
609                   LFDDungeonReadyPopup:SetScript("OnUpdate", LFDDungeonReadyPopup_OnUpdate);
610           end
611   end
 
613   function LFDDungeonReadyPopup_OnUpdate(self, elapsed)
614           self.closeIn = self.closeIn - elapsed;
615           if ( self.closeIn < 0 ) then    --We remove the OnUpdate and closeIn OnHide
616                   LFGDebug("Proposal Hidden: Failure close timer expired.");
617                   StaticPopupSpecial_Hide(LFDDungeonReadyPopup);
618           end
619   end
 
621   function LFDDungeonReadyPopup_Update() 
622           local proposalExists, typeID, id, name, texture, role, hasResponded, totalEncounters, completedEncounters, numMembers, isLeader = GetLFGProposal();
 
624           if ( not proposalExists ) then
625                   LFGDebug("Proposal Hidden: No proposal exists.");
626                   StaticPopupSpecial_Hide(LFDDungeonReadyPopup);
627                   return;
628           end
 
630           LFDDungeonReadyPopup.dungeonID = id;
 
632           if ( hasResponded ) then
633                   LFDDungeonReadyStatus:Show();
634                   LFDDungeonReadyDialog:Hide();
 
636                   for i=1, numMembers do
637                           LFDDungeonReadyStatus_UpdateIcon(_G["LFDDungeonReadyStatusPlayer"..i]);
638                   end
639                   for i=numMembers+1, NUM_LFD_MEMBERS do
640                           _G["LFDDungeonReadyStatusPlayer"..i]:Hide();
641                   end
 
643                   if ( not LFDDungeonReadyPopup:IsShown() or StaticPopup_IsLastDisplayedFrame(LFDDungeonReadyPopup) ) then
644                           LFDDungeonReadyPopup:SetHeight(LFDDungeonReadyStatus:GetHeight());
645                   end
646           else
647                   LFDDungeonReadyDialog:Show();
648                   LFDDungeonReadyStatus:Hide();
 
650                   local LFDDungeonReadyDialog = LFDDungeonReadyDialog; --Make a local copy.
 
652                   if ( typeID == TYPEID_RANDOM_DUNGEON ) then
653                           LFDDungeonReadyDialog.background:SetTexture("Interface\\LFGFrame\\UI-LFG-BACKGROUND-RANDOMDUNGEON");
 
655                           LFDDungeonReadyDialog.label:SetText(RANDOM_DUNGEON_IS_READY);
 
657                           LFDDungeonReadyDialog.instanceInfo:Hide();
 
659                           if ( completedEncounters > 0 ) then
660                                   LFDDungeonReadyDialog.randomInProgress:Show();
661                                   LFDDungeonReadyPopup:SetHeight(223);
662                                   LFDDungeonReadyDialog.background:SetTexCoord(0, 1, 0, 1);
663                           else
664                                   LFDDungeonReadyDialog.randomInProgress:Hide();
665                                   LFDDungeonReadyPopup:SetHeight(193);
666                                   LFDDungeonReadyDialog.background:SetTexCoord(0, 1, 0, 118/128);
667                           end
668                   else
669                           LFDDungeonReadyDialog.randomInProgress:Hide();
670                           LFDDungeonReadyPopup:SetHeight(223);
671                           LFDDungeonReadyDialog.background:SetTexCoord(0, 1, 0, 1);
672                           texture = "Interface\\LFGFrame\\UI-LFG-BACKGROUND-"..texture;
673                           if ( not LFDDungeonReadyDialog.background:SetTexture(texture) ) then    --We haven't added this texture yet. Default to the Deadmines.
674                                   LFDDungeonReadyDialog.background:SetTexture("Interface\\LFGFrame\\UI-LFG-BACKGROUND-Deadmines");        --DEBUG FIXME Default probably shouldn't be Deadmines
675                           end
 
677                           LFDDungeonReadyDialog.label:SetText(SPECIFIC_DUNGEON_IS_READY);
678                           LFDDungeonReadyDialog_UpdateInstanceInfo(name, completedEncounters, totalEncounters);
679                           LFDDungeonReadyDialog.instanceInfo:Show();
680                   end
 
683                   LFDDungeonReadyDialogRoleIconTexture:SetTexCoord(GetTexCoordsForRole(role));
684                   LFDDungeonReadyDialogRoleLabel:SetText(_G[role]);
685                   if ( isLeader ) then
686                           LFDDungeonReadyDialogRoleIconLeaderIcon:Show();
687                   else
688                           LFDDungeonReadyDialogRoleIconLeaderIcon:Hide();
689                   end
 
691                   LFDDungeonReadyDialog_UpdateRewards(id, role);
692           end
693   end
 
695   function LFDDungeonReadyDialog_UpdateRewards(dungeonID, role)
696           local doneToday, moneyBase, moneyVar, experienceBase, experienceVar, numRewards = GetLFGDungeonRewards(dungeonID);
 
698           local numRandoms = 4 - GetNumPartyMembers();
699           local moneyAmount = moneyBase + moneyVar * numRandoms;
700           local experienceGained = experienceBase + experienceVar * numRandoms;
 
702           local frameID = 1;
 
704           if ( moneyAmount > 0 or experienceGained > 0 ) then --hasMiscReward ) then
705                   LFDDungeonReadyDialogReward_SetMisc(LFDDungeonReadyDialogRewardsFrameReward1);
706                   frameID = 2;
707           end
 
709           if ( moneyAmount == 0 and experienceGained == 0 and numRewards == 0 ) then
710                   LFDDungeonReadyDialogRewardsFrameLabel:Hide();
711           else
712                   LFDDungeonReadyDialogRewardsFrameLabel:Show();
713           end
 
715           for i = 1, numRewards do
716                   local frame = _G["LFDDungeonReadyDialogRewardsFrameReward"..frameID];
717                   if ( not frame ) then
718                           frame = CreateFrame("FRAME", "LFDDungeonReadyDialogRewardsFrameReward"..frameID, LFDDungeonReadyDialogRewardsFrame, "LFDDungeonReadyRewardTemplate");
719                           frame:SetID(frameID);
720                           LFD_MAX_REWARDS = frameID;
721                   end
722                   LFDDungeonReadyDialogReward_SetReward(frame, dungeonID, i, "reward")
723                   frameID = frameID + 1;
724           end
 
726           for shortageIndex = 1, LFG_ROLE_NUM_SHORTAGE_TYPES do
727                   local eligible, forTank, forHealer, forDamage, itemCount = GetLFGRoleShortageRewards(dungeonID, shortageIndex);
728                   if ( eligible and ((role == "TANK" and forTank) or (role == "HEALER" and forHealer) or (role == "DAMAGER" and forDamage)) ) then
729                           for rewardIndex=1, itemCount do
730                                   local frame = _G["LFDDungeonReadyDialogRewardsFrameReward"..frameID];
731                                   if ( not frame ) then
732                                           frame = CreateFrame("FRAME", "LFDDungeonReadyDialogRewardsFrameReward"..frameID, LFDDungeonReadyDialogRewardsFrame, "LFDDungeonReadyRewardTemplate");
733                                           frame:SetID(frameID);
734                                           LFD_MAX_REWARDS = frameID;
735                                   end
736                                   LFDDungeonReadyDialogReward_SetReward(frame, dungeonID, rewardIndex, "shortage", shortageIndex);
737                                   frameID = frameID + 1;
738                           end
739                   end
740           end
 
742           --Hide the unused ones
743           for i = frameID, LFD_MAX_REWARDS do
744                   _G["LFDDungeonReadyDialogRewardsFrameReward"..i]:Hide();
745           end
 
747           local usedButtons= frameID - 1;
 
749           if ( usedButtons > 0 ) then
750                   --Set up positions
751                   local iconOffset;
752                   if ( usedButtons > 2 ) then
753                           iconOffset = -5;
754                   else
755                           iconOffset = 0;
756                   end
757                   local area = usedButtons * LFDDungeonReadyDialogRewardsFrameReward1:GetWidth() + (usedButtons - 1) * iconOffset;
 
759                   LFDDungeonReadyDialogRewardsFrameReward1:SetPoint("LEFT", LFDDungeonReadyDialogRewardsFrame, "CENTER", -area/2, 5);
760                   for i = 2, usedButtons do
761                           _G["LFDDungeonReadyDialogRewardsFrameReward"..i]:SetPoint("LEFT", "LFDDungeonReadyDialogRewardsFrameReward"..(i - 1), "RIGHT", iconOffset, 0);
762                   end
763           end
764   end
 
766   function LFDDungeonReadyDialogReward_SetMisc(button)
767           SetPortraitToTexture(button.texture, "Interface\\Icons\\inv_misc_coin_02");
768           button.rewardType = "misc";
769           button:Show();
770   end
 
772   function LFDDungeonReadyDialogReward_SetReward(button, dungeonID, rewardIndex, rewardType, rewardArg)
773           local name, texturePath, quantity;
774           if ( rewardType == "reward" ) then
775                   name, texturePath, quantity = GetLFGDungeonRewardInfo(dungeonID, rewardIndex);
776           elseif ( rewardType == "shortage" ) then
777                   name, texturePath, quantity = GetLFGDungeonShortageRewardInfo(dungeonID, rewardArg, rewardIndex);
778           end
779           if ( texturePath ) then --Otherwise, we may be waiting on the item data to come from the server.
780                   SetPortraitToTexture(button.texture, texturePath);
781           end
782           button.rewardType = rewardType;
783           button.rewardID = rewardIndex;
784           button.rewardArg = rewardArg;
785           button:Show();
786   end
 
788   function LFDDungeonReadyDialogReward_OnEnter(self, dungeonID)
789           GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
790           if ( self.rewardType == "misc" ) then
791                   GameTooltip:AddLine(REWARD_ITEMS_ONLY);
792                   local doneToday, moneyBase, moneyVar, experienceBase, experienceVar, numRewards = GetLFGDungeonRewards(LFDDungeonReadyPopup.dungeonID);
793                   local numRandoms = 4 - GetNumPartyMembers();
794                   local moneyAmount = moneyBase + moneyVar * numRandoms;
795                   local experienceGained = experienceBase + experienceVar * numRandoms;
 
797                   if ( experienceGained > 0 ) then
798                           GameTooltip:AddLine(string.format(GAIN_EXPERIENCE, experienceGained));
799                   end
800                   if ( moneyAmount > 0 ) then
801                           SetTooltipMoney(GameTooltip, moneyAmount, nil);
802                   end
803           elseif ( self.rewardType == "reward" ) then
804                   GameTooltip:SetLFGDungeonReward(LFDDungeonReadyPopup.dungeonID, self.rewardID);
805           elseif ( self.rewardType == "shortage" ) then
806                   GameTooltip:SetLFGDungeonShortageReward(LFDDungeonReadyPopup.dungeonID, self.rewardArg, self.rewardID);
807           end
808           GameTooltip:Show();
809   end
 
811   function LFDDungeonReadyDialog_UpdateInstanceInfo(name, completedEncounters, totalEncounters)
812           local instanceInfoFrame = LFDDungeonReadyDialogInstanceInfoFrame;
813           instanceInfoFrame.name:SetFontObject(GameFontNormalLarge);
814           instanceInfoFrame.name:SetText(name);
815           if ( instanceInfoFrame.name:GetWidth() + 20 > LFDDungeonReadyDialog:GetWidth() ) then
816                   instanceInfoFrame.name:SetFontObject(GameFontNormal);
817           end
 
819           instanceInfoFrame.statusText:SetFormattedText(BOSSES_KILLED, completedEncounters, totalEncounters);
820   end
 
822   function LFDDungeonReadyDialogInstanceInfo_OnEnter(self)
823           local numBosses = select(8, GetLFGProposal());
824           local isHoliday = select(12, GetLFGProposal());
 
826           if ( numBosses == 0 or isHoliday) then
827                   return;
828           end
 
830           GameTooltip:SetOwner(self, "ANCHOR_BOTTOM");
831           GameTooltip:AddLine(BOSSES)
832           for i=1, numBosses do
833                   local bossName, texture, isKilled = GetLFGProposalEncounter(i);
834                   if ( isKilled ) then
835                           GameTooltip:AddDoubleLine(bossName, BOSS_DEAD, RED_FONT_COLOR.r, RED_FONT_COLOR.g, RED_FONT_COLOR.b, RED_FONT_COLOR.r, RED_FONT_COLOR.g, RED_FONT_COLOR.b);
836                   else
837                           GameTooltip:AddDoubleLine(bossName, BOSS_ALIVE, GREEN_FONT_COLOR.r, GREEN_FONT_COLOR.g, GREEN_FONT_COLOR.b, GREEN_FONT_COLOR.r, GREEN_FONT_COLOR.g, GREEN_FONT_COLOR.b);
838                   end
839           end
840           GameTooltip:Show();
841   end
 
843   function LFDDungeonReadyStatus_ResetReadyStates()
844           for i=1, NUM_LFD_MEMBERS do
845                   local button = _G["LFDDungeonReadyStatusPlayer"..i];
846                   button.readyStatus = "unknown";
847           end
848   end
 
850   function LFDDungeonReadyStatus_UpdateIcon(button)
851           local isLeader, role, level, responded, accepted, name, class = GetLFGProposalMember(button:GetID());
 
853           button.texture:SetTexCoord(GetTexCoordsForRole(role));
 
855           if ( not responded ) then
856                   button.statusIcon:SetTexture(READY_CHECK_WAITING_TEXTURE);
857           elseif ( accepted ) then
858                   if ( button.readyStatus ~= "accepted" ) then
859                           button.readyStatus = "accepted";
860                           PlaySound("LFG_RoleCheck");
861                   end
862                   button.statusIcon:SetTexture(READY_CHECK_READY_TEXTURE);
863           else
864                   button.statusIcon:SetTexture(READY_CHECK_NOT_READY_TEXTURE);
865           end
 
867           button:Show();
 
917                                   info.tooltipText = LFDConstructDeclinedMessage(id);
  617                                 info.tooltipText = LFGConstructDeclinedMessage(id);
 
953   function LFDConstructDeclinedMessage(dungeonID)
954           local returnVal;
955           for i=1, GetLFDLockPlayerCount() do
956                   local playerName, lockedReason, subReason1, subReason2 = GetLFDLockInfo(dungeonID, i);
957                   if ( lockedReason ~= 0 ) then
958                           local who;
959                           if ( i == 1 ) then
960                                   who = "SELF_";
961                           else
962                                   who = "OTHER_";
963                           end
964                           if ( returnVal ) then
965                                   returnVal = returnVal.."\n"..format(_G["INSTANCE_UNAVAILABLE_"..who..(LFG_INSTANCE_INVALID_CODES[lockedReason] or "OTHER")], playerName, subReason1, subReason2);
966                           else
967                                   returnVal = format(_G["INSTANCE_UNAVAILABLE_"..who..(LFG_INSTANCE_INVALID_CODES[lockedReason] or "OTHER")], playerName, subReason1, subReason2);
968                           end
969                   end
970           end
971           return returnVal;
972   end
 
974   --Random frame functions
975   NUM_LFD_RANDOM_REWARD_FRAMES = 1;
 
977           local parentName = "LFDQueueFrameRandomScrollFrameChildFrame"
978           local parentFrame = _G[parentName];
 
986           parentFrame:Show();
 
988           local holiday;
989           local difficulty;
990           local dungeonDescription;
991           local textureFilename;
992           local dungeonName, _,_,_,_,_,_,_,_,textureFilename,difficulty,_,dungeonDescription, isHoliday = GetLFGDungeonInfo(dungeonID);
993           local isHeroic = difficulty > 0;
994           local doneToday, moneyBase, moneyVar, experienceBase, experienceVar, numRewards = GetLFGDungeonRewards(dungeonID);
995           local numRandoms = 4 - GetNumPartyMembers();
996           local moneyAmount = moneyBase + moneyVar * numRandoms;
997           local experienceGained = experienceBase + experienceVar * numRandoms;
 
1000           local backgroundTexture;
 
1002           local leaderChecked, tankChecked, healerChecked, damageChecked = LFDQueueFrame_GetRoles();
 
1004           --HACK
1005           if ( dungeonID == 341 ) then    --Trollpocalypse Heroic
1006                   backgroundTexture = "Interface\\LFGFrame\\UI-LFG-BACKGROUND-TROLLPOCALYPSE";
1007           elseif ( textureFilename ~= "" ) then
1008                   backgroundTexture = "Interface\\LFGFrame\\UI-LFG-HOLIDAY-BACKGROUND-"..textureFilename;
1009           elseif ( isHeroic ) then
1010                   backgroundTexture = "Interface\\LFGFrame\\UI-LFG-BACKGROUND-HEROIC";
1011           else
1012                   backgroundTexture = "Interface\\LFGFrame\\UI-LFG-BACKGROUND-QUESTPAPER";
1013           end
1014           LFDQueueFrameBackground:SetTexture(backgroundTexture);
 
1016           local lastFrame = parentFrame.rewardsLabel;
1017           if ( isHoliday ) then
1018                   if ( doneToday ) then
1019                           parentFrame.rewardsDescription:SetText(LFD_HOLIDAY_REWARD_EXPLANATION2);
1020                   else
1021                           parentFrame.rewardsDescription:SetText(LFD_HOLIDAY_REWARD_EXPLANATION1);
1022                   end
1023                   parentFrame.title:SetText(dungeonName);
1024                   parentFrame.description:SetText(dungeonDescription);
1025           else
1026                   local numCompletions, isWeekly = LFDQueueFrameRandom_EstimateRemainingCompletions(dungeonID);
1027                   if ( numCompletions <= 0 ) then
1028                           parentFrame.rewardsDescription:SetText(LFD_RANDOM_REWARD_EXPLANATION2);
1029                   elseif ( isWeekly ) then
1030                           parentFrame.rewardsDescription:SetText(format(LFD_REWARD_DESCRIPTION_WEEKLY, numCompletions));
1031                   else
1032                           parentFrame.rewardsDescription:SetText(format(LFD_REWARD_DESCRIPTION_DAILY, numCompletions));
1033                   end
1034                   parentFrame.title:SetText(LFG_TYPE_RANDOM_DUNGEON);
1035                   parentFrame.description:SetText(LFD_RANDOM_EXPLANATION);
1036           end
 
1038           local itemButtonIndex = 1;
1039           for i=1, numRewards do
1040                   local name, texture, numItems = GetLFGDungeonRewardInfo(dungeonID, i);
1041                   lastFrame = LFDQueueFrameRandom_SetItemButton(itemButtonIndex, i, name, texture, numItems, nil);
1042                   itemButtonIndex = itemButtonIndex + 1;
1043           end
 
1045           for shortageIndex=1, LFG_ROLE_NUM_SHORTAGE_TYPES do
1046                   local eligible, forTank, forHealer, forDamage, itemCount = GetLFGRoleShortageRewards(dungeonID, shortageIndex);
1047                   if ( eligible and ((tankChecked and forTank) or (healerChecked and forHealer) or (damageChecked and forDamage)) ) then
1048                           for rewardIndex=1, itemCount do
1049                                   local name, texture, numItems = GetLFGDungeonShortageRewardInfo(dungeonID, shortageIndex, rewardIndex);
1050                                   lastFrame = LFDQueueFrameRandom_SetItemButton(itemButtonIndex, rewardIndex, name, texture, numItems, shortageIndex, forTank, forHealer, forDamage);
1051                                   itemButtonIndex = itemButtonIndex + 1;
1052                           end
1053                   end
1054           end
  660         LFGRewardsFrame_UpdateFrame(LFDQueueFrameRandomScrollFrameChildFrame, dungeonID, LFDQueueFrameBackground);
 
1056           for i=itemButtonIndex, NUM_LFD_RANDOM_REWARD_FRAMES do
1057                   _G[parentName.."Item"..i]:Hide();
1058           end
 
1060           local totalRewards = itemButtonIndex - 1;
 
1062           if ( totalRewards > 0 or ((moneyVar == 0 and experienceVar == 0) and (moneyAmount > 0 or experienceGained > 0)) ) then
1063                   parentFrame.rewardsLabel:Show();
1064                   parentFrame.rewardsDescription:Show();
1065                   lastFrame = parentFrame.rewardsDescription;
1066           else
1067                   parentFrame.rewardsLabel:Hide();
1068                   parentFrame.rewardsDescription:Hide();
1069           end
 
1071           if ( totalRewards > 0 ) then
1072                   lastFrame = _G[parentName.."Item"..(totalRewards - mod(totalRewards+1, 2))];
1073           end
 
1075           if ( moneyVar > 0 or experienceVar > 0 ) then
1076                   parentFrame.pugDescription:SetPoint("TOPLEFT", lastFrame, "BOTTOMLEFT", 0, -5);
1077                   parentFrame.pugDescription:Show();
1078                   lastFrame = parentFrame.pugDescription;
1079           else
1080                   parentFrame.pugDescription:Hide();
1081           end
 
1083           if ( moneyAmount > 0 ) then
1084                   MoneyFrame_Update(parentFrame.moneyFrame, moneyAmount);
1085                   parentFrame.moneyLabel:SetPoint("TOPLEFT", lastFrame, "BOTTOMLEFT", 20, -10);
1086                   parentFrame.moneyLabel:Show();
1087                   parentFrame.moneyFrame:Show()
 
1089                   parentFrame.xpLabel:SetPoint("TOPLEFT", lastFrame, "BOTTOMLEFT", 0, -5);
 
1091                   lastFrame = parentFrame.moneyLabel;
1092           else
1093                   parentFrame.moneyLabel:Hide();
1094                   parentFrame.moneyFrame:Hide();
 
1096           end
 
1098           if ( experienceGained > 0 ) then
1099                   parentFrame.xpAmount:SetText(experienceGained);
 
1101                   if ( lastFrame == parentFrame.moneyLabel ) then
1102                           parentFrame.xpLabel:SetPoint("TOPLEFT", lastFrame, "BOTTOMLEFT", 0, -5);
1103                   else
1104                           parentFrame.xpLabel:SetPoint("TOPLEFT", lastFrame, "BOTTOMLEFT", 20, -10);
1105                   end
1106                   parentFrame.xpLabel:Show();
1107                   parentFrame.xpAmount:Show();
 
1109                   lastFrame = parentFrame.xpLabel;
1110           else
1111                   parentFrame.xpLabel:Hide();
1112                   parentFrame.xpAmount:Hide();
1113           end
 
1115           if ( not isHoliday ) then
1116                   parentFrame.randomList:Show();
1117           else
1118                   parentFrame.randomList:Hide();
1119           end
 
1121           parentFrame.spacer:SetPoint("TOPLEFT", lastFrame, "BOTTOMLEFT", 0, -10);
 
1123   end
 
1125   function LFDQueueFrameRandom_SetItemButton(index, id, name, texture, numItems, shortageIndex, showTankIcon, showHealerIcon, showDamageIcon)
1126           local parentName = "LFDQueueFrameRandomScrollFrameChildFrame";
1127           local frame = _G[parentName.."Item"..index];
1128           if ( not frame ) then
1129                   frame = CreateFrame("Button", parentName.."Item"..index, _G[parentName], "LFDRandomDungeonLootTemplate");
1130                   NUM_LFD_RANDOM_REWARD_FRAMES = index;
1131                   if ( mod(index, 2) == 0 ) then
1132                           frame:SetPoint("LEFT", parentName.."Item"..(index-1), "RIGHT", 0, 0);
1133                   else
1134                           frame:SetPoint("TOPLEFT", parentName.."Item"..(index-2), "BOTTOMLEFT", 0, -5);
1135                   end
1136           end
1137           frame:SetID(id);
 
1139           _G[parentName.."Item"..index.."Name"]:SetText(name);
1140           SetItemButtonTexture(frame, texture);
1141           SetItemButtonCount(frame, numItems);
1142           frame.shortageIndex = shortageIndex;
 
1144           if ( shortageIndex ) then
1145                   frame.shortageBorder:Show();
1146           else
1147                   frame.shortageBorder:Hide();
1148           end
 
1150           local numRoles = (showTankIcon and 1 or 0) + (showHealerIcon and 1 or 0) + (showDamageIcon and 1 or 0);
 
1152           --Show role icons if this reward is specific to a role:
1153           frame.roleIcon1:Hide();
1154           frame.roleIcon2:Hide();
 
1156           if ( numRoles > 0 and numRoles < 3 ) then       --If we give it to all 3 roles, no reason to show icons.
1157                   local roleIcon = frame.roleIcon1;
1158                   if ( showTankIcon ) then
1159                           roleIcon.texture:SetTexCoord(GetTexCoordsForRoleSmallCircle("TANK"));
1160                           roleIcon.role = "TANK";
1161                           roleIcon:Show();
1162                           roleIcon = frame.roleIcon2;
1163                   end
1164                   if ( showHealerIcon ) then
1165                           roleIcon.texture:SetTexCoord(GetTexCoordsForRoleSmallCircle("HEALER"));
1166                           roleIcon.role = "HEALER";
1167                           roleIcon:Show();
1168                           roleIcon = frame.roleIcon2;
1169                   end
1170                   if ( showDamageIcon ) then
1171                           roleIcon.texture:SetTexCoord(GetTexCoordsForRoleSmallCircle("DAMAGER"));
1172                           roleIcon.role = "DAMAGER";
1173                           roleIcon:Show();
1174                           roleIcon = frame.roleIcon2;
1175                   end
 
1177                   if ( numRoles == 2 ) then
1178                           frame.roleIcon1:SetPoint("LEFT", frame, "TOPLEFT", 1, -2);
1179                   else
1180                           frame.roleIcon1:SetPoint("LEFT", frame, "TOPLEFT", 10, -2);
1181                   end
1182           end
 
1184           frame:Show();
1185           return frame;
1186   end
 
1188   function LFDQueueFrameRandom_EstimateRemainingCompletions(dungeonID)
1189           local currencyID, currencyQuantity, specificQuantity, specificLimit, overallQuantity, overallLimit, periodPurseQuantity, periodPurseLimit, isWeekly = GetLFGDungeonRewardCapInfo(LFDQueueFrame.type);
1190           if(not currencyID) then
1191                   return 0, false;
1192           end
 
1194           local remainingAllotment = min(specificLimit - specificQuantity, overallLimit - overallQuantity);
1195           if ( periodPurseLimit ~= 0 ) then
1196                   remainingAllotment = min(remainingAllotment, periodPurseLimit - periodPurseQuantity);
1197           end
 
1199           return ceil(remainingAllotment / currencyQuantity), isWeekly;
 
1216                           local info = LFGGetDungeonInfoByID(dungeonID);
1217                           local name, minLevel, maxLevel, recLevel = info[LFG_RETURN_VALUES.name], info[LFG_RETURN_VALUES.minLevel], info[LFG_RETURN_VALUES.maxLevel], info[LFG_RETURN_VALUES.recLevel];
  678                         local name, typeID, minLevel, maxLevel, recLevel, minRecLevel, maxRecLevel, expansionLevel, groupID, textureFilename, difficulty, maxPlayers, description, isHoliday = GetLFGDungeonInfo(dungeonID);
 
1351   --Queued status functions
 
1353   local NUM_TANKS = 1;
1354   local NUM_HEALERS = 1;
1355   local NUM_DAMAGERS = 3;
 
1357   function LFDSearchStatus_OnEvent(self, event, ...)
1358           if ( event == "LFG_QUEUE_STATUS_UPDATE" ) then
1359                   LFDSearchStatus_Update();
1360           end
1361   end
 
1363   function LFDSearchStatusPlayer_SetFound(button, isFound)
1364           if ( isFound ) then
1365                   SetDesaturation(button.texture, false);
1366                   button.cover:Hide();
1367           else
1368                   SetDesaturation(button.texture, true);
1369                   button.cover:Show();
1370           end
1371   end
 
1373   function LFDSearchStatus_UpdateRoles()
1374           local leader, tank, healer, damage = GetLFGRoles();
1375           local currentIcon = 1;
1376           if ( tank ) then
1377                   local icon = _G["LFDSearchStatusRoleIcon"..currentIcon]
1378                   icon:SetTexCoord(GetTexCoordsForRole("TANK"));
1379                   icon:Show();
1380                   currentIcon = currentIcon + 1;
1381           end
1382           if ( healer ) then
1383                   local icon = _G["LFDSearchStatusRoleIcon"..currentIcon]
1384                   icon:SetTexCoord(GetTexCoordsForRole("HEALER"));
1385                   icon:Show();
1386                   currentIcon = currentIcon + 1;
1387           end
1388           if ( damage ) then
1389                   local icon = _G["LFDSearchStatusRoleIcon"..currentIcon]
1390                   icon:SetTexCoord(GetTexCoordsForRole("DAMAGER"));
1391                   icon:Show();
1392                   currentIcon = currentIcon + 1;
1393           end
1394           for i=currentIcon, LFD_NUM_ROLES do
1395                   _G["LFDSearchStatusRoleIcon"..i]:Hide();
1396           end
1397           local extraWidth = 27*(currentIcon-1);
1398           LFDSearchStatusLookingFor:SetPoint("BOTTOM", -extraWidth/2, 14);
1399   end
 
1401   local embeddedTankIcon = "|TInterface\\LFGFrame\\UI-LFG-ICON-PORTRAITROLES.blp:20:20:0:5:64:64:0:19:22:41|t";
1402   local embeddedHealerIcon = "|TInterface\\LFGFrame\\UI-LFG-ICON-PORTRAITROLES.blp:20:20:0:5:64:64:20:39:1:20|t";
1403   local embeddedDamageIcon = "|TInterface\\LFGFrame\\UI-LFG-ICON-PORTRAITROLES.blp:20:20:0:5:64:64:20:39:22:41|t";
 
1405   function LFDSearchStatus_Update()
1406           local LFDSearchStatus = LFDSearchStatus;
1407           local hasData,  leaderNeeds, tankNeeds, healerNeeds, dpsNeeds, instanceType, instanceName, averageWait, tankWait, healerWait, damageWait, myWait, queuedTime = GetLFGQueueStats();
 
1409           LFDSearchStatus_UpdateRoles();
 
1411           if ( not hasData ) then
1412                   LFDSearchStatus:SetHeight(145);
1413                   LFDSearchStatusPlayer_SetFound(LFDSearchStatusTank1, false)
1414                   LFDSearchStatusPlayer_SetFound(LFDSearchStatusHealer1, false);
1415                   for i=1, NUM_DAMAGERS do
1416                           LFDSearchStatusPlayer_SetFound(_G["LFDSearchStatusDamage"..i], false);
1417                   end
1418                   LFDSearchStatus.statistic:Hide();
1419                   LFDSearchStatus.elapsedWait:SetFormattedText(TIME_IN_QUEUE, LESS_THAN_ONE_MINUTE);
 
1421                   LFDSearchStatus:SetScript("OnUpdate", nil);
1422                   return;
1423           end
 
1425           if ( instancetype == TYPEID_HEROIC_DIFFICULTY ) then
1426                   instanceName = format(HEROIC_PREFIX, instanceName);
1427           end
 
1429           --This won't work if we decide the makeup is, say, 3 healers, 1 damage, 1 tank.
1430           LFDSearchStatusPlayer_SetFound(LFDSearchStatusTank1, (tankNeeds == 0))
1431           LFDSearchStatusPlayer_SetFound(LFDSearchStatusHealer1, (healerNeeds == 0));
1432           for i=1, NUM_DAMAGERS do
1433                   LFDSearchStatusPlayer_SetFound(_G["LFDSearchStatusDamage"..i], i <= (NUM_DAMAGERS - dpsNeeds));
1434           end
 
1436           LFDSearchStatus.queuedTime = queuedTime;
1437           local elapsedTime = GetTime() - queuedTime;
1438           LFDSearchStatus.elapsedWait:SetFormattedText(TIME_IN_QUEUE, (elapsedTime >= 60) and SecondsToTime(elapsedTime) or LESS_THAN_ONE_MINUTE);
1439           LFDSearchStatus.elapsedWait:Show();
 
1441           if ( myWait == -1 ) then
1442                   LFDSearchStatus.statistic:Hide();
1443                   LFDSearchStatus:SetHeight(145);
1444           else
1445                   LFDSearchStatus.statistic:Show();
1446                   LFDSearchStatus:SetHeight(170);
1447                   LFDSearchStatus.statistic:SetFormattedText(LFG_STATISTIC_AVERAGE_WAIT, myWait == -1 and TIME_UNKNOWN or SecondsToTime(myWait, false, false, 1));
1448           end
1449           LFDSearchStatus:SetScript("OnUpdate", LFDSearchStatus_OnUpdate);
1450   end
 
1452   function LFDSearchStatus_OnUpdate(self, elapsed)
1453           local elapsedTime = GetTime() - self.queuedTime;
1454           self.elapsedWait:SetFormattedText(TIME_IN_QUEUE, (elapsedTime >= 60) and SecondsToTime(elapsedTime) or LESS_THAN_ONE_MINUTE);
1455   end
 
1502           LFGQueueFrame_UpdateLFGDungeonList(LFDDungeonList, LFDHiddenByCollapseList, LFGLockList, LFGDungeonInfo, enableList, LFGCollapseList, LFD_CURRENT_FILTER);
  857         LFGQueueFrame_UpdateLFGDungeonList(LFDDungeonList, LFDHiddenByCollapseList, LFGLockList, enableList, LFGCollapseList, LFD_CURRENT_FILTER);
 
1509           local info = LFGGetDungeonInfoByID(dungeonID)
1510           local hasHeader = info[LFG_RETURN_VALUES.groupID] ~= 0;
1511           local sufficientExpansion = EXPANSION_LEVEL >= info[LFG_RETURN_VALUES.expansionLevel];
  864         local name, typeID, minLevel, maxLevel, recLevel, minRecLevel, maxRecLevel, expansionLevel, groupID, textureFilename, difficulty, maxPlayers, description, isHoliday = GetLFGDungeonInfo(dungeonID);
  865         local hasHeader = groupID ~= 0;
  866         local sufficientExpansion = EXPANSION_LEVEL >= expansionLevel;
 
1513           local sufficientLevel = level >= info[LFG_RETURN_VALUES.minLevel] and level <= info[LFG_RETURN_VALUES.maxLevel];
  868         local sufficientLevel = level >= minLevel and level <= maxLevel;
 
1515                   ( level - LFD_MAX_SHOWN_LEVEL_DIFF <= info[LFG_RETURN_VALUES.recLevel] or (LFGLockList and not LFGLockList[dungeonID]));        --If the server tells us we can join, who are we to complain?
  870                 ( level - LFD_MAX_SHOWN_LEVEL_DIFF <= recLevel or (LFGLockList and not LFGLockList[dungeonID]));        --If the server tells us we can join, who are we to complain?
   
File: FrameXML\LFDFrame.xml  
13           <Frame name="LFDDungeonReadyRewardTemplate" virtual="true">
14                   <Size>
15                           <AbsDimension x="40" y="40"/>
16                   </Size>
17                   <Layers>
18                           <Layer level="ARTWORK">
19                                   <Texture name="$parentTexture" parentKey="texture">
20                                           <Size>
21                                                   <AbsDimension x="30" y="30"/>
22                                           </Size>
23                                           <Anchors>
24                                                   <Anchor point="CENTER">
25                                                           <Offset>
26                                                                   <AbsDimension x="-3" y="3"/>
27                                                           </Offset>
28                                                   </Anchor>
29                                           </Anchors>
30                                   </Texture>
31                           </Layer>
32                           <Layer level="OVERLAY">
33                                   <Texture name="$parentBorder" setAllPoints="true" file="Interface\LFGFrame\UI-LFG-ICON-REWARDRING">
34                                           <TexCoords left="0" right="0.675" top="0" bottom="0.675"/>
35                                   </Texture>
36                           </Layer>
37                   </Layers>
38                   <Scripts>
39                           <OnEnter function="LFDDungeonReadyDialogReward_OnEnter"/>
40                           <OnLeave function="GameTooltip_Hide"/>
41                   </Scripts>
42           </Frame>
43           <Frame name="LFDDungeonReadyStatusPlayerTemplate" virtual="true">
44                   <Size>
45                           <AbsDimension x="55" y="55"/>
46                   </Size>
47                   <Layers>
48                           <Layer level="ARTWORK">
49                                   <Texture name="$parentTexture" file="Interface\LFGFrame\UI-LFG-ICON-ROLES" setAllPoints="true" parentKey="texture"/>
50                           </Layer>
51                           <Layer level="OVERLAY">
52                                   <Texture name="$parentStatusIcon"  file="Interface\RaidFrame\ReadyCheck-Waiting" parentKey="statusIcon">
53                                           <Size>
54                                                   <AbsDimension x="30" y="30"/>
55                                           </Size>
56                                           <Anchors>
57                                                   <Anchor point="BOTTOMLEFT">
58                                                           <Offset>
59                                                                   <AbsDimension x="5" y="0"/>
60                                                           </Offset>
61                                                   </Anchor>
62                                           </Anchors>
63                                   </Texture>
64                           </Layer>
65                   </Layers>
66           </Frame>
67           <Frame name="LFDSearchStatusPlayerTemplate" virtual="true">
68                   <Size>
69                           <AbsDimension x="55" y="55"/>
70                   </Size>
71                   <Layers>
72                           <Layer level="ARTWORK">
73                                   <Texture name="$parentTexture" file="Interface\LFGFrame\UI-LFG-ICON-ROLES" setAllPoints="true" parentKey="texture"/>
74                           </Layer>
75                           <Layer level="OVERLAY">
76                                   <Texture file="Interface\LFGFrame\UI-LFG-ICON-ROLES" setAllPoints="true" parentKey="cover" alpha="0.3" hidden="true">
77                                           <TexCoords left="0" right="0.2617" top="0.5234" bottom="0.7851"/>
78                                   </Texture>
79                           </Layer>
80                   </Layers>
81           </Frame>
82           <Texture name="LFDSearchStatusRoleIconTemplate" file="Interface\LFGFrame\UI-LFG-ICON-ROLES" virtual="true">
83                   <Size>
84                           <AbsDimension x="25" y="25"/>
85                   </Size>
86           </Texture>
87           <Frame name="LFDRandomDungeonLootShortageTemplate" virtual="true">
88                   <Size x="19" y="19"/>
89                   <Layers>
90                           <Layer level="ARTWORK">
91                                   <Texture name="$parentTexture" file="Interface\LFGFrame\UI-LFG-ICON-PORTRAITROLES" parentKey="texture"/>
92                           </Layer>
93                   </Layers>
94                   <Scripts>
95                           <OnEnter>
96                                   GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
97                                   GameTooltip:SetText(format(LFG_CALL_TO_ARMS, _G[self.role]), 1, 1, 1);
98                                   GameTooltip:AddLine(LFG_CALL_TO_ARMS_EXPLANATION, nil, nil, nil, 1);
99                                   GameTooltip:Show();
100                           </OnEnter>
101                           <OnLeave function="GameTooltip_Hide"/>
102                   </Scripts>
103           </Frame>
104           <Button name="LFDRandomDungeonLootTemplate" inherits="LargeItemButtonTemplate" virtual="true">
105                   <Layers>
106                           <Layer level="ARTWORK">
107                                   <Texture name="$parentShortageBorder" inherits="Talent-GoldMedal-Border" parentKey="shortageBorder">
108                                           <Size x="48" y="48"/>
109                                           <Anchors>
110                                                   <Anchor point="TOPLEFT" relativeTo="$parent" x="-6" y="4"/>
111                                           </Anchors>
112                                   </Texture>
113                           </Layer>
114                   </Layers>
115                   <Frames>
116                           <Frame name="$parentRoleIcon1" inherits="LFDRandomDungeonLootShortageTemplate" parentKey="roleIcon1" hidden="true">
117                                   <Anchors>
118                                           <Anchor point="LEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="0" y="0"/>
119                                   </Anchors>
120                           </Frame>
121                           <Frame name="$parentRoleIcon2" inherits="LFDRandomDungeonLootShortageTemplate" parentKey="roleIcon2" hidden="true">
122                                   <Anchors>
123                                           <Anchor point="LEFT" relativeTo="$parentRoleIcon1" relativePoint="RIGHT" x="0" y="0"/>
124                                   </Anchors>
125                           </Frame>
126                   </Frames>
127                   <Scripts>
128                           <OnLoad>
129                                   self.hasItem = 1;
130                           </OnLoad>
131                           <OnEnter>
132                                   GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
133                                   if ( self.shortageIndex ) then
134                                           GameTooltip:SetLFGDungeonShortageReward(LFDQueueFrame.type, self.shortageIndex, self:GetID());
135                                   else
136                                           GameTooltip:SetLFGDungeonReward(LFDQueueFrame.type, self:GetID());
137                                   end
138                                   CursorUpdate(self);
139                           </OnEnter>
140                           <OnLeave>
141                                   GameTooltip:Hide();
142                                   ResetCursor();
143                           </OnLeave>
144                           <OnUpdate>
145                                   CursorOnUpdate(self, elapsed);
146                           </OnUpdate>
147                           <OnClick>
148                                   if ( self.shortageIndex ) then
149                                           HandleModifiedItemClick(GetLFGDungeonShortageRewardLink(LFDQueueFrame.type, self.shortageIndex, self:GetID()));
150                                   else
151                                           HandleModifiedItemClick(GetLFGDungeonRewardLink(LFDQueueFrame.type, self:GetID()));
152                                   end
153                           </OnClick>
154                   </Scripts>
155           </Button>
156           <Frame name="LFDDungeonReadyPopup" parent="UIParent" frameStrata="DIALOG" hidden="true">
157                   <Size>
158                           <AbsDimension x="306" y="223"/>
159                   </Size>
160                   <Frames>
161                           <Frame name="LFDDungeonReadyStatus" toplevel="true" enableMouse="true">
162                                   <Size>
163                                           <AbsDimension x="306" y="120"/>
164                                   </Size>
165                                   <Anchors>
166                                           <Anchor point="TOP"/>
167                                   </Anchors>
168                                   <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
169                                           <BackgroundInsets>
170                                                   <AbsInset left="11" right="12" top="12" bottom="11"/>
171                                           </BackgroundInsets>
172                                           <TileSize>
173                                                   <AbsValue val="32"/>
174                                           </TileSize>
175                                           <EdgeSize>
176                                                   <AbsValue val="32"/>
177                                           </EdgeSize>
178                                   </Backdrop>
179                                   <Layers>
180                                           <Layer level="ARTWORK">
181                                                   <FontString name="$parentLabel" inherits="GameFontHighlight" justifyH="CENTER" text="READY_CHECK">
182                                                           <Anchors>
183                                                                   <Anchor point="TOP">
184                                                                           <Offset>
185                                                                                   <AbsDimension x="0" y="-15"/>
186                                                                           </Offset>
187                                                                   </Anchor>
188                                                           </Anchors>
189                                                   </FontString>
190                                           </Layer>
191                                   </Layers>
192                                   <Frames>
193                                           <Button name="$parentCloseButton">
194                                                   <Size>
195                                                           <AbsDimension x="32" y="32"/>
196                                                   </Size>
197                                                   <Anchors>
198                                                           <Anchor point="TOPRIGHT">
199                                                                   <Offset>
200                                                                           <AbsDimension x="-2" y="-2"/>
201                                                                   </Offset>
202                                                           </Anchor>
203                                                   </Anchors>
204                                                   <Scripts>
205                                                           <OnClick>
206                                                                   LFGDebug("Proposal Hidden: Ready Status close button pressed.");
207                                                                   StaticPopupSpecial_Hide(LFDDungeonReadyPopup);
208                                                           </OnClick>
209                                                   </Scripts>
210                                                   <NormalTexture file="Interface\Buttons\UI-Panel-HideButton-Up"/>
211                                                   <PushedTexture file="Interface\Buttons\UI-Panel-HideButton-Down"/>
212                                                   <HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
213                                           </Button>
214                                           <Frame name="$parentPlayer1" inherits="LFDDungeonReadyStatusPlayerTemplate" id="1">
215                                                   <Anchors>
216                                                           <Anchor point="LEFT">
217                                                                   <Offset>
218                                                                           <AbsDimension x="15" y="-10"/>
219                                                                   </Offset>
220                                                           </Anchor>
221                                                   </Anchors>
222                                           </Frame>
223                                           <Frame name="$parentPlayer2" inherits="LFDDungeonReadyStatusPlayerTemplate" id="2">
224                                                   <Anchors>
225                                                           <Anchor point="LEFT" relativeTo="$parentPlayer1" relativePoint="RIGHT">
226                                                                   <Offset>
227                                                                           <AbsDimension x="0" y="0"/>
228                                                                   </Offset>
229                                                           </Anchor>
230                                                   </Anchors>
231                                           </Frame>
232                                           <Frame name="$parentPlayer3" inherits="LFDDungeonReadyStatusPlayerTemplate" id="3">
233                                                   <Anchors>
234                                                           <Anchor point="LEFT" relativeTo="$parentPlayer2" relativePoint="RIGHT">
235                                                                   <Offset>
236                                                                           <AbsDimension x="0" y="0"/>
237                                                                   </Offset>
238                                                           </Anchor>
239                                                   </Anchors>
240                                           </Frame>
241                                           <Frame name="$parentPlayer4" inherits="LFDDungeonReadyStatusPlayerTemplate" id="4">
242                                                   <Anchors>
243                                                           <Anchor point="LEFT" relativeTo="$parentPlayer3" relativePoint="RIGHT">
244                                                                   <Offset>
245                                                                           <AbsDimension x="0" y="0"/>
246                                                                   </Offset>
247                                                           </Anchor>
248                                                   </Anchors>
249                                           </Frame>
250                                           <Frame name="$parentPlayer5" inherits="LFDDungeonReadyStatusPlayerTemplate" id="5">
251                                                   <Anchors>
252                                                           <Anchor point="LEFT" relativeTo="$parentPlayer4" relativePoint="RIGHT">
253                                                                   <Offset>
254                                                                           <AbsDimension x="0" y="0"/>
255                                                                   </Offset>
256                                                           </Anchor>
257                                                   </Anchors>
258                                           </Frame>
259                                   </Frames>
260                           </Frame>
261                           <Frame name="LFDDungeonReadyDialog" setAllPoints="true" toplevel="true" enableMouse="true">
262                                   <Size>
263                                           <AbsDimension x="306" y="193"/>
264                                   </Size>
265                                   <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
266                                           <BackgroundInsets>
267                                                   <AbsInset left="11" right="12" top="12" bottom="11"/>
268                                           </BackgroundInsets>
269                                           <TileSize>
270                                                   <AbsValue val="32"/>
271                                           </TileSize>
272                                           <EdgeSize>
273                                                   <AbsValue val="32"/>
274                                           </EdgeSize>
275                                   </Backdrop>
276                                   <Layers>
277                                           <Layer level="BACKGROUND">
278                                                   <Texture name="$parentBackground" parentKey="background" file="Interface\LFGFrame\UI-LFG-BACKGROUND-RANDOMDUNGEON">
279                                                           <Size>
280                                                                   <AbsDimension x="294" y="118"/>
281                                                           </Size>
282                                                           <Anchors>
283                                                                   <Anchor point="TOP">
284                                                                           <Offset>
285                                                                                   <AbsDimension x="0" y="-11"/>
286                                                                           </Offset>
287                                                                   </Anchor>
288                                                                   <Anchor point="BOTTOM">
289                                                                           <Offset>
290                                                                                   <AbsDimension x="0" y="64"/>
291                                                                           </Offset>
292                                                                   </Anchor>
293                                                           </Anchors>
294                                                   </Texture>
295                                           </Layer>
296                                           <Layer level="OVERLAY">
297                                                   <FontString name="$parentLabel" parentKey="label" inherits="GameFontHighlight" justifyH="CENTER">
298                                                           <Size>
299                                                                   <AbsDimension x="150" y="0"/>
300                                                           </Size>
301                                                           <Anchors>
302                                                                   <Anchor point="TOP">
303                                                                           <Offset>
304                                                                                   <AbsDimension x="0" y="-15"/>
305                                                                           </Offset>
306                                                                   </Anchor>
307                                                           </Anchors>
308                                                   </FontString>
309                                                   <Texture name="$parentFiligree" file="Interface\LFGFrame\UI-LFG-FILIGREE">
310                                                           <Size>
311                                                                   <AbsDimension x="292" y="54"/>
312                                                           </Size>
313                                                           <Anchors>
314                                                                   <Anchor point="TOPLEFT">
315                                                                           <Offset>
316                                                                                   <AbsDimension x="7" y="-3"/>
317                                                                           </Offset>
318                                                                   </Anchor>
319                                                                   <Anchor point="TOPRIGHT">
320                                                                           <Offset>
321                                                                                   <AbsDimension x="-7" y="-3"/>
322                                                                           </Offset>
323                                                                   </Anchor>
324                                                           </Anchors>
325                                                           <TexCoords left="0.02734" right="0.59765" top="0.578125" bottom="1.0"/>
326                                                   </Texture>
327                                                   <Texture name="$parentBottomArt" file="Interface\LFGFrame\UI-LFG-FILIGREE">
328                                                           <Size>
329                                                                   <AbsDimension x="287" y="72"/>
330                                                           </Size>
331                                                           <Anchors>
332                                                                   <Anchor point="BOTTOM">
333                                                                           <Offset>
334                                                                                   <AbsDimension x="0" y="55"/>
335                                                                           </Offset>
336                                                                   </Anchor>
337                                                           </Anchors>
338                                                           <TexCoords left="0.0" right="0.5605" top="0.0" bottom="0.5625"/>
339                                                   </Texture>
340                                                   <FontString name="$parentYourRoleDescription" inherits="GameFontHighlightExtraSmall" text="YOUR_ROLE">
341                                                           <Anchors>
342                                                                   <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT">
343                                                                           <Offset>
344                                                                                   <AbsDimension x="108" y="93"/>
345                                                                           </Offset>
346                                                                   </Anchor>
347                                                           </Anchors>
348                                                   </FontString>
349                                                   <FontString name="$parentRoleLabel" inherits="GameFontNormalLarge" text="HEALER">
350                                                           <Anchors>
351                                                                   <Anchor point="TOPRIGHT" relativeTo="$parentYourRoleDescription" relativePoint="BOTTOMRIGHT">
352                                                                           <Offset>
353                                                                                   <AbsDimension x="0" y="0"/>
354                                                                           </Offset>
355                                                                   </Anchor>
356                                                           </Anchors>
357                                                   </FontString>
358                                           </Layer>
359                                   </Layers>
360                                   <Frames>
361                                           <Button name="$parentCloseButton">
362                                                   <Size>
363                                                           <AbsDimension x="32" y="32"/>
364                                                   </Size>
365                                                   <Anchors>
366                                                           <Anchor point="TOPRIGHT">
367                                                                   <Offset>
368                                                                           <AbsDimension x="-2" y="-2"/>
369                                                                   </Offset>
370                                                           </Anchor>
371                                                   </Anchors>
372                                                   <Scripts>
373                                                           <OnClick>
374                                                                   PlaySound("igCharacterInfoTab");
375                                                                   LFGDebug("Proposal Hidden: Ready Dialog close button pressed.");
376                                                                   StaticPopupSpecial_Hide(LFDDungeonReadyPopup);
377                                                           </OnClick>
378                                                   </Scripts>
379                                                   <NormalTexture file="Interface\Buttons\UI-Panel-HideButton-Up"/>
380                                                   <PushedTexture file="Interface\Buttons\UI-Panel-HideButton-Down"/>
381                                                   <HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
382                                           </Button>
383                                           <Button name="$parentEnterDungeonButton" inherits="UIPanelButtonTemplate2" text="ENTER_DUNGEON">
384                                                   <Size>
385                                                           <AbsDimension x="115" y="22"/>
386                                                   </Size>
387                                                   <Anchors>
388                                                           <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOM">
389                                                                   <Offset>
390                                                                           <AbsDimension x="-7" y="25"/>
391                                                                   </Offset>
392                                                           </Anchor>
393                                                   </Anchors>
394                                                   <Scripts>
395                                                           <OnClick>
396                                                                   PlaySound("igCharacterInfoTab");
397                                                                   AcceptProposal();
398                                                           </OnClick>
399                                                   </Scripts>
400                                           </Button>
401                                           <Button name="$parentLeaveQueueButton" inherits="UIPanelButtonTemplate2" text="LEAVE_QUEUE">
402                                                   <Size>
403                                                           <AbsDimension x="115" y="22"/>
404                                                   </Size>
405                                                   <Anchors>
406                                                           <Anchor point="BOTTOMLEFT" relativePoint="BOTTOM">
407                                                                   <Offset>
408                                                                           <AbsDimension x="7" y="25"/>
409                                                                   </Offset>
410                                                           </Anchor>
411                                                   </Anchors>
412                                                   <Scripts>
413                                                           <OnClick>
414                                                                   PlaySound("igCharacterInfoTab");
415                                                                   RejectProposal();
416                                                           </OnClick>
417                                                   </Scripts>
418                                           </Button>
 
420                                           <Frame name="$parentRoleIcon">
421                                                   <Size>
422                                                           <AbsDimension x="67" y="67"/>
423                                                   </Size>
424                                                   <Anchors>
425                                                           <Anchor point="BOTTOM">
426                                                                   <Offset>
427                                                                           <AbsDimension x="-1" y="54"/>
428                                                                   </Offset>
429                                                           </Anchor>
430                                                   </Anchors>
431                                                   <Layers>
432                                                           <Layer level="ARTWORK">
433                                                                   <Texture name="$parentTexture" file="Interface\LFGFrame\UI-LFG-ICON-ROLES" setAllPoints="true"/>
434                                                           </Layer>
435                                                           <Layer level="OVERLAY">
436                                                                   <Texture name="$parentLeaderIcon" file="Interface\LFGFrame\UI-LFG-ICON-PORTRAITROLES">
437                                                                           <Size>
438                                                                                   <AbsDimension x="19" y="19"/>
439                                                                           </Size>
440                                                                           <Anchors>
441                                                                                   <Anchor point="TOPLEFT">
442                                                                                           <Offset>
443                                                                                                   <AbsDimension x="0" y="-4"/>
444                                                                                           </Offset>
445                                                                                   </Anchor>
446                                                                           </Anchors>
447                                                                           <TexCoords left="0" right="0.296875" top="0.015625" bottom="0.3125"/>
448                                                                   </Texture>
449                                                           </Layer>
450                                                   </Layers>
451                                           </Frame>
452                                           <Frame name="$parentRandomInProgressFrame" parentKey="randomInProgress">
453                                                   <Size>
454                                                           <AbsDimension x="170" y="30"/>
455                                                   </Size>
456                                                   <Anchors>
457                                                           <Anchor point="TOP" relativeTo="$parentLabel" relativePoint="BOTTOM">
458                                                                   <Offset>
459                                                                           <AbsDimension x="0" y="-5"/>
460                                                                   </Offset>
461                                                           </Anchor>
462                                                   </Anchors>
463                                                   <Layers>
464                                                           <Layer level="BACKGROUND">
465                                                                   <Texture file="Interface\LFGFrame\UI-LFG-SEPARATOR">
466                                                                           <Size>
467                                                                                   <AbsDimension x="210" y="40"/>
468                                                                           </Size>
469                                                                           <Anchors>
470                                                                                   <Anchor point="TOP">
471                                                                                           <Offset>
472                                                                                                   <AbsDimension x="0" y="0"/>
473                                                                                           </Offset>
474                                                                                   </Anchor>
475                                                                           </Anchors>
476                                                                           <TexCoords left="0" right="0.6640625" top="0.3125" bottom="0"/>
477                                                                   </Texture>
478                                                           </Layer>
479                                                           <Layer level="ARTWORK">
480                                                                   <FontString name="$parentStatusText" inherits="GameFontNormal" justifyH="CENTER" text="THIS_DUNGEON_IN_PROGRESS">
481                                                                           <Anchors>
482                                                                                   <Anchor point="BOTTOM"/>
483                                                                           </Anchors>
484                                                                   </FontString>
485                                                           </Layer>
486                                                   </Layers>
487                                           </Frame>
488                                           <Frame name="$parentInstanceInfoFrame" parentKey="instanceInfo">
489                                                   <Size>
490                                                           <AbsDimension x="170" y="50"/>
491                                                   </Size>
492                                                   <Anchors>
493                                                           <Anchor point="BOTTOM" relativeTo="$parentRoleIcon" relativePoint="TOP">
494                                                                   <Offset>
495                                                                           <AbsDimension x="0" y="10"/>
496                                                                   </Offset>
497                                                           </Anchor>
498                                                   </Anchors>
499                                                   <Layers>
500                                                           <Layer level="BACKGROUND">
501                                                                   <Texture file="Interface\LFGFrame\UI-LFG-SEPARATOR">
502                                                                           <Size>
503                                                                                   <AbsDimension x="170" y="40"/>
504                                                                           </Size>
505                                                                           <Anchors>
506                                                                                   <Anchor point="TOP">
507                                                                                           <Offset>
508                                                                                                   <AbsDimension x="0" y="0"/>
509                                                                                           </Offset>
510                                                                                   </Anchor>
511                                                                           </Anchors>
512                                                                           <TexCoords left="0" right="0.6640625" top="0" bottom="0.3125"/>
513                                                                   </Texture>
514                                                           </Layer>
515                                                           <Layer level="ARTWORK">
516                                                                   <FontString name="$parentName" inherits="GameFontNormalLarge" justifyH="CENTER" parentKey="name">
517                                                                           <Anchors>
518                                                                                   <Anchor point="TOP">
519                                                                                           <Offset>
520                                                                                                   <AbsDimension x="0" y="-13"/>
521                                                                                           </Offset>
522                                                                                   </Anchor>
523                                                                           </Anchors>
524                                                                   </FontString>
525                                                                   <FontString name="$parentStatusText" inherits="GameFontNormal" justifyH="CENTER" parentKey="statusText">
526                                                                           <Anchors>
527                                                                                   <Anchor point="BOTTOM"/>
528                                                                           </Anchors>
529                                                                   </FontString>
530                                                           </Layer>
531                                                   </Layers>
532                                                   <Scripts>
533                                                           <OnEnter function="LFDDungeonReadyDialogInstanceInfo_OnEnter"/>
534                                                           <OnLeave function="GameTooltip_Hide"/>
535                                                   </Scripts>
536                                           </Frame>
537                                           <Frame name="$parentRewardsFrame">
538                                                   <Size>
539                                                           <AbsDimension x="72" y="40"/>
540                                                   </Size>
541                                                   <Anchors>
542                                                           <Anchor point="BOTTOMLEFT" relativeTo="$parentRoleIcon" relativePoint="BOTTOMRIGHT">
543                                                                   <Offset>
544                                                                           <AbsDimension x="19" y="15"/>
545                                                                   </Offset>
546                                                           </Anchor>
547                                                   </Anchors>
548                                                   <Layers>
549                                                           <Layer level="ARTWORK">
550                                                                   <FontString name="$parentLabel" inherits="GameFontNormalSmall" justifyH="CENTER" text="LFD_REWARDS">
551                                                                           <Anchors>
552                                                                                   <Anchor point="BOTTOM"/>
553                                                                           </Anchors>
554                                                                   </FontString>
555                                                           </Layer>
556                                                   </Layers>
557                                                   <Frames>
558                                                           <Frame name="$parentReward1" inherits="LFDDungeonReadyRewardTemplate" id="1"/>
559                                                           <Frame name="$parentReward2" inherits="LFDDungeonReadyRewardTemplate" id="2"/>
560                                                   </Frames>
561                                           </Frame>
562                                   </Frames>
563                           </Frame>
564                   </Frames>
565                   <Scripts>
566                           <OnLoad>
567                                   self:RegisterEvent("LFG_UPDATE_RANDOM_INFO")
568                           </OnLoad>
569                           <OnEvent>
570                                   if ( event == "LFG_UPDATE_RANDOM_INFO" ) then
571                                           --The rewards may have changed.
572                                           if ( self:IsShown() ) then
573                                                   LFDDungeonReadyPopup_Update();
574                                           end
575                                   end
576                           </OnEvent>
577                           <OnShow>
578                                   LFDDungeonReadyPopup_Update();
 
580                                   --Request new lock info (which comes with which rewards we're getting) in case the rewards changed.
581                                   RequestLFDPlayerLockInfo();
582                                   RequestLFDPartyLockInfo();
583                           </OnShow>
584                           <OnHide>
585                                   self.closeIn = nil;
586                                   self:SetScript("OnUpdate", nil);
587                           </OnHide>
588                   </Scripts>
589           </Frame>
 
735           <Frame name="LFDSearchStatus" frameStrata="TOOLTIP" hidden="true" parent="MiniMapLFGFrame">
736                   <Size>
737                           <AbsDimension x="350" y="153"/>
738                   </Size>
739                   <Anchors>
740                           <Anchor point="TOPRIGHT" relativeTo="MiniMapLFGFrame" relativePoint="TOPLEFT">
741                                   <Offset>
742                                           <AbsDimension x="0" y="0"/>
743                                   </Offset>
744                           </Anchor>
745                   </Anchors>
746                   <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
747                           <EdgeSize>
748                                   <AbsValue val="16"/>
749                           </EdgeSize>
750                           <TileSize>
751                                   <AbsValue val="16"/>
752                           </TileSize>
753                           <BackgroundInsets>
754                                   <AbsInset left="5" right="5" top="5" bottom="5"/>
755                           </BackgroundInsets>
756                   </Backdrop>
757                   <Layers>
758                           <Layer level="ARTWORK">
759                                   <FontString name="$parentTitle" inherits="GameFontHighlight" text="ASSEMBLING_GROUP">
760                                           <Anchors>
761                                                   <Anchor point="TOP">
762                                                           <Offset>
763                                                                   <AbsDimension x="0" y="-15"/>
764                                                           </Offset>
765                                                   </Anchor>
766                                           </Anchors>
767                                   </FontString>
768                                   <FontString name="$parentStatistic" justifyH="CENTER" justifyV="MIDDLE" inherits="GameFontNormal" parentKey="statistic">
769                                           <Size>
770                                                   <AbsDimension x="330" y="25"/>
771                                           </Size>
772                                           <Anchors>
773                                                   <Anchor point="TOP">
774                                                           <Offset>
775                                                                   <AbsDimension x="0" y="-90"/>
776                                                           </Offset>
777                                                   </Anchor>
778                                           </Anchors>
779                                   </FontString>
780                                   <FontString name="$parentElapsedWaitTime" justifyH="CENTER" inherits="GameFontNormal" parentKey="elapsedWait">
781                                           <Anchors>
782                                                   <Anchor point="BOTTOM">
783                                                           <Offset>
784                                                                   <AbsDimension x="0" y="38"/>
785                                                           </Offset>
786                                                   </Anchor>
787                                           </Anchors>
788                                   </FontString>
789                                   <FontString name="$parentLookingFor" justifyH="CENTER" inherits="GameFontHighlight" text="SEARCHING_FOR_GROUPS_NEEDS">
790                                           <Anchors>
791                                                   <Anchor point="BOTTOM">
792                                                           <Offset>
793                                                                   <AbsDimension x="0" y="14"/>
794                                                           </Offset>
795                                                   </Anchor>
796                                           </Anchors>
797                                   </FontString>
798                                   <Texture name="$parentRoleIcon1" inherits="LFDSearchStatusRoleIconTemplate">
799                                           <Anchors>
800                                                   <Anchor point="LEFT" relativeTo="$parentLookingFor" relativePoint="RIGHT">
801                                                           <Offset>
802                                                                   <AbsDimension x="2" y="0"/>
803                                                           </Offset>
804                                                   </Anchor>
805                                           </Anchors>
806                                   </Texture>
807                                   <Texture name="$parentRoleIcon2" inherits="LFDSearchStatusRoleIconTemplate">
808                                           <Anchors>
809                                                   <Anchor point="LEFT" relativeTo="$parentRoleIcon1" relativePoint="RIGHT">
810                                                           <Offset>
811                                                                   <AbsDimension x="2" y="0"/>
812                                                           </Offset>
813                                                   </Anchor>
814                                           </Anchors>
815                                   </Texture>
816                                   <Texture name="$parentRoleIcon3" inherits="LFDSearchStatusRoleIconTemplate">
817                                           <Anchors>
818                                                   <Anchor point="LEFT" relativeTo="$parentRoleIcon2" relativePoint="RIGHT">
819                                                           <Offset>
820                                                                   <AbsDimension x="2" y="0"/>
821                                                           </Offset>
822                                                   </Anchor>
823                                           </Anchors>
824                                   </Texture>
825                           </Layer>
826                   </Layers>
827                   <Frames>
828                           <Frame name="$parentTank1" inherits="LFDSearchStatusPlayerTemplate">
829                                   <Anchors>
830                                           <Anchor point="TOPLEFT">
831                                                   <Offset>
832                                                           <AbsDimension x="25" y="-40"/>
833                                                   </Offset>
834                                           </Anchor>
835                                   </Anchors>
836                                   <Scripts>
837                                           <OnLoad>
838                                                   self.texture:SetTexCoord(GetTexCoordsForRole("TANK"));
839                                           </OnLoad>
840                                   </Scripts>
841                           </Frame>
842                           <Frame name="$parentHealer1" inherits="LFDSearchStatusPlayerTemplate">
843                                   <Anchors>
844                                           <Anchor point="LEFT" relativeTo="$parentTank1" relativePoint="RIGHT">
845                                                   <Offset>
846                                                           <AbsDimension x="5" y="0"/>
847                                                   </Offset>
848                                           </Anchor>
849                                   </Anchors>
850                                   <Scripts>
851                                           <OnLoad>
852                                                   self.texture:SetTexCoord(GetTexCoordsForRole("HEALER"));
853                                           </OnLoad>
854                                   </Scripts>
855                           </Frame>
856                           <Frame name="$parentDamage1" inherits="LFDSearchStatusPlayerTemplate">
857                                   <Anchors>
858                                           <Anchor point="LEFT" relativeTo="$parentHealer1" relativePoint="RIGHT">
859                                                   <Offset>
860                                                           <AbsDimension x="5" y="0"/>
861                                                   </Offset>
862                                           </Anchor>
863                                   </Anchors>
864                                   <Scripts>
865                                           <OnLoad>
866                                                   self.texture:SetTexCoord(GetTexCoordsForRole("DAMAGER"));
867                                           </OnLoad>
868                                   </Scripts>
869                           </Frame>
870                           <Frame name="$parentDamage2" inherits="LFDSearchStatusPlayerTemplate">
871                                   <Anchors>
872                                           <Anchor point="LEFT" relativeTo="$parentDamage1" relativePoint="RIGHT">
873                                                   <Offset>
874                                                           <AbsDimension x="5" y="0"/>
875                                                   </Offset>
876                                           </Anchor>
877                                   </Anchors>
878                                   <Scripts>
879                                           <OnLoad>
880                                                   self.texture:SetTexCoord(GetTexCoordsForRole("DAMAGER"));
881                                           </OnLoad>
882                                   </Scripts>
883                           </Frame>
884                           <Frame name="$parentDamage3" inherits="LFDSearchStatusPlayerTemplate">
885                                   <Anchors>
886                                           <Anchor point="LEFT" relativeTo="$parentDamage2" relativePoint="RIGHT">
887                                                   <Offset>
888                                                           <AbsDimension x="5" y="0"/>
889                                                   </Offset>
890                                           </Anchor>
891                                   </Anchors>
892                                   <Scripts>
893                                           <OnLoad>
894                                                   self.texture:SetTexCoord(GetTexCoordsForRole("DAMAGER"));
895                                           </OnLoad>
896                                   </Scripts>
897                           </Frame>
898                   </Frames>
899                   <Scripts>
900                           <OnLoad>
901                                   self:RegisterEvent("LFG_QUEUE_STATUS_UPDATE");
 
903                                   self:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b);
904                                   self:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b);
905                           </OnLoad>
906                           <OnEvent function="LFDSearchStatus_OnEvent"/>
907                           <OnShow function="LFDSearchStatus_Update"/>
908                   </Scripts>
909           </Frame>
 
1036                                                                   LFDFrameRoleCheckButton_OnEnter(self);
  284                                                                 LFGFrameRoleCheckButton_OnEnter(self);
 
1145                                                                           <Frame name="$parentChildFrame" hidden="true">
1146                                                                                   <Size>
1147                                                                                           <AbsDimension x="298" y="1"/>
1148                                                                                   </Size>
1149                                                                                   <Layers>
1150                                                                                           <Layer level="ARTWORK">
1151                                                                                                   <FontString name="$parentTitle" inherits="QuestTitleFontBlackShadow" justifyH="LEFT" parentKey="title" text="LFG_TYPE_RANDOM_DUNGEON">
1152                                                                                                           <Anchors>
1153                                                                                                                   <Anchor point="TOPLEFT">
1154                                                                                                                           <Offset>
1155                                                                                                                                   <AbsDimension x="10" y="-15"/>
1156                                                                                                                           </Offset>
1157                                                                                                                   </Anchor>
1158                                                                                                           </Anchors>
1159                                                                                                   </FontString>
1160                                                                                                   <FontString name="$parentDescription" inherits="QuestFont" justifyH="LEFT" parentKey="description" text="LFD_RANDOM_EXPLANATION">
1161                                                                                                           <Size>
1162                                                                                                                   <AbsDimension x="280" y="0"/>
1163                                                                                                           </Size>
1164                                                                                                           <Anchors>
1165                                                                                                                   <Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT">
1166                                                                                                                           <Offset>
1167                                                                                                                                   <AbsDimension x="0" y="-5"/>
1168                                                                                                                           </Offset>
1169                                                                                                                   </Anchor>
1170                                                                                                           </Anchors>
1171                                                                                                   </FontString>
1172                                                                                                   <FontString name="$parentRewardsLabel" inherits="QuestTitleFontBlackShadow" justifyH="LEFT" parentKey="rewardsLabel" text="LFD_REWARDS">
1173                                                                                                           <Anchors>
1174                                                                                                                   <Anchor point="TOPLEFT" relativeTo="$parentDescription" relativePoint="BOTTOMLEFT">
1175                                                                                                                           <Offset>
1176                                                                                                                                   <AbsDimension x="0" y="-10"/>
1177                                                                                                                           </Offset>
1178                                                                                                                   </Anchor>
1179                                                                                                           </Anchors>
1180                                                                                                   </FontString>
1181                                                                                                   <FontString name="$parentRewardsDescription" inherits="QuestFont" justifyH="LEFT" parentKey="rewardsDescription" text="LFD_RANDOM_REWARD_EXPLANATION1">
1182                                                                                                           <Size>
1183                                                                                                                   <AbsDimension x="280" y="0"/>
1184                                                                                                           </Size>
1185                                                                                                           <Anchors>
1186                                                                                                                   <Anchor point="TOPLEFT" relativeTo="$parentRewardsLabel" relativePoint="BOTTOMLEFT">
1187                                                                                                                           <Offset>
1188                                                                                                                                   <AbsDimension x="0" y="-5"/>
1189                                                                                                                           </Offset>
1190                                                                                                                   </Anchor>
1191                                                                                                           </Anchors>
1192                                                                                                   </FontString>
1193                                                                                                   <FontString name="$parentPUGDescription" inherits="QuestFont" justifyH="LEFT" parentKey="pugDescription" text="LFD_RANDOM_REWARD_PUG_EXPLANATION">
1194                                                                                                           <Size>
1195                                                                                                                   <AbsDimension x="280" y="0"/>
1196                                                                                                           </Size>
1197                                                                                                           <Anchors>
1198                                                                                                                   <Anchor point="TOPLEFT" relativeTo="$parentRewardsLabel" relativePoint="BOTTOMLEFT">
1199                                                                                                                           <Offset>
1200                                                                                                                                   <AbsDimension x="0" y="-5"/>
1201                                                                                                                           </Offset>
1202                                                                                                                   </Anchor>
1203                                                                                                           </Anchors>
1204                                                                                                   </FontString>
1205                                                                                                   <FontString name="$parentMoneyLabel" inherits="QuestFont" justifyH="LEFT" parentKey="moneyLabel" text="MONEY_COLON">
1206                                                                                                           <Anchors>
1207                                                                                                                   <Anchor point="TOPLEFT" relativeTo="$parentPUGDescription" relativePoint="BOTTOMLEFT">
1208                                                                                                                           <Offset>
1209                                                                                                                                   <AbsDimension x="20" y="-10"/>
1210                                                                                                                           </Offset>
1211                                                                                                                   </Anchor>
1212                                                                                                           </Anchors>
1213                                                                                                   </FontString>
1214                                                                                                   <FontString name="$parentXPLabel" inherits="QuestFont" justifyH="LEFT" parentKey="xpLabel" text="EXPERIENCE_COLON">
1215                                                                                                           <Anchors>
1216                                                                                                                   <Anchor point="TOPLEFT" relativeTo="$parentMoneyLabel" relativePoint="BOTTOMLEFT">
1217                                                                                                                           <Offset>
1218                                                                                                                                   <AbsDimension x="0" y="-5"/>
1219                                                                                                                           </Offset>
1220                                                                                                                   </Anchor>
1221                                                                                                           </Anchors>
1222                                                                                                   </FontString>
1223                                                                                                   <FontString name="$parentXPAmount" inherits="NumberFontNormalLarge" justifyH="LEFT" parentKey="xpAmount">
1224                                                                                                           <Anchors>
1225                                                                                                                   <Anchor point="LEFT" relativeTo="$parentXPLabel" relativePoint="RIGHT">
1226                                                                                                                           <Offset>
1227                                                                                                                                   <AbsDimension x="10" y="0"/>
1228                                                                                                                           </Offset>
1229                                                                                                                   </Anchor>
1230                                                                                                           </Anchors>
1231                                                                                                   </FontString>
  393                                                                         <Frame name="$parentChildFrame" inherits="LFGRewardFrameTemplate">
 
1234                                                                                           </Layer>
1235                                                                                   </Layers>
1236                                                                                   <Frames>
1237                                                                                           <Button name="$parentItem1" inherits="LFDRandomDungeonLootTemplate" id="1">
1238                                                                                                   <Anchors>
1239                                                                                                           <Anchor point="TOPLEFT" relativeTo="$parentRewardsDescription" relativePoint="BOTTOMLEFT">
1240                                                                                                                   <Offset>
1241                                                                                                                           <AbsDimension x="0" y="-10"/>
1242                                                                                                                   </Offset>
1243                                                                                                           </Anchor>
1244                                                                                                   </Anchors>
1245                                                                                           </Button>
1246                                                                                           <Frame name="$parentMoneyFrame" inherits="MoneyFrameTemplate" parentKey="moneyFrame">
1247                                                                                                   <Anchors>
1248                                                                                                           <Anchor point="LEFT" relativeTo="$parentMoneyLabel" relativePoint="RIGHT">
1249                                                                                                                   <Offset>
1250                                                                                                                           <AbsDimension x="10" y="0"/>
1251                                                                                                                   </Offset>
1252                                                                                                           </Anchor>
1253                                                                                                   </Anchors>
1254                                                                                                   <Scripts>
1255                                                                                                           <OnLoad>
1256                                                                                                                   SmallMoneyFrame_OnLoad(self);
1257                                                                                                                   MoneyFrame_SetType(self, "STATIC");
1258                                                                                                           </OnLoad>
1259                                                                                                   </Scripts>
1260                                                                                           </Frame>
1261                                                                                           <Frame name="$parentRandomList" parentKey="randomList">
1262                                                                                                   <Size x="18" y="18"/>
1263                                                                                                   <Anchors>
1264                                                                                                           <Anchor point="LEFT" relativeTo="$parentTitle" relativePoint="RIGHT" x="5" y="-3"/>
1265                                                                                                   </Anchors>
1266                                                                                                   <Layers>
1267                                                                                                           <Layer level="ARTWORK">
1268                                                                                                                   <Texture name="$parentDiceTexture" file="Interface\Buttons\UI-GroupLoot-Dice-Up">
1269                                                                                                                           <Size x="18" y="18"/>
1270                                                                                                                           <Anchors>
1271                                                                                                                                   <Anchor point="BOTTOMRIGHT"/>
1272                                                                                                                           </Anchors>
1273                                                                                                                   </Texture>
 
1280                                                                                                           </Layer>
1281                                                                                                   </Layers>
1282                                                                                                   <Scripts>
1283                                                                                                           <OnEnter function="LFDQueueFrameRandomRandomList_OnEnter"/>
1284                                                                                                           <OnLeave function="GameTooltip_Hide"/>
1285                                                                                                   </Scripts>
1286                                                                                           </Frame>
1287                                                                                           <Frame name="$parentSpacer" parentKey="spacer">
1288                                                                                                   <Size>
1289                                                                                                           <AbsDimension x="2" y="2"/>
1290                                                                                                   </Size>
1291                                                                                                   <Anchors>
1292                                                                                                           <Anchor point="TOPLEFT" relativeTo="$parentXPLabel" relativePoint="BOTTOMLEFT">
1293                                                                                                                   <Offset>
1294                                                                                                                           <AbsDimension x="0" y="-10"/>
1295                                                                                                                   </Offset>
1296                                                                                                           </Anchor>
1297                                                                                                   </Anchors>
1298                                                                                           </Frame>
1299                                                                                   </Frames>
 
1301                                                                                           <OnLoad>
1302                                                                                                   local myName = self:GetName();
1303                                                                                                   self.description:SetTextColor(1, 1, 1);
1304                                                                                                   self.rewardsDescription:SetTextColor(1, 1, 1);
1305                                                                                                   self.pugDescription:SetTextColor(1, 1, 1);
1306                                                                                                   self.moneyLabel:SetTextColor(1, 1, 1);
1307                                                                                                   self.xpLabel:SetTextColor(1, 1, 1);
1308                                                                                           </OnLoad>
1309                                                                                           <OnShow function="LFDQueueFrameRandom_UpdateFrame"/>
  395                                                                                         <OnShow>
  396                                                                                                 LFDQueueFrameRandom_UpdateFrame();
  397                                                                                         </OnShow>
   
File: FrameXML\LFGFrame.lua  
56    --local LFDDungeonList, LFRRaidList, LFGDungeonInfo, LFGCollapseList, LFGEnabledList, LFDHiddenByCollapseList, LFGLockList;
  56  --local LFDDungeonList, LFRRaidList, LFGCollapseList, LFGEnabledList, LFDHiddenByCollapseList, LFGLockList;
 
  67         self:RegisterEvent("LFG_PROPOSAL_UPDATE");
  68         self:RegisterEvent("LFG_PROPOSAL_SHOW");
  69         self:RegisterEvent("LFG_PROPOSAL_FAILED");
  70         self:RegisterEvent("LFG_PROPOSAL_SUCCEEDED");
 
70           self:RegisterEvent("LFG_PROPOSAL_UPDATE");
71           self:RegisterEvent("LFG_PROPOSAL_SHOW");
 
77           self:RegisterEvent("LFG_PROPOSAL_FAILED");
 
  132         elseif ( event == "LFG_ROLE_UPDATE" ) then
  133                 LFG_UpdateRoleCheckboxes();
  134         elseif ( event == "LFG_PROPOSAL_UPDATE" ) then
  135                 LFGDungeonReadyPopup_Update();
  136         elseif ( event == "LFG_PROPOSAL_SHOW" ) then
  137                 LFGDungeonReadyPopup.closeIn = nil;
  138                 LFGDungeonReadyPopup:SetScript("OnUpdate", nil);
  139                 LFGDungeonReadyStatus_ResetReadyStates();
  140                 StaticPopupSpecial_Show(LFGDungeonReadyPopup);
  141                 LFGSearchStatus:Hide();
  142                 PlaySound("ReadyCheck");
  143         elseif ( event == "LFG_PROPOSAL_FAILED" ) then
  144                 LFGDungeonReadyPopup_OnFail();
  145         elseif ( event == "LFG_PROPOSAL_SUCCEEDED" ) then
  146                 LFGDebug("Proposal Hidden: Proposal succeeded.");
  147                 StaticPopupSpecial_Hide(LFGDungeonReadyPopup);
 
  175         RaidFinderFrameFindRaidButton_Update();
 
169           if ( LFRParentFrame:IsShown() ) then
  188         if ( LFRParentFrame:IsVisible() ) then
 
  252                 LFG_EnableRoleButton(RaidFinderQueueFrameRoleButtonTank);
 
  257                 LFG_PermanentlyDisableRoleButton(RaidFinderQueueFrameRoleButtonTank);
 
  264                 LFG_EnableRoleButton(RaidFinderQueueFrameRoleButtonHealer);
 
  269                 LFG_PermanentlyDisableRoleButton(RaidFinderQueueFrameRoleButtonHealer);
 
  276                 LFG_EnableRoleButton(RaidFinderQueueFrameRoleButtonDPS);
 
  281                 LFG_PermanentlyDisableRoleButton(RaidFinderQueueFrameRoleButtonDPS);
 
  287                 LFG_EnableRoleButton(RaidFinderQueueFrameRoleButtonLeader);
 
  290                 LFG_PermanentlyDisableRoleButton(RaidFinderQueueFrameRoleButtonLeader);
 
  298         RaidFinderQueueFrameRoleButtonLeader.checkButton:SetChecked(leader);
 
  303         RaidFinderQueueFrameRoleButtonTank.checkButton:SetChecked(tank);
 
  308         RaidFinderQueueFrameRoleButtonHealer.checkButton:SetChecked(healer);
 
  313         RaidFinderQueueFrameRoleButtonDPS.checkButton:SetChecked(dps);
 
  456 function LFGFrameRoleCheckButton_OnEnter(self)
  457         if ( self.checkButton:IsEnabled() == 1 ) then
  458                 self.checkButton:LockHighlight();
  459         end
  460 end
 
  462 function LFGConstructDeclinedMessage(dungeonID)
  463         local returnVal;
  464         for i=1, GetLFDLockPlayerCount() do
  465                 local playerName, lockedReason, subReason1, subReason2 = GetLFDLockInfo(dungeonID, i);
  466                 if ( lockedReason ~= 0 ) then
  467                         local who;
  468                         if ( i == 1 ) then
  469                                 who = "SELF_";
  470                         else
  471                                 who = "OTHER_";
  472                         end
  473                         if ( returnVal ) then
  474                                 returnVal = returnVal.."\n"..format(_G["INSTANCE_UNAVAILABLE_"..who..(LFG_INSTANCE_INVALID_CODES[lockedReason] or "OTHER")], playerName, subReason1, subReason2);
  475                         else
  476                                 returnVal = format(_G["INSTANCE_UNAVAILABLE_"..who..(LFG_INSTANCE_INVALID_CODES[lockedReason] or "OTHER")], playerName, subReason1, subReason2);
  477                         end
  478                 end
  479         end
  480         return returnVal;
  481 end
 
  483 --Queued status functions
 
  485 local NUM_TANKS = 1;
  486 local NUM_HEALERS = 1;
  487 local NUM_DAMAGERS = 3;
 
  489 function LFGSearchStatus_OnEvent(self, event, ...)
  490         if ( event == "LFG_QUEUE_STATUS_UPDATE" ) then
  491                 LFGSearchStatus_Update();
  492         end
  493 end
 
  495 function LFGSearchStatus_SetMode(mode)
  496         if ( mode == "individual" ) then
  497                 LFGSearchStatus.mode = "individual";
  498                 LFGSearchStatusIndividualRoleDisplay:Show();
  499                 LFGSearchStatusGroupedRoleDisplay:Hide();
  500         elseif ( mode == "grouped" ) then
  501                 LFGSearchStatus.mode = "grouped";
  502                 LFGSearchStatusIndividualRoleDisplay:Hide();
  503                 LFGSearchStatusGroupedRoleDisplay:Show();
  504         else
  505                 GMError("Unknown mode");
  506         end
  507 end
 
  509 function LFGSearchStatusPlayer_SetFound(button, isFound)
  510         if ( isFound ) then
  511                 SetDesaturation(button.texture, false);
  512                 button.cover:Hide();
  513         else
  514                 SetDesaturation(button.texture, true);
  515                 button.cover:Show();
  516         end
  517 end
 
  519 function LFGSearchStatus_UpdateRoles()
  520         local leader, tank, healer, damage = GetLFGRoles();
  521         local currentIcon = 1;
  522         if ( tank ) then
  523                 local icon = _G["LFGSearchStatusRoleIcon"..currentIcon]
  524                 icon:SetTexCoord(GetTexCoordsForRole("TANK"));
  525                 icon:Show();
  526                 currentIcon = currentIcon + 1;
  527         end
  528         if ( healer ) then
  529                 local icon = _G["LFGSearchStatusRoleIcon"..currentIcon]
  530                 icon:SetTexCoord(GetTexCoordsForRole("HEALER"));
  531                 icon:Show();
  532                 currentIcon = currentIcon + 1;
  533         end
  534         if ( damage ) then
  535                 local icon = _G["LFGSearchStatusRoleIcon"..currentIcon]
  536                 icon:SetTexCoord(GetTexCoordsForRole("DAMAGER"));
  537                 icon:Show();
  538                 currentIcon = currentIcon + 1;
  539         end
  540         for i=currentIcon, LFD_NUM_ROLES do
  541                 _G["LFGSearchStatusRoleIcon"..i]:Hide();
  542         end
  543         local extraWidth = 27*(currentIcon-1);
  544         LFGSearchStatusLookingFor:SetPoint("BOTTOM", -extraWidth/2, 14);
  545 end
 
  547 function LFGSearchStatus_Update()
  548         local LFGSearchStatus = LFGSearchStatus;
  549         local hasData,  leaderNeeds, tankNeeds, healerNeeds, dpsNeeds, instanceType, instanceName, averageWait, tankWait, healerWait, damageWait, myWait, queuedTime = GetLFGQueueStats();
 
  551         LFGSearchStatus_UpdateRoles();
 
  553         local displayHeight = 145;
  554         if ( LFGSearchStatus.mode == "grouped" ) then
  555                 displayHeight = displayHeight + 20;
  556         end
 
  558         if ( not hasData ) then
  559                 LFGSearchStatus:SetHeight(displayHeight);
  560                 LFGSearchStatus_SetRolesFound(0, 0, 0);
  561                 LFGSearchStatus.statistic:Hide();
  562                 LFGSearchStatus.elapsedWait:SetFormattedText(TIME_IN_QUEUE, LESS_THAN_ONE_MINUTE);
 
  564                 LFGSearchStatus:SetScript("OnUpdate", nil);
  565                 return;
  566         end
 
  568         if ( instancetype == TYPEID_HEROIC_DIFFICULTY ) then
  569                 instanceName = format(HEROIC_PREFIX, instanceName);
  570         end
 
  572         --This won't work if we decide the makeup is, say, 3 healers, 1 damage, 1 tank.
  573         LFGSearchStatus_SetRolesFound(NUM_TANKS - tankNeeds, NUM_HEALERS - healerNeeds, NUM_DAMAGERS - dpsNeeds);
 
  575         LFGSearchStatus.queuedTime = queuedTime;
  576         local elapsedTime = GetTime() - queuedTime;
  577         LFGSearchStatus.elapsedWait:SetFormattedText(TIME_IN_QUEUE, (elapsedTime >= 60) and SecondsToTime(elapsedTime) or LESS_THAN_ONE_MINUTE);
  578         LFGSearchStatus.elapsedWait:Show();
 
  580         if ( myWait == -1 ) then
  581                 LFGSearchStatus.statistic:Hide();
  582         else
  583                 LFGSearchStatus.statistic:Show();
  584                 displayHeight = displayHeight + 25;
  585                 LFGSearchStatus.statistic:SetFormattedText(LFG_STATISTIC_AVERAGE_WAIT, myWait == -1 and TIME_UNKNOWN or SecondsToTime(myWait, false, false, 1));
  586         end
  587         LFGSearchStatus:SetHeight(displayHeight);
  588         LFGSearchStatus:SetScript("OnUpdate", LFGSearchStatus_OnUpdate);
  589 end
 
  591 function LFGSearchStatus_SetRolesFound(tanksFound, healersFound, damageFound)
  592         if ( LFGSearchStatus.mode == "individual" ) then
  593                 LFGSearchStatusPlayer_SetFound(LFGSearchStatusIndividualRoleDisplayTank1, (tanksFound > 0));
  594                 LFGSearchStatusPlayer_SetFound(LFGSearchStatusIndividualRoleDisplayHealer1, (healersFound > 0));
 
  596                 for i=1, NUM_DAMAGERS do
  597                         LFGSearchStatusPlayer_SetFound(_G["LFGSearchStatusIndividualRoleDisplayDamage"..i], i <= damageFound);
  598                 end
  599         else
  600                 LFGSearchStatusPlayer_SetFound(LFGSearchStatusGroupedRoleDisplayTank, tanksFound == NUM_TANKS);
  601                 LFGSearchStatusPlayer_SetFound(LFGSearchStatusGroupedRoleDisplayHealer, healersFound == NUM_HEALERS);
  602                 LFGSearchStatusPlayer_SetFound(LFGSearchStatusGroupedRoleDisplayDamage, damageFound == NUM_DAMAGERS);
 
  604                 LFGSearchStatusGroupedRoleDisplayTank.count:SetFormattedText(PLAYERS_FOUND_OUT_OF_MAX, tanksFound, NUM_TANKS);
  605                 LFGSearchStatusGroupedRoleDisplayHealer.count:SetFormattedText(PLAYERS_FOUND_OUT_OF_MAX, healersFound, NUM_HEALERS);
  606                 LFGSearchStatusGroupedRoleDisplayDamage.count:SetFormattedText(PLAYERS_FOUND_OUT_OF_MAX, damageFound, NUM_DAMAGERS);
  607         end
  608 end
 
  610 function LFGSearchStatus_OnUpdate(self, elapsed)
  611         local elapsedTime = GetTime() - self.queuedTime;
  612         self.elapsedWait:SetFormattedText(TIME_IN_QUEUE, (elapsedTime >= 60) and SecondsToTime(elapsedTime) or LESS_THAN_ONE_MINUTE);
  613 end
 
  615 --Ready popup functions
 
  617 function LFGDungeonReadyPopup_OnFail()
  618         PlaySound("LFG_Denied");
  619         if ( LFGDungeonReadyDialog:IsShown() ) then
  620                 LFGDebug("Proposal Hidden: Proposal failed.");
  621                 StaticPopupSpecial_Hide(LFGDungeonReadyPopup);
  622         elseif ( LFGDungeonReadyPopup:IsShown() ) then
  623                 LFGDungeonReadyPopup.closeIn = LFD_PROPOSAL_FAILED_CLOSE_TIME;
  624                 LFGDungeonReadyPopup:SetScript("OnUpdate", LFGDungeonReadyPopup_OnUpdate);
  625         end
  626 end
 
  628 function LFGDungeonReadyPopup_OnUpdate(self, elapsed)
  629         self.closeIn = self.closeIn - elapsed;
  630         if ( self.closeIn < 0 ) then    --We remove the OnUpdate and closeIn OnHide
  631                 LFGDebug("Proposal Hidden: Failure close timer expired.");
  632                 StaticPopupSpecial_Hide(LFGDungeonReadyPopup);
  633         end
  634 end
 
  636 function LFGDungeonReadyPopup_Update() 
  637         local proposalExists, typeID, id, name, texture, role, hasResponded, totalEncounters, completedEncounters, numMembers, isLeader = GetLFGProposal();
  638         local isRaid = false;
  639         if ( not proposalExists ) then
  640                 LFGDebug("Proposal Hidden: No proposal exists.");
  641                 StaticPopupSpecial_Hide(LFGDungeonReadyPopup);
  642                 return;
  643         end
 
  645         LFGDungeonReadyPopup.dungeonID = id;
 
  647         if ( hasResponded ) then
  648                 if ( isRaid ) then
  649                         LFGDungeonReadyStatus:Show();
  650                         LFGDungeonReadyStatusIndividual:Hide();
  651                         LFGDungeonReadyStatusGrouped:Show();
  652                         LFGDungeonReadyDialog:Hide();
 
  654                         LFGDungeonReadyStatusGrouped_UpdateIcon(LFGDungeonReadyStatusGroupedTank, "TANK", numMembers);
  655                         LFGDungeonReadyStatusGrouped_UpdateIcon(LFGDungeonReadyStatusGroupedHealer, "HEALER", numMembers);
  656                         LFGDungeonReadyStatusGrouped_UpdateIcon(LFGDungeonReadyStatusGroupedDamager, "DAMAGER", numMembers);
 
  658                         if ( not LFGDungeonReadyPopup:IsShown() or StaticPopup_IsLastDisplayedFrame(LFGDungeonReadyPopup) ) then
  659                                 LFGDungeonReadyPopup:SetHeight(LFGDungeonReadyStatus:GetHeight());
  660                         end
  661                 else
  662                         LFGDungeonReadyStatus:Show();
  663                         LFGDungeonReadyStatusGrouped:Hide();
  664                         LFGDungeonReadyStatusIndividual:Show();
  665                         LFGDungeonReadyDialog:Hide();
 
  667                         for i=1, numMembers do
  668                                 LFGDungeonReadyStatusIndividual_UpdateIcon(_G["LFGDungeonReadyStatusIndividualPlayer"..i]);
  669                         end
  670                         for i=numMembers+1, NUM_LFD_MEMBERS do
  671                                 _G["LFGDungeonReadyStatusIndividualPlayer"..i]:Hide();
  672                         end
 
  674                         if ( not LFGDungeonReadyPopup:IsShown() or StaticPopup_IsLastDisplayedFrame(LFGDungeonReadyPopup) ) then
  675                                 LFGDungeonReadyPopup:SetHeight(LFGDungeonReadyStatus:GetHeight());
  676                         end
  677                 end
  678         else
  679                 LFGDungeonReadyDialog:Show();
  680                 LFGDungeonReadyStatus:Hide();
 
  682                 local LFGDungeonReadyDialog = LFGDungeonReadyDialog; --Make a local copy.
 
  684                 if ( typeID == TYPEID_RANDOM_DUNGEON ) then
  685                         LFGDungeonReadyDialog.background:SetTexture("Interface\\LFGFrame\\UI-LFG-BACKGROUND-RANDOMDUNGEON");
 
  687                         LFGDungeonReadyDialog.label:SetText(RANDOM_DUNGEON_IS_READY);
 
  689                         LFGDungeonReadyDialog.instanceInfo:Hide();
 
  691                         if ( completedEncounters > 0 ) then
  692                                 LFGDungeonReadyDialog.randomInProgress:Show();
  693                                 LFGDungeonReadyPopup:SetHeight(223);
  694                                 LFGDungeonReadyDialog.background:SetTexCoord(0, 1, 0, 1);
  695                         else
  696                                 LFGDungeonReadyDialog.randomInProgress:Hide();
  697                                 LFGDungeonReadyPopup:SetHeight(193);
  698                                 LFGDungeonReadyDialog.background:SetTexCoord(0, 1, 0, 118/128);
  699                         end
  700                 else
  701                         LFGDungeonReadyDialog.randomInProgress:Hide();
  702                         LFGDungeonReadyPopup:SetHeight(223);
  703                         LFGDungeonReadyDialog.background:SetTexCoord(0, 1, 0, 1);
  704                         texture = "Interface\\LFGFrame\\UI-LFG-BACKGROUND-"..texture;
  705                         if ( not LFGDungeonReadyDialog.background:SetTexture(texture) ) then    --We haven't added this texture yet. Default to the Deadmines.
  706                                 LFGDungeonReadyDialog.background:SetTexture("Interface\\LFGFrame\\UI-LFG-BACKGROUND-Deadmines");        --DEBUG FIXME Default probably shouldn't be Deadmines
  707                         end
 
  709                         LFGDungeonReadyDialog.label:SetText(SPECIFIC_DUNGEON_IS_READY);
  710                         LFGDungeonReadyDialog_UpdateInstanceInfo(name, completedEncounters, totalEncounters);
  711                         LFGDungeonReadyDialog.instanceInfo:Show();
  712                 end
 
  715                 LFGDungeonReadyDialogRoleIconTexture:SetTexCoord(GetTexCoordsForRole(role));
  716                 LFGDungeonReadyDialogRoleLabel:SetText(_G[role]);
  717                 if ( isLeader ) then
  718                         LFGDungeonReadyDialogRoleIconLeaderIcon:Show();
  719                 else
  720                         LFGDungeonReadyDialogRoleIconLeaderIcon:Hide();
  721                 end
 
  723                 LFGDungeonReadyDialog_UpdateRewards(id, role);
  724         end
  725 end
 
  727 function LFGDungeonReadyDialog_UpdateRewards(dungeonID, role)
  728         local doneToday, moneyBase, moneyVar, experienceBase, experienceVar, numRewards = GetLFGDungeonRewards(dungeonID);
 
  730         local numRandoms = 4 - GetNumPartyMembers();
  731         local moneyAmount = moneyBase + moneyVar * numRandoms;
  732         local experienceGained = experienceBase + experienceVar * numRandoms;
 
  734         local frameID = 1;
 
  736         if ( moneyAmount > 0 or experienceGained > 0 ) then --hasMiscReward ) then
  737                 LFGDungeonReadyDialogReward_SetMisc(LFGDungeonReadyDialogRewardsFrameReward1);
  738                 frameID = 2;
  739         end
 
  741         if ( moneyAmount == 0 and experienceGained == 0 and numRewards == 0 ) then
  742                 LFGDungeonReadyDialogRewardsFrameLabel:Hide();
  743         else
  744                 LFGDungeonReadyDialogRewardsFrameLabel:Show();
  745         end
 
  747         for i = 1, numRewards do
  748                 local frame = _G["LFGDungeonReadyDialogRewardsFrameReward"..frameID];
  749                 if ( not frame ) then
  750                         frame = CreateFrame("FRAME", "LFGDungeonReadyDialogRewardsFrameReward"..frameID, LFGDungeonReadyDialogRewardsFrame, "LFGDungeonReadyRewardTemplate");
  751                         frame:SetID(frameID);
  752                         LFD_MAX_REWARDS = frameID;
  753                 end
  754                 LFGDungeonReadyDialogReward_SetReward(frame, dungeonID, i, "reward")
  755                 frameID = frameID + 1;
  756         end
 
  758         for shortageIndex = 1, LFG_ROLE_NUM_SHORTAGE_TYPES do
  759                 local eligible, forTank, forHealer, forDamage, itemCount = GetLFGRoleShortageRewards(dungeonID, shortageIndex);
  760                 if ( eligible and ((role == "TANK" and forTank) or (role == "HEALER" and forHealer) or (role == "DAMAGER" and forDamage)) ) then
  761                         for rewardIndex=1, itemCount do
  762                                 local frame = _G["LFGDungeonReadyDialogRewardsFrameReward"..frameID];
  763                                 if ( not frame ) then
  764                                         frame = CreateFrame("FRAME", "LFGDungeonReadyDialogRewardsFrameReward"..frameID, LFGDungeonReadyDialogRewardsFrame, "LFGDungeonReadyRewardTemplate");
  765                                         frame:SetID(frameID);
  766                                         LFD_MAX_REWARDS = frameID;
  767                                 end
  768                                 LFGDungeonReadyDialogReward_SetReward(frame, dungeonID, rewardIndex, "shortage", shortageIndex);
  769                                 frameID = frameID + 1;
  770                         end
  771                 end
  772         end
 
  774         --Hide the unused ones
  775         for i = frameID, LFD_MAX_REWARDS do
  776                 _G["LFGDungeonReadyDialogRewardsFrameReward"..i]:Hide();
  777         end
 
  779         local usedButtons= frameID - 1;
 
  781         if ( usedButtons > 0 ) then
  782                 --Set up positions
  783                 local iconOffset;
  784                 if ( usedButtons > 2 ) then
  785                         iconOffset = -5;
  786                 else
  787                         iconOffset = 0;
  788                 end
  789                 local area = usedButtons * LFGDungeonReadyDialogRewardsFrameReward1:GetWidth() + (usedButtons - 1) * iconOffset;
 
  791                 LFGDungeonReadyDialogRewardsFrameReward1:SetPoint("LEFT", LFGDungeonReadyDialogRewardsFrame, "CENTER", -area/2, 5);
  792                 for i = 2, usedButtons do
  793                         _G["LFGDungeonReadyDialogRewardsFrameReward"..i]:SetPoint("LEFT", "LFGDungeonReadyDialogRewardsFrameReward"..(i - 1), "RIGHT", iconOffset, 0);
  794                 end
  795         end
  796 end
 
  798 function LFGDungeonReadyDialogReward_SetMisc(button)
  799         SetPortraitToTexture(button.texture, "Interface\\Icons\\inv_misc_coin_02");
  800         button.rewardType = "misc";
  801         button:Show();
  802 end
 
  804 function LFGDungeonReadyDialogReward_SetReward(button, dungeonID, rewardIndex, rewardType, rewardArg)
  805         local name, texturePath, quantity;
  806         if ( rewardType == "reward" ) then
  807                 name, texturePath, quantity = GetLFGDungeonRewardInfo(dungeonID, rewardIndex);
  808         elseif ( rewardType == "shortage" ) then
  809                 name, texturePath, quantity = GetLFGDungeonShortageRewardInfo(dungeonID, rewardArg, rewardIndex);
  810         end
  811         if ( texturePath ) then --Otherwise, we may be waiting on the item data to come from the server.
  812                 SetPortraitToTexture(button.texture, texturePath);
  813         end
  814         button.rewardType = rewardType;
  815         button.rewardID = rewardIndex;
  816         button.rewardArg = rewardArg;
  817         button:Show();
  818 end
 
  820 function LFGDungeonReadyDialogReward_OnEnter(self, dungeonID)
  821         GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
  822         if ( self.rewardType == "misc" ) then
  823                 GameTooltip:AddLine(REWARD_ITEMS_ONLY);
  824                 local doneToday, moneyBase, moneyVar, experienceBase, experienceVar, numRewards = GetLFGDungeonRewards(LFGDungeonReadyPopup.dungeonID);
  825                 local numRandoms = 4 - GetNumPartyMembers();
  826                 local moneyAmount = moneyBase + moneyVar * numRandoms;
  827                 local experienceGained = experienceBase + experienceVar * numRandoms;
 
  829                 if ( experienceGained > 0 ) then
  830                         GameTooltip:AddLine(string.format(GAIN_EXPERIENCE, experienceGained));
  831                 end
  832                 if ( moneyAmount > 0 ) then
  833                         SetTooltipMoney(GameTooltip, moneyAmount, nil);
  834                 end
  835         elseif ( self.rewardType == "reward" ) then
  836                 GameTooltip:SetLFGDungeonReward(LFGDungeonReadyPopup.dungeonID, self.rewardID);
  837         elseif ( self.rewardType == "shortage" ) then
  838                 GameTooltip:SetLFGDungeonShortageReward(LFGDungeonReadyPopup.dungeonID, self.rewardArg, self.rewardID);
  839         end
  840         GameTooltip:Show();
  841 end
 
  843 function LFGDungeonReadyDialog_UpdateInstanceInfo(name, completedEncounters, totalEncounters)
  844         local instanceInfoFrame = LFGDungeonReadyDialogInstanceInfoFrame;
  845         instanceInfoFrame.name:SetFontObject(GameFontNormalLarge);
  846         instanceInfoFrame.name:SetText(name);
  847         if ( instanceInfoFrame.name:GetWidth() + 20 > LFGDungeonReadyDialog:GetWidth() ) then
  848                 instanceInfoFrame.name:SetFontObject(GameFontNormal);
  849         end
 
  851         instanceInfoFrame.statusText:SetFormattedText(BOSSES_KILLED, completedEncounters, totalEncounters);
  852 end
 
  854 function LFGDungeonReadyDialogInstanceInfo_OnEnter(self)
  855         local numBosses = select(8, GetLFGProposal());
  856         local isHoliday = select(12, GetLFGProposal());
 
  858         if ( numBosses == 0 or isHoliday) then
  859                 return;
  860         end
 
  862         GameTooltip:SetOwner(self, "ANCHOR_BOTTOM");
  863         GameTooltip:AddLine(BOSSES)
  864         for i=1, numBosses do
  865                 local bossName, texture, isKilled = GetLFGProposalEncounter(i);
  866                 if ( isKilled ) then
  867                         GameTooltip:AddDoubleLine(bossName, BOSS_DEAD, RED_FONT_COLOR.r, RED_FONT_COLOR.g, RED_FONT_COLOR.b, RED_FONT_COLOR.r, RED_FONT_COLOR.g, RED_FONT_COLOR.b);
  868                 else
  869                         GameTooltip:AddDoubleLine(bossName, BOSS_ALIVE, GREEN_FONT_COLOR.r, GREEN_FONT_COLOR.g, GREEN_FONT_COLOR.b, GREEN_FONT_COLOR.r, GREEN_FONT_COLOR.g, GREEN_FONT_COLOR.b);
  870                 end
  871         end
  872         GameTooltip:Show();
  873 end
 
  875 function LFGDungeonReadyStatus_ResetReadyStates()
  876         for i=1, NUM_LFD_MEMBERS do
  877                 local button = _G["LFGDungeonReadyStatusIndividualPlayer"..i];
  878                 button.readyStatus = "unknown";
  879         end
  880 end
 
  882 function LFGDungeonReadyStatusIndividual_UpdateIcon(button)
  883         local isLeader, role, level, responded, accepted, name, class = GetLFGProposalMember(button:GetID());
 
  885         button.texture:SetTexCoord(GetTexCoordsForRole(role));
 
  887         if ( not responded ) then
  888                 button.statusIcon:SetTexture(READY_CHECK_WAITING_TEXTURE);
  889         elseif ( accepted ) then
  890                 if ( button.readyStatus ~= "accepted" ) then
  891                         button.readyStatus = "accepted";
  892                         PlaySound("LFG_RoleCheck");
  893                 end
  894                 button.statusIcon:SetTexture(READY_CHECK_READY_TEXTURE);
  895         else
  896                 button.statusIcon:SetTexture(READY_CHECK_NOT_READY_TEXTURE);
  897         end
 
  899         button:Show();
  900 end
 
  902 function LFGDungeonReadyStatusGrouped_UpdateIcon(button, buttonRole, numMembers)
  903         button.texture:SetTexCoord(GetTexCoordsForRole(buttonRole));
 
  905         local numTotal, numAccepted = 0, 0;
  906         local didDecline = false;
  907         for i=1, numMembers do
  908                 local isLeader, role, level, responded, accepted, name, class = GetLFGProposalMember(i);
  909                 if ( role == buttonRole ) then
  910                         numTotal = numTotal + 1;
  911                         if ( responded ) then
  912                                 if ( accepted ) then
  913                                         numAccepted = numAccepted + 1;
  914                                 else
  915                                         didDecline = true;
  916                                 end
  917                         end
  918                 end
  919         end
 
  921         button.count:SetFormattedText(PLAYERS_FOUND_OUT_OF_MAX, numAccepted, numTotal);
 
  923         if ( didDecline ) then
  924                 button.statusIcon:SetTexture(READY_CHECK_NOT_READY_TEXTURE);
  925         elseif ( numAccepted == numTotal ) then
  926                 button.statusIcon:SetTexture(READY_CHECK_READY_TEXTURE);
  927         else
  928                 button.statusIcon:SetTexture(READY_CHECK_WAITING_TEXTURE);
  929         end
  930 end
 
432   end
 
434   function LFGGetDungeonInfoByID(id)
435           return LFGDungeonInfo[id];
 
447                   LFGDungeonInfo = GetLFDChoiceInfo(LFGDungeonInfo);      --This will never change (without a patch).
 
459   function LFGQueueFrame_UpdateLFGDungeonList(dungeonList, hiddenByCollapseList, lockList, dungeonInfo, enableList, collapseList, filter)
  961 function LFGQueueFrame_UpdateLFGDungeonList(dungeonList, hiddenByCollapseList, lockList, enableList, collapseList, filter)
 
467           LFGListFilterChoices(dungeonList, dungeonInfo, filter);
  969         LFGListFilterChoices(dungeonList, filter);
 
480   function LFGListFilterChoices(list, infoList, filterFunc)
  982 function LFGListFilterChoices(list, filterFunc)
 
520                           local groupID = LFGGetDungeonInfoByID(id)[LFG_RETURN_VALUES.groupID];
  1022                         local groupID = select(LFG_RETURN_VALUES.groupID, GetLFGDungeonInfo(id));
 
545                           local groupID = LFGGetDungeonInfoByID(id)[LFG_RETURN_VALUES.groupID];
  1047                         local groupID = select(LFG_RETURN_VALUES.groupID, GetLFGDungeonInfo(id));
 
  1081 --Reward frame functions
  1082 function LFGRewardsFrame_UpdateFrame(parentFrame, dungeonID, background)
  1083         local parentName = parentFrame:GetName();
 
  1085         if ( not dungeonID ) then
  1086                 parentFrame:Hide();
  1087                 return;
  1088         end
 
  1090         parentFrame:Show();
 
  1092         local holiday;
  1093         local difficulty;
  1094         local dungeonDescription;
  1095         local textureFilename;
  1096         local dungeonName, _,_,_,_,_,_,_,_,textureFilename,difficulty,_,dungeonDescription, isHoliday = GetLFGDungeonInfo(dungeonID);
  1097         local isHeroic = difficulty > 0;
  1098         local doneToday, moneyBase, moneyVar, experienceBase, experienceVar, numRewards = GetLFGDungeonRewards(dungeonID);
  1099         local numRandoms = 4 - GetNumPartyMembers();
  1100         local moneyAmount = moneyBase + moneyVar * numRandoms;
  1101         local experienceGained = experienceBase + experienceVar * numRandoms;
 
  1104         local backgroundTexture;
 
  1106         local leaderChecked, tankChecked, healerChecked, damageChecked = LFDQueueFrame_GetRoles();
 
  1108         --HACK
  1109         if ( dungeonID == 341 ) then    --Trollpocalypse Heroic
  1110                 backgroundTexture = "Interface\\LFGFrame\\UI-LFG-BACKGROUND-TROLLPOCALYPSE";
  1111         elseif ( textureFilename ~= "" ) then
  1112                 backgroundTexture = "Interface\\LFGFrame\\UI-LFG-HOLIDAY-BACKGROUND-"..textureFilename;
  1113         elseif ( isHeroic ) then
  1114                 backgroundTexture = "Interface\\LFGFrame\\UI-LFG-BACKGROUND-HEROIC";
  1115         else
  1116                 backgroundTexture = "Interface\\LFGFrame\\UI-LFG-BACKGROUND-QUESTPAPER";
  1117         end
  1118         background:SetTexture(backgroundTexture);
 
  1120         local lastFrame = parentFrame.rewardsLabel;
  1121         if ( isHoliday ) then
  1122                 if ( doneToday ) then
  1123                         parentFrame.rewardsDescription:SetText(LFD_HOLIDAY_REWARD_EXPLANATION2);
  1124                 else
  1125                         parentFrame.rewardsDescription:SetText(LFD_HOLIDAY_REWARD_EXPLANATION1);
  1126                 end
  1127                 parentFrame.title:SetText(dungeonName);
  1128                 parentFrame.description:SetText(dungeonDescription);
  1129         else
  1130                 local numCompletions, isWeekly = LFGRewardsFrame_EstimateRemainingCompletions(dungeonID);
  1131                 if ( numCompletions <= 0 ) then
  1132                         parentFrame.rewardsDescription:SetText(LFD_RANDOM_REWARD_EXPLANATION2);
  1133                 elseif ( isWeekly ) then
  1134                         parentFrame.rewardsDescription:SetText(format(LFD_REWARD_DESCRIPTION_WEEKLY, numCompletions));
  1135                 else
  1136                         parentFrame.rewardsDescription:SetText(format(LFD_REWARD_DESCRIPTION_DAILY, numCompletions));
  1137                 end
  1138                 parentFrame.title:SetText(LFG_TYPE_RANDOM_DUNGEON);
  1139                 parentFrame.description:SetText(LFD_RANDOM_EXPLANATION);
  1140         end
 
  1142         local itemButtonIndex = 1;
  1143         for i=1, numRewards do
  1144                 local name, texture, numItems = GetLFGDungeonRewardInfo(dungeonID, i);
  1145                 lastFrame = LFGRewardsFrame_SetItemButton(parentFrame, itemButtonIndex, i, name, texture, numItems, nil);
  1146                 itemButtonIndex = itemButtonIndex + 1;
  1147         end
 
  1149         for shortageIndex=1, LFG_ROLE_NUM_SHORTAGE_TYPES do
  1150                 local eligible, forTank, forHealer, forDamage, itemCount = GetLFGRoleShortageRewards(dungeonID, shortageIndex);
  1151                 if ( eligible and ((tankChecked and forTank) or (healerChecked and forHealer) or (damageChecked and forDamage)) ) then
  1152                         for rewardIndex=1, itemCount do
  1153                                 local name, texture, numItems = GetLFGDungeonShortageRewardInfo(dungeonID, shortageIndex, rewardIndex);
  1154                                 lastFrame = LFGRewardsFrame_SetItemButton(parentFrame, itemButtonIndex, rewardIndex, name, texture, numItems, shortageIndex, forTank, forHealer, forDamage);
  1155                                 itemButtonIndex = itemButtonIndex + 1;
  1156                         end
  1157                 end
  1158         end
 
  1160         for i=itemButtonIndex, parentFrame.numRewardFrames do
  1161                 _G[parentName.."Item"..i]:Hide();
  1162         end
 
  1164         local totalRewards = itemButtonIndex - 1;
 
  1166         if ( totalRewards > 0 or ((moneyVar == 0 and experienceVar == 0) and (moneyAmount > 0 or experienceGained > 0)) ) then
  1167                 parentFrame.rewardsLabel:Show();
  1168                 parentFrame.rewardsDescription:Show();
  1169                 lastFrame = parentFrame.rewardsDescription;
  1170         else
  1171                 parentFrame.rewardsLabel:Hide();
  1172                 parentFrame.rewardsDescription:Hide();
  1173         end
 
  1175         if ( totalRewards > 0 ) then
  1176                 lastFrame = _G[parentName.."Item"..(totalRewards - mod(totalRewards+1, 2))];
  1177         end
 
  1179         if ( moneyVar > 0 or experienceVar > 0 ) then
  1180                 parentFrame.pugDescription:SetPoint("TOPLEFT", lastFrame, "BOTTOMLEFT", 0, -5);
  1181                 parentFrame.pugDescription:Show();
  1182                 lastFrame = parentFrame.pugDescription;
  1183         else
  1184                 parentFrame.pugDescription:Hide();
  1185         end
 
  1187         if ( moneyAmount > 0 ) then
  1188                 MoneyFrame_Update(parentFrame.moneyFrame, moneyAmount);
  1189                 parentFrame.moneyLabel:SetPoint("TOPLEFT", lastFrame, "BOTTOMLEFT", 20, -10);
  1190                 parentFrame.moneyLabel:Show();
  1191                 parentFrame.moneyFrame:Show()
 
  1193                 parentFrame.xpLabel:SetPoint("TOPLEFT", lastFrame, "BOTTOMLEFT", 0, -5);
 
  1195                 lastFrame = parentFrame.moneyLabel;
  1196         else
  1197                 parentFrame.moneyLabel:Hide();
  1198                 parentFrame.moneyFrame:Hide();
 
  1200         end
 
  1202         if ( experienceGained > 0 ) then
  1203                 parentFrame.xpAmount:SetText(experienceGained);
 
  1205                 if ( lastFrame == parentFrame.moneyLabel ) then
  1206                         parentFrame.xpLabel:SetPoint("TOPLEFT", lastFrame, "BOTTOMLEFT", 0, -5);
  1207                 else
  1208                         parentFrame.xpLabel:SetPoint("TOPLEFT", lastFrame, "BOTTOMLEFT", 20, -10);
  1209                 end
  1210                 parentFrame.xpLabel:Show();
  1211                 parentFrame.xpAmount:Show();
 
  1213                 lastFrame = parentFrame.xpLabel;
  1214         else
  1215                 parentFrame.xpLabel:Hide();
  1216                 parentFrame.xpAmount:Hide();
  1217         end
 
  1219         if ( not isHoliday ) then
  1220                 parentFrame.randomList:Show();
  1221                 parentFrame.encounterList:SetPoint("LEFT", parentFrame.randomList, "RIGHT", 5, 0);
  1222         else
  1223                 parentFrame.randomList:Hide();
  1224                 parentFrame.encounterList:SetPoint("LEFT", parentFrame.randomList, "LEFT", 0, 0);
  1225         end
 
  1227         parentFrame.encounterList.dungeonID = dungeonID;
  1228         local numEncounters, numCompleted = GetLFGDungeonNumEncounters(dungeonID);
  1229         if ( numCompleted > 0 ) then
  1230                 parentFrame.encounterList:Show();
  1231         else
  1232                 parentFrame.encounterList:Hide();
  1233         end
 
  1235         parentFrame.spacer:SetPoint("TOPLEFT", lastFrame, "BOTTOMLEFT", 0, -10);
  1236 end
 
  1238 function LFGRewardsFrame_SetItemButton(parentFrame, index, id, name, texture, numItems, shortageIndex, showTankIcon, showHealerIcon, showDamageIcon)
  1239         local parentName = parentFrame:GetName();
  1240         local frame = _G[parentName.."Item"..index];
  1241         if ( not frame ) then
  1242                 frame = CreateFrame("Button", parentName.."Item"..index, _G[parentName], "LFGRewardsLootTemplate");
  1243                 parentFrame.numRewardFrames = index;
  1244                 if ( mod(index, 2) == 0 ) then
  1245                         frame:SetPoint("LEFT", parentName.."Item"..(index-1), "RIGHT", 0, 0);
  1246                 else
  1247                         frame:SetPoint("TOPLEFT", parentName.."Item"..(index-2), "BOTTOMLEFT", 0, -5);
  1248                 end
  1249         end
  1250         frame:SetID(id);
 
  1252         _G[parentName.."Item"..index.."Name"]:SetText(name);
  1253         SetItemButtonTexture(frame, texture);
  1254         SetItemButtonCount(frame, numItems);
  1255         frame.shortageIndex = shortageIndex;
 
  1257         if ( shortageIndex ) then
  1258                 frame.shortageBorder:Show();
  1259         else
  1260                 frame.shortageBorder:Hide();
  1261         end
 
  1263         local numRoles = (showTankIcon and 1 or 0) + (showHealerIcon and 1 or 0) + (showDamageIcon and 1 or 0);
 
  1265         --Show role icons if this reward is specific to a role:
  1266         frame.roleIcon1:Hide();
  1267         frame.roleIcon2:Hide();
 
  1269         if ( numRoles > 0 and numRoles < 3 ) then       --If we give it to all 3 roles, no reason to show icons.
  1270                 local roleIcon = frame.roleIcon1;
  1271                 if ( showTankIcon ) then
  1272                         roleIcon.texture:SetTexCoord(GetTexCoordsForRoleSmallCircle("TANK"));
  1273                         roleIcon.role = "TANK";
  1274                         roleIcon:Show();
  1275                         roleIcon = frame.roleIcon2;
  1276                 end
  1277                 if ( showHealerIcon ) then
  1278                         roleIcon.texture:SetTexCoord(GetTexCoordsForRoleSmallCircle("HEALER"));
  1279                         roleIcon.role = "HEALER";
  1280                         roleIcon:Show();
  1281                         roleIcon = frame.roleIcon2;
  1282                 end
  1283                 if ( showDamageIcon ) then
  1284                         roleIcon.texture:SetTexCoord(GetTexCoordsForRoleSmallCircle("DAMAGER"));
  1285                         roleIcon.role = "DAMAGER";
  1286                         roleIcon:Show();
  1287                         roleIcon = frame.roleIcon2;
  1288                 end
 
  1290                 if ( numRoles == 2 ) then
  1291                         frame.roleIcon1:SetPoint("LEFT", frame, "TOPLEFT", 1, -2);
  1292                 else
  1293                         frame.roleIcon1:SetPoint("LEFT", frame, "TOPLEFT", 10, -2);
  1294                 end
  1295         end
 
  1297         frame:Show();
  1298         return frame;
  1299 end
 
  1301 function LFGRewardsFrame_EstimateRemainingCompletions(dungeonID)
  1302         local currencyID, currencyQuantity, specificQuantity, specificLimit, overallQuantity, overallLimit, periodPurseQuantity, periodPurseLimit, isWeekly = GetLFGDungeonRewardCapInfo(dungeonID);
  1303         if(not currencyID) then
  1304                 return 0, false;
  1305         end
 
  1307         local remainingAllotment = min(specificLimit - specificQuantity, overallLimit - overallQuantity);
  1308         if ( periodPurseLimit ~= 0 ) then
  1309                 remainingAllotment = min(remainingAllotment, periodPurseLimit - periodPurseQuantity);
  1310         end
 
  1312         if (currencyQuantity == 0) then
  1313                 return 0, isWeekly;
  1314         end
 
  1316         return ceil(remainingAllotment / currencyQuantity), isWeekly;
  1317 end
 
  1319 function LFGRewardsFrameEncounterList_OnEnter(self)
  1320         local dungeonID = self.dungeonID;
  1321         GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
  1322         GameTooltip:AddLine(BOSSES)
  1323         for i=1, GetLFGDungeonNumEncounters(dungeonID) do
  1324                 local bossName, texture, isKilled = GetLFGDungeonEncounterInfo(dungeonID, i);
  1325                 if ( isKilled ) then
  1326                         GameTooltip:AddDoubleLine(bossName, BOSS_DEAD, RED_FONT_COLOR.r, RED_FONT_COLOR.g, RED_FONT_COLOR.b, RED_FONT_COLOR.r, RED_FONT_COLOR.g, RED_FONT_COLOR.b);
  1327                 else
  1328                         GameTooltip:AddDoubleLine(bossName, BOSS_ALIVE, GREEN_FONT_COLOR.r, GREEN_FONT_COLOR.g, GREEN_FONT_COLOR.b, GREEN_FONT_COLOR.r, GREEN_FONT_COLOR.g, GREEN_FONT_COLOR.b);
  1329                 end
  1330         end
  1331         GameTooltip:Show();
  1332 end
   
File: FrameXML\LFGFrame.xml  
56                                   LFDFrameRoleCheckButton_OnEnter(self);
  56                                 LFGFrameRoleCheckButton_OnEnter(self);
 
  259         <Frame name="LFGSearchStatusPlayerTemplate" virtual="true">
  260                 <Size>
  261                         <AbsDimension x="55" y="55"/>
  262                 </Size>
  263                 <Layers>
  264                         <Layer level="ARTWORK">
  265                                 <Texture name="$parentTexture" file="Interface\LFGFrame\UI-LFG-ICON-ROLES" setAllPoints="true" parentKey="texture"/>
  266                         </Layer>
  267                         <Layer level="OVERLAY">
  268                                 <Texture file="Interface\LFGFrame\UI-LFG-ICON-ROLES" setAllPoints="true" parentKey="cover" alpha="0.3" hidden="true">
  269                                         <TexCoords left="0" right="0.2617" top="0.5234" bottom="0.7851"/>
  270                                 </Texture>
  271                         </Layer>
  272                 </Layers>
  273         </Frame>
  274         <Frame name="LFGSearchStatusRoleWithCountTemplate" inherits="LFGSearchStatusPlayerTemplate" virtual="true">
  275                 <Layers>
  276                         <Layer level="ARTWORK">
  277                                 <FontString name="$parentCount" inherits="GameFontHighlight" parentKey="count">
  278                                         <Anchors>
  279                                                 <Anchor point="TOP" relativeTo="$parent" relativePoint="BOTTOM" x="0" y="-2"/>
  280                                         </Anchors>
  281                                 </FontString>
  282                         </Layer>
  283                 </Layers>
  284         </Frame>
  285         <Texture name="LFGSearchStatusRoleIconTemplate" file="Interface\LFGFrame\UI-LFG-ICON-ROLES" virtual="true">
  286                 <Size>
  287                         <AbsDimension x="25" y="25"/>
  288                 </Size>
  289         </Texture>
  290         <Frame name="LFGSearchStatus" frameStrata="TOOLTIP" hidden="true" parent="MiniMapLFGFrame">
  291                 <Size>
  292                         <AbsDimension x="350" y="153"/>
  293                 </Size>
  294                 <Anchors>
  295                         <Anchor point="TOPRIGHT" relativeTo="MiniMapLFGFrame" relativePoint="TOPLEFT">
  296                                 <Offset>
  297                                         <AbsDimension x="0" y="0"/>
  298                                 </Offset>
  299                         </Anchor>
  300                 </Anchors>
  301                 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
  302                         <EdgeSize>
  303                                 <AbsValue val="16"/>
  304                         </EdgeSize>
  305                         <TileSize>
  306                                 <AbsValue val="16"/>
  307                         </TileSize>
  308                         <BackgroundInsets>
  309                                 <AbsInset left="5" right="5" top="5" bottom="5"/>
  310                         </BackgroundInsets>
  311                 </Backdrop>
  312                 <Layers>
  313                         <Layer level="ARTWORK">
  314                                 <FontString name="$parentTitle" inherits="GameFontHighlight" text="ASSEMBLING_GROUP">
  315                                         <Anchors>
  316                                                 <Anchor point="TOP">
  317                                                         <Offset>
  318                                                                 <AbsDimension x="0" y="-15"/>
  319                                                         </Offset>
  320                                                 </Anchor>
  321                                         </Anchors>
  322                                 </FontString>
  323                                 <FontString name="$parentStatistic" justifyH="CENTER" justifyV="MIDDLE" inherits="GameFontNormal" parentKey="statistic">
  324                                         <Size>
  325                                                 <AbsDimension x="330" y="25"/>
  326                                         </Size>
  327                                         <Anchors>
  328                                                 <Anchor point="TOP">
  329                                                         <Offset>
  330                                                                 <AbsDimension x="0" y="-90"/>
  331                                                         </Offset>
  332                                                 </Anchor>
  333                                         </Anchors>
  334                                 </FontString>
  335                                 <FontString name="$parentElapsedWaitTime" justifyH="CENTER" inherits="GameFontNormal" parentKey="elapsedWait">
  336                                         <Anchors>
  337                                                 <Anchor point="BOTTOM">
  338                                                         <Offset>
  339                                                                 <AbsDimension x="0" y="38"/>
  340                                                         </Offset>
  341                                                 </Anchor>
  342                                         </Anchors>
  343                                 </FontString>
  344                                 <FontString name="$parentLookingFor" justifyH="CENTER" inherits="GameFontHighlight" text="SEARCHING_FOR_GROUPS_NEEDS">
  345                                         <Anchors>
  346                                                 <Anchor point="BOTTOM">
  347                                                         <Offset>
  348                                                                 <AbsDimension x="0" y="14"/>
  349                                                         </Offset>
  350                                                 </Anchor>
  351                                         </Anchors>
  352                                 </FontString>
  353                                 <Texture name="$parentRoleIcon1" inherits="LFGSearchStatusRoleIconTemplate">
  354                                         <Anchors>
  355                                                 <Anchor point="LEFT" relativeTo="$parentLookingFor" relativePoint="RIGHT">
  356                                                         <Offset>
  357                                                                 <AbsDimension x="2" y="0"/>
  358                                                         </Offset>
  359                                                 </Anchor>
  360                                         </Anchors>
  361                                 </Texture>
  362                                 <Texture name="$parentRoleIcon2" inherits="LFGSearchStatusRoleIconTemplate">
  363                                         <Anchors>
  364                                                 <Anchor point="LEFT" relativeTo="$parentRoleIcon1" relativePoint="RIGHT">
  365                                                         <Offset>
  366                                                                 <AbsDimension x="2" y="0"/>
  367                                                         </Offset>
  368                                                 </Anchor>
  369                                         </Anchors>
  370                                 </Texture>
  371                                 <Texture name="$parentRoleIcon3" inherits="LFGSearchStatusRoleIconTemplate">
  372                                         <Anchors>
  373                                                 <Anchor point="LEFT" relativeTo="$parentRoleIcon2" relativePoint="RIGHT">
  374                                                         <Offset>
  375                                                                 <AbsDimension x="2" y="0"/>
  376                                                         </Offset>
  377                                                 </Anchor>
  378                                         </Anchors>
  379                                 </Texture>
  380                         </Layer>
  381                 </Layers>
  382                 <Frames>
  383                         <Frame name="$parentIndividualRoleDisplay" hidden="true">
  384                                 <Size x="1" y="1"/>
  385                                 <Anchors>
  386                                         <Anchor point="TOPLEFT" x="25" y="-40"/>
  387                                 </Anchors>
  388                                 <Frames>
  389                                         <Frame name="$parentTank1" inherits="LFGSearchStatusPlayerTemplate">
  390                                                 <Anchors>
  391                                                         <Anchor point="TOPLEFT"/>
  392                                                 </Anchors>
  393                                                 <Scripts>
  394                                                         <OnLoad>
  395                                                                 self.texture:SetTexCoord(GetTexCoordsForRole("TANK"));
  396                                                         </OnLoad>
  397                                                 </Scripts>
  398                                         </Frame>
  399                                         <Frame name="$parentHealer1" inherits="LFGSearchStatusPlayerTemplate">
  400                                                 <Anchors>
  401                                                         <Anchor point="LEFT" relativeTo="$parentTank1" relativePoint="RIGHT">
  402                                                                 <Offset>
  403                                                                         <AbsDimension x="5" y="0"/>
  404                                                                 </Offset>
  405                                                         </Anchor>
  406                                                 </Anchors>
  407                                                 <Scripts>
  408                                                         <OnLoad>
  409                                                                 self.texture:SetTexCoord(GetTexCoordsForRole("HEALER"));
  410                                                         </OnLoad>
  411                                                 </Scripts>
  412                                         </Frame>
  413                                         <Frame name="$parentDamage1" inherits="LFGSearchStatusPlayerTemplate">
  414                                                 <Anchors>
  415                                                         <Anchor point="LEFT" relativeTo="$parentHealer1" relativePoint="RIGHT">
  416                                                                 <Offset>
  417                                                                         <AbsDimension x="5" y="0"/>
  418                                                                 </Offset>
  419                                                         </Anchor>
  420                                                 </Anchors>
  421                                                 <Scripts>
  422                                                         <OnLoad>
  423                                                                 self.texture:SetTexCoord(GetTexCoordsForRole("DAMAGER"));
  424                                                         </OnLoad>
  425                                                 </Scripts>
  426                                         </Frame>
  427                                         <Frame name="$parentDamage2" inherits="LFGSearchStatusPlayerTemplate">
  428                                                 <Anchors>
  429                                                         <Anchor point="LEFT" relativeTo="$parentDamage1" relativePoint="RIGHT">
  430                                                                 <Offset>
  431                                                                         <AbsDimension x="5" y="0"/>
  432                                                                 </Offset>
  433                                                         </Anchor>
  434                                                 </Anchors>
  435                                                 <Scripts>
  436                                                         <OnLoad>
  437                                                                 self.texture:SetTexCoord(GetTexCoordsForRole("DAMAGER"));
  438                                                         </OnLoad>
  439                                                 </Scripts>
  440                                         </Frame>
  441                                         <Frame name="$parentDamage3" inherits="LFGSearchStatusPlayerTemplate">
  442                                                 <Anchors>
  443                                                         <Anchor point="LEFT" relativeTo="$parentDamage2" relativePoint="RIGHT">
  444                                                                 <Offset>
  445                                                                         <AbsDimension x="5" y="0"/>
  446                                                                 </Offset>
  447                                                         </Anchor>
  448                                                 </Anchors>
  449                                                 <Scripts>
  450                                                         <OnLoad>
  451                                                                 self.texture:SetTexCoord(GetTexCoordsForRole("DAMAGER"));
  452                                                         </OnLoad>
  453                                                 </Scripts>
  454                                         </Frame>
  455                                 </Frames>
  456                         </Frame>
  457                         <Frame name="$parentGroupedRoleDisplay" hidden="true">
  458                                 <Size x="1" y="1"/>
  459                                 <Anchors>
  460                                         <Anchor point="TOPLEFT" x="25" y="-40"/>
  461                                 </Anchors>
  462                                 <Frames>
  463                                         <Frame name="$parentTank" inherits="LFGSearchStatusRoleWithCountTemplate">
  464                                                 <Anchors>
  465                                                         <Anchor point="TOPLEFT" x="35" y="0"/>
  466                                                 </Anchors>
  467                                                 <Scripts>
  468                                                         <OnLoad>
  469                                                                 self.texture:SetTexCoord(GetTexCoordsForRole("TANK"));
  470                                                         </OnLoad>
  471                                                 </Scripts>
  472                                         </Frame>
  473                                         <Frame name="$parentHealer" inherits="LFGSearchStatusRoleWithCountTemplate">
  474                                                 <Anchors>
  475                                                         <Anchor point="LEFT" relativeTo="$parentTank" relativePoint="RIGHT">
  476                                                                 <Offset>
  477                                                                         <AbsDimension x="33" y="0"/>
  478                                                                 </Offset>
  479                                                         </Anchor>
  480                                                 </Anchors>
  481                                                 <Scripts>
  482                                                         <OnLoad>
  483                                                                 self.texture:SetTexCoord(GetTexCoordsForRole("HEALER"));
  484                                                         </OnLoad>
  485                                                 </Scripts>
  486                                         </Frame>
  487                                         <Frame name="$parentDamage" inherits="LFGSearchStatusRoleWithCountTemplate">
  488                                                 <Anchors>
  489                                                         <Anchor point="LEFT" relativeTo="$parentHealer" relativePoint="RIGHT">
  490                                                                 <Offset>
  491                                                                         <AbsDimension x="33" y="0"/>
  492                                                                 </Offset>
  493                                                         </Anchor>
  494                                                 </Anchors>
  495                                                 <Scripts>
  496                                                         <OnLoad>
  497                                                                 self.texture:SetTexCoord(GetTexCoordsForRole("DAMAGER"));
  498                                                         </OnLoad>
  499                                                 </Scripts>
  500                                         </Frame>
  501                                 </Frames>
  502                         </Frame>
  503                 </Frames>
  504                 <Scripts>
  505                         <OnLoad>
  506                                 self:RegisterEvent("LFG_QUEUE_STATUS_UPDATE");
 
  508                                 self:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b);
  509                                 self:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b);
  510                                 LFGSearchStatus_SetMode("individual");
  511                         </OnLoad>
  512                         <OnEvent function="LFGSearchStatus_OnEvent"/>
  513                         <OnShow function="LFGSearchStatus_Update"/>
  514                 </Scripts>
  515         </Frame>
  516         <Frame name="LFGDungeonReadyRewardTemplate" virtual="true">
  517                 <Size>
  518                         <AbsDimension x="40" y="40"/>
  519                 </Size>
  520                 <Layers>
  521                         <Layer level="ARTWORK">
  522                                 <Texture name="$parentTexture" parentKey="texture">
  523                                         <Size>
  524                                                 <AbsDimension x="30" y="30"/>
  525                                         </Size>
  526                                         <Anchors>
  527                                                 <Anchor point="CENTER">
  528                                                         <Offset>
  529                                                                 <AbsDimension x="-3" y="3"/>
  530                                                         </Offset>
  531                                                 </Anchor>
  532                                         </Anchors>
  533                                 </Texture>
  534                         </Layer>
  535                         <Layer level="OVERLAY">
  536                                 <Texture name="$parentBorder" setAllPoints="true" file="Interface\LFGFrame\UI-LFG-ICON-REWARDRING">
  537                                         <TexCoords left="0" right="0.675" top="0" bottom="0.675"/>
  538                                 </Texture>
  539                         </Layer>
  540                 </Layers>
  541                 <Scripts>
  542                         <OnEnter function="LFGDungeonReadyDialogReward_OnEnter"/>
  543                         <OnLeave function="GameTooltip_Hide"/>
  544                 </Scripts>
  545         </Frame>
  546         <Frame name="LFGDungeonReadyStatusPlayerTemplate" virtual="true">
  547                 <Size>
  548                         <AbsDimension x="55" y="55"/>
  549                 </Size>
  550                 <Layers>
  551                         <Layer level="ARTWORK">
  552                                 <Texture name="$parentTexture" file="Interface\LFGFrame\UI-LFG-ICON-ROLES" setAllPoints="true" parentKey="texture"/>
  553                         </Layer>
  554                         <Layer level="OVERLAY">
  555                                 <Texture name="$parentStatusIcon"  file="Interface\RaidFrame\ReadyCheck-Waiting" parentKey="statusIcon">
  556                                         <Size>
  557                                                 <AbsDimension x="30" y="30"/>
  558                                         </Size>
  559                                         <Anchors>
  560                                                 <Anchor point="BOTTOMLEFT">
  561                                                         <Offset>
  562                                                                 <AbsDimension x="5" y="0"/>
  563                                                         </Offset>
  564                                                 </Anchor>
  565                                         </Anchors>
  566                                 </Texture>
  567                         </Layer>
  568                 </Layers>
  569         </Frame>
  570         <Frame name="LFGDungeonReadyStatusRoleWithCountTemplate" inherits="LFGDungeonReadyStatusPlayerTemplate" virtual="true">
  571                 <Layers>
  572                         <Layer level="ARTWORK">
  573                                 <FontString name="$parentCount" inherits="GameFontHighlight" parentKey="count">
  574                                         <Anchors>
  575                                                 <Anchor point="TOP" relativeTo="$parent" relativePoint="BOTTOM" x="0" y="-2"/>
  576                                         </Anchors>
  577                                 </FontString>
  578                         </Layer>
  579                 </Layers>
  580         </Frame>
  581         <Frame name="LFGDungeonReadyPopup" parent="UIParent" frameStrata="DIALOG" hidden="true">
  582                 <Size>
  583                         <AbsDimension x="306" y="223"/>
  584                 </Size>
  585                 <Frames>
  586                         <Frame name="LFGDungeonReadyStatus" toplevel="true" enableMouse="true">
  587                                 <Size>
  588                                         <AbsDimension x="306" y="130"/>
  589                                 </Size>
  590                                 <Anchors>
  591                                         <Anchor point="TOP"/>
  592                                 </Anchors>
  593                                 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
  594                                         <BackgroundInsets>
  595                                                 <AbsInset left="11" right="12" top="12" bottom="11"/>
  596                                         </BackgroundInsets>
  597                                         <TileSize>
  598                                                 <AbsValue val="32"/>
  599                                         </TileSize>
  600                                         <EdgeSize>
  601                                                 <AbsValue val="32"/>
  602                                         </EdgeSize>
  603                                 </Backdrop>
  604                                 <Layers>
  605                                         <Layer level="ARTWORK">
  606                                                 <FontString name="$parentLabel" inherits="GameFontHighlight" justifyH="CENTER" text="READY_CHECK">
  607                                                         <Anchors>
  608                                                                 <Anchor point="TOP">
  609                                                                         <Offset>
  610                                                                                 <AbsDimension x="0" y="-15"/>
  611                                                                         </Offset>
  612                                                                 </Anchor>
  613                                                         </Anchors>
  614                                                 </FontString>
  615                                         </Layer>
  616                                 </Layers>
  617                                 <Frames>
  618                                         <Button name="$parentCloseButton">
  619                                                 <Size>
  620                                                         <AbsDimension x="32" y="32"/>
  621                                                 </Size>
  622                                                 <Anchors>
  623                                                         <Anchor point="TOPRIGHT">
  624                                                                 <Offset>
  625                                                                         <AbsDimension x="-2" y="-2"/>
  626                                                                 </Offset>
  627                                                         </Anchor>
  628                                                 </Anchors>
  629                                                 <Scripts>
  630                                                         <OnClick>
  631                                                                 LFGDebug("Proposal Hidden: Ready Status close button pressed.");
  632                                                                 StaticPopupSpecial_Hide(LFGDungeonReadyPopup);
  633                                                         </OnClick>
  634                                                 </Scripts>
  635                                                 <NormalTexture file="Interface\Buttons\UI-Panel-HideButton-Up"/>
  636                                                 <PushedTexture file="Interface\Buttons\UI-Panel-HideButton-Down"/>
  637                                                 <HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
  638                                         </Button>
  639                                         <Frame name="$parentIndividual">
  640                                                 <Size x="306" y="55"/>
  641                                                 <Anchors>
  642                                                         <Anchor point="LEFT" x="0" y="-10"/>
  643                                                 </Anchors>
  644                                                 <Frames>
  645                                                         <Frame name="$parentPlayer1" inherits="LFGDungeonReadyStatusPlayerTemplate" id="1">
  646                                                                 <Anchors>
  647                                                                         <Anchor point="LEFT">
  648                                                                                 <Offset>
  649                                                                                         <AbsDimension x="15" y="0"/>
  650                                                                                 </Offset>
  651                                                                         </Anchor>
  652                                                                 </Anchors>
  653                                                         </Frame>
  654                                                         <Frame name="$parentPlayer2" inherits="LFGDungeonReadyStatusPlayerTemplate" id="2">
  655                                                                 <Anchors>
  656                                                                         <Anchor point="LEFT" relativeTo="$parentPlayer1" relativePoint="RIGHT">
  657                                                                                 <Offset>
  658                                                                                         <AbsDimension x="0" y="0"/>
  659                                                                                 </Offset>
  660                                                                         </Anchor>
  661                                                                 </Anchors>
  662                                                         </Frame>
  663                                                         <Frame name="$parentPlayer3" inherits="LFGDungeonReadyStatusPlayerTemplate" id="3">
  664                                                                 <Anchors>
  665                                                                         <Anchor point="LEFT" relativeTo="$parentPlayer2" relativePoint="RIGHT">
  666                                                                                 <Offset>
  667                                                                                         <AbsDimension x="0" y="0"/>
  668                                                                                 </Offset>
  669                                                                         </Anchor>
  670                                                                 </Anchors>
  671                                                         </Frame>
  672                                                         <Frame name="$parentPlayer4" inherits="LFGDungeonReadyStatusPlayerTemplate" id="4">
  673                                                                 <Anchors>
  674                                                                         <Anchor point="LEFT" relativeTo="$parentPlayer3" relativePoint="RIGHT">
  675                                                                                 <Offset>
  676                                                                                         <AbsDimension x="0" y="0"/>
  677                                                                                 </Offset>
  678                                                                         </Anchor>
  679                                                                 </Anchors>
  680                                                         </Frame>
  681                                                         <Frame name="$parentPlayer5" inherits="LFGDungeonReadyStatusPlayerTemplate" id="5">
  682                                                                 <Anchors>
  683                                                                         <Anchor point="LEFT" relativeTo="$parentPlayer4" relativePoint="RIGHT">
  684                                                                                 <Offset>
  685                                                                                         <AbsDimension x="0" y="0"/>
  686                                                                                 </Offset>
  687                                                                         </Anchor>
  688                                                                 </Anchors>
  689                                                         </Frame>
  690                                                 </Frames>
  691                                         </Frame>
  692                                         <Frame name="$parentGrouped">
  693                                                 <Size x="306" y="55"/>
  694                                                 <Anchors>
  695                                                         <Anchor point="LEFT" x="0" y="0"/>
  696                                                 </Anchors>
  697                                                 <Frames>
  698                                                         <Frame name="$parentTank" inherits="LFGDungeonReadyStatusRoleWithCountTemplate">
  699                                                                 <Anchors>
  700                                                                         <Anchor point="LEFT" x="49" y="0"/>
  701                                                                 </Anchors>
  702                                                         </Frame>
  703                                                         <Frame name="$parentHealer" inherits="LFGDungeonReadyStatusRoleWithCountTemplate">
  704                                                                 <Anchors>
  705                                                                         <Anchor point="LEFT" relativeTo="$parentTank" relativePoint="RIGHT" x="22" y="0"/>
  706                                                                 </Anchors>
  707                                                         </Frame>
  708                                                         <Frame name="$parentDamager" inherits="LFGDungeonReadyStatusRoleWithCountTemplate">
  709                                                                 <Anchors>
  710                                                                         <Anchor point="LEFT" relativeTo="$parentHealer" relativePoint="RIGHT" x="22" y="0"/>
  711                                                                 </Anchors>
  712                                                         </Frame>
  713                                                 </Frames>
  714                                         </Frame>
  715                                 </Frames>
  716                         </Frame>
  717                         <Frame name="LFGDungeonReadyDialog" setAllPoints="true" toplevel="true" enableMouse="true">
  718                                 <Size>
  719                                         <AbsDimension x="306" y="193"/>
  720                                 </Size>
  721                                 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
  722                                         <BackgroundInsets>
  723                                                 <AbsInset left="11" right="12" top="12" bottom="11"/>
  724                                         </BackgroundInsets>
  725                                         <TileSize>
  726                                                 <AbsValue val="32"/>
  727                                         </TileSize>
  728                                         <EdgeSize>
  729                                                 <AbsValue val="32"/>
  730                                         </EdgeSize>
  731                                 </Backdrop>
  732                                 <Layers>
  733                                         <Layer level="BACKGROUND">
  734                                                 <Texture name="$parentBackground" parentKey="background" file="Interface\LFGFrame\UI-LFG-BACKGROUND-RANDOMDUNGEON">
  735                                                         <Size>
  736                                                                 <AbsDimension x="294" y="118"/>
  737                                                         </Size>
  738                                                         <Anchors>
  739                                                                 <Anchor point="TOP">
  740                                                                         <Offset>
  741                                                                                 <AbsDimension x="0" y="-11"/>
  742                                                                         </Offset>
  743                                                                 </Anchor>
  744                                                                 <Anchor point="BOTTOM">
  745                                                                         <Offset>
  746                                                                                 <AbsDimension x="0" y="64"/>
  747                                                                         </Offset>
  748                                                                 </Anchor>
  749                                                         </Anchors>
  750                                                 </Texture>
  751                                         </Layer>
  752                                         <Layer level="OVERLAY">
  753                                                 <FontString name="$parentLabel" parentKey="label" inherits="GameFontHighlight" justifyH="CENTER">
  754                                                         <Size>
  755                                                                 <AbsDimension x="150" y="0"/>
  756                                                         </Size>
  757                                                         <Anchors>
  758                                                                 <Anchor point="TOP">
  759                                                                         <Offset>
  760                                                                                 <AbsDimension x="0" y="-15"/>
  761                                                                         </Offset>
  762                                                                 </Anchor>
  763                                                         </Anchors>
  764                                                 </FontString>
  765                                                 <Texture name="$parentFiligree" file="Interface\LFGFrame\UI-LFG-FILIGREE">
  766                                                         <Size>
  767                                                                 <AbsDimension x="292" y="54"/>
  768                                                         </Size>
  769                                                         <Anchors>
  770                                                                 <Anchor point="TOPLEFT">
  771                                                                         <Offset>
  772                                                                                 <AbsDimension x="7" y="-3"/>
  773                                                                         </Offset>
  774                                                                 </Anchor>
  775                                                                 <Anchor point="TOPRIGHT">
  776                                                                         <Offset>
  777                                                                                 <AbsDimension x="-7" y="-3"/>
  778                                                                         </Offset>
  779                                                                 </Anchor>
  780                                                         </Anchors>
  781                                                         <TexCoords left="0.02734" right="0.59765" top="0.578125" bottom="1.0"/>
  782                                                 </Texture>
  783                                                 <Texture name="$parentBottomArt" file="Interface\LFGFrame\UI-LFG-FILIGREE">
  784                                                         <Size>
  785                                                                 <AbsDimension x="287" y="72"/>
  786                                                         </Size>
  787                                                         <Anchors>
  788                                                                 <Anchor point="BOTTOM">
  789                                                                         <Offset>
  790                                                                                 <AbsDimension x="0" y="55"/>
  791                                                                         </Offset>
  792                                                                 </Anchor>
  793                                                         </Anchors>
  794                                                         <TexCoords left="0.0" right="0.5605" top="0.0" bottom="0.5625"/>
  795                                                 </Texture>
  796                                                 <FontString name="$parentYourRoleDescription" inherits="GameFontHighlightExtraSmall" text="YOUR_ROLE">
  797                                                         <Anchors>
  798                                                                 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT">
  799                                                                         <Offset>
  800                                                                                 <AbsDimension x="108" y="93"/>
  801                                                                         </Offset>
  802                                                                 </Anchor>
  803                                                         </Anchors>
  804                                                 </FontString>
  805                                                 <FontString name="$parentRoleLabel" inherits="GameFontNormalLarge" text="HEALER">
  806                                                         <Anchors>
  807                                                                 <Anchor point="TOPRIGHT" relativeTo="$parentYourRoleDescription" relativePoint="BOTTOMRIGHT">
  808                                                                         <Offset>
  809                                                                                 <AbsDimension x="0" y="0"/>
  810                                                                         </Offset>
  811                                                                 </Anchor>
  812                                                         </Anchors>
  813                                                 </FontString>
  814                                         </Layer>
  815                                 </Layers>
  816                                 <Frames>
  817                                         <Button name="$parentCloseButton">
  818                                                 <Size>
  819                                                         <AbsDimension x="32" y="32"/>
  820                                                 </Size>
  821                                                 <Anchors>
  822                                                         <Anchor point="TOPRIGHT">
  823                                                                 <Offset>
  824                                                                         <AbsDimension x="-2" y="-2"/>
  825                                                                 </Offset>
  826                                                         </Anchor>
  827                                                 </Anchors>
  828                                                 <Scripts>
  829                                                         <OnClick>
  830                                                                 PlaySound("igCharacterInfoTab");
  831                                                                 LFGDebug("Proposal Hidden: Ready Dialog close button pressed.");
  832                                                                 StaticPopupSpecial_Hide(LFGDungeonReadyPopup);
  833                                                         </OnClick>
  834                                                 </Scripts>
  835                                                 <NormalTexture file="Interface\Buttons\UI-Panel-HideButton-Up"/>
  836                                                 <PushedTexture file="Interface\Buttons\UI-Panel-HideButton-Down"/>
  837                                                 <HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
  838                                         </Button>
  839                                         <Button name="$parentEnterDungeonButton" inherits="UIPanelButtonTemplate2" text="ENTER_DUNGEON">
  840                                                 <Size>
  841                                                         <AbsDimension x="115" y="22"/>
  842                                                 </Size>
  843                                                 <Anchors>
  844                                                         <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOM">
  845                                                                 <Offset>
  846                                                                         <AbsDimension x="-7" y="25"/>
  847                                                                 </Offset>
  848                                                         </Anchor>
  849                                                 </Anchors>
  850                                                 <Scripts>
  851                                                         <OnClick>
  852                                                                 PlaySound("igCharacterInfoTab");
  853                                                                 AcceptProposal();
  854                                                         </OnClick>
  855                                                 </Scripts>
  856                                         </Button>
  857                                         <Button name="$parentLeaveQueueButton" inherits="UIPanelButtonTemplate2" text="LEAVE_QUEUE">
  858                                                 <Size>
  859                                                         <AbsDimension x="115" y="22"/>
  860                                                 </Size>
  861                                                 <Anchors>
  862                                                         <Anchor point="BOTTOMLEFT" relativePoint="BOTTOM">
  863                                                                 <Offset>
  864                                                                         <AbsDimension x="7" y="25"/>
  865                                                                 </Offset>
  866                                                         </Anchor>
  867                                                 </Anchors>
  868                                                 <Scripts>
  869                                                         <OnClick>
  870                                                                 PlaySound("igCharacterInfoTab");
  871                                                                 RejectProposal();
  872                                                         </OnClick>
  873                                                 </Scripts>
  874                                         </Button>
 
  876                                         <Frame name="$parentRoleIcon">
  877                                                 <Size>
  878                                                         <AbsDimension x="67" y="67"/>
  879                                                 </Size>
  880                                                 <Anchors>
  881                                                         <Anchor point="BOTTOM">
  882                                                                 <Offset>
  883                                                                         <AbsDimension x="-1" y="54"/>
  884                                                                 </Offset>
  885                                                         </Anchor>
  886                                                 </Anchors>
  887                                                 <Layers>
  888                                                         <Layer level="ARTWORK">
  889                                                                 <Texture name="$parentTexture" file="Interface\LFGFrame\UI-LFG-ICON-ROLES" setAllPoints="true"/>
  890                                                         </Layer>
  891                                                         <Layer level="OVERLAY">
  892                                                                 <Texture name="$parentLeaderIcon" file="Interface\LFGFrame\UI-LFG-ICON-PORTRAITROLES">
  893                                                                         <Size>
  894                                                                                 <AbsDimension x="19" y="19"/>
  895                                                                         </Size>
  896                                                                         <Anchors>
  897                                                                                 <Anchor point="TOPLEFT">
  898                                                                                         <Offset>
  899                                                                                                 <AbsDimension x="0" y="-4"/>
  900                                                                                         </Offset>
  901                                                                                 </Anchor>
  902                                                                         </Anchors>
  903                                                                         <TexCoords left="0" right="0.296875" top="0.015625" bottom="0.3125"/>
  904                                                                 </Texture>
  905                                                         </Layer>
  906                                                 </Layers>
  907                                         </Frame>
  908                                         <Frame name="$parentRandomInProgressFrame" parentKey="randomInProgress">
  909                                                 <Size>
  910                                                         <AbsDimension x="170" y="30"/>
  911                                                 </Size>
  912                                                 <Anchors>
  913                                                         <Anchor point="TOP" relativeTo="$parentLabel" relativePoint="BOTTOM">
  914                                                                 <Offset>
  915                                                                         <AbsDimension x="0" y="-5"/>
  916                                                                 </Offset>
  917                                                         </Anchor>
  918                                                 </Anchors>
  919                                                 <Layers>
  920                                                         <Layer level="BACKGROUND">
  921                                                                 <Texture file="Interface\LFGFrame\UI-LFG-SEPARATOR">
  922                                                                         <Size>
  923                                                                                 <AbsDimension x="210" y="40"/>
  924                                                                         </Size>
  925                                                                         <Anchors>
  926                                                                                 <Anchor point="TOP">
  927                                                                                         <Offset>
  928                                                                                                 <AbsDimension x="0" y="0"/>
  929                                                                                         </Offset>
  930                                                                                 </Anchor>
  931                                                                         </Anchors>
  932                                                                         <TexCoords left="0" right="0.6640625" top="0.3125" bottom="0"/>
  933                                                                 </Texture>
  934                                                         </Layer>
  935                                                         <Layer level="ARTWORK">
  936                                                                 <FontString name="$parentStatusText" inherits="GameFontNormal" justifyH="CENTER" text="THIS_DUNGEON_IN_PROGRESS">
  937                                                                         <Anchors>
  938                                                                                 <Anchor point="BOTTOM"/>
  939                                                                         </Anchors>
  940                                                                 </FontString>
  941                                                         </Layer>
  942                                                 </Layers>
  943                                         </Frame>
  944                                         <Frame name="$parentInstanceInfoFrame" parentKey="instanceInfo">
  945                                                 <Size>
  946                                                         <AbsDimension x="170" y="50"/>
  947                                                 </Size>
  948                                                 <Anchors>
  949                                                         <Anchor point="BOTTOM" relativeTo="$parentRoleIcon" relativePoint="TOP">
  950                                                                 <Offset>
  951                                                                         <AbsDimension x="0" y="10"/>
  952                                                                 </Offset>
  953                                                         </Anchor>
  954                                                 </Anchors>
  955                                                 <Layers>
  956                                                         <Layer level="BACKGROUND">
  957                                                                 <Texture file="Interface\LFGFrame\UI-LFG-SEPARATOR">
  958                                                                         <Size>
  959                                                                                 <AbsDimension x="170" y="40"/>
  960                                                                         </Size>
  961                                                                         <Anchors>
  962                                                                                 <Anchor point="TOP">
  963                                                                                         <Offset>
  964                                                                                                 <AbsDimension x="0" y="0"/>
  965                                                                                         </Offset>
  966                                                                                 </Anchor>
  967                                                                         </Anchors>
  968                                                                         <TexCoords left="0" right="0.6640625" top="0" bottom="0.3125"/>
  969                                                                 </Texture>
  970                                                         </Layer>
  971                                                         <Layer level="ARTWORK">
  972                                                                 <FontString name="$parentName" inherits="GameFontNormalLarge" justifyH="CENTER" parentKey="name">
  973                                                                         <Anchors>
  974                                                                                 <Anchor point="TOP">
  975                                                                                         <Offset>
  976                                                                                                 <AbsDimension x="0" y="-13"/>
  977                                                                                         </Offset>
  978                                                                                 </Anchor>
  979                                                                         </Anchors>
  980                                                                 </FontString>
  981                                                                 <FontString name="$parentStatusText" inherits="GameFontNormal" justifyH="CENTER" parentKey="statusText">
  982                                                                         <Anchors>
  983                                                                                 <Anchor point="BOTTOM"/>
  984                                                                         </Anchors>
  985                                                                 </FontString>
  986                                                         </Layer>
  987                                                 </Layers>
  988                                                 <Scripts>
  989                                                         <OnEnter function="LFGDungeonReadyDialogInstanceInfo_OnEnter"/>
  990                                                         <OnLeave function="GameTooltip_Hide"/>
  991                                                 </Scripts>
  992                                         </Frame>
  993                                         <Frame name="$parentRewardsFrame">
  994                                                 <Size>
  995                                                         <AbsDimension x="72" y="40"/>
  996                                                 </Size>
  997                                                 <Anchors>
  998                                                         <Anchor point="BOTTOMLEFT" relativeTo="$parentRoleIcon" relativePoint="BOTTOMRIGHT">
  999                                                                 <Offset>
  1000                                                                         <AbsDimension x="19" y="15"/>
  1001                                                                 </Offset>
  1002                                                         </Anchor>
  1003                                                 </Anchors>
  1004                                                 <Layers>
  1005                                                         <Layer level="ARTWORK">
  1006                                                                 <FontString name="$parentLabel" inherits="GameFontNormalSmall" justifyH="CENTER" text="LFD_REWARDS">
  1007                                                                         <Anchors>
  1008                                                                                 <Anchor point="BOTTOM"/>
  1009                                                                         </Anchors>
  1010                                                                 </FontString>
  1011                                                         </Layer>
  1012                                                 </Layers>
  1013                                                 <Frames>
  1014                                                         <Frame name="$parentReward1" inherits="LFGDungeonReadyRewardTemplate" id="1"/>
  1015                                                         <Frame name="$parentReward2" inherits="LFGDungeonReadyRewardTemplate" id="2"/>
  1016                                                 </Frames>
  1017                                         </Frame>
  1018                                 </Frames>
  1019                         </Frame>
  1020                 </Frames>
  1021                 <Scripts>
  1022                         <OnLoad>
  1023                                 self:RegisterEvent("LFG_UPDATE_RANDOM_INFO")
  1024                         </OnLoad>
  1025                         <OnEvent>
  1026                                 if ( event == "LFG_UPDATE_RANDOM_INFO" ) then
  1027                                         --The rewards may have changed.
  1028                                         if ( self:IsShown() ) then
  1029                                                 LFGDungeonReadyPopup_Update();
  1030                                         end
  1031                                 end
  1032                         </OnEvent>
  1033                         <OnShow>
  1034                                 LFGDungeonReadyPopup_Update();
 
  1036                                 --Request new lock info (which comes with which rewards we're getting) in case the rewards changed.
  1037                                 RequestLFDPlayerLockInfo();
  1038                                 RequestLFDPartyLockInfo();
  1039                         </OnShow>
  1040                         <OnHide>
  1041                                 self.closeIn = nil;
  1042                                 self:SetScript("OnUpdate", nil);
  1043                         </OnHide>
  1044                 </Scripts>
  1045         </Frame>
  1046         <Frame name="LFGRewardsLootShortageTemplate" virtual="true">
  1047                 <Size x="19" y="19"/>
  1048                 <Layers>
  1049                         <Layer level="ARTWORK">
  1050                                 <Texture name="$parentTexture" file="Interface\LFGFrame\UI-LFG-ICON-PORTRAITROLES" parentKey="texture"/>
  1051                         </Layer>
  1052                 </Layers>
  1053                 <Scripts>
  1054                         <OnEnter>
  1055                                 GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
  1056                                 GameTooltip:SetText(format(LFG_CALL_TO_ARMS, _G[self.role]), 1, 1, 1);
  1057                                 GameTooltip:AddLine(LFG_CALL_TO_ARMS_EXPLANATION, nil, nil, nil, 1);
  1058                                 GameTooltip:Show();
  1059                         </OnEnter>
  1060                         <OnLeave function="GameTooltip_Hide"/>
  1061                 </Scripts>
  1062         </Frame>
  1063         <Button name="LFGRewardsLootTemplate" inherits="LargeItemButtonTemplate" virtual="true">
  1064                 <Layers>
  1065                         <Layer level="ARTWORK">
  1066                                 <Texture name="$parentShortageBorder" inherits="Talent-GoldMedal-Border" parentKey="shortageBorder">
  1067                                         <Size x="48" y="48"/>
  1068                                         <Anchors>
  1069                                                 <Anchor point="TOPLEFT" relativeTo="$parent" x="-6" y="4"/>
  1070                                         </Anchors>
  1071                                 </Texture>
  1072                         </Layer>
  1073                 </Layers>
  1074                 <Frames>
  1075                         <Frame name="$parentRoleIcon1" inherits="LFGRewardsLootShortageTemplate" parentKey="roleIcon1" hidden="true">
  1076                                 <Anchors>
  1077                                         <Anchor point="LEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="0" y="0"/>
  1078                                 </Anchors>
  1079                         </Frame>
  1080                         <Frame name="$parentRoleIcon2" inherits="LFGRewardsLootShortageTemplate" parentKey="roleIcon2" hidden="true">
  1081                                 <Anchors>
  1082                                         <Anchor point="LEFT" relativeTo="$parentRoleIcon1" relativePoint="RIGHT" x="0" y="0"/>
  1083                                 </Anchors>
  1084                         </Frame>
  1085                 </Frames>
  1086                 <Scripts>
  1087                         <OnLoad>
  1088                                 self.hasItem = 1;
  1089                         </OnLoad>
  1090                         <OnEnter>
  1091                                 GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
  1092                                 if ( self.shortageIndex ) then
  1093                                         GameTooltip:SetLFGDungeonShortageReward(LFDQueueFrame.type, self.shortageIndex, self:GetID());
  1094                                 else
  1095                                         GameTooltip:SetLFGDungeonReward(LFDQueueFrame.type, self:GetID());
  1096                                 end
  1097                                 CursorUpdate(self);
  1098                         </OnEnter>
  1099                         <OnLeave>
  1100                                 GameTooltip:Hide();
  1101                                 ResetCursor();
  1102                         </OnLeave>
  1103                         <OnUpdate>
  1104                                 CursorOnUpdate(self, elapsed);
  1105                         </OnUpdate>
  1106                         <OnClick>
  1107                                 if ( self.shortageIndex ) then
  1108                                         HandleModifiedItemClick(GetLFGDungeonShortageRewardLink(LFDQueueFrame.type, self.shortageIndex, self:GetID()));
  1109                                 else
  1110                                         HandleModifiedItemClick(GetLFGDungeonRewardLink(LFDQueueFrame.type, self:GetID()));
  1111                                 end
  1112                         </OnClick>
  1113                 </Scripts>
  1114         </Button>
  1115         <Frame name="LFGRewardFrameTemplate" hidden="true" virtual="true">
  1116                 <Size>
  1117                         <AbsDimension x="298" y="1"/>
  1118                 </Size>
  1119                 <Layers>
  1120                         <Layer level="ARTWORK">
  1121                                 <FontString name="$parentTitle" inherits="QuestTitleFontBlackShadow" justifyH="LEFT" parentKey="title" text="LFG_TYPE_RANDOM_DUNGEON">
  1122                                         <Anchors>
  1123                                                 <Anchor point="TOPLEFT">
  1124                                                         <Offset>
  1125                                                                 <AbsDimension x="10" y="-15"/>
  1126                                                         </Offset>
  1127                                                 </Anchor>
  1128                                         </Anchors>
  1129                                 </FontString>
  1130                                 <FontString name="$parentDescription" inherits="QuestFont" justifyH="LEFT" parentKey="description" text="LFD_RANDOM_EXPLANATION">
  1131                                         <Size>
  1132                                                 <AbsDimension x="280" y="0"/>
  1133                                         </Size>
  1134                                         <Anchors>
  1135                                                 <Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT">
  1136                                                         <Offset>
  1137                                                                 <AbsDimension x="0" y="-5"/>
  1138                                                         </Offset>
  1139                                                 </Anchor>
  1140                                         </Anchors>
  1141                                 </FontString>
  1142                                 <FontString name="$parentRewardsLabel" inherits="QuestTitleFontBlackShadow" justifyH="LEFT" parentKey="rewardsLabel" text="LFD_REWARDS">
  1143                                         <Anchors>
  1144                                                 <Anchor point="TOPLEFT" relativeTo="$parentDescription" relativePoint="BOTTOMLEFT">
  1145                                                         <Offset>
  1146                                                                 <AbsDimension x="0" y="-10"/>
  1147                                                         </Offset>
  1148                                                 </Anchor>
  1149                                         </Anchors>
  1150                                 </FontString>
  1151                                 <FontString name="$parentRewardsDescription" inherits="QuestFont" justifyH="LEFT" parentKey="rewardsDescription" text="LFD_RANDOM_REWARD_EXPLANATION1">
  1152                                         <Size>
  1153                                                 <AbsDimension x="280" y="0"/>
  1154                                         </Size>
  1155                                         <Anchors>
  1156                                                 <Anchor point="TOPLEFT" relativeTo="$parentRewardsLabel" relativePoint="BOTTOMLEFT">
  1157                                                         <Offset>
  1158                                                                 <AbsDimension x="0" y="-5"/>
  1159                                                         </Offset>
  1160                                                 </Anchor>
  1161                                         </Anchors>
  1162                                 </FontString>
  1163                                 <FontString name="$parentPUGDescription" inherits="QuestFont" justifyH="LEFT" parentKey="pugDescription" text="LFD_RANDOM_REWARD_PUG_EXPLANATION">
  1164                                         <Size>
  1165                                                 <AbsDimension x="280" y="0"/>
  1166                                         </Size>
  1167                                         <Anchors>
  1168                                                 <Anchor point="TOPLEFT" relativeTo="$parentRewardsLabel" relativePoint="BOTTOMLEFT">
  1169                                                         <Offset>
  1170                                                                 <AbsDimension x="0" y="-5"/>
  1171                                                         </Offset>
  1172                                                 </Anchor>
  1173                                         </Anchors>
  1174                                 </FontString>
  1175                                 <FontString name="$parentMoneyLabel" inherits="QuestFont" justifyH="LEFT" parentKey="moneyLabel" text="MONEY_COLON">
  1176                                         <Anchors>
  1177                                                 <Anchor point="TOPLEFT" relativeTo="$parentPUGDescription" relativePoint="BOTTOMLEFT">
  1178                                                         <Offset>
  1179                                                                 <AbsDimension x="20" y="-10"/>
  1180                                                         </Offset>
  1181                                                 </Anchor>
  1182                                         </Anchors>
  1183                                 </FontString>
  1184                                 <FontString name="$parentXPLabel" inherits="QuestFont" justifyH="LEFT" parentKey="xpLabel" text="EXPERIENCE_COLON">
  1185                                         <Anchors>
  1186                                                 <Anchor point="TOPLEFT" relativeTo="$parentMoneyLabel" relativePoint="BOTTOMLEFT">
  1187                                                         <Offset>
  1188                                                                 <AbsDimension x="0" y="-5"/>
  1189                                                         </Offset>
  1190                                                 </Anchor>
  1191                                         </Anchors>
  1192                                 </FontString>
  1193                                 <FontString name="$parentXPAmount" inherits="NumberFontNormalLarge" justifyH="LEFT" parentKey="xpAmount">
  1194                                         <Anchors>
  1195                                                 <Anchor point="LEFT" relativeTo="$parentXPLabel" relativePoint="RIGHT">
  1196                                                         <Offset>
  1197                                                                 <AbsDimension x="10" y="0"/>
  1198                                                         </Offset>
  1199                                                 </Anchor>
  1200                                         </Anchors>
  1201                                 </FontString>
 
  1204                         </Layer>
  1205                 </Layers>
  1206                 <Frames>
  1207                         <Button name="$parentItem1" inherits="LFGRewardsLootTemplate" id="1">
  1208                                 <Anchors>
  1209                                         <Anchor point="TOPLEFT" relativeTo="$parentRewardsDescription" relativePoint="BOTTOMLEFT">
  1210                                                 <Offset>
  1211                                                         <AbsDimension x="0" y="-10"/>
  1212                                                 </Offset>
  1213                                         </Anchor>
  1214                                 </Anchors>
  1215                         </Button>
  1216                         <Frame name="$parentMoneyFrame" inherits="MoneyFrameTemplate" parentKey="moneyFrame">
  1217                                 <Anchors>
  1218                                         <Anchor point="LEFT" relativeTo="$parentMoneyLabel" relativePoint="RIGHT">
  1219                                                 <Offset>
  1220                                                         <AbsDimension x="10" y="0"/>
  1221                                                 </Offset>
  1222                                         </Anchor>
  1223                                 </Anchors>
  1224                                 <Scripts>
  1225                                         <OnLoad>
  1226                                                 SmallMoneyFrame_OnLoad(self);
  1227                                                 MoneyFrame_SetType(self, "STATIC");
  1228                                         </OnLoad>
  1229                                 </Scripts>
  1230                         </Frame>
  1231                         <Frame name="$parentRandomList" parentKey="randomList">
  1232                                 <Size x="18" y="18"/>
  1233                                 <Anchors>
  1234                                         <Anchor point="LEFT" relativeTo="$parentTitle" relativePoint="RIGHT" x="5" y="-3"/>
  1235                                 </Anchors>
  1236                                 <Layers>
  1237                                         <Layer level="ARTWORK">
  1238                                                 <Texture name="$parentDiceTexture" file="Interface\Buttons\UI-GroupLoot-Dice-Up">
  1239                                                         <Size x="18" y="18"/>
  1240                                                         <Anchors>
  1241                                                                 <Anchor point="BOTTOMRIGHT"/>
  1242                                                         </Anchors>
  1243                                                 </Texture>
 
  1250                                         </Layer>
  1251                                 </Layers>
  1252                                 <Scripts>
  1253                                         <OnEnter function="LFDQueueFrameRandomRandomList_OnEnter"/>
  1254                                         <OnLeave function="GameTooltip_Hide"/>
  1255                                 </Scripts>
  1256                         </Frame>
  1257                         <Frame name="$parentEncounterList" parentKey="encounterList">
  1258                                 <Size x="18" y="18"/>
  1259                                 <Layers>
  1260                                         <Layer level="ARTWORK">
  1261                                                 <Texture name="$parentTexture" file="Interface\DialogFrame\UI-Dialog-Icon-AlertNew">
  1262                                                         <Size x="18" y="18"/>
  1263                                                         <Anchors>
  1264                                                                 <Anchor point="BOTTOMRIGHT"/>
  1265                                                         </Anchors>
  1266                                                 </Texture>
  1267                                         </Layer>
  1268                                 </Layers>
  1269                                 <Scripts>
  1270                                         <OnEnter function="LFGRewardsFrameEncounterList_OnEnter"/>
  1271                                         <OnLeave function="GameTooltip_Hide"/>
  1272                                 </Scripts>
  1273                         </Frame>
  1274                         <Frame name="$parentSpacer" parentKey="spacer">
  1275                                 <Size>
  1276                                         <AbsDimension x="2" y="2"/>
  1277                                 </Size>
  1278                                 <Anchors>
  1279                                         <Anchor point="TOPLEFT" relativeTo="$parentXPLabel" relativePoint="BOTTOMLEFT">
  1280                                                 <Offset>
  1281                                                         <AbsDimension x="0" y="-10"/>
  1282                                                 </Offset>
  1283                                         </Anchor>
  1284                                 </Anchors>
  1285                         </Frame>
  1286                 </Frames>
  1287                 <Scripts>
  1288                         <OnLoad>
  1289                                 local myName = self:GetName();
  1290                                 self.numRewardFrames = 1;
  1291                                 self.description:SetTextColor(1, 1, 1);
  1292                                 self.rewardsDescription:SetTextColor(1, 1, 1);
  1293                                 self.pugDescription:SetTextColor(1, 1, 1);
  1294                                 self.moneyLabel:SetTextColor(1, 1, 1);
  1295                                 self.xpLabel:SetTextColor(1, 1, 1);
  1296                         </OnLoad>
  1297                 </Scripts>
  1298         </Frame>
   
File: FrameXML\LFRFrame.lua  
24           PanelTemplates_SetNumTabs(self, 2);
  24        
 
  29         for i = 2, 19 do
  30                 local button = CreateFrame("Button", "LFRBrowseFrameListButton"..i, LFRBrowseFrame, "LFRBrowseButtonTemplate");
  31                 button:SetPoint("TOPLEFT", _G["LFRBrowseFrameListButton"..(i-1)], "BOTTOMLEFT");
  32         end
  33         for i = 2, 14 do
  34                 local button = CreateFrame("Button", "LFRQueueFrameSpecificListButton"..i, LFRQueueFrameSpecific, "LFRFrameDungeonChoiceTemplate");
  35                 button:SetID(i);
  36                 button:SetPoint("TOPLEFT", _G["LFRQueueFrameSpecificListButton"..(i-1)], "BOTTOMLEFT");
  37         end
 
143                   if ( LFGGetDungeonInfoByID(dungeonID)[LFG_RETURN_VALUES.groupID] == headerID ) then
  153                 if ( select(LFG_RETURN_VALUES.groupID, GetLFGDungeonInfo(dungeonID)) == headerID ) then
 
148                   if ( LFGGetDungeonInfoByID(dungeonID)[LFG_RETURN_VALUES.groupID] == headerID ) then
  158                 if ( select(LFG_RETURN_VALUES.groupID, GetLFGDungeonInfo(dungeonID)) == headerID ) then
 
160                   if ( LFGGetDungeonInfoByID(dungeonID)[LFG_RETURN_VALUES.groupID] == headerID ) then
  170                 if ( select(LFG_RETURN_VALUES.groupID, GetLFGDungeonInfo(dungeonID)) == headerID ) then
 
165                   if ( LFGGetDungeonInfoByID(dungeonID)[LFG_RETURN_VALUES.groupID] == headerID ) then
  175                 if ( select(LFG_RETURN_VALUES.groupID, GetLFGDungeonInfo(dungeonID)) == headerID ) then
 
174           local info = LFGGetDungeonInfoByID(dungeonID);
  184         local name, typeID, minLevel, maxLevel, recLevel, minRecLevel, maxRecLevel, expansionLevel, groupID, textureFilename, difficulty, maxPlayers, description, isHoliday = GetLFGDungeonInfo(dungeonID);
 
177                   local name = info[LFG_RETURN_VALUES.name];
 
184                   if ( info[LFG_RETURN_VALUES.typeID] == TYPEID_HEROIC_DIFFICULTY ) then
  192                 if ( typeID == TYPEID_HEROIC_DIFFICULTY ) then
 
202                   local name =  info[LFG_RETURN_VALUES.name];
203                   local minLevel, maxLevel = info[LFG_RETURN_VALUES.minLevel], info[LFG_RETURN_VALUES.maxLevel];
204                   local minRecLevel, maxRecLevel = info[LFG_RETURN_VALUES.minRecLevel], info[LFG_RETURN_VALUES.maxRecLevel];
205                   local recLevel = info[LFG_RETURN_VALUES.recLevel];
 
320                   local info = LFGGetDungeonInfoByID(queueID);
 
364           LFGQueueFrame_UpdateLFGDungeonList(LFRRaidList, LFRHiddenByCollapseList, LFGLockList, LFGDungeonInfo, enableList, LFGCollapseList, LFR_CURRENT_FILTER);
  366         LFGQueueFrame_UpdateLFGDungeonList(LFRRaidList, LFRHiddenByCollapseList, LFGLockList, enableList, LFGCollapseList, LFR_CURRENT_FILTER);
 
370           local info = LFGGetDungeonInfoByID(dungeonID)
371           local hasHeader = info[LFG_RETURN_VALUES.groupID] ~= 0;
372           local sufficientExpansion = EXPANSION_LEVEL >= info[LFG_RETURN_VALUES.expansionLevel];
  372         local name, typeID, minLevel, maxLevel, recLevel, minRecLevel, maxRecLevel, expansionLevel, groupID, textureFilename, difficulty, maxPlayers, description, isHoliday = GetLFGDungeonInfo(dungeonID);
  373         local hasHeader = groupID ~= 0;
  374         local sufficientExpansion = EXPANSION_LEVEL >= expansionLevel;
 
374           local sufficientLevel = level >= info[LFG_RETURN_VALUES.minLevel] and level <= info[LFG_RETURN_VALUES.maxLevel];
  376         local sufficientLevel = level >= minLevel and level <= maxLevel;
 
376                   ( level - LFR_MAX_SHOWN_LEVEL_DIFF <= info[LFG_RETURN_VALUES.recLevel] or (LFGLockList and not LFGLockList[dungeonID]));        --If the server tells us we can join, who are we to complain?
  378                 ( level - LFR_MAX_SHOWN_LEVEL_DIFF <= recLevel or (LFGLockList and not LFGLockList[dungeonID]));        --If the server tells us we can join, who are we to complain?
 
419                           local parentID = LFGGetDungeonInfoByID(id)[LFG_RETURN_VALUES.groupID];
  421                         local parentID = select(LFG_RETURN_VALUES.groupID, GetLFGDungeonInfo(id));
 
453                           info.text = LFGGetDungeonInfoByID(groupID)[LFG_RETURN_VALUES.name];
  455                         info.text = select(LFG_RETURN_VALUES.name, GetLFGDungeonInfo(groupID));
 
462                           local info = LFGGetDungeonInfoByID(dungeonID);
463                           if ( info[LFG_RETURN_VALUES.maxPlayers] > 0 ) then
464                                   local maxPlayers = format(LFD_LEVEL_FORMAT_SINGLE, info[LFG_RETURN_VALUES.maxPlayers]);
465                                   info.text = maxPlayers.." "..info[LFG_RETURN_VALUES.name];
  464                         local name, typeID, minLevel, maxLevel, recLevel, minRecLevel, maxRecLevel, expansionLevel, groupID, textureFilename, difficulty, maxPlayers, description, isHoliday = GetLFGDungeonInfo(dungeonID);
  465                         if ( maxPlayers > 0 ) then
  466                                 local maxPlayers = format(LFD_LEVEL_FORMAT_SINGLE, maxPlayers);
  467                                 info.text = maxPlayers.." "..name;
 
467                                   info.text = info[LFG_RETURN_VALUES.name];
  469                                 info.text = name;
 
484                   SearchLFGJoin(LFGGetDungeonInfoByID(self.value)[LFG_RETURN_VALUES.typeID], self.value);
  486                 SearchLFGJoin(select(LFG_RETURN_VALUES.typeID, GetLFGDungeonInfo(self.value)), self.value);
 
  494                 ButtonFrameTemplate_HideAttic(FriendsFrame);
 
  496                 LFRParentFrameSideTab1:SetChecked(true);
  497                 LFRParentFrameSideTab2:SetChecked(false);
 
  501                 FriendsFrameInset:SetPoint("TOPLEFT", 4, -83);
 
  503                 LFRParentFrameSideTab1:SetChecked(false);
  504                 LFRParentFrameSideTab2:SetChecked(true);
 
498           PanelTemplates_SetTab(LFRParentFrame, tab);
   
File: FrameXML\LFRFrame.xml  
19                                           <Size>
20                                                   <AbsDimension x="16" y="16"/>
21                                           </Size>
  19                                         <Size x="16" y="16"/>
 
23                                                   <Anchor point="CENTER">
24                                                           <Offset>
25                                                                   <AbsDimension x="0" y="0"/>
26                                                           </Offset>
27                                                   </Anchor>
  21                                                 <Anchor point="CENTER" x="0" y="0"/>
 
42                   <Size>
43                           <AbsDimension x="298" y="16"/>
44                   </Size>
  36                 <Size x="298" y="16"/>
 
48                                           <Size>
49                                                   <AbsDimension x="88" y="14"/>
50                                           </Size>
  40                                         <Size x="88" y="14"/>
 
52                                                   <Anchor point="TOPLEFT">
53                                                           <Offset>
54                                                                   <AbsDimension x="10" y="-3"/>
55                                                           </Offset>
56                                                   </Anchor>
  42                                                 <Anchor point="TOPLEFT" x="10" y="-3"/>
 
60                                           <Size>
61                                                   <AbsDimension x="20" y="14"/>
62                                           </Size>
  46                                         <Size x="20" y="14"/>
 
64                                                   <Anchor point="LEFT" relativeTo="$parentName" relativePoint="RIGHT">
65                                                           <Offset>
66                                                                   <AbsDimension x="9" y="0"/>
67                                                           </Offset>
68                                                   </Anchor>
  48                                                 <Anchor point="LEFT" relativeTo="$parentName" relativePoint="RIGHT" x="9" y="0"/>
 
72                                           <Size>
73                                                   <AbsDimension x="72" y="8"/>
74                                           </Size>
  52                                         <Size x="72" y="8"/>
 
76                                                   <Anchor point="LEFT" relativeTo="$parentLevel" relativePoint="RIGHT">
77                                                           <Offset>
78                                                                   <AbsDimension x="12" y="0"/>
79                                                           </Offset>
80                                                   </Anchor>
  54                                                 <Anchor point="LEFT" relativeTo="$parentLevel" relativePoint="RIGHT" x="12" y="0"/>
 
84                                           <Size>
85                                                   <AbsDimension x="16" y="16"/>
86                                           </Size>
  58                                         <Size x="16" y="16"/>
 
88                                                   <Anchor point="LEFT" relativeTo="$parentClass" relativePoint="RIGHT">
89                                                           <Offset>
90                                                                   <AbsDimension x="5" y="0"/>
91                                                           </Offset>
92                                                   </Anchor>
  60                                                 <Anchor point="LEFT" relativeTo="$parentClass" relativePoint="RIGHT" x="5" y="0"/>
 
97                                           <Size>
98                                                   <AbsDimension x="16" y="16"/>
99                                           </Size>
  65                                         <Size x="16" y="16"/>
 
101                                                   <Anchor point="LEFT" relativeTo="$parentRoleTankIcon" relativePoint="RIGHT">
102                                                           <Offset>
103                                                                   <AbsDimension x="6" y="0"/>
104                                                           </Offset>
105                                                   </Anchor>
  67                                                 <Anchor point="LEFT" relativeTo="$parentRoleTankIcon" relativePoint="RIGHT" x="6" y="0"/>
 
110                                           <Size>
111                                                   <AbsDimension x="16" y="16"/>
112                                           </Size>
  72                                         <Size x="16" y="16"/>
 
114                                                   <Anchor point="LEFT" relativeTo="$parentRoleHealerIcon" relativePoint="RIGHT">
115                                                           <Offset>
116                                                                   <AbsDimension x="6" y="0"/>
117                                                           </Offset>
118                                                   </Anchor>
  74                                                 <Anchor point="LEFT" relativeTo="$parentRoleHealerIcon" relativePoint="RIGHT" x="6" y="0"/>
 
123                                           <Size>
124                                                   <AbsDimension x="16" y="16"/>
125                                           </Size>
  79                                         <Size x="16" y="16"/>
 
127                                                   <Anchor point="LEFT" relativeTo="$parentRoleDamageIcon" relativePoint="RIGHT">
128                                                           <Offset>
129                                                                   <AbsDimension x="8" y="0"/>
130                                                           </Offset>
131                                                   </Anchor>
  81                                                 <Anchor point="LEFT" relativeTo="$parentRoleDamageIcon" relativePoint="RIGHT" x="8" y="0"/>
 
143                           <Size>
144                                   <AbsDimension x="298" y="16"/>
145                           </Size>
  93                         <Size x="298" y="16"/>
 
147                                   <Anchor point="TOP">
148                                           <Offset>
149                                                   <AbsDimension x="5" y="-2"/>
150                                           </Offset>
151                                   </Anchor>
  95                                 <Anchor point="TOP" x="5" y="-2"/>
 
164           <Frame name="LFRParentFrame" toplevel="true" hidden="true" enableMouse="true" parent="UIParent">
165                   <Size x="355" y="440"/>
  108         <CheckButton name="LFRFrameSideTabTemplate" virtual="true">
  109                 <Size>
  110                         <AbsDimension x="32" y="32"/>
  111                 </Size>
 
168                                   <Texture name="$parentIcon" file="Interface\LFGFrame\UI-LFR-PORTRAIT">
  114                                 <Texture file="Interface\SpellBook\SpellBook-SkillLineTab">
 
175                                                                   <AbsDimension x="11" y="-5"/>
  121                                                                 <AbsDimension x="-3" y="11"/>
 
  128                 <Scripts>
  129                         <OnClick>
  130                                 LFRFrame_SetActiveTab(self:GetID());
  131                                 PlaySound("igCharacterInfoTab");
  132                         </OnClick>
  133                         <OnEnter>
  134                                 GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
  135                                 GameTooltip:SetText(self.tooltip);
  136                         </OnEnter>
  137                         <OnLeave>
  138                                 GameTooltip:Hide();
  139                         </OnLeave>
  140                 </Scripts>
  141                 <NormalTexture/>
  142                 <HighlightTexture file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/>
  143                 <CheckedTexture file="Interface\Buttons\CheckButtonHilight" alphaMode="ADD"/>
  144         </CheckButton>
 
  146         <Frame name="LFRParentFrame" toplevel="true" hidden="true" enableMouse="true" useParentLevel="true" parent="FriendsFrame" setAllPoints="true">
 
183                           <Button inherits="UIPanelCloseButton">
184                                   <Anchors>
185                                           <Anchor point="TOPRIGHT">
186                                                   <Offset>
187                                                           <AbsDimension x="2" y="-8"/>
188                                                   </Offset>
189                                           </Anchor>
190                                   </Anchors>
191                           </Button>
192                           <Frame name="LFRQueueFrame" setAllPoints="true">
  148                         <Frame name="LFRQueueFrame" useParentLevel="true" setAllPoints="true">
 
195                                                   <Texture name="$parentLayout" file="Interface\LFGFrame\UI-LFR-FRAME-MAIN">
196                                                           <Size>
197                                                                   <AbsDimension x="512" y="512"/>
198                                                           </Size>
199                                                           <Anchors>
200                                                                   <Anchor point="TOPLEFT">
201                                                                           <Offset>
202                                                                                   <AbsDimension x="0" y="0"/>
203                                                                           </Offset>
204                                                                   </Anchor>
205                                                           </Anchors>
206                                                   </Texture>
  151                                                 <!-- <Texture name="$parentLayout" file="Interface\LFGFrame\UI-LFR-FRAME-MAIN">
  152                                                         <Size x="512" y="512"/>
  153                                                         <Anchors>
  154                                                                 <Anchor point="TOPLEFT" x="0" y="0"/>
  155                                                         </Anchors>
  156                                                 </Texture> -->
 
208                                           <Layer level="ARTWORK">
209                                                   <FontString name="$parentTitleText" inherits="GameFontNormal" text="LOOKING_FOR_RAID">
  158                                 </Layers>
  159                                 <Frames>
  160                                         <Frame name="$parentRoleInset" inherits="InsetFrameTemplate" frameLevel="1">
 
211                                                                   <Anchor point="TOP">
212                                                                           <Offset>
213                                                                                   <AbsDimension x="12" y="-18"/>
214                                                                           </Offset>
215                                                                   </Anchor>
  162                                                         <Anchor point="TOPLEFT" relativeTo="LFRQueueFrame" x="4" y="-20"/>
  163                                                         <Anchor point="BOTTOMRIGHT" relativeTo="LFRQueueFrame" relativePoint="TOPRIGHT" x="-4" y="-110"/>
 
217                                                   </FontString>
218                                           </Layer>
219                                   </Layers>
220                                   <Frames>
  165                                         </Frame>
 
223                                                           <Anchor point="TOPLEFT">
224                                                                   <Offset>
225                                                                           <AbsDimension x="82" y="-60"/>
226                                                                   </Offset>
227                                                           </Anchor>
  168                                                         <Anchor point="TOPLEFT" x="65" y="-45"/>
 
240                                                           <Anchor point="LEFT" relativeTo="$parentRoleButtonTank" relativePoint="RIGHT">
241                                                                   <Offset>
242                                                                           <AbsDimension x="45" y="0"/>
243                                                                   </Offset>
244                                                           </Anchor>
  181                                                         <Anchor point="LEFT" relativeTo="$parentRoleButtonTank" relativePoint="RIGHT" x="45" y="0"/>
 
257                                                           <Anchor point="LEFT" relativeTo="$parentRoleButtonHealer" relativePoint="RIGHT">
258                                                                   <Offset>
259                                                                           <AbsDimension x="43" y="0"/>
260                                                                   </Offset>
261                                                           </Anchor>
  194                                                         <Anchor point="LEFT" relativeTo="$parentRoleButtonHealer" relativePoint="RIGHT" x="43" y="0"/>
 
  205                                         <Frame name="$parentCommentInset" inherits="InsetFrameTemplate" frameLevel="1">
  206                                                 <Anchors>
  207                                                         <Anchor point="TOPLEFT" relativeTo="LFRQueueFrame" relativePoint="BOTTOMLEFT" x="4" y="76"/>
  208                                                         <Anchor point="BOTTOMRIGHT" relativeTo="LFRQueueFrame" relativePoint="BOTTOMRIGHT" x="-4" y="25"/>
  209                                                 </Anchors>
  210                                         </Frame>
 
273                                                   <Size>
274                                                           <AbsDimension x="313" y="36"/>
275                                                   </Size>
  212                                                 <Size x="313" y="36"/>
 
277                                                           <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT">
278                                                                   <Offset>
279                                                                           <AbsDimension x="31" y="74"/>
280                                                                   </Offset>
281                                                           </Anchor>
  214                                                         <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT" x="13" y="70"/>
 
285                                                                   <Size>
286                                                                           <AbsDimension x="313" y="1"/>
287                                                                   </Size>
  218                                                                 <Size x="313" y="1"/>
 
294                                                                                           <Size>
295                                                                                                   <AbsDimension x="313" y="36"/>
296                                                                                           </Size>
  225                                                                                         <Size x="313" y="36"/>
 
359                                                   <Size>
360                                                           <AbsDimension x="313" y="42"/>
361                                                   </Size>
  288                                                 <Size x="313" y="42"/>
 
  300                                         <Frame name="$parentListInset" inherits="InsetFrameTemplate" frameLevel="1">
  301                                                 <Anchors>
  302                                                         <Anchor point="TOPLEFT" relativeTo="LFRQueueFrame" x="4" y="-110"/>
  303                                                         <Anchor point="BOTTOMRIGHT" relativeTo="LFRQueueFrame" relativePoint="BOTTOMRIGHT" x="-4" y="76"/>
  304                                                 </Anchors>
  305                                         </Frame>
 
377                                                                           <Size>
378                                                                                   <AbsDimension x="300" y="0"/>
379                                                                           </Size>
  310                                                                         <Size x="300" y="0"/>
 
381                                                                                   <Anchor point="TOP">
382                                                                                           <Offset>
383                                                                                                   <AbsDimension x="0" y="-220"/>
384                                                                                           </Offset>
385                                                                                   </Anchor>
  312                                                                                 <Anchor point="TOP" x="0" y="-220"/>
 
393                                                                           <Anchor point="TOPLEFT">
394                                                                                   <Offset>
395                                                                                           <AbsDimension x="25" y="-132"/>
396                                                                                   </Offset>
397                                                                           </Anchor>
  320                                                                         <Anchor point="TOPLEFT" x="10" y="-118"/>
 
400                                                           <Frame name="$parentListButton2" inherits="LFRFrameDungeonChoiceTemplate" id="2">
401                                                                   <Anchors>
402                                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton1" relativePoint="BOTTOMLEFT">
403                                                                                   <Offset>
404                                                                                           <AbsDimension x="0" y="0"/>
405                                                                                   </Offset>
406                                                                           </Anchor>
407                                                                   </Anchors>
408                                                           </Frame>
409                                                           <Frame name="$parentListButton3" inherits="LFRFrameDungeonChoiceTemplate" id="3">
410                                                                   <Anchors>
411                                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton2" relativePoint="BOTTOMLEFT">
412                                                                                   <Offset>
413                                                                                           <AbsDimension x="0" y="0"/>
414                                                                                   </Offset>
415                                                                           </Anchor>
416                                                                   </Anchors>
417                                                           </Frame>
418                                                           <Frame name="$parentListButton4" inherits="LFRFrameDungeonChoiceTemplate" id="4">
419                                                                   <Anchors>
420                                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton3" relativePoint="BOTTOMLEFT">
421                                                                                   <Offset>
422                                                                                           <AbsDimension x="0" y="0"/>
423                                                                                   </Offset>
424                                                                           </Anchor>
425                                                                   </Anchors>
426                                                           </Frame>
427                                                           <Frame name="$parentListButton5" inherits="LFRFrameDungeonChoiceTemplate" id="5">
428                                                                   <Anchors>
429                                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton4" relativePoint="BOTTOMLEFT">
430                                                                                   <Offset>
431                                                                                           <AbsDimension x="0" y="0"/>
432                                                                                   </Offset>
433                                                                           </Anchor>
434                                                                   </Anchors>
435                                                           </Frame>
436                                                           <Frame name="$parentListButton6" inherits="LFRFrameDungeonChoiceTemplate" id="6">
437                                                                   <Anchors>
438                                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton5" relativePoint="BOTTOMLEFT">
439                                                                                   <Offset>
440                                                                                           <AbsDimension x="0" y="0"/>
441                                                                                   </Offset>
442                                                                           </Anchor>
443                                                                   </Anchors>
444                                                           </Frame>
445                                                           <Frame name="$parentListButton7" inherits="LFRFrameDungeonChoiceTemplate" id="7">
446                                                                   <Anchors>
447                                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton6" relativePoint="BOTTOMLEFT">
448                                                                                   <Offset>
449                                                                                           <AbsDimension x="0" y="0"/>
450                                                                                   </Offset>
451                                                                           </Anchor>
452                                                                   </Anchors>
453                                                           </Frame>
454                                                           <Frame name="$parentListButton8" inherits="LFRFrameDungeonChoiceTemplate" id="8">
455                                                                   <Anchors>
456                                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton7" relativePoint="BOTTOMLEFT">
457                                                                                   <Offset>
458                                                                                           <AbsDimension x="0" y="0"/>
459                                                                                   </Offset>
460                                                                           </Anchor>
461                                                                   </Anchors>
462                                                           </Frame>
463                                                           <Frame name="$parentListButton9" inherits="LFRFrameDungeonChoiceTemplate" id="9">
464                                                                   <Anchors>
465                                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton8" relativePoint="BOTTOMLEFT">
466                                                                                   <Offset>
467                                                                                           <AbsDimension x="0" y="0"/>
468                                                                                   </Offset>
469                                                                           </Anchor>
470                                                                   </Anchors>
471                                                           </Frame>
472                                                           <Frame name="$parentListButton10" inherits="LFRFrameDungeonChoiceTemplate" id="10">
473                                                                   <Anchors>
474                                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton9" relativePoint="BOTTOMLEFT">
475                                                                                   <Offset>
476                                                                                           <AbsDimension x="0" y="0"/>
477                                                                                   </Offset>
478                                                                           </Anchor>
479                                                                   </Anchors>
480                                                           </Frame>
481                                                           <Frame name="$parentListButton11" inherits="LFRFrameDungeonChoiceTemplate" id="11">
482                                                                   <Anchors>
483                                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton10" relativePoint="BOTTOMLEFT">
484                                                                                   <Offset>
485                                                                                           <AbsDimension x="0" y="0"/>
486                                                                                   </Offset>
487                                                                           </Anchor>
488                                                                   </Anchors>
489                                                           </Frame>
490                                                           <Frame name="$parentListButton12" inherits="LFRFrameDungeonChoiceTemplate" id="12">
491                                                                   <Anchors>
492                                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton11" relativePoint="BOTTOMLEFT">
493                                                                                   <Offset>
494                                                                                           <AbsDimension x="0" y="0"/>
495                                                                                   </Offset>
496                                                                           </Anchor>
497                                                                   </Anchors>
498                                                           </Frame>
499                                                           <Frame name="$parentListButton13" inherits="LFRFrameDungeonChoiceTemplate" id="13">
500                                                                   <Anchors>
501                                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton12" relativePoint="BOTTOMLEFT">
502                                                                                   <Offset>
503                                                                                           <AbsDimension x="0" y="0"/>
504                                                                                   </Offset>
505                                                                           </Anchor>
506                                                                   </Anchors>
507                                                           </Frame>
508                                                           <Frame name="$parentListButton14" inherits="LFRFrameDungeonChoiceTemplate" id="14">
509                                                                   <Anchors>
510                                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton13" relativePoint="BOTTOMLEFT">
511                                                                                   <Offset>
512                                                                                           <AbsDimension x="0" y="0"/>
513                                                                                   </Offset>
514                                                                           </Anchor>
515                                                                   </Anchors>
516                                                           </Frame>
  323                                                         <!-- Other 13 ListButtons are made in LFRFrame_OnLoad -->
 
519                                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton1" relativePoint="TOPLEFT">
520                                                                                   <Offset>
521                                                                                           <AbsDimension x="0" y="2"/>
522                                                                                   </Offset>
523                                                                           </Anchor>
524                                                                           <Anchor point="BOTTOMRIGHT" relativeTo="$parentListButton14" relativePoint="BOTTOMRIGHT">
525                                                                                   <Offset>
526                                                                                           <AbsDimension x="1" y="-2"/>
527                                                                                   </Offset>
528                                                                           </Anchor>
  326                                                                         <Anchor point="TOPLEFT" relativeTo="$parentListButton1" relativePoint="TOPLEFT" x="0" y="2"/>
  327                                                                         <Anchor point="BOTTOMRIGHT" relativeTo="$parentListButton14" relativePoint="BOTTOMRIGHT" x="1" y="-2"/>
 
533                                                                                           <Size>
534                                                                                                   <AbsDimension x="31" y="200"/>
535                                                                                           </Size>
  332                                                                                         <Size x="31" y="200"/>
 
537                                                                                                   <Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
538                                                                                                           <Offset>
539                                                                                                                   <AbsDimension x="-2" y="5"/>
540                                                                                                           </Offset>
541                                                                                                   </Anchor>
  334                                                                                                 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="-2" y="5"/>
 
546                                                                                           <Size>
547                                                                                                   <AbsDimension x="31" y="106"/>
548                                                                                           </Size>
  339                                                                                         <Size x="31" y="106"/>
 
550                                                                                                   <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
551                                                                                                           <Offset>
552                                                                                                                   <AbsDimension x="-2" y="-2"/>
553                                                                                                           </Offset>
554                                                                                                   </Anchor>
  341                                                                                                 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="-2" y="-2"/>
 
574                                                   <Size>
575                                                           <AbsDimension x="125" y="22"/>
576                                                   </Size>
  361                                                 <Size x="125" y="22"/>
 
578                                                           <Anchor point="BOTTOMLEFT">
579                                                                   <Offset>
580                                                                           <AbsDimension x="21" y="12"/>
581                                                                   </Offset>
582                                                           </Anchor>
  363                                                         <Anchor point="BOTTOMLEFT" x="5" y="4"/>
 
596                                                   <Size>
597                                                           <AbsDimension x="115" y="22"/>
598                                                   </Size>
  377                                                 <Size x="115" y="22"/>
 
600                                                           <Anchor point="BOTTOMRIGHT">
601                                                                   <Offset>
602                                                                           <AbsDimension x="-7" y="12"/>
603                                                                   </Offset>
604                                                           </Anchor>
  379                                                         <Anchor point="BOTTOMRIGHT" x="-6" y="4"/>
 
618                                                   <Size>
619                                                           <AbsDimension x="327" y="282"/>
620                                                   </Size>
  393                                                 <Size x="327" y="282"/>
 
622                                                           <Anchor point="BOTTOMRIGHT">
623                                                                   <Offset>
624                                                                           <AbsDimension x="-7" y="33"/>
625                                                                   </Offset>
626                                                           </Anchor>
  395                                                         <Anchor point="BOTTOMRIGHT" x="-7" y="33"/>
 
636                                                                           <Size>
637                                                                                   <AbsDimension x="300" y="0"/>
638                                                                           </Size>
  405                                                                         <Size x="300" y="0"/>
 
640                                                                                   <Anchor point="TOP">
641                                                                                           <Offset>
642                                                                                                   <AbsDimension x="-0" y="-70"/>
643                                                                                           </Offset>
644                                                                                   </Anchor>
  407                                                                                 <Anchor point="TOP" x="-0" y="-70"/>
 
651                                                                   <Size>
652                                                                           <AbsDimension x="153" y="22"/>
653                                                                   </Size>
  414                                                                 <Size x="153" y="22"/>
 
655                                                                           <Anchor point="TOP" relativeTo="$parentDescription" relativePoint="BOTTOM">
656                                                                                   <Offset>
657                                                                                           <AbsDimension x="0" y="-10"/>
658                                                                                   </Offset>
659                                                                           </Anchor>
  416                                                                         <Anchor point="TOP" relativeTo="$parentDescription" relativePoint="BOTTOM" x="0" y="-10"/>
 
682                           <Frame name="LFRBrowseFrame" setAllPoints="true" hidden="true">
  439                         <Frame name="LFRBrowseFrame" useParentLevel="true" setAllPoints="true" hidden="true">
 
685                                                   <Texture name="$parentLayout" file="Interface\LFGFrame\UI-LFR-FRAME-BROWSE">
686                                                           <Size>
687                                                                   <AbsDimension x="512" y="512"/>
  442                                                 <!-- <Texture name="$parentLayout" file="Interface\LFGFrame\UI-LFR-FRAME-BROWSE">
  443                                                         <Size x="512" y="512"/>
 
688                                                           </Size>
  448                                         </Layer>
  449                                         <Layer level="BACKGROUND">
  450                                                 <Texture name="$parentTop" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
  451                                                         <Size x="29" y="102"/>
 
690                                                                   <Anchor point="TOPLEFT">
691                                                                           <Offset>
692                                                                                   <AbsDimension x="0" y="0"/>
693                                                                           </Offset>
694                                                                   </Anchor>
  453                                                                 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="-33" y="-82"/>
 
  455                                                         <TexCoords left="0" right="0.445" top="0" bottom="0.4"/>
 
697                                           </Layer>
698                                           <Layer level="ARTWORK">
699                                                   <FontString name="$parentTitleText" inherits="GameFontNormal" text="LOOKING_FOR_RAID">
  457                                                 <Texture name="$parentBottom" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
  458                                                         <Size x="29" y="106"/>
 
701                                                                   <Anchor point="TOP">
702                                                                           <Offset>
703                                                                                   <AbsDimension x="12" y="-18"/>
704                                                                           </Offset>
705                                                                   </Anchor>
  460                                                                 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="-33" y="27"/>
  461                                                         </Anchors>
  462                                                         <TexCoords left="0.515625" right="0.960625" top="0" bottom="0.4140625"/>
  463                                                 </Texture>
  464                                                 <Texture name="$parentMiddle" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
  465                                                         <Size x="29" y="1"/>
  466                                                         <Anchors>
  467                                                                 <Anchor point="TOP" relativeTo="$parentTop" relativePoint="BOTTOM"/>
  468                                                                 <Anchor point="BOTTOM" relativeTo="$parentBottom" relativePoint="TOP"/>
 
707                                                   </FontString>
  470                                                         <TexCoords left="0" right="0.445" top=".75" bottom="1.0"/>
  471                                                 </Texture>
 
713                                                           <Anchor point="TOPLEFT">
714                                                                   <Offset>
715                                                                           <AbsDimension x="151" y="-39"/>
716                                                                   </Offset>
717                                                           </Anchor>
  477                                                         <Anchor point="TOPLEFT" x="136" y="-25"/>
 
722                                                                           <Size>
723                                                                                   <AbsDimension x="90" y="12"/>
724                                                                           </Size>
  482                                                                         <Size x="90" y="12"/>
 
726                                                                                   <Anchor point="RIGHT" relativePoint="LEFT">
727                                                                                           <Offset>
728                                                                                                   <AbsDimension x="10" y="2"/>
729                                                                                           </Offset>
730                                                                                   </Anchor>
  484                                                                                 <Anchor point="RIGHT" relativePoint="LEFT" x="10" y="2"/>
 
741                                                           <Anchor point="TOPLEFT">
742                                                                   <Offset>
743                                                                           <AbsDimension x="26" y="-73"/>
744                                                                   </Offset>
745                                                           </Anchor>
  495                                                         <Anchor point="TOPLEFT" x="10" y="-59"/>
 
756                                                           <Anchor point="LEFT" relativeTo="$parentColumnHeader1" relativePoint="RIGHT">
757                                                                   <Offset>
758                                                                           <AbsDimension x="-2" y="0"/>
759                                                                   </Offset>
760                                                           </Anchor>
  506                                                         <Anchor point="LEFT" relativeTo="$parentColumnHeader1" relativePoint="RIGHT" x="-2" y="0"/>
 
771                                                           <Anchor point="LEFT" relativeTo="$parentColumnHeader2" relativePoint="RIGHT">
772                                                                   <Offset>
773                                                                           <AbsDimension x="-2" y="0"/>
774                                                                   </Offset>
775                                                           </Anchor>
  517                                                         <Anchor point="LEFT" relativeTo="$parentColumnHeader2" relativePoint="RIGHT" x="-2" y="0"/>
 
786                                                           <Anchor point="LEFT" relativeTo="$parentColumnHeader3" relativePoint="RIGHT">
787                                                                   <Offset>
788                                                                           <AbsDimension x="-2" y="0"/>
789                                                                   </Offset>
790                                                           </Anchor>
  528                                                         <Anchor point="LEFT" relativeTo="$parentColumnHeader3" relativePoint="RIGHT" x="-2" y="0"/>
 
802                                                           <Anchor point="LEFT" relativeTo="$parentColumnHeader4" relativePoint="RIGHT">
803                                                                   <Offset>
804                                                                           <AbsDimension x="-2" y="0"/>
805                                                                   </Offset>
806                                                           </Anchor>
  540                                                         <Anchor point="LEFT" relativeTo="$parentColumnHeader4" relativePoint="RIGHT" x="-2" y="0"/>
 
818                                                           <Anchor point="LEFT" relativeTo="$parentColumnHeader5" relativePoint="RIGHT">
819                                                                   <Offset>
820                                                                           <AbsDimension x="-2" y="0"/>
821                                                                   </Offset>
822                                                           </Anchor>
  552                                                         <Anchor point="LEFT" relativeTo="$parentColumnHeader5" relativePoint="RIGHT" x="-2" y="0"/>
 
834                                                           <Anchor point="LEFT" relativeTo="$parentColumnHeader6" relativePoint="RIGHT">
835                                                                   <Offset>
836                                                                           <AbsDimension x="-2" y="0"/>
837                                                                   </Offset>
838                                                           </Anchor>
  564                                                         <Anchor point="LEFT" relativeTo="$parentColumnHeader6" relativePoint="RIGHT" x="-2" y="0"/>
 
850                                                           <Anchor point="TOPLEFT">
851                                                                   <Offset>
852                                                                           <AbsDimension x="20" y="-100"/>
853                                                                   </Offset>
854                                                           </Anchor>
  576                                                         <Anchor point="TOPLEFT" x="3" y="-86"/>
 
857                                           <Button name="$parentListButton2" inherits="LFRBrowseButtonTemplate" id="2">
858                                                   <Anchors>
859                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton1" relativePoint="BOTTOMLEFT">
860                                                                   <Offset>
861                                                                           <AbsDimension x="0" y="0"/>
862                                                                   </Offset>
863                                                           </Anchor>
864                                                   </Anchors>
865                                           </Button>
866                                           <Button name="$parentListButton3" inherits="LFRBrowseButtonTemplate" id="3">
867                                                   <Anchors>
868                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton2" relativePoint="BOTTOMLEFT">
869                                                                   <Offset>
870                                                                           <AbsDimension x="0" y="0"/>
871                                                                   </Offset>
872                                                           </Anchor>
873                                                   </Anchors>
874                                           </Button>
875                                           <Button name="$parentListButton4" inherits="LFRBrowseButtonTemplate" id="4">
876                                                   <Anchors>
877                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton3" relativePoint="BOTTOMLEFT">
878                                                                   <Offset>
879                                                                           <AbsDimension x="0" y="0"/>
880                                                                   </Offset>
881                                                           </Anchor>
882                                                   </Anchors>
883                                           </Button>
884                                           <Button name="$parentListButton5" inherits="LFRBrowseButtonTemplate" id="5">
885                                                   <Anchors>
886                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton4" relativePoint="BOTTOMLEFT">
887                                                                   <Offset>
888                                                                           <AbsDimension x="0" y="0"/>
889                                                                   </Offset>
890                                                           </Anchor>
891                                                   </Anchors>
892                                           </Button>
893                                           <Button name="$parentListButton6" inherits="LFRBrowseButtonTemplate" id="6">
894                                                   <Anchors>
895                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton5" relativePoint="BOTTOMLEFT">
896                                                                   <Offset>
897                                                                           <AbsDimension x="0" y="0"/>
898                                                                   </Offset>
899                                                           </Anchor>
900                                                   </Anchors>
901                                           </Button>
902                                           <Button name="$parentListButton7" inherits="LFRBrowseButtonTemplate" id="7">
903                                                   <Anchors>
904                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton6" relativePoint="BOTTOMLEFT">
905                                                                   <Offset>
906                                                                           <AbsDimension x="0" y="0"/>
907                                                                   </Offset>
908                                                           </Anchor>
909                                                   </Anchors>
910                                           </Button>
911                                           <Button name="$parentListButton8" inherits="LFRBrowseButtonTemplate" id="8">
912                                                   <Anchors>
913                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton7" relativePoint="BOTTOMLEFT">
914                                                                   <Offset>
915                                                                           <AbsDimension x="0" y="0"/>
916                                                                   </Offset>
917                                                           </Anchor>
918                                                   </Anchors>
919                                           </Button>
920                                           <Button name="$parentListButton9" inherits="LFRBrowseButtonTemplate" id="9">
921                                                   <Anchors>
922                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton8" relativePoint="BOTTOMLEFT">
923                                                                   <Offset>
924                                                                           <AbsDimension x="0" y="0"/>
925                                                                   </Offset>
926                                                           </Anchor>
927                                                   </Anchors>
928                                           </Button>
929                                           <Button name="$parentListButton10" inherits="LFRBrowseButtonTemplate" id="10">
930                                                   <Anchors>
931                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton9" relativePoint="BOTTOMLEFT">
932                                                                   <Offset>
933                                                                           <AbsDimension x="0" y="0"/>
934                                                                   </Offset>
935                                                           </Anchor>
936                                                   </Anchors>
937                                           </Button>
938                                           <Button name="$parentListButton11" inherits="LFRBrowseButtonTemplate" id="11">
939                                                   <Anchors>
940                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton10" relativePoint="BOTTOMLEFT">
941                                                                   <Offset>
942                                                                           <AbsDimension x="0" y="0"/>
943                                                                   </Offset>
944                                                           </Anchor>
945                                                   </Anchors>
946                                           </Button>
947                                           <Button name="$parentListButton12" inherits="LFRBrowseButtonTemplate" id="12">
948                                                   <Anchors>
949                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton11" relativePoint="BOTTOMLEFT">
950                                                                   <Offset>
951                                                                           <AbsDimension x="0" y="0"/>
952                                                                   </Offset>
953                                                           </Anchor>
954                                                   </Anchors>
955                                           </Button>
956                                           <Button name="$parentListButton13" inherits="LFRBrowseButtonTemplate" id="13">
957                                                   <Anchors>
958                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton12" relativePoint="BOTTOMLEFT">
959                                                                   <Offset>
960                                                                           <AbsDimension x="0" y="0"/>
961                                                                   </Offset>
962                                                           </Anchor>
963                                                   </Anchors>
964                                           </Button>
965                                           <Button name="$parentListButton14" inherits="LFRBrowseButtonTemplate" id="14">
966                                                   <Anchors>
967                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton13" relativePoint="BOTTOMLEFT">
968                                                                   <Offset>
969                                                                           <AbsDimension x="0" y="0"/>
970                                                                   </Offset>
971                                                           </Anchor>
972                                                   </Anchors>
973                                           </Button>
974                                           <Button name="$parentListButton15" inherits="LFRBrowseButtonTemplate" id="15">
975                                                   <Anchors>
976                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton14" relativePoint="BOTTOMLEFT">
977                                                                   <Offset>
978                                                                           <AbsDimension x="0" y="0"/>
979                                                                   </Offset>
980                                                           </Anchor>
981                                                   </Anchors>
982                                           </Button>
983                                           <Button name="$parentListButton16" inherits="LFRBrowseButtonTemplate" id="16">
984                                                   <Anchors>
985                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton15" relativePoint="BOTTOMLEFT">
986                                                                   <Offset>
987                                                                           <AbsDimension x="0" y="0"/>
988                                                                   </Offset>
989                                                           </Anchor>
990                                                   </Anchors>
991                                           </Button>
992                                           <Button name="$parentListButton17" inherits="LFRBrowseButtonTemplate" id="17">
993                                                   <Anchors>
994                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton16" relativePoint="BOTTOMLEFT">
995                                                                   <Offset>
996                                                                           <AbsDimension x="0" y="0"/>
997                                                                   </Offset>
998                                                           </Anchor>
999                                                   </Anchors>
1000                                           </Button>
1001                                           <Button name="$parentListButton18" inherits="LFRBrowseButtonTemplate" id="18">
1002                                                   <Anchors>
1003                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton17" relativePoint="BOTTOMLEFT">
1004                                                                   <Offset>
1005                                                                           <AbsDimension x="0" y="0"/>
1006                                                                   </Offset>
1007                                                           </Anchor>
1008                                                   </Anchors>
1009                                           </Button>
1010                                           <Button name="$parentListButton19" inherits="LFRBrowseButtonTemplate" id="19">
1011                                                   <Anchors>
1012                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton18" relativePoint="BOTTOMLEFT">
1013                                                                   <Offset>
1014                                                                           <AbsDimension x="0" y="0"/>
1015                                                                   </Offset>
1016                                                           </Anchor>
1017                                                   </Anchors>
1018                                           </Button>
  579                                         <!-- Other 18 ListButtons are made in LFRFrame_OnLoad -->
 
1021                                                           <Anchor point="TOPLEFT" relativeTo="$parentListButton1" relativePoint="TOPLEFT">
1022                                                                   <Offset>
1023                                                                           <AbsDimension x="0" y="0"/>
1024                                                                   </Offset>
1025                                                           </Anchor>
1026                                                           <Anchor point="BOTTOMRIGHT" relativeTo="$parentListButton19" relativePoint="BOTTOMRIGHT">
1027                                                                   <Offset>
1028                                                                           <AbsDimension x="5" y="-2"/>
1029                                                                   </Offset>
1030                                                           </Anchor>
  582                                                         <Anchor point="TOPLEFT" relativeTo="$parentListButton1" relativePoint="TOPLEFT" x="0" y="0"/>
  583                                                         <Anchor point="BOTTOMRIGHT" relativeTo="$parentListButton19" relativePoint="BOTTOMRIGHT" x="5" y="-2"/>
 
1040                                                   <Size>
1041                                                           <AbsDimension x="113" y="22"/>
1042                                                   </Size>
  593                                                 <Size x="113" y="22"/>
 
1044                                                           <Anchor point="BOTTOMLEFT">
1045                                                                   <Offset>
1046                                                                           <AbsDimension x="25" y="10"/>
1047                                                                   </Offset>
1048                                                           </Anchor>
  595                                                         <Anchor point="BOTTOMLEFT" x="5" y="4"/>
 
1058                                                   <Size>
1059                                                           <AbsDimension x="100" y="22"/>
1060                                                   </Size>
  605                                                 <Size x="100" y="22"/>
 
1062                                                           <Anchor point="LEFT" relativeTo="$parentSendMessageButton" relativePoint="RIGHT">
1063                                                                   <Offset>
1064                                                                           <AbsDimension x="3" y="0"/>
1065                                                                   </Offset>
1066                                                           </Anchor>
  607                                                         <Anchor point="LEFT" relativeTo="$parentSendMessageButton" relativePoint="RIGHT" x="3" y="0"/>
 
1076                                                   <Size>
1077                                                           <AbsDimension x="104" y="22"/>
1078                                                   </Size>
  617                                                 <Size x="104" y="22"/>
 
1080                                                           <Anchor point="LEFT" relativeTo="$parentInviteButton" relativePoint="RIGHT">
1081                                                                   <Offset>
1082                                                                           <AbsDimension x="3" y="0"/>
1083                                                                   </Offset>
1084                                                           </Anchor>
  619                                                         <Anchor point="LEFT" relativeTo="$parentInviteButton" relativePoint="RIGHT" x="3" y="0"/>
 
1102                           <Button name="$parentTab1" inherits="CharacterFrameTabButtonTemplate" id="1" text="CHOOSE_RAID">
  637                         <CheckButton name="$parentSideTab1" inherits="LFRFrameSideTabTemplate" id="1">
 
1104                                           <Anchor point="BOTTOMLEFT">
1105                                                   <Offset>
1106                                                           <AbsDimension x="20" y="-26"/>
1107                                                   </Offset>
1108                                           </Anchor>
  639                                         <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPRIGHT" x="0" y="-35"/>
 
1111                                           <OnEnter>
1112                                                   GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
1113                                                   GameTooltip:SetText(CHOOSE_RAID, 1.0,1.0,1.0 );
1114                                           </OnEnter>
1115                                           <OnClick>
1116                                                   LFRFrame_SetActiveTab(1);
1117                                                   PlaySound("igCharacterInfoTab");
1118                                           </OnClick>
1119                                           <OnLeave function="GameTooltip_Hide"/>
  642                                         <OnLoad>
  643                                                 self.tooltip = CHOOSE_RAID;
  644                                                 self:SetNormalTexture("Interface\\Icons\\INV_Misc_FrostEmblem_01");
  645                                         </OnLoad>
 
1121               </Button>
1122               <Button name="$parentTab2" inherits="CharacterFrameTabButtonTemplate" id="2" text="BROWSE">
  647                         </CheckButton>
  648                         <CheckButton name="$parentSideTab2" inherits="LFRFrameSideTabTemplate" id="2">
 
1124                      <Anchor point="LEFT" relativeTo="$parentTab1" relativePoint="RIGHT">
1125                           <Offset>
1126                               <AbsDimension x="-15" y="0"/>
1127                           </Offset>
1128                       </Anchor>
  650                                         <Anchor point="TOPLEFT" relativeTo="$parentSideTab1" relativePoint="BOTTOMLEFT" x="0" y="-15"/>
 
1131                                           <OnEnter>
1132                                                   GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
1133                                                   GameTooltip:SetText(BROWSE, 1.0,1.0,1.0 );
1134                                           </OnEnter>
1135                                           <OnClick>
1136                                                   LFRFrame_SetActiveTab(2);
1137                                                   PlaySound("igCharacterInfoTab");
1138                                           </OnClick>
1139                                           <OnLeave function="GameTooltip_Hide"/>
  653                                         <OnLoad>
  654                                                 self.tooltip = BROWSE;
  655                                                 self:SetNormalTexture("Interface\\Icons\\INV_Enchant_FormulaSuperior_01");
  656                                         </OnLoad>
 
1141               </Button>
  658                         </CheckButton>
 
1147                                   PlaySound("igCharacterInfoOpen");
 
1151                                   PlaySound("igCharacterInfoClose");
   
File: FrameXML\LootFrame.xml  
179                                           <Anchor point="TOPLEFT">
180                                                   <Offset>
181                                                           <AbsDimension x="24" y="-80"/>
182                                                   </Offset>
183                                           </Anchor>
  179                                         <Anchor point="TOPLEFT" x="24" y="-80"/>
 
188                                           <Anchor point="TOP" relativeTo="LootButton1" relativePoint="BOTTOM">
189                                                   <Offset>
190                                                           <AbsDimension x="0" y="-4"/>
191                                                   </Offset>
192                                           </Anchor>
  185                                         <Anchor point="TOPLEFT" x="24" y="-121"/>
 
197                                           <Anchor point="TOP" relativeTo="LootButton2" relativePoint="BOTTOM">
198                                                   <Offset>
199                                                           <AbsDimension x="0" y="-4"/>
200                                                   </Offset>
201                                           </Anchor>
  190                                         <Anchor point="TOPLEFT" x="24" y="-162"/>
 
206                                           <Anchor point="TOP" relativeTo="LootButton3" relativePoint="BOTTOM">
207                                                   <Offset>
208                                                           <AbsDimension x="0" y="-4"/>
209                                                   </Offset>
210                                           </Anchor>
  195                                         <Anchor point="TOPLEFT" x="24" y="-203"/>
   
File: FrameXML\MacOptionsFrame.lua  
  10 MacOptionsFrameCheckButtons["MAC_DISABLE_OS_SHORTCUTS"] = { index = 9, cvar = "MacDisableOsShortcuts", tooltipText = MAC_DISABLE_OS_SHORTCUTS_TOOLTIP};
  11 MacOptionsFrameCheckButtons["MAC_SWAP_CONTROL_AND_COMMAND"] = { index = 10, cvar = "MacSwapControlAndCommand", tooltipText = MAC_SWAP_CONTROL_AND_COMMAND_TOOLTIP};
   
File: FrameXML\MacOptionsFrame.xml  
6                           <AbsDimension x="426" y="455"/>
  6                         <AbsDimension x="426" y="530"/>
 
408                                           <AbsDimension x="400" y="80"/>
  408                                         <AbsDimension x="400" y="70"/>
 
  447                         <Frame name="MacOptionsFrameMisc" inherits="OptionsBoxTemplate">
  448                                 <Size>
  449                                         <AbsDimension x="400" y="70"/>
  450                                 </Size>
  451                                 <Anchors>
  452                                         <Anchor point="TOPLEFT" relativeTo="MacOptionsITunesRemote" relativePoint="BOTTOMLEFT">
  453                                                 <Offset>
  454                                                         <AbsDimension x="0" y="-18"/>
  455                                                 </Offset>
  456                                         </Anchor>
  457                                 </Anchors>
  458                                 <Scripts>
  459                                         <OnLoad>
  460                                                 self:SetBackdropBorderColor(0.4, 0.4, 0.4);
  461                                                 self:SetBackdropColor(0.15, 0.15, 0.15);
  462                                                 _G[self:GetName().."Title"]:SetText(MAC_OPTIONS_MISC);
  463                                         </OnLoad>
  464                                 </Scripts>
  465                                 <Frames>
  466                                         <CheckButton name="MacOptionsFrameCheckButton9" inherits="OptionsCheckButtonTemplate">
  467                                                 <Anchors>
  468                                                         <Anchor point="TOPLEFT" relativeTo="MacOptionsFrameMisc" relativePoint="TOPLEFT">
  469                                                                 <Offset>
  470                                                                         <AbsDimension x="12" y="-10"/>
  471                                                                 </Offset>
  472                                                         </Anchor>
  473                                                 </Anchors>
  474                                         </CheckButton>
  475                                         <CheckButton name="MacOptionsFrameCheckButton10" inherits="OptionsCheckButtonTemplate">
  476                                                 <Anchors>
  477                                                         <Anchor point="TOPLEFT" relativeTo="MacOptionsFrameCheckButton9" relativePoint="TOPLEFT">
  478                                                                 <Offset>
  479                                                                         <AbsDimension x="0" y="-25"/>
  480                                                                 </Offset>
  481                                                         </Anchor>
  482                                                 </Anchors>
  483                                         </CheckButton>
  484                                 </Frames>
  485                         </Frame>
   
File: FrameXML\MailFrame.lua  
  25         self.maxTabWidth = self:GetWidth() / 3;
   
File: FrameXML\MailFrame.xml  
  170                                                 self:RegisterEvent("MAIL_INBOX_UPDATE");
 
  172                                         <OnEvent>
  173                                                 if (GetMouseFocus() == self) then
  174                                                         InboxFrame_Update();
  175                                                         InboxFrameItem_OnEnter(self);
  176                                                 end
  177                                         </OnEvent>
   
File: FrameXML\MainMenuBarBagButtons.lua  
  147         elseif ( event == "INVENTORY_SEARCH_UPDATE" ) then
  148                 if ( IsContainerFiltered(BACKPACK_CONTAINER) ) then
  149                         self.searchOverlay:Show();
  150                 else
  151                         self.searchOverlay:Hide();
  152                 end
   
File: FrameXML\MainMenuBarBagButtons.xml  
  34                                 self:RegisterEvent("INVENTORY_SEARCH_UPDATE");
 
  45                                 elseif ( event == "INVENTORY_SEARCH_UPDATE" ) then
  46                                         if ( IsContainerFiltered(self:GetID() - CharacterBag0Slot:GetID() + 1) ) then
  47                                                 self.searchOverlay:Show();
  48                                         else
  49                                                 self.searchOverlay:Hide();
  50                                         end
 
49                                   PaperDollItemSlotButton_OnShow(self);
  56                                 PaperDollItemSlotButton_OnShow(self, true);
 
  113                                 self:RegisterEvent("INVENTORY_SEARCH_UPDATE");
   
File: FrameXML\MainMenuBarMicroButtons.lua  
  1 MICRO_BUTTONS = {
  2         "CharacterMicroButton",
  3         "SpellbookMicroButton",
  4         "TalentMicroButton",
  5         "AchievementMicroButton",
  6         "QuestLogMicroButton",
  7         "GuildMicroButton",
  8         "PVPMicroButton",
  9         "LFDMicroButton",
  10         "EJMicroButton",
  11         "RaidMicroButton",
  12         "MainMenuMicroButton",
  13         "HelpMicroButton",
  14         }
 
23           CharacterMicroButton:SetParent(parent);
24           SpellbookMicroButton:SetParent(parent);
25           TalentMicroButton:SetParent(parent);
26           QuestLogMicroButton:SetParent(parent);
27           MainMenuMicroButton:SetParent(parent);
28           PVPMicroButton:SetParent(parent);
29           GuildMicroButton:SetParent(parent);
30           LFDMicroButton:SetParent(parent);
31           HelpMicroButton:SetParent(parent);
32           AchievementMicroButton:SetParent(parent);
  39         for i=1, #MICRO_BUTTONS do
  40                 _G[MICRO_BUTTONS[i]]:SetParent(parent);
  41         end
 
138           if ( EncounterJournal:IsShown() ) then
  147         if ( EncounterJournal and EncounterJournal:IsShown() ) then
 
145           if ( RaidFrame:IsShown() and FriendsFrame:IsShown() ) then
  154         if ( RaidParentFrame:IsShown() ) then
   
File: FrameXML\MainMenuBarMicroButtons.xml  
364           <Button name="EJMicroButton" inherits="MainMenuBarMicroButton" parent="MainMenuBarArtFrame">
  364         <Button name="RaidMicroButton" inherits="MainMenuBarMicroButton" parent="MainMenuBarArtFrame">
 
367                                   <Offset>
368                                           <AbsDimension x="-3" y="0"/>
369                                   </Offset>
370                           </Anchor>
371                   </Anchors>
372                   <Scripts>
373                           <OnLoad>
374                                   LoadMicroButtonTextures(self, "EJ");
375                                   SetDesaturation(self:GetDisabledTexture(), true);
376                                   self.tooltipText = MicroButtonTooltipText(ENCOUNTER_JOURNAL, "TOGGLEENCOUNTERJOURNAL");
377                                   self.newbieText = NEWBIE_TOOLTIP_ENCOUNTER_JOURNAL;
378                                   self.minLevel = SHOW_LFD_LEVEL;
379                           </OnLoad>
380                           <OnEvent>
381                                   self.tooltipText = MicroButtonTooltipText(ENCOUNTER_JOURNAL, "TOGGLEENCOUNTERJOURNAL");
382                                   self.newbieText = NEWBIE_TOOLTIP_ENCOUNTER_JOURNAL;
383                           </OnEvent>
384                           <OnClick>
385                                   ToggleFrame(EncounterJournal);
386                           </OnClick>
387                   </Scripts>
388           </Button>
389           <Button name="RaidMicroButton" inherits="MainMenuBarMicroButton" parent="MainMenuBarArtFrame">
390                   <Anchors>
391                           <Anchor point="BOTTOMLEFT" relativeTo="EJMicroButton" relativePoint="BOTTOMRIGHT">
 
410                                   ToggleFriendsFrame(4);
  385                                 ToggleRaidFrame();
 
  389         <Button name="EJMicroButton" inherits="MainMenuBarMicroButton" parent="MainMenuBarArtFrame">
  390                 <Anchors>
  391                         <Anchor point="BOTTOMLEFT" relativeTo="RaidMicroButton" relativePoint="BOTTOMRIGHT">
  392                                 <Offset>
  393                                         <AbsDimension x="-3" y="0"/>
  394                                 </Offset>
  395                         </Anchor>
  396                 </Anchors>
  397                 <Scripts>
  398                         <OnLoad>
  399                                 LoadMicroButtonTextures(self, "EJ");
  400                                 SetDesaturation(self:GetDisabledTexture(), true);
  401                                 self.tooltipText = MicroButtonTooltipText(ENCOUNTER_JOURNAL, "TOGGLEENCOUNTERJOURNAL");
  402                                 self.newbieText = NEWBIE_TOOLTIP_ENCOUNTER_JOURNAL;
  403                                 self.minLevel = SHOW_LFD_LEVEL;
  404                         </OnLoad>
  405                         <OnEvent>
  406                                 self.tooltipText = MicroButtonTooltipText(ENCOUNTER_JOURNAL, "TOGGLEENCOUNTERJOURNAL");
  407                                 self.newbieText = NEWBIE_TOOLTIP_ENCOUNTER_JOURNAL;
  408                         </OnEvent>
  409                         <OnClick>
  410                                 ToggleEncounterJournal();
  411                         </OnClick>
  412                 </Scripts>
  413         </Button>
 
416                           <Anchor point="BOTTOMLEFT" relativeTo="RaidMicroButton" relativePoint="BOTTOMRIGHT">
  416                         <Anchor point="BOTTOMLEFT" relativeTo="EJMicroButton" relativePoint="BOTTOMRIGHT">
   
File: FrameXML\Minimap.lua  
  8 HUNTER_TRACKING = 1;
  9 TOWNSFOLK = 2;
 
260                   if ( not LFDDungeonReadyPopup:IsShown() ) then
  262                 if ( not LFGDungeonReadyPopup:IsShown() ) then
 
262                           StaticPopupSpecial_Show(LFDDungeonReadyPopup);
  264                         StaticPopupSpecial_Show(LFGDungeonReadyPopup);
 
267                   ToggleLFRParentFrame();
  269                 ToggleFriendsFrame(4);
 
274                   LFDSearchStatus:Show();
  276                 LFGSearchStatus:Show();
 
  299                 local dungeonID = GetPartyLFGID();
  300                 local numEncounters, numCompleted = GetLFGDungeonNumEncounters(dungeonID);
  301                 if ( numCompleted > 0 ) then
  302                         GameTooltip:AddLine(" ");
  303                         GameTooltip:AddLine(string.format(BOSSES_KILLED, numCompleted, numEncounters));
  304                         for i=1, numEncounters do
  305                                 local bossName, texture, isKilled = GetLFGDungeonEncounterInfo(dungeonID, i);
  306                                 if ( isKilled ) then
  307                                         GameTooltip:AddLine(bossName, RED_FONT_COLOR.r, RED_FONT_COLOR.g, RED_FONT_COLOR.b);
  308                                 end
  309                         end
  310                 end
 
302           LFDSearchStatus:Hide();
  317         LFGSearchStatus:Hide();
 
368           UIDropDownMenu_Refresh(MiniMapTrackingDropDown);
  383         UIDropDownMenu_RefreshAll(MiniMapTrackingDropDown);
 
398   function MiniMapTrackingDropDown_Initialize()
399           local name, texture, active, category;
  413 function MiniMapTrackingDropDown_Initialize(self, level)
  414         local name, texture, active, category, nested, numTracking;
 
  417         local _, class = UnitClass("player");
 
  419         if (level == 1) then
 
411           UIDropDownMenu_AddButton(info);
  428                 UIDropDownMenu_AddButton(info, level);
 
  430                 if (class == "HUNTER") then --only show hunter dropdown for hunters
  431                         numTracking = 0;
  432                         -- make sure there are at least two options in dropdown
 
414                   name, texture, active, category  = GetTrackingInfo(id);
  434                                 name, texture, active, category, nested = GetTrackingInfo(id);
  435                                 if (nested == HUNTER_TRACKING and category == "spell") then
  436                                         numTracking = numTracking + 1;
  437                                 end
  438                         end
  439                         if (numTracking > 1) then
  440                                 info.text = HUNTER_TRACKING_TEXT;
  441                                 info.func =  nil;
  442                                 info.notCheckable = true;
  443                                 info.keepShownOnClick = false;
  444                                 info.hasArrow = true;
  445                                 info.value = 1;
  446                                 UIDropDownMenu_AddButton(info, level)
  447                         end
  448                 end
 
  450                 info.text = TOWNSFOLK_TRACKING_TEXT;
  451                 info.func =  nil;
  452                 info.notCheckable = true;
  453                 info.keepShownOnClick = false;
  454                 info.hasArrow = true;
  455                 info.value = 2;
  456                 UIDropDownMenu_AddButton(info, level)
  457         end
 
  459         for id=1, count do
  460                 name, texture, active, category, nested  = GetTrackingInfo(id);
 
435                   UIDropDownMenu_AddButton(info);
  480                 if (level == 1 and
  481                         (nested < 0 or -- this tracking shouldn't be nested
  482                         (nested == HUNTER_TRACKING and class ~= "HUNTER") or
  483                         (numTracking == 1 and category == "spell"))) then -- this is a hunter tracking ability, but you only have one
  484                         UIDropDownMenu_AddButton(info, level);
  485                 elseif (level == 2 and (nested == TOWNSFOLK or (nested == HUNTER_TRACKING and class == "HUNTER")) and nested == UIDROPDOWNMENU_MENU_VALUE) then
  486                         UIDropDownMenu_AddButton(info, level);
  487                 end
 
  636                 if ( instanceType == "party" and maxPlayers == 5 ) then
  637                         numGuildRequired = 4;
  638                 end
   
File: FrameXML\ModelFrames.lua  
  1 MODELFRAME_DRAG_ROTATION_CONSTANT = 0.010;
  2 MODELFRAME_MAX_ZOOM = 0.7;
  3 MODELFRAME_MIN_ZOOM = 0.0;
  4 MODELFRAME_ZOOM_STEP = 0.15;
  5 MODELFRAME_DEFAULT_ROTATION = 0.61;
 
  7 MODELFRAME_MAX_PLAYER_ZOOM = 0.8;
 
  9 local ModelSettings = {
  10         ["HumanMale"] = { panMaxLeft = -0.4, panMaxRight = 0.4, panMaxTop = 1.2, panMaxBottom = -0.3, panValue = 38 },
  11         ["HumanFemale"] = { panMaxLeft = -0.3, panMaxRight = 0.3, panMaxTop = 1.2, panMaxBottom = -0.2, panValue = 45 },
  12         ["OrcMale"] = { panMaxLeft = -0.7, panMaxRight = 0.8, panMaxTop = 1.2, panMaxBottom = -0.3, panValue = 30 },
  13         ["OrcFemale"] = { panMaxLeft = -0.4, panMaxRight = 0.3, panMaxTop = 1.2, panMaxBottom = -0.3, panValue = 37 },
  14         ["DwarfMale"] = { panMaxLeft = -0.4, panMaxRight = 0.6, panMaxTop = 0.9, panMaxBottom = -0.2, panValue = 44 },
  15         ["DwarfFemale"] = { panMaxLeft = -0.3, panMaxRight = 0.3, panMaxTop = 0.9, panMaxBottom = -0.2, panValue = 47 },
  16         ["NightElfMale"] = { panMaxLeft = -0.5, panMaxRight = 0.5, panMaxTop = 1.5, panMaxBottom = -0.4, panValue = 30 },
  17         ["NightElfFemale"] = { panMaxLeft = -0.4, panMaxRight = 0.4, panMaxTop = 1.4, panMaxBottom = -0.4, panValue = 33 },
  18         ["ScourgeMale"] = { panMaxLeft = -0.4, panMaxRight = 0.4, panMaxTop = 1.1, panMaxBottom = -0.3, panValue = 35 },
  19         ["ScourgeFemale"] = { panMaxLeft = -0.3, panMaxRight = 0.4, panMaxTop = 1.1, panMaxBottom = -0.3, panValue = 36 },
  20         ["TaurenMale"] = { panMaxLeft = -0.7, panMaxRight = 0.9, panMaxTop = 1.1, panMaxBottom = -0.5, panValue = 31 },
  21         ["TaurenFemale"] = { panMaxLeft = -0.5, panMaxRight = 0.6, panMaxTop = 1.3, panMaxBottom = -0.4, panValue = 32 },
  22         ["GnomeMale"] = { panMaxLeft = -0.3, panMaxRight = 0.3, panMaxTop = 0.5, panMaxBottom = -0.2, panValue = 52 },
  23         ["GnomeFemale"] = { panMaxLeft = -0.3, panMaxRight = 0.3, panMaxTop = 0.5, panMaxBottom = -0.2, panValue = 60 },
  24         ["TrollMale"] = { panMaxLeft = -0.5, panMaxRight = 0.6, panMaxTop = 1.3, panMaxBottom = -0.4, panValue = 27 },
  25         ["TrollFemale"] = { panMaxLeft = -0.4, panMaxRight = 0.4, panMaxTop = 1.5, panMaxBottom = -0.4, panValue = 31 },
  26         ["GoblinMale"] = { panMaxLeft = -0.3, panMaxRight = 0.4, panMaxTop = 0.7, panMaxBottom = -0.2, panValue = 43 },
  27         ["GoblinFemale"] = { panMaxLeft = -0.3, panMaxRight = 0.3, panMaxTop = 0.7, panMaxBottom = -0.3, panValue = 43 },
  28         ["BloodElfMale"] = { panMaxLeft = -0.5, panMaxRight = 0.4, panMaxTop = 1.3, panMaxBottom = -0.3, panValue = 36 },
  29         ["BloodElfFemale"] = { panMaxLeft = -0.3, panMaxRight = 0.2, panMaxTop = 1.2, panMaxBottom = -0.3, panValue = 38 },
  30         ["DraeneiMale"] = { panMaxLeft = -0.6, panMaxRight = 0.6, panMaxTop = 1.4, panMaxBottom = -0.4, panValue = 28 },
  31         ["DraeneiFemale"] = { panMaxLeft = -0.3, panMaxRight = 0.3, panMaxTop = 1.4, panMaxBottom = -0.3, panValue = 31 },
  32         ["WorgenMale"] = { panMaxLeft = -0.6, panMaxRight = 0.8, panMaxTop = 1.2, panMaxBottom = -0.4, panValue = 25 },
  33         ["WorgenMaleAlt"] = { panMaxLeft = -0.4, panMaxRight = 0.4, panMaxTop = 1.3, panMaxBottom = -0.3, panValue = 37 },
  34         ["WorgenFemale"] = { panMaxLeft = -0.4, panMaxRight = 0.6, panMaxTop = 1.4, panMaxBottom = -0.4, panValue = 25 },
  35         ["WorgenFemaleAlt"] = { panMaxLeft = -0.3, panMaxRight = 0.3, panMaxTop = 1.2, panMaxBottom = -0.2, panValue = 45 },
  36 }
 
  38 local _, playerRaceSex = UnitRace("player");
  39 do
  40         if ( UnitSex("player") == 2 ) then
  41                 playerRaceSex = playerRaceSex.."Male";
  42         else
  43                 playerRaceSex = playerRaceSex.."Female";
  44         end
  45 end
 
  47 -- Generic model rotation functions
  48 function Model_OnLoad(self, maxZoom, minZoom, defaultRotation, onMouseUp)
  49         -- set up data
  50         self.maxZoom = maxZoom or MODELFRAME_MAX_ZOOM;
  51         self.minZoom = minZoom or MODELFRAME_MIN_ZOOM;
  52         self.defaultRotation = defaultRotation or MODELFRAME_DEFAULT_ROTATION;
  53         self.onMouseUpFunc = onMouseUp or Model_OnMouseUp;
 
  55         self.rotation = self.defaultRotation;
  56         self:SetRotation(self.rotation);
  57         self:RegisterEvent("UI_SCALE_CHANGED");
  58         self:RegisterEvent("DISPLAY_SIZE_CHANGED");
  59 end
 
  61 function Model_OnEvent(self, event, ...)
  62         self:RefreshCamera();
  63 end
 
  65 function Model_RotateLeft(model, rotationIncrement)
  66         if ( not rotationIncrement ) then
  67                 rotationIncrement = 0.03;
  68         end
  69         model.rotation = model.rotation - rotationIncrement;
  70         model:SetRotation(model.rotation);
  71         PlaySound("igInventoryRotateCharacter");
  72 end
 
  74 function Model_RotateRight(model, rotationIncrement)
  75         if ( not rotationIncrement ) then
  76                 rotationIncrement = 0.03;
  77         end
  78         model.rotation = model.rotation + rotationIncrement;
  79         model:SetRotation(model.rotation);
  80         PlaySound("igInventoryRotateCharacter");
  81 end
 
  83 function Model_OnMouseDown(model, button)
  84         if ( button == "LeftButton" ) then
  85                 model.mouseDown = true;
  86                 model.rotationCursorStart = GetCursorPosition();
  87         end
  88 end
 
  90 function Model_OnMouseUp(model, button)
  91         if ( button == "LeftButton" ) then
  92                 model.mouseDown = false;
  93         end
  94 end
 
  96 function Model_OnMouseWheel(self, delta, maxZoom, minZoom)
  97         maxZoom = maxZoom or self.maxZoom;
  98         minZoom = minZoom or self.minZoom;
  99         local zoomLevel = self.zoomLevel or minZoom;
  100         zoomLevel = zoomLevel + delta * MODELFRAME_ZOOM_STEP;
  101         zoomLevel = min(zoomLevel, maxZoom);
  102         zoomLevel = max(zoomLevel, minZoom);
  103         self:SetPortraitZoom(zoomLevel);
  104         self.zoomLevel = zoomLevel;
  105 end
 
  107 function Model_OnUpdate(self, elapsedTime, rotationsPerSecond)
  108         if ( not rotationsPerSecond ) then
  109                 rotationsPerSecond = ROTATIONS_PER_SECOND;
  110         end
 
  112         -- Mouse drag rotation
  113         if (self.mouseDown) then
  114                 if ( self.rotationCursorStart ) then
  115                         local x = GetCursorPosition();
  116                         local diff = (x - self.rotationCursorStart) * MODELFRAME_DRAG_ROTATION_CONSTANT;
  117                         self.rotationCursorStart = GetCursorPosition();
  118                         self.rotation = self.rotation + diff;
  119                         if ( self.rotation < 0 ) then
  120                                 self.rotation = self.rotation + (2 * PI);
  121                         end
  122                         if ( self.rotation > (2 * PI) ) then
  123                                 self.rotation = self.rotation - (2 * PI);
  124                         end
  125                         self:SetRotation(self.rotation, false);
  126                 end
  127         elseif ( self.panning ) then
  128                 local modelScale = self:GetModelScale();
  129                 local cursorX, cursorY = GetCursorPosition();
  130                 local scale = UIParent:GetEffectiveScale();
  131                 ModelPanningFrame:SetPoint("BOTTOMLEFT", cursorX / scale - 16, cursorY / scale - 16);   -- half the texture size to center it on the cursor
  132                 -- settings
  133                 local settings;
  134                 local hasAlternateForm, inAlternateForm = HasAlternateForm();
  135                 if ( hasAlternateForm and inAlternateForm ) then
  136                         settings = ModelSettings[playerRaceSex.."Alt"];
  137                 else
  138                         settings = ModelSettings[playerRaceSex];
  139                 end
 
  141                 local zoom = self.zoomLevel or self.minZoom;
  142                 zoom = 1 + zoom - self.minZoom; -- want 1 at minimum zoom
 
  144                 -- Panning should require roughly the same mouse movement regardless of zoom level so the model moves at the same rate as the cursor
  145                 -- This formula more or less works for all zoom levels, found via trial and error
  146                 local transformationRatio = settings.panValue * 2 ^ (zoom * 2) * scale / modelScale;
 
  148                 local dx = (cursorX - self.cursorX) / transformationRatio;
  149                 local dy = (cursorY - self.cursorY) / transformationRatio;
  150                 local cameraY = self.cameraY + dx;
  151                 local cameraZ = self.cameraZ + dy;
  152                 -- bounds
  153                 scale = scale * modelScale;
  154                 local maxCameraY = settings.panMaxRight * scale;
  155                 cameraY = min(cameraY, maxCameraY);
  156                 local minCameraY = settings.panMaxLeft * scale;
  157                 cameraY = max(cameraY, minCameraY);
  158                 local maxCameraZ = settings.panMaxTop * scale;
  159                 cameraZ = min(cameraZ, maxCameraZ);
  160                 local minCameraZ = settings.panMaxBottom * scale;
  161                 cameraZ = max(cameraZ, minCameraZ);
 
  163                 self:SetPosition(self.cameraX, cameraY, cameraZ);      
  164         end
 
  166         -- Rotate buttons
  167         local leftButton, rightButton;
  168         if ( self.controlFrame ) then
  169                 leftButton = self.controlFrame.rotateLeftButton;
  170                 rightButton = self.controlFrame.rotateRightButton;
  171         else
  172                 leftButton = _G[self:GetName().."RotateLeftButton"];
  173                 rightButton = _G[self:GetName().."RotateRightButton"];
  174         end
 
  176         if ( leftButton and leftButton:GetButtonState() == "PUSHED" ) then
  177                 self.rotation = self.rotation + (elapsedTime * 2 * PI * rotationsPerSecond);
  178                 if ( self.rotation < 0 ) then
  179                         self.rotation = self.rotation + (2 * PI);
  180                 end
  181                 self:SetRotation(self.rotation);
  182         elseif ( rightButton and rightButton:GetButtonState() == "PUSHED" ) then
  183                 self.rotation = self.rotation - (elapsedTime * 2 * PI * rotationsPerSecond);
  184                 if ( self.rotation > (2 * PI) ) then
  185                         self.rotation = self.rotation - (2 * PI);
  186                 end
  187                 self:SetRotation(self.rotation);
  188         end
  189 end
 
  191 function Model_Reset(self)
  192         self.rotation = self.defaultRotation;
  193         self:SetRotation(self.rotation);
  194         self:SetPosition(0, 0, 0);
  195         self.zoomLevel = self.minZoom;
  196         self:SetPortraitZoom(self.zoomLevel);
  197 end
 
  199 function Model_StartPanning(self, usePanningFrame)
  200         if ( usePanningFrame ) then
  201                 ModelPanningFrame.model = self;
  202                 ModelPanningFrame:Show();
  203         end
  204         self.panning = true;
  205         local cameraX, cameraY, cameraZ = self:GetPosition();
  206         self.cameraX = cameraX;
  207         self.cameraY = cameraY;
  208         self.cameraZ = cameraZ;
  209         local cursorX, cursorY = GetCursorPosition();
  210         self.cursorX = cursorX;
  211         self.cursorY = cursorY;
  212 end
 
  214 function Model_StopPanning(self)
  215         self.panning = false;
  216         ModelPanningFrame:Hide();
  217 end
 
  219 function ModelControlButton_OnMouseDown(self)
  220         self.bg:SetTexCoord(0.01562500, 0.26562500, 0.14843750, 0.27343750);
  221         self.icon:SetPoint("CENTER", 1, -1);
  222         self:GetParent().buttonDown = self;
  223 end
 
  225 function ModelControlButton_OnMouseUp(self)
  226         self.bg:SetTexCoord(0.29687500, 0.54687500, 0.14843750, 0.27343750);
  227         self.icon:SetPoint("CENTER", 0, 0);
  228         self:GetParent().buttonDown = nil;
  229 end
 
  231 -- Dressing rooms
 
  233 function DressUpItemLink(link)
  234         if ( not link or not IsDressableItem(link) ) then
  235                 return;
  236         end
  237         if ( SideDressUpFrame.parentFrame and SideDressUpFrame.parentFrame:IsShown() ) then
  238                 if ( not SideDressUpFrame:IsShown() ) then
  239                         ShowUIPanel(SideDressUpFrame);
  240                         SideDressUpModel:SetUnit("player");
  241                 end
  242                 SideDressUpModel:TryOn(link);
  243         else
  244                 if ( not DressUpFrame:IsShown() ) then
  245                         ShowUIPanel(DressUpFrame);
  246                         DressUpModel:SetUnit("player");
  247                 end
  248                 DressUpModel:TryOn(link);
  249         end
  250 end
 
  252 function DressUpTexturePath(raceFileName)
  253         -- HACK
  254         if ( not raceFileName ) then
  255                 raceFileName = "Orc";
  256         end
  257         -- END HACK
 
  259         return "Interface\\DressUpFrame\\DressUpBackground-"..raceFileName;
  260 end
 
  262 function SetDressUpBackground()
  263         local race, fileName = UnitRace("player");
  264         local texture = DressUpTexturePath(fileName);
  265         DressUpBackgroundTopLeft:SetTexture(texture..1);
  266         DressUpBackgroundTopRight:SetTexture(texture..2);
  267         DressUpBackgroundBotLeft:SetTexture(texture..3);
  268         DressUpBackgroundBotRight:SetTexture(texture..4);
  269         SideDressUpFrameBackgroundTop:SetTexture(texture..1);
  270         SideDressUpFrameBackgroundBot:SetTexture(texture..3);
  271 end
 
  273 function SideDressUpFrame_OnShow(self)
  274         SetUIPanelAttribute(self.parentFrame, "width", self.openWidth);
  275         UpdateUIPanelPositions(self.parentFrame);
  276         PlaySound("igCharacterInfoOpen");
  277 end
 
  279 function SideDressUpFrame_OnHide(self)
  280         SetUIPanelAttribute(self.parentFrame, "width", self.closedWidth);
  281         UpdateUIPanelPositions();
  282         PlaySound("igCharacterInfoClose");
  283 end
 
  285 function SetUpSideDressUpFrame(parentFrame, closedWidth, openWidth, point, relativePoint, offsetX, offsetY)
  286         local self = SideDressUpFrame;
  287         if ( self.parentFrame ) then
  288                 if ( self.parentFrame == parentFrame ) then
  289                         return;
  290                 end
  291                 if ( self:IsShown() ) then
  292                         HideUIPanel(self);
  293                 end
  294         end    
  295         self.parentFrame = parentFrame;
  296         self.closedWidth = closedWidth;
  297         self.openWidth = openWidth;    
  298         relativePoint = relativePoint or point;
  299         self:SetParent(parentFrame);
  300         self:SetPoint(point, parentFrame, relativePoint, offsetX, offsetY);
  301 end
 
  303 function CloseSideDressUpFrame(parentFrame)
  304         if ( SideDressUpFrame.parentFrame and SideDressUpFrame.parentFrame == parentFrame ) then
  305                 HideUIPanel(SideDressUpFrame);
  306         end
  307 end
   
File: FrameXML\ModelFrames.xml  
  1 <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
  2 ..\FrameXML\UI.xsd">
  3 <Script file="ModelFrames.lua"/>
  4         <Button name="ModelControlButtonTemplate" virtual="true">
  5                 <Size x="18" y="18"/>
  6                 <Layers>
  7                         <Layer level="BACKGROUND">
  8                                 <Texture name="$parentBg" file="Interface\Common\UI-ModelControlPanel" parentKey="bg">
  9                                         <Size x="16" y="16"/>
  10                                         <Anchors>
  11                                                 <Anchor point="CENTER"/>
  12                                         </Anchors>
  13                                         <TexCoords left="0.29687500" right="0.54687500" top="0.14843750" bottom="0.27343750"/> 
  14                                 </Texture>
  15                         </Layer>
  16                         <Layer level="ARTWORK">
  17                                 <Texture name="$parentIcon" file="Interface\Common\UI-ModelControlPanel" virtual="true" parentKey="icon">
  18                                         <Size x="16" y="16"/>
  19                                         <Anchors>
  20                                                 <Anchor point="CENTER"/>
  21                                         </Anchors>
  22                                         <TexCoords left="0.01562500" right="0.26562500" top="0.00781250" bottom="0.13281250"/>
  23                                 </Texture>
  24                         </Layer>
  25                         <Layer level="HIGHLIGHT">
  26                                 <Texture file="Interface\Common\UI-ModelControlPanel">
  27                                         <Size x="16" y="16"/>
  28                                         <Anchors>
  29                                                 <Anchor point="CENTER"/>
  30                                         </Anchors>
  31                                         <TexCoords left="0.57812500" right="0.82812500" top="0.00781250" bottom="0.13281250"/>
  32                                 </Texture>
  33                         </Layer>
  34                 </Layers>
  35                 <Scripts>
  36                         <OnMouseDown function="ModelControlButton_OnMouseDown"/>
  37                         <OnMouseUp function="ModelControlButton_OnMouseUp"/>
  38                         <OnEnter>
  39                                 self:GetParent():SetAlpha(1);
  40                                 if ( GetCVar("UberTooltips") == "1" ) then
  41                                         GameTooltip_SetDefaultAnchor(GameTooltip, UIParent);
  42                                         GameTooltip:SetText(self.tooltip, HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b);
  43                                         if ( self.tooltipText ) then
  44                                                 GameTooltip:AddLine(self.tooltipText, _, _, _, 1, 1);
  45                                         end
  46                                         GameTooltip:Show();
  47                                 end
  48                         </OnEnter>
  49                         <OnLeave>
  50                                 self:GetParent():SetAlpha(0.5);
  51                                 GameTooltip:Hide();
  52                         </OnLeave>
  53                 </Scripts>
  54         </Button>
  55         <PlayerModel name="ModelTemplate" virtual="true">
  56                 <Scripts>
  57                         <OnLoad function="Model_OnLoad"/>
  58                         <OnEvent function="Model_OnEvent"/>
  59                         <OnUpdate function="Model_OnUpdate"/>
  60                         <OnMouseUp function="Model_OnMouseUp"/>
  61                         <OnMouseDown function="Model_OnMouseDown"/>
  62                 </Scripts>
  63         </PlayerModel>
  64         <PlayerModel name="ModelWithZoomTemplate" inherits="ModelTemplate" virtual="true">
  65                 <Scripts>
  66                         <OnMouseWheel function="Model_OnMouseWheel"/>
  67                 </Scripts>
  68         </PlayerModel>
  69         <PlayerModel name="ModelWithControlsTemplate" virtual="true">
  70                 <Frames>
  71                         <Frame name="$parentControlFrame" parentKey="controlFrame" alpha="0.5" hidden="true">
  72                                 <Size x="112" y="23"/>
  73                                 <Anchors>
  74                                         <Anchor point="TOP" x="0" y="-2"/>
  75                                 </Anchors>
  76                                 <Layers>
  77                                         <Layer level="BACKGROUND">
  78                                                 <Texture name="$parentRight" file="Interface\Common\UI-ModelControlPanel">
  79                                                         <Size x="23" y="23"/>
  80                                                         <Anchors>
  81                                                                 <Anchor point="RIGHT" x="0" y="0"/>
  82                                                         </Anchors>
  83                                                         <TexCoords left="0.01562500" right="0.37500000" top="0.42968750" bottom="0.60937500"/>
  84                                                 </Texture>
  85                                                 <Texture name="$parentLeft" file="Interface\Common\UI-ModelControlPanel">
  86                                                         <Size x="23" y="23"/>
  87                                                         <Anchors>
  88                                                                 <Anchor point="LEFT" x="0" y="0"/>
  89                                                         </Anchors>
  90                                                         <TexCoords left="0.40625000" right="0.76562500" top="0.42968750" bottom="0.60937500"/>
  91                                                 </Texture>
  92                                                 <Texture name="$parentMiddle" file="Interface\Common\UI-ModelControlPanel">
  93                                                         <Size x="32" y="23"/>
  94                                                         <Anchors>
  95                                                                 <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT" x="0" y="0"/>
  96                                                                 <Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT" x="0" y="0"/>
  97                                                         </Anchors>
  98                                                         <TexCoords left="0" right="1" top="0.62500000" bottom="0.80468750"/>
  99                                                 </Texture>
  100                                         </Layer>
  101                                 </Layers>
  102                                 <Frames>
  103                                         <Button name="$parentZoomInButton" inherits="ModelControlButtonTemplate">
  104                                                 <Anchors>
  105                                                         <Anchor point="LEFT" x="2" y="0"/>
  106                                                 </Anchors>
  107                                                 <Scripts>
  108                                                         <OnLoad>
  109                                                                 self:RegisterForClicks("AnyUp");
  110                                                                 self.icon:SetTexCoord(0.57812500, 0.82812500, 0.14843750, 0.27343750);
  111                                                                 self.tooltip = ZOOM_IN;
  112                                                                 self.tooltipText = KEY_MOUSEWHEELUP;
  113                                                         </OnLoad>
  114                                                         <OnClick>
  115                                                                 local model = self:GetParent():GetParent();
  116                                                                 Model_OnMouseWheel(model, 1);
  117                                                                 PlaySound("igInventoryRotateCharacter");
  118                                                         </OnClick>
  119                                                 </Scripts>
  120                                         </Button>
  121                                         <Button name="$parentZoomOutButton" inherits="ModelControlButtonTemplate">
  122                                                 <Anchors>
  123                                                         <Anchor point="LEFT" relativeTo="$parentZoomInButton" relativePoint="RIGHT" x="0" y="0"/>
  124                                                 </Anchors>
  125                                                 <Scripts>
  126                                                         <OnLoad>
  127                                                                 self:RegisterForClicks("AnyUp");
  128                                                                 self.icon:SetTexCoord(0.29687500, 0.54687500, 0.00781250, 0.13281250);
  129                                                                 self.tooltip = ZOOM_OUT;
  130                                                                 self.tooltipText = KEY_MOUSEWHEELDOWN;
  131                                                         </OnLoad>
  132                                                         <OnClick>
  133                                                                 local model = self:GetParent():GetParent();
  134                                                                 Model_OnMouseWheel(model, -1);
  135                                                                 PlaySound("igInventoryRotateCharacter");
  136                                                         </OnClick>
  137                                                 </Scripts>
  138                                         </Button>
  139                                         <Button name="$parentPanButton" inherits="ModelControlButtonTemplate" parentKey="panButton">
  140                                                 <Anchors>
  141                                                         <Anchor point="LEFT" relativeTo="$parentZoomOutButton" relativePoint="RIGHT" x="0" y="0"/>
  142                                                 </Anchors>
  143                                                 <Scripts>
  144                                                         <OnLoad>
  145                                                                 self:RegisterForClicks("AnyUp");
  146                                                                 self.icon:SetTexCoord(0.29687500, 0.54687500, 0.28906250, 0.41406250);
  147                                                                 self.tooltip = DRAG_MODEL;
  148                                                                 self.tooltipText = DRAG_MODEL_TOOLTIP;
  149                                                         </OnLoad>
  150                                                         <OnMouseDown>
  151                                                                 ModelControlButton_OnMouseDown(self);
  152                                                                 Model_StartPanning(self:GetParent():GetParent(), true);
  153                                                         </OnMouseDown>
  154                                                         <OnMouseUp>
  155                                                                 PlaySound("igInventoryRotateCharacter");
  156                                                         </OnMouseUp>
  157                                                 </Scripts>
  158                                         </Button>
  159                                         <Button name="$parentRotateLeftButton" inherits="ModelControlButtonTemplate" parentKey="rotateLeftButton">
  160                                                 <Anchors>
  161                                                         <Anchor point="LEFT" relativeTo="$parentPanButton" relativePoint="RIGHT" x="0" y="0"/>
  162                                                 </Anchors>
  163                                                 <Scripts>
  164                                                         <OnLoad>
  165                                                                 self:RegisterForClicks("AnyUp");
  166                                                                 self.icon:SetTexCoord(0.01562500, 0.26562500, 0.28906250, 0.41406250);
  167                                                                 self.tooltip = ROTATE_LEFT;
  168                                                                 self.tooltipText = ROTATE_TOOLTIP;
  169                                                         </OnLoad>
  170                                                         <OnClick>
  171                                                                 Model_RotateLeft(self:GetParent():GetParent());
  172                                                         </OnClick>
  173                                                 </Scripts>
  174                                         </Button>
  175                                         <Button name="$parentRotateRightButton" inherits="ModelControlButtonTemplate" parentKey="rotateRightButton">
  176                                                 <Anchors>
  177                                                         <Anchor point="LEFT" relativeTo="$parentRotateLeftButton" relativePoint="RIGHT" x="0" y="0"/>
  178                                                 </Anchors>
  179                                                 <Scripts>
  180                                                         <OnLoad>
  181                                                                 self:RegisterForClicks("AnyUp");
  182                                                                 self.icon:SetTexCoord(0.57812500, 0.82812500, 0.28906250, 0.41406250);
  183                                                                 self.tooltip = ROTATE_RIGHT;
  184                                                                 self.tooltipText = ROTATE_TOOLTIP;
  185                                                         </OnLoad>
  186                                                         <OnClick>
  187                                                                 Model_RotateRight(self:GetParent():GetParent());
  188                                                         </OnClick>
  189                                                 </Scripts>
  190                                         </Button>
  191                                         <Button name="$parentRotateResetButton" inherits="ModelControlButtonTemplate">
  192                                                 <Anchors>
  193                                                         <Anchor point="LEFT" relativeTo="$parentRotateRightButton" relativePoint="RIGHT" x="0" y="0"/>
  194                                                 </Anchors>
  195                                                 <Scripts>
  196                                                         <OnLoad>
  197                                                                 self:RegisterForClicks("AnyUp");
  198                                                                 self.tooltip = RESET_POSITION;
  199                                                         </OnLoad>
  200                                                         <OnClick>
  201                                                                 Model_Reset(self:GetParent():GetParent());
  202                                                                 PlaySound("igInventoryRotateCharacter");
  203                                                         </OnClick>
  204                                                 </Scripts>
  205                                         </Button>
  206                                 </Frames>
  207                                 <Scripts>
  208                                         <OnHide>
  209                                                 if ( self.buttonDown ) then
  210                                                         ModelControlButton_OnMouseUp(self.buttonDown);
  211                                                 end
  212                                         </OnHide>
  213                                 </Scripts>
  214                         </Frame>
  215                 </Frames>
  216                 <Scripts>
  217                         <OnLoad function="Model_OnLoad"/>
  218                         <OnEvent function="Model_OnEvent"/>
  219                         <OnUpdate function="Model_OnUpdate"/>
  220                         <OnMouseUp>
  221                                 if ( button == "RightButton" and self.panning ) then
  222                                         Model_StopPanning(self);
  223                                 elseif ( self.mouseDown ) then
  224                                         self.onMouseUpFunc(self, button);
  225                                 end
  226                         </OnMouseUp>
  227                         <OnMouseDown>
  228                                 if ( button == "RightButton" and not self.mouseDown ) then
  229                                         Model_StartPanning(self);
  230                                 else
  231                                         Model_OnMouseDown(self, button);
  232                                 end
  233                         </OnMouseDown>
  234                         <OnMouseWheel>
  235                                 Model_OnMouseWheel(self, delta);
  236                         </OnMouseWheel>
  237                         <OnEnter>
  238                                 self.controlFrame:Show();
  239                         </OnEnter>
  240                         <OnLeave>
  241                                 if ( not self.controlFrame:IsMouseOver() and not ModelPanningFrame:IsShown() ) then
  242                                         self.controlFrame:Hide();
  243                                 end
  244                         </OnLeave>
  245                         <OnHide>
  246                                 if ( self.panning ) then
  247                                         Model_StopPanning(self);
  248                                 end
  249                                 self.mouseDown = false;
  250                                 self.controlFrame:Hide();
  251                         </OnHide>
  252                 </Scripts>
  253         </PlayerModel>
 
  255         <Frame name="ModelPanningFrame" parent="UIParent" hidden="true" frameStrata="DIALOG" clampedToScreen="true" enableMouse="true">
  256                 <Size x="32" y="32"/>
  257                 <Layers>
  258                         <Layer level="ARTWORK">
  259                                 <Texture file="Interface\Cursor\UI-Cursor-Move" setAllPoints="true"/>
  260                         </Layer>
  261                 </Layers>
  262                 <Scripts>
  263                         <OnUpdate>
  264                                 local model = self.model;
  265                                 local controlFrame = model.controlFrame;
  266                                 if ( not IsMouseButtonDown(controlFrame.panButton) ) then
  267                                         Model_StopPanning(model);
  268                                         if ( controlFrame.buttonDown ) then
  269                                                 ModelControlButton_OnMouseUp(controlFrame.buttonDown);
  270                                         end
  271                                         if ( not controlFrame:IsMouseOver() ) then
  272                                                 controlFrame:Hide();
  273                                         end
  274                                 end
  275                         </OnUpdate>
  276                 </Scripts>
  277         </Frame>
  278         <Frame name="SideDressUpFrame" toplevel="true" parent="UIParent" enableMouse="true" hidden="true">
  279                 <Size>
  280                         <AbsDimension x="187" y="389"/>
  281                 </Size>
  282                 <Layers>
  283                         <Layer level="BACKGROUND">
  284                                 <Texture name="$parentTop" file="Interface\AuctionFrame\AuctionHouseDressUpFrame-Top">
  285                                         <Size>
  286                                                 <AbsDimension x="256" y="256"/>
  287                                         </Size>
  288                                         <Anchors>
  289                                                 <Anchor point="TOPLEFT"/>
  290                                         </Anchors>
  291                                 </Texture>
  292                                 <Texture file="Interface\AuctionFrame\AuctionHouseDressUpFrame-Bottom">
  293                                         <Size>
  294                                                 <AbsDimension x="256" y="256"/>
  295                                         </Size>
  296                                         <Anchors>
  297                                                 <Anchor point="TOPLEFT" relativeTo="$parentTop" relativePoint="BOTTOMLEFT"/>
  298                                         </Anchors>
  299                                 </Texture>
  300                         </Layer>
  301                         <Layer level="ARTWORK">
  302                                 <Texture name="$parentBackgroundTop">
  303                                         <Size>
  304                                                 <AbsDimension x="171" y="282"/>
  305                                         </Size>
  306                                         <Anchors>
  307                                                 <Anchor point="TOPLEFT">
  308                                                         <Offset>
  309                                                                 <AbsDimension x="5" y="-14"/>
  310                                                         </Offset>
  311                                                 </Anchor>
  312                                         </Anchors>
  313                                         <TexCoords left="0" right="0.61" top="0" bottom="1.0"/>
  314                                 </Texture>
  315                                 <Texture name="$parentBackgroundBot">
  316                                         <Size>
  317                                                 <AbsDimension x="171" y="83"/>
  318                                         </Size>
  319                                         <Anchors>
  320                                                 <Anchor point="TOPLEFT" relativeTo="$parentBackgroundTop" relativePoint="BOTTOMLEFT"/>
  321                                         </Anchors>
  322                                         <TexCoords left="0" right="0.61" top="0" bottom="0.588"/>
  323                                 </Texture>
  324                         </Layer>
  325                 </Layers>
  326                 <Frames>
  327                         <DressUpModel name="SideDressUpModel" scale="1.0" inherits="ModelWithControlsTemplate">
  328                                 <Size>
  329                                         <AbsDimension x="172" y="400"/>
  330                                 </Size>
  331                                 <Anchors>
  332                                         <Anchor point="TOPLEFT" x="5" y="-13"/>
  333                                         <Anchor point="BOTTOMRIGHT" x="-11" y="11"/>
  334                                 </Anchors>
  335                                 <Scripts>
  336                                         <OnLoad>
  337                                                 Model_OnLoad(self, MODELFRAME_MAX_PLAYER_ZOOM);
  338                                         </OnLoad>
  339                                 </Scripts>
  340                                 <Frames>
  341                                         <Button name="$parentResetButton" inherits="UIPanelButtonTemplate" text="RESET">
  342                                                 <Size>
  343                                                         <AbsDimension x="80" y="22"/>
  344                                                 </Size>
  345                                                 <Anchors>
  346                                                         <Anchor point="BOTTOM">
  347                                                                 <Offset>
  348                                                                         <AbsDimension x="0" y="40"/>
  349                                                                 </Offset>
  350                                                         </Anchor>
  351                                                 </Anchors>
  352                                                 <Scripts>
  353                                                         <OnClick>
  354                                                                 SideDressUpModel:Dress();
  355                                                                 PlaySound("gsTitleOptionOK");
  356                                                         </OnClick>
  357                                                 </Scripts>
  358                                         </Button>
  359                                         <Button name="$parentCloseButton" inherits="UIPanelCloseButton">
  360                                                 <Anchors>
  361                                                         <Anchor point="CENTER" relativeTo="SideDressUpFrame" relativePoint="TOPRIGHT">
  362                                                                 <Offset>
  363                                                                         <AbsDimension x="-15" y="-16"/>
  364                                                                 </Offset>
  365                                                         </Anchor>
  366                                                 </Anchors>
  367                                                 <Layers>
  368                                                         <Layer level="BACKGROUND">
  369                                                                 <Texture file="Interface\AuctionFrame\AuctionHouseDressUpFrame-Corner">
  370                                                                         <Size>
  371                                                                                 <AbsDimension x="32" y="32"/>
  372                                                                         </Size>
  373                                                                         <Anchors>
  374                                                                                 <Anchor point="TOPRIGHT" relativeTo="SideDressUpFrame">
  375                                                                                         <Offset>
  376                                                                                                 <AbsDimension x="-5" y="-5"/>
  377                                                                                         </Offset>
  378                                                                                 </Anchor>
  379                                                                         </Anchors>
  380                                                                 </Texture>
  381                                                         </Layer>
  382                                                 </Layers>
  383                                                 <Scripts>
  384                                                         <OnClick>
  385                                                                 HideUIPanel(self:GetParent():GetParent());
  386                                                         </OnClick>
  387                                                 </Scripts>
  388                                         </Button>
  389                                 </Frames>
  390                         </DressUpModel>
  391                 </Frames>
  392                 <Scripts>
  393                         <OnShow function="SideDressUpFrame_OnShow"/>
  394                         <OnHide function="SideDressUpFrame_OnHide"/>
  395                 </Scripts>
  396         </Frame>
  397         <Frame name="DressUpFrame" toplevel="true" enableMouse="true" parent="UIParent" hidden="true">
  398                 <Size>
  399                         <AbsDimension x="384" y="512"/>
  400                 </Size>
  401                 <Anchors>
  402                         <Anchor point="TOPLEFT">
  403                                 <Offset>
  404                                         <AbsDimension x="512" y="-104"/>
  405                                 </Offset>
  406                         </Anchor>
  407                 </Anchors>
  408                 <HitRectInsets>
  409                         <AbsInset left="0" right="30" top="0" bottom="45"/>
  410                 </HitRectInsets>
  411                 <Layers>
  412                         <Layer level="BACKGROUND">
  413                                 <Texture name="DressUpFramePortrait">
  414                                         <Size>
  415                                                 <AbsDimension x="60" y="60"/>
  416                                         </Size>
  417                                         <Anchors>
  418                                                 <Anchor point="TOPLEFT">
  419                                                         <Offset>
  420                                                                 <AbsDimension x="7" y="-6"/>
  421                                                         </Offset>
  422                                                 </Anchor>
  423                                         </Anchors>
  424                                 </Texture>
  425                         </Layer>
  426                         <Layer level="ARTWORK">
  427                                 <Texture file="Interface\PaperDollInfoFrame\UI-Character-General-TopLeft">
  428                                         <Size>
  429                                                 <AbsDimension x="256" y="256"/>
  430                                         </Size>
  431                                         <Anchors>
  432                                                 <Anchor point="TOPLEFT"/>
  433                                         </Anchors>
  434                                 </Texture>
  435                                 <Texture file="Interface\PaperDollInfoFrame\UI-Character-General-TopRight">
  436                                         <Size>
  437                                                 <AbsDimension x="128" y="256"/>
  438                                         </Size>
  439                                         <Anchors>
  440                                                 <Anchor point="TOPLEFT">
  441                                                         <Offset>
  442                                                                 <AbsDimension x="256" y="0"/>
  443                                                         </Offset>
  444                                                 </Anchor>
  445                                         </Anchors>
  446                                 </Texture>
  447                                 <Texture file="Interface\PaperDollInfoFrame\SkillFrame-BotLeft">
  448                                         <Size>
  449                                                 <AbsDimension x="256" y="256"/>
  450                                         </Size>
  451                                         <Anchors>
  452                                                 <Anchor point="TOPLEFT">
  453                                                         <Offset>
  454                                                                 <AbsDimension x="0" y="-256"/>
  455                                                         </Offset>
  456                                                 </Anchor>
  457                                         </Anchors>
  458                                 </Texture>
  459                                 <Texture file="Interface\PaperDollInfoFrame\SkillFrame-BotRight">
  460                                         <Size>
  461                                                 <AbsDimension x="128" y="256"/>
  462                                         </Size>
  463                                         <Anchors>
  464                                                 <Anchor point="TOPLEFT">
  465                                                         <Offset>
  466                                                                 <AbsDimension x="256" y="-256"/>
  467                                                         </Offset>
  468                                                 </Anchor>
  469                                         </Anchors>
  470                                 </Texture>
  471                                 <FontString name="DressUpFrameTitleText" inherits="GameFontHighlight" text="DRESSUP_FRAME">
  472                                         <Size>
  473                                                 <AbsDimension x="300" y="14"/>
  474                                         </Size>
  475                                         <Anchors>
  476                                                 <Anchor point="TOP" relativePoint="TOP">
  477                                                         <Offset>
  478                                                                 <AbsDimension x="0" y="-16"/>
  479                                                         </Offset>
  480                                                 </Anchor>
  481                                         </Anchors>
  482                                 </FontString>
  483                                 <FontString name="DressUpFrameDescriptionText" inherits="GameFontNormalSmall" text="DRESSUP_FRAME_INSTRUCTIONS">
  484                                         <Size>
  485                                                 <AbsDimension x="260" y="36"/>
  486                                         </Size>
  487                                         <Anchors>
  488                                                 <Anchor point="CENTER" relativeTo="DressUpFrameTitleText" relativePoint="BOTTOM">
  489                                                         <Offset>
  490                                                                 <AbsDimension x="10" y="-22"/>
  491                                                         </Offset>
  492                                                 </Anchor>
  493                                         </Anchors>
  494                                 </FontString>
  495                         </Layer>
  496                         <Layer level="OVERLAY">
  497                                 <Texture name="DressUpBackgroundTopLeft">
  498                                         <Size>
  499                                                 <AbsDimension x="256" y="255"/>
  500                                         </Size>
  501                                         <Anchors>
  502                                                 <Anchor point="TOPLEFT">
  503                                                         <Offset>
  504                                                                 <AbsDimension x="22" y="-76"/>
  505                                                         </Offset>
  506                                                 </Anchor>
  507                                         </Anchors>
  508                                 </Texture>
  509                                 <Texture name="DressUpBackgroundTopRight">
  510                                         <Size>
  511                                                 <AbsDimension x="62" y="255"/>
  512                                         </Size>
  513                                         <Anchors>
  514                                                 <Anchor point="TOPLEFT" relativeTo="DressUpBackgroundTopLeft" relativePoint="TOPRIGHT"/>
  515                                         </Anchors>
  516                                 </Texture>
  517                                 <Texture name="DressUpBackgroundBotLeft">
  518                                         <Size>
  519                                                 <AbsDimension x="256" y="128"/>
  520                                         </Size>
  521                                         <Anchors>
  522                                                 <Anchor point="TOPLEFT" relativeTo="DressUpBackgroundTopLeft" relativePoint="BOTTOMLEFT"/>
  523                                         </Anchors>
  524                                 </Texture>
  525                                 <Texture name="DressUpBackgroundBotRight">
  526                                         <Size>
  527                                                 <AbsDimension x="62" y="128"/>
  528                                         </Size>
  529                                         <Anchors>
  530                                                 <Anchor point="TOPLEFT" relativeTo="DressUpBackgroundTopLeft" relativePoint="BOTTOMRIGHT"/>
  531                                         </Anchors>
  532                                 </Texture>
  533                         </Layer>
  534                 </Layers>
  535                 <Frames>
  536                         <Button name="DressUpFrameCloseButton" inherits="UIPanelCloseButton">
  537                                 <Anchors>
  538                                         <Anchor point="CENTER" relativePoint="TOPRIGHT">
  539                                                 <Offset>
  540                                                         <AbsDimension x="-46" y="-25"/>
  541                                                 </Offset>
  542                                         </Anchor>
  543                                 </Anchors>
  544                         </Button>
  545                         <Button name="DressUpFrameCancelButton" inherits="UIPanelButtonTemplate" text="CLOSE">
  546                                 <Size>
  547                                         <AbsDimension x="80" y="22"/>
  548                                 </Size>
  549                                 <Anchors>
  550                                         <Anchor point="CENTER" relativePoint="TOPLEFT">
  551                                                 <Offset>
  552                                                         <AbsDimension x="305" y="-422"/>
  553                                                 </Offset>
  554                                         </Anchor>
  555                                 </Anchors>
  556                                 <Scripts>
  557                                         <OnClick function="HideParentPanel"/>
  558                                 </Scripts>
  559                         </Button>
  560                         <Button name="DressUpFrameResetButton" inherits="UIPanelButtonTemplate" text="RESET">
  561                                 <Size>
  562                                         <AbsDimension x="80" y="22"/>
  563                                 </Size>
  564                                 <Anchors>
  565                                         <Anchor point="RIGHT" relativeTo="DressUpFrameCancelButton" relativePoint="LEFT">
  566                                                 <Offset>
  567                                                         <AbsDimension x="0" y="0"/>
  568                                                 </Offset>
  569                                         </Anchor>
  570                                 </Anchors>
  571                                 <Scripts>
  572                                         <OnClick>
  573                                                 DressUpModel:Dress();
  574                                                 PlaySound("gsTitleOptionOK");
  575                                         </OnClick>
  576                                 </Scripts>
  577                         </Button>
  578                         <DressUpModel name="DressUpModel" scale="2.0" inherits="ModelWithControlsTemplate">
  579                                 <Size>
  580                                         <AbsDimension x="316" y="331"/>
  581                                 </Size>
  582                                 <Anchors>
  583                                         <Anchor point="BOTTOM">
  584                                                 <Offset>
  585                                                         <AbsDimension x="-11" y="105"/>
  586                                                 </Offset>
  587                                         </Anchor>
  588                                 </Anchors>
  589                                 <Scripts>
  590                                         <OnLoad>
  591                                                 Model_OnLoad(self, MODELFRAME_MAX_PLAYER_ZOOM);
  592                                         </OnLoad>
  593                                 </Scripts>
  594                         </DressUpModel>
  595                 </Frames>
  596                 <Scripts>
  597                         <OnLoad function="SetDressUpBackground"/>
  598                         <OnShow>
  599                                 SetPortraitTexture(DressUpFramePortrait, "player");
  600                                 PlaySound("igCharacterInfoOpen");
  601                         </OnShow>
  602                         <OnHide>
  603                                 PlaySound("igCharacterInfoClose");
  604                         </OnHide>
  605                 </Scripts>
  606         </Frame>
  607 </Ui>
   
File: FrameXML\MultiActionBars.xml  
4           <CheckButton name="MultiBar1ButtonTemplate" virtual="true" inherits="ActionBarButtonTemplate">
  5         <CheckButton name="MultiBarButtonTemplate" virtual="true" inherits="ActionBarButtonTemplate">
  6                 <Layers>
  7                         <Layer level="BACKGROUND" textureSubLevel="-1">
  8                                 <Texture name="$parentFloatingBG" file="Interface\Buttons\UI-Quickslot" alpha="0.4">
  9                                         <Anchors>
  10                                                 <Anchor point="TOPLEFT" x="-15" y="15"/>
  11                                                 <Anchor point="BOTTOMRIGHT" x="15" y="-15"/>
  12                                         </Anchors>
  13                                 </Texture>
  14                         </Layer>
  15                 </Layers>
  16         </CheckButton>
 
  18         <CheckButton name="MultiBar1ButtonTemplate" virtual="true" inherits="MultiBarButtonTemplate">
 
12           <CheckButton name="MultiBar2ButtonTemplate" virtual="true" inherits="ActionBarButtonTemplate">
  26         <CheckButton name="MultiBar2ButtonTemplate" virtual="true" inherits="MultiBarButtonTemplate">
 
20           <CheckButton name="MultiBar3ButtonTemplate" virtual="true" inherits="ActionBarButtonTemplate">
  34         <CheckButton name="MultiBar3ButtonTemplate" virtual="true" inherits="MultiBarButtonTemplate">
 
29           <CheckButton name="MultiBar4ButtonTemplate" virtual="true" inherits="ActionBarButtonTemplate">
  43         <CheckButton name="MultiBar4ButtonTemplate" virtual="true" inherits="MultiBarButtonTemplate">
   
File: FrameXML\PaperDollFrame.lua  
62   PDFITEMFLYOUT_MAXITEMS = 23;
 
64   PDFITEMFLYOUT_ONESLOT_LEFT_COORDS = { 0, 0.09765625, 0.5546875, 0.77734375 }
65   PDFITEMFLYOUT_ONESLOT_RIGHT_COORDS = { 0.41796875, 0.51171875, 0.5546875, 0.77734375 }
 
67   PDFITEMFLYOUT_ONESLOT_LEFTWIDTH = 25;
68   PDFITEMFLYOUT_ONESLOT_RIGHTWIDTH = 24;
 
70   PDFITEMFLYOUT_ONESLOT_WIDTH = 49;
71   PDFITEMFLYOUT_ONESLOT_HEIGHT = 54;
 
73   PDFITEMFLYOUT_ONEROW_LEFT_COORDS = { 0, 0.16796875, 0.5546875, 0.77734375 }
74   PDFITEMFLYOUT_ONEROW_CENTER_COORDS = { 0.16796875, 0.328125, 0.5546875, 0.77734375 }
75   PDFITEMFLYOUT_ONEROW_RIGHT_COORDS = { 0.328125, 0.51171875, 0.5546875, 0.77734375 }
 
77   PDFITEMFLYOUT_MULTIROW_TOP_COORDS = { 0, 0.8359375, 0, 0.19140625 }
78   PDFITEMFLYOUT_MULTIROW_MIDDLE_COORDS = { 0, 0.8359375, 0.19140625, 0.35546875 }
79   PDFITEMFLYOUT_MULTIROW_BOTTOM_COORDS = { 0, 0.8359375, 0.35546875, 0.546875 }
 
81   PDFITEMFLYOUT_ONEROW_HEIGHT = 54;
 
83   PDFITEMFLYOUT_ONEROW_LEFT_WIDTH = 43;
84   PDFITEMFLYOUT_ONEROW_CENTER_WIDTH = 41;
85   PDFITEMFLYOUT_ONEROW_RIGHT_WIDTH = 47;
 
87   PDFITEMFLYOUT_MULTIROW_WIDTH = 214;
 
89   PDFITEMFLYOUT_MULTIROW_TOP_HEIGHT = 49;
90   PDFITEMFLYOUT_MULTIROW_MIDDLE_HEIGHT = 42;
91   PDFITEMFLYOUT_MULTIROW_BOTTOM_HEIGHT = 49;
 
93   PDFITEMFLYOUT_PLACEINBAGS_LOCATION = 0xFFFFFFFF;
94   PDFITEMFLYOUT_IGNORESLOT_LOCATION = 0xFFFFFFFE;
95   PDFITEMFLYOUT_UNIGNORESLOT_LOCATION = 0xFFFFFFFD;
96   PDFITEMFLYOUT_FIRST_SPECIAL_LOCATION = PDFITEMFLYOUT_UNIGNORESLOT_LOCATION
 
103   local VERTICAL_FLYOUTS = { [16] = true, [17] = true, [18] = true }
 
  438         self:RegisterEvent("UNIT_MAXHEALTH");
  439         -- flyout settings
  440         PaperDollItemsFrame.flyoutSettings = {
  441                 onClickFunc = PaperDollFrameItemFlyoutButton_OnClick,
  442                 getItemsFunc = PaperDollFrameItemFlyout_GetItems,
  443                 postGetItemsFunc = PaperDollFrameItemFlyout_PostGetItems,
  444                 hasPopouts = true,
  445                 parent = PaperDollFrame,
  446                 anchorX = 0,
  447                 anchorY = -3,
  448                 verticalAnchorX = 0,
  449                 verticalAnchorY = 0,
  450         };
 
520                   elseif ( event == "UNIT_DAMAGE" or event == "UNIT_ATTACK_SPEED" or event == "UNIT_RANGEDDAMAGE" or event == "UNIT_ATTACK" or event == "UNIT_STATS" or event == "UNIT_RANGED_ATTACK_POWER" or event == "UNIT_RESISTANCES" or event == "UNIT_SPELL_HASTE") then
  495                 elseif ( event == "UNIT_DAMAGE" or event == "UNIT_ATTACK_SPEED" or event == "UNIT_RANGEDDAMAGE" or event == "UNIT_ATTACK" or event == "UNIT_STATS" or event == "UNIT_RANGED_ATTACK_POWER" or event == "UNIT_RESISTANCES" or event == "UNIT_SPELL_HASTE" or event == "UNIT_MAXHEALTH" ) then
 
  775                                 if (GetOverrideSpellPowerByAP() ~= nil) then
  776                                         statFrame.tooltip2 = format(STAT4_NOSPELLPOWER_TOOLTIP, baseInt + moreInt*MANA_PER_INTELLECT, GetSpellCritChanceFromIntellect("player"));
  777                                 else
 
  779                                 end
 
1242           statFrame.tooltip2 = format(MELEE_ATTACK_POWER_TOOLTIP, max((base+posBuff+negBuff), 0)/ATTACK_POWER_MAGIC_NUMBER);
  1221         local damageBonus = max((base+posBuff+negBuff), 0)/ATTACK_POWER_MAGIC_NUMBER;
  1222         local effectiveAP = max(0,base + posBuff + negBuff);
  1223         if (GetOverrideSpellPowerByAP() ~= nil) then
  1224                 statFrame.tooltip2 = format(MELEE_ATTACK_POWER_SPELL_POWER_TOOLTIP, damageBonus, effectiveAP * GetOverrideSpellPowerByAP() + 0.5);
  1225         else
  1226                 statFrame.tooltip2 = format(MELEE_ATTACK_POWER_TOOLTIP, damageBonus);
  1227         end
 
2014           mastery = format("%.2f", mastery);
 
2016           local title = HIGHLIGHT_FONT_COLOR_CODE..format(PAPERDOLLFRAME_TOOLTIP_FORMAT, STAT_MASTERY).." "..mastery..FONT_COLOR_CODE_CLOSE;
  2000         local title = HIGHLIGHT_FONT_COLOR_CODE..format(PAPERDOLLFRAME_TOOLTIP_FORMAT, STAT_MASTERY).." "..format("%.2F", mastery)..FONT_COLOR_CODE_CLOSE;
 
2073           local avgItemLevel = GetAverageItemLevel();
  2057         local avgItemLevel, avgItemLevelEquipped = GetAverageItemLevel();
 
2075           text:SetText(avgItemLevel);
2076           statFrame.tooltip = HIGHLIGHT_FONT_COLOR_CODE..format(PAPERDOLLFRAME_TOOLTIP_FORMAT, STAT_AVERAGE_ITEM_LEVEL).." "..avgItemLevel..FONT_COLOR_CODE_CLOSE;
  2059         avgItemLevelEquipped = floor(avgItemLevelEquipped);
  2060         text:SetText(avgItemLevelEquipped .. " / " .. avgItemLevel);
  2061         statFrame.tooltip = HIGHLIGHT_FONT_COLOR_CODE..format(PAPERDOLLFRAME_TOOLTIP_FORMAT, STAT_AVERAGE_ITEM_LEVEL).." "..avgItemLevel;
  2062         if (avgItemLevelEquipped ~= avgItemLevel) then
  2063                 statFrame.tooltip = statFrame.tooltip .. "  " .. format(STAT_AVERAGE_ITEM_LEVEL_EQUIPPED, avgItemLevelEquipped);
  2064         end
  2065         statFrame.tooltip = statFrame.tooltip .. FONT_COLOR_CODE_CLOSE;
 
2293   function PaperDollItemSlotButton_OnShow (self)
2294           self:RegisterEvent("UNIT_INVENTORY_CHANGED");
  2282 function PaperDollItemSlotButton_OnShow (self, isBag)
  2283         self:RegisterEvent("PLAYER_EQUIPMENT_CHANGED");
 
2299           self:RegisterEvent("BAG_UPDATE_COOLDOWN");
 
2302    
  2290         if ( not isBag ) then
  2291                 self:RegisterEvent("BAG_UPDATE_COOLDOWN");
  2292         end
 
2307           self:UnregisterEvent("UNIT_INVENTORY_CHANGED");
  2297         self:UnregisterEvent("PLAYER_EQUIPMENT_CHANGED");
 
2319           if ( event == "UNIT_INVENTORY_CHANGED" ) then
2320                   if ( arg1 == "player" ) then
  2309         if ( event == "PLAYER_EQUIPMENT_CHANGED" ) then
  2310                 if ( self:GetID() == arg1 ) then
 
2445   function PaperDollItemSlotButton_UpdateFlyout (self)
2446           if ( self:GetID() ~= INVSLOT_AMMO ) then
2447                   if ( (IsModifiedClick("SHOWITEMFLYOUT") and not (PaperDollFrameItemFlyout:IsVisible() and PaperDollFrameItemFlyout.button == self)) or
2448                           self.popoutButton.flyoutLocked) then
2449                           PaperDollFrameItemFlyout_Show(self);
2450                   elseif ( (PaperDollFrameItemFlyout:IsVisible() and PaperDollFrameItemFlyout.button == self) and
2451                           not self.popoutButton.flyoutLocked and not IsModifiedClick("SHOWITEMFLYOUT") ) then
2452                           PaperDollFrameItemFlyout_Hide();
2453                   end
2454           end
2455   end
 
2459           PaperDollItemSlotButton_UpdateFlyout(self);
2460           if ( PaperDollFrameItemFlyout:IsShown() ) then
2461                   GameTooltip:SetOwner(PaperDollFrameItemFlyoutButtons, "ANCHOR_RIGHT", 6, -PaperDollFrameItemFlyoutButtons:GetHeight() - 6);
2462           else
  2437         EquipmentFlyout_UpdateFlyout(self);
  2438         if ( not EquipmentFlyout_SetTooltipAnchor(self) ) then
 
3061   PDFITEMFLYOUT_ITEMS_PER_ROW = 5;
 
3063   PDFITEMFLYOUT_BORDERWIDTH = 3;
 
3065   PDFITEMFLYOUT_WIDTH = 43;
3066   PDFITEMFLYOUT_HEIGHT = 43;
3067   PDFITEM_WIDTH = 37;
3068   PDFITEM_HEIGHT = 37;
3069   PDFITEM_XOFFSET = 4;
3070   PDFITEM_YOFFSET = -5;
 
3072   local itemTable = {}; -- Used for items and locations
3073   local itemDisplayTable = {} -- Used for ordering items by location
 
3075   function PaperDollFrameItemFlyout_CreateButton ()
3076           local buttons = PaperDollFrameItemFlyout.buttons;
3077           local buttonAnchor = PaperDollFrameItemFlyoutButtons;  
3078           local numButtons = #buttons;
 
3080           local button = CreateFrame("BUTTON", "PaperDollFrameItemFlyoutButtons" .. numButtons + 1, buttonAnchor, "PaperDollFrameItemFlyoutButtonTemplate");
 
3082           local pos = numButtons/PDFITEMFLYOUT_ITEMS_PER_ROW;
3083           if ( math.floor(pos) == pos ) then
3084                   -- This is the first button in a row.
3085                   button:SetPoint("TOPLEFT", buttonAnchor, "TOPLEFT", PDFITEMFLYOUT_BORDERWIDTH, -PDFITEMFLYOUT_BORDERWIDTH - (PDFITEM_HEIGHT - PDFITEM_YOFFSET)* pos);
3086           else
3087                   button:SetPoint("TOPLEFT", buttons[numButtons], "TOPRIGHT", PDFITEM_XOFFSET, 0);
3088           end
 
3090           tinsert(buttons, button);
3091           return button
3092   end
 
3094   function PaperDollFrameItemFlyout_Hide ()
3095           PaperDollFrameItemFlyout:Hide();
3096   end
 
3098   function PaperDollFrameItemFlyout_OnUpdate (self, elapsed)
3099           if ( not IsModifiedClick("SHOWITEMFLYOUT") ) then
3100                   local button = self.button;
 
3102                   if ( button and button.popoutButton.flyoutLocked ) then
3103                           PaperDollItemSlotButton_UpdateFlyout(button);
3104                   elseif ( button and button:IsMouseOver() ) then
3105                           PaperDollItemSlotButton_OnEnter(button);
3106                   else
3107                           PaperDollFrameItemFlyout_Hide();
3108                   end
3109           end
3110   end
 
3112   function PaperDollFrameItemFlyout_OnShow (self)
3113           self:RegisterEvent("BAG_UPDATE");
3114           self:RegisterEvent("UNIT_INVENTORY_CHANGED");
3115   end
 
3117   function PaperDollFrameItemFlyout_OnHide (self)
3118           if ( self.button ) then
3119                   local popoutButton = self.button.popoutButton;
3120                   popoutButton.flyoutLocked = false;
3121                   PaperDollFrameItemPopoutButton_SetReversed(popoutButton, false);
3122           end
3123           self.button = nil;
3124           self:UnregisterEvent("BAG_UPDATE");
3125           self:UnregisterEvent("UNIT_INVENTORY_CHANGED");
3126   end
 
3128   function PaperDollFrameItemFlyout_OnEvent (self, event, ...)
3129           if ( event == "BAG_UPDATE" ) then
3130                   -- This spams a lot, four times when we equip an item, but we need to use it. PaperDollFrameItemFlyout_Show needs to stay fast for this reason.
3131                   PaperDollFrameItemFlyout_Show(self.button);
3132           elseif ( event == "UNIT_INVENTORY_CHANGED" ) then
3133                   local arg1 = ...;
3134                   if ( arg1 == "player" ) then
3135                           PaperDollFrameItemFlyout_Show(self.button);
3136                   end
3137           end
3138   end
 
3140   local function _createFlyoutBG (buttonAnchor)
3141           local numBGs = buttonAnchor["numBGs"];
3142           numBGs = numBGs + 1;
3143           local texture = buttonAnchor:CreateTexture(nil, nil, "PaperDollFrameFlyoutTexture");
3144           buttonAnchor["bg" .. numBGs] = texture;
3145           buttonAnchor["numBGs"] = numBGs;
3146           return texture;
3147   end
 
3149   function PaperDollFrameItemFlyout_Show (paperDollItemSlot)
3150           local id = paperDollItemSlot:GetID();
 
3152           local flyout = PaperDollFrameItemFlyout;
3153           local buttons = flyout.buttons;
3154           local buttonAnchor = flyout.buttonFrame;
 
3156           if ( flyout.button and flyout.button ~= paperDollItemSlot ) then
3157                   local popoutButton = flyout.button.popoutButton;
3158                   if ( popoutButton.flyoutLocked ) then
3159                           popoutButton.flyoutLocked = false;
3160                           PaperDollFrameItemPopoutButton_SetReversed(popoutButton, false);
3161                   end
3162           end
 
3164           for k in next, itemDisplayTable do
3165                   itemDisplayTable[k] = nil;
3166           end
 
3168           for k in next, itemTable do
3169                   itemTable[k] = nil;
3170           end
 
3172           GetInventoryItemsForSlot(id, itemTable);
 
3174           for location, itemID in next, itemTable do
3175                   if ( location - id == ITEM_INVENTORY_LOCATION_PLAYER ) then -- Remove the currently equipped item from the list
3176                           itemTable[location] = nil;
3177                   else
3178                           tinsert(itemDisplayTable, location);
3179                   end
3180           end
 
3182           table.sort(itemDisplayTable); -- Sort by location. This ends up as: inventory, backpack, bags, bank, and bank bags.
 
3184           local numItems = #itemDisplayTable;
 
3186           for i = PDFITEMFLYOUT_MAXITEMS + 1, numItems do
3187                   itemDisplayTable[i] = nil;
3188           end
 
3190           numItems = min(numItems, PDFITEMFLYOUT_MAXITEMS);
 
3192           if (PaperDollEquipmentManagerPane:IsShown() and (PaperDollEquipmentManagerPane.selectedSetName or GearManagerDialogPopup:IsShown())) then
3193                   if ( not paperDollItemSlot.ignored ) then
3194                           tinsert(itemDisplayTable, 1, PDFITEMFLYOUT_IGNORESLOT_LOCATION);
3195                   else
3196                           tinsert(itemDisplayTable, 1, PDFITEMFLYOUT_UNIGNORESLOT_LOCATION);
3197                   end
3198                   numItems = numItems + 1;
3199           end
 
3201           if ( paperDollItemSlot.hasItem ) then
3202                   tinsert(itemDisplayTable, 1, PDFITEMFLYOUT_PLACEINBAGS_LOCATION);
3203                   numItems = numItems + 1;
3204           end
 
3206           while #buttons < numItems do -- Create any buttons we need.
3207                   PaperDollFrameItemFlyout_CreateButton();
3208           end
 
3210           if ( numItems == 0 ) then
3211                   flyout:Hide();
3212                   return;
3213           end
 
3215           for i, button in ipairs(buttons) do
3216                   if ( i <= numItems ) then
3217                           button.id = id;
3218                           button.location = itemDisplayTable[i];
3219                           button:Show();
 
3221                           PaperDollFrameItemFlyout_DisplayButton(button, paperDollItemSlot);
3222                   else
3223                           button:Hide();
3224                   end
3225           end
 
3227           flyout:ClearAllPoints();
3228           flyout:SetFrameLevel(paperDollItemSlot:GetFrameLevel() - 1);
3229           flyout.button = paperDollItemSlot;
3230           flyout:SetPoint("TOPLEFT", paperDollItemSlot, "TOPLEFT", -PDFITEMFLYOUT_BORDERWIDTH, PDFITEMFLYOUT_BORDERWIDTH);
3231           local horizontalItems = min(numItems, PDFITEMFLYOUT_ITEMS_PER_ROW);
3232           if ( paperDollItemSlot.verticalFlyout ) then
3233                   buttonAnchor:SetPoint("TOPLEFT", paperDollItemSlot.popoutButton, "BOTTOMLEFT", 0, -PDFITEMFLYOUT_BORDERWIDTH);
3234           else
3235                   buttonAnchor:SetPoint("TOPLEFT", paperDollItemSlot.popoutButton, "TOPRIGHT", 0, 0);
3236           end
3237           buttonAnchor:SetWidth((horizontalItems * PDFITEM_WIDTH) + ((horizontalItems - 1) * PDFITEM_XOFFSET) + PDFITEMFLYOUT_BORDERWIDTH);
3238           buttonAnchor:SetHeight(PDFITEMFLYOUT_HEIGHT + (math.floor((numItems - 1)/PDFITEMFLYOUT_ITEMS_PER_ROW) * (PDFITEM_HEIGHT - PDFITEM_YOFFSET)));
 
3241           if ( flyout.numItems ~= numItems ) then
3242                   local texturesUsed = 0;
3243                   if ( numItems == 1 ) then
3244                           local bgTex, lastBGTex;
3245                           bgTex = buttonAnchor.bg1;
3246                           bgTex:ClearAllPoints();
3247                           bgTex:SetTexCoord(unpack(PDFITEMFLYOUT_ONESLOT_LEFT_COORDS));
3248                           bgTex:SetWidth(PDFITEMFLYOUT_ONESLOT_LEFTWIDTH);
3249                           bgTex:SetHeight(PDFITEMFLYOUT_ONEROW_HEIGHT);
3250                           bgTex:SetPoint("TOPLEFT", -5, 4);
3251                           bgTex:Show();
3252                           texturesUsed = texturesUsed + 1;
3253                           lastBGTex = bgTex;
 
3255                           bgTex = buttonAnchor.bg2 or _createFlyoutBG(buttonAnchor);
3256                           bgTex:ClearAllPoints();
3257                           bgTex:SetTexCoord(unpack(PDFITEMFLYOUT_ONESLOT_RIGHT_COORDS));
3258                           bgTex:SetWidth(PDFITEMFLYOUT_ONESLOT_RIGHTWIDTH);
3259                           bgTex:SetHeight(PDFITEMFLYOUT_ONEROW_HEIGHT);
3260                           bgTex:SetPoint("TOPLEFT", lastBGTex, "TOPRIGHT");
3261                           bgTex:Show();
3262                           texturesUsed = texturesUsed + 1;
3263                           lastBGTex = bgTex;
3264                   elseif ( numItems <= PDFITEMFLYOUT_ITEMS_PER_ROW ) then
3265                           local bgTex, lastBGTex;
3266                           bgTex = buttonAnchor.bg1;
3267                           bgTex:ClearAllPoints();
3268                           bgTex:SetTexCoord(unpack(PDFITEMFLYOUT_ONEROW_LEFT_COORDS));
3269                           bgTex:SetWidth(PDFITEMFLYOUT_ONEROW_LEFT_WIDTH);
3270                           bgTex:SetHeight(PDFITEMFLYOUT_ONEROW_HEIGHT);
3271                           bgTex:SetPoint("TOPLEFT", -5, 4);
3272                           bgTex:Show();
3273                           texturesUsed = texturesUsed + 1;
3274                           lastBGTex = bgTex;
3275                           for i = texturesUsed + 1, numItems - 1 do
3276                                   bgTex = buttonAnchor["bg"..i] or _createFlyoutBG(buttonAnchor);
3277                                   bgTex:ClearAllPoints();
3278                                   bgTex:SetTexCoord(unpack(PDFITEMFLYOUT_ONEROW_CENTER_COORDS));
3279                                   bgTex:SetWidth(PDFITEMFLYOUT_ONEROW_CENTER_WIDTH);
3280                                   bgTex:SetHeight(PDFITEMFLYOUT_ONEROW_HEIGHT);
3281                                   bgTex:SetPoint("TOPLEFT", lastBGTex, "TOPRIGHT");
3282                                   bgTex:Show();
3283                                   texturesUsed = texturesUsed + 1;
3284                                   lastBGTex = bgTex;
3285                           end
 
3287                           bgTex = buttonAnchor["bg"..numItems] or _createFlyoutBG(buttonAnchor);
3288                           bgTex:ClearAllPoints();
3289                           bgTex:SetTexCoord(unpack(PDFITEMFLYOUT_ONEROW_RIGHT_COORDS));
3290                           bgTex:SetWidth(PDFITEMFLYOUT_ONEROW_RIGHT_WIDTH);
3291                           bgTex:SetHeight(PDFITEMFLYOUT_ONEROW_HEIGHT);
3292                           bgTex:SetPoint("TOPLEFT", lastBGTex, "TOPRIGHT");
3293                           bgTex:Show();
3294                           texturesUsed = texturesUsed + 1;
3295                   elseif ( numItems > PDFITEMFLYOUT_ITEMS_PER_ROW ) then
3296                           local numRows = math.ceil(numItems/PDFITEMFLYOUT_ITEMS_PER_ROW);
3297                           local bgTex, lastBGTex;
3298                           bgTex = buttonAnchor.bg1;
3299                           bgTex:ClearAllPoints();
3300                           bgTex:SetTexCoord(unpack(PDFITEMFLYOUT_MULTIROW_TOP_COORDS));
3301                           bgTex:SetWidth(PDFITEMFLYOUT_MULTIROW_WIDTH);
3302                           bgTex:SetHeight(PDFITEMFLYOUT_MULTIROW_TOP_HEIGHT);
3303                           bgTex:SetPoint("TOPLEFT", -5, 4);
3304                           bgTex:Show();
3305                           texturesUsed = texturesUsed + 1;
3306                           lastBGTex = bgTex;
3307                           for i = 2, numRows - 1 do -- Middle rows
3308                                   bgTex = buttonAnchor["bg"..i] or _createFlyoutBG(buttonAnchor);
3309                                   bgTex:ClearAllPoints();
3310                                   bgTex:SetTexCoord(unpack(PDFITEMFLYOUT_MULTIROW_MIDDLE_COORDS));
3311                                   bgTex:SetWidth(PDFITEMFLYOUT_MULTIROW_WIDTH);
3312                                   bgTex:SetHeight(PDFITEMFLYOUT_MULTIROW_MIDDLE_HEIGHT);
3313                                   bgTex:SetPoint("TOPLEFT", lastBGTex, "BOTTOMLEFT");
3314                                   bgTex:Show();
3315                                   texturesUsed = texturesUsed + 1;
3316                                   lastBGTex = bgTex;
3317                           end
 
3319                           bgTex = buttonAnchor["bg"..numRows] or _createFlyoutBG(buttonAnchor);
3320                           bgTex:ClearAllPoints();
3321                           bgTex:SetTexCoord(unpack(PDFITEMFLYOUT_MULTIROW_BOTTOM_COORDS));
3322                           bgTex:SetWidth(PDFITEMFLYOUT_MULTIROW_WIDTH);
3323                           bgTex:SetHeight(PDFITEMFLYOUT_MULTIROW_BOTTOM_HEIGHT);
3324                           bgTex:SetPoint("TOPLEFT", lastBGTex, "BOTTOMLEFT");
3325                           bgTex:Show();
3326                           texturesUsed = texturesUsed + 1;
3327                           lastBGTex = bgTex;
3328                   end
 
3330                   for i = texturesUsed + 1, buttonAnchor["numBGs"] do
3331                           buttonAnchor["bg" .. i]:Hide();
3332                   end
3333                   flyout.numItems = numItems;
3334           end
 
3336           flyout:Show();
3337   end
 
3339   function PaperDollFrameItemFlyout_DisplayButton (button, paperDollItemSlot)
3340           local location = button.location;
3341           if ( not location ) then
3342                   return;
3343           end
3344           if ( location >= PDFITEMFLYOUT_FIRST_SPECIAL_LOCATION ) then
3345                   PaperDollFrameItemFlyout_DisplaySpecialButton(button, paperDollItemSlot);
3346                   return;
3347           end
 
3349           local id, name, textureName, count, durability, maxDurability, invType, locked, start, duration, enable, setTooltip = EquipmentManager_GetItemInfoByLocation(location);
 
3351           local broken = ( maxDurability and durability == 0 );
3352           if ( textureName ) then
3353                   SetItemButtonTexture(button, textureName);
3354                   SetItemButtonCount(button, count);
3355                   if ( broken ) then
3356                           SetItemButtonTextureVertexColor(button, 0.9, 0, 0);
3357                           SetItemButtonNormalTextureVertexColor(button, 0.9, 0, 0);
3358                   else
3359                           SetItemButtonTextureVertexColor(button, 1.0, 1.0, 1.0);
3360                           SetItemButtonNormalTextureVertexColor(button, 1.0, 1.0, 1.0);
3361                   end
 
3363                   CooldownFrame_SetTimer(button.cooldown, start, duration, enable);
 
3365                   button.UpdateTooltip = function () GameTooltip:SetOwner(PaperDollFrameItemFlyoutButtons, "ANCHOR_RIGHT", 6, -PaperDollFrameItemFlyoutButtons:GetHeight() - 6); setTooltip(); end;
3366                   if ( button:IsMouseOver() ) then
3367                           button.UpdateTooltip();
3368                   end
3369           else
3370                   textureName = paperDollItemSlot.backgroundTextureName;
3371                   if ( paperDollItemSlot.checkRelic and UnitHasRelicSlot("player") ) then
3372                           textureName = "Interface\\Paperdoll\\UI-PaperDoll-Slot-Relic.blp";
3373                   end
3374                   SetItemButtonTexture(button, textureName);
3375                   SetItemButtonCount(button, 0);
3376                   SetItemButtonTextureVertexColor(button, 1.0, 1.0, 1.0);
3377                   SetItemButtonNormalTextureVertexColor(button, 1.0, 1.0, 1.0);
3378                   button.cooldown:Hide();
3379                   button.UpdateTooltip = nil;
3380           end
3381   end
 
3383   function PaperDollFrameItemFlyout_DisplaySpecialButton (button, paperDollItemSlot)
3384           local location = button.location;
3385           if ( location == PDFITEMFLYOUT_IGNORESLOT_LOCATION ) then
3386                   SetItemButtonTexture(button, "Interface\\PaperDollInfoFrame\\UI-GearManager-LeaveItem-Opaque");
3387                   SetItemButtonCount(button, nil);
3388                   button.UpdateTooltip =
3389                           function ()
3390                                   GameTooltip:SetOwner(PaperDollFrameItemFlyoutButtons, "ANCHOR_RIGHT", 6, -PaperDollFrameItemFlyoutButtons:GetHeight() - 6);
3391                                   GameTooltip:SetText(EQUIPMENT_MANAGER_IGNORE_SLOT, 1.0, 1.0, 1.0);
3392                                   if ( SHOW_NEWBIE_TIPS == "1" ) then
3393                                           GameTooltip:AddLine(NEWBIE_TOOLTIP_EQUIPMENT_MANAGER_IGNORE_SLOT, NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, 1);
3394                                   end
3395                                   GameTooltip:Show();
3396                           end;
3397                   SetItemButtonTextureVertexColor(button, 1.0, 1.0, 1.0);
3398                   SetItemButtonNormalTextureVertexColor(button, 1.0, 1.0, 1.0);
3399           elseif ( location == PDFITEMFLYOUT_UNIGNORESLOT_LOCATION ) then
3400                   SetItemButtonTexture(button, "Interface\\PaperDollInfoFrame\\UI-GearManager-Undo");
3401                   SetItemButtonCount(button, nil);
3402                   button.UpdateTooltip =
3403                           function ()
3404                                   GameTooltip:SetOwner(PaperDollFrameItemFlyoutButtons, "ANCHOR_RIGHT", 6, -PaperDollFrameItemFlyoutButtons:GetHeight() - 6);
3405                                   GameTooltip:SetText(EQUIPMENT_MANAGER_UNIGNORE_SLOT, 1.0, 1.0, 1.0);
3406                                   if ( SHOW_NEWBIE_TIPS == "1" ) then
3407                                           GameTooltip:AddLine(NEWBIE_TOOLTIP_EQUIPMENT_MANAGER_UNIGNORE_SLOT, NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, 1);
3408                                   end
3409                                   GameTooltip:Show();
3410                           end;
3411                   SetItemButtonTextureVertexColor(button, 1.0, 1.0, 1.0);
3412                   SetItemButtonNormalTextureVertexColor(button, 1.0, 1.0, 1.0);          
3413           elseif ( location == PDFITEMFLYOUT_PLACEINBAGS_LOCATION ) then
3414                   SetItemButtonTexture(button, "Interface\\PaperDollInfoFrame\\UI-GearManager-ItemIntoBag");
3415                   SetItemButtonCount(button, nil);
3416                   button.UpdateTooltip =
3417                           function ()
3418                                   GameTooltip:SetOwner(PaperDollFrameItemFlyoutButtons, "ANCHOR_RIGHT", 6, -PaperDollFrameItemFlyoutButtons:GetHeight() - 6);
3419                                   GameTooltip:SetText(EQUIPMENT_MANAGER_PLACE_IN_BAGS, 1.0, 1.0, 1.0);
3420                                   if ( SHOW_NEWBIE_TIPS == "1" ) then
3421                                           GameTooltip:AddLine(NEWBIE_TOOLTIP_EQUIPMENT_MANAGER_PLACE_IN_BAGS, NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, 1);
3422                                   end
3423                                   GameTooltip:Show();
3424                           end;
3425                   SetItemButtonTextureVertexColor(button, 1.0, 1.0, 1.0);
3426                   SetItemButtonNormalTextureVertexColor(button, 1.0, 1.0, 1.0);  
3427           end
3428           if ( button:IsMouseOver() and button.UpdateTooltip ) then
3429                   button.UpdateTooltip();
3430           end
3431   end
 
3433   function PaperDollFrameItemFlyoutButton_OnEnter (self)
3434           if ( self.UpdateTooltip ) then
3435                   self.UpdateTooltip(); -- This shows the tooltip, and gets called repeatedly thereafter by GameTooltip.
3436           end
3437   end
 
3440           if ( self.location == PDFITEMFLYOUT_IGNORESLOT_LOCATION ) then
3441                   local slot = PaperDollFrameItemFlyout.button;
  3038         if ( self.location == EQUIPMENTFLYOUT_IGNORESLOT_LOCATION ) then
  3039                 local slot = EquipmentFlyoutFrame.button;
 
3445                   PaperDollFrameItemFlyout_Show(slot);
  3043                 EquipmentFlyout_Show(slot);
 
3447           elseif ( self.location == PDFITEMFLYOUT_UNIGNORESLOT_LOCATION ) then
3448                   local slot = PaperDollFrameItemFlyout.button;
  3045         elseif ( self.location == EQUIPMENTFLYOUT_UNIGNORESLOT_LOCATION ) then
  3046                 local slot = EquipmentFlyoutFrame.button;
 
3452                   PaperDollFrameItemFlyout_Show(slot);
  3050                 EquipmentFlyout_Show(slot);
 
3454           elseif ( self.location == PDFITEMFLYOUT_PLACEINBAGS_LOCATION ) then
3455                   if ( UnitAffectingCombat("player") and not INVSLOTS_EQUIPABLE_IN_COMBAT[PaperDollFrameItemFlyout.button:GetID()] ) then
  3052         elseif ( self.location == EQUIPMENTFLYOUT_PLACEINBAGS_LOCATION ) then
  3053                 if ( UnitAffectingCombat("player") and not INVSLOTS_EQUIPABLE_IN_COMBAT[EquipmentFlyoutFrame.button:GetID()] ) then
 
3459                   local action = EquipmentManager_UnequipItemInSlot(PaperDollFrameItemFlyout.button:GetID());
  3057                 local action = EquipmentManager_UnequipItemInSlot(EquipmentFlyoutFrame.button:GetID());
 
3462                   if ( UnitAffectingCombat("player") and not INVSLOTS_EQUIPABLE_IN_COMBAT[PaperDollFrameItemFlyout.button:GetID()] ) then
  3060                 if ( UnitAffectingCombat("player") and not INVSLOTS_EQUIPABLE_IN_COMBAT[EquipmentFlyoutFrame.button:GetID()] ) then
 
3469           if ( PaperDollFrameItemFlyout.button.popoutButton.flyoutLocked ) then
3470                   PaperDollFrameItemFlyout_Hide();
3471           end
 
3474   local popoutButtons = {}
 
3476   function PaperDollFrameItemPopoutButton_OnLoad(self)
3477           tinsert(popoutButtons, self);
3478   end
 
3480   function PaperDollFrameItemPopoutButton_HideAll()
3481           if ( PaperDollFrameItemFlyout.button and PaperDollFrameItemFlyout.button.popoutButton.flyoutLocked ) then
3482                   PaperDollFrameItemFlyout_Hide();
3483           end
3484           for _, button in pairs(popoutButtons) do
3485                   if ( button.flyoutLocked ) then
3486                           button.flyoutLocked = false;
3487                           PaperDollFrameItemFlyout_Hide();
3488                           PaperDollFrameItemPopoutButton_SetReversed(button, false);
3489                   end
  3069 function PaperDollFrameItemFlyout_GetItems(paperDollItemSlot, itemTable)
  3070         GetInventoryItemsForSlot(paperDollItemSlot, itemTable);
 
3491                   button:Hide();
3492           end
 
3495   function PaperDollFrameItemPopoutButton_ShowAll()
3496           for _, button in pairs(popoutButtons) do
3497                   button:Show();
3498           end
3499   end
  3073 function PaperDollFrameItemFlyout_PostGetItems(itemSlotButton, itemDisplayTable, numItems)
  3074         if (PaperDollEquipmentManagerPane:IsShown() and (PaperDollEquipmentManagerPane.selectedSetName or GearManagerDialogPopup:IsShown())) then
  3075                 if ( not itemSlotButton.ignored ) then
  3076                         tinsert(itemDisplayTable, 1, EQUIPMENTFLYOUT_IGNORESLOT_LOCATION);
 
3501   function PaperDollFrameItemPopoutButton_OnClick(self)
3502           if ( self.flyoutLocked ) then
3503                   self.flyoutLocked = false;
3504                   PaperDollFrameItemFlyout_Hide();
3505                   PaperDollFrameItemPopoutButton_SetReversed(self, false);
 
3507                   self.flyoutLocked = true;
3508                   PaperDollFrameItemFlyout_Show(self:GetParent());
3509                   PaperDollFrameItemPopoutButton_SetReversed(self, true);
  3078                         tinsert(itemDisplayTable, 1, EQUIPMENTFLYOUT_UNIGNORESLOT_LOCATION);
 
  3080                 numItems = numItems + 1;
 
3513   function PaperDollFrameItemPopoutButton_SetReversed(self, isReversed)
3514           if ( self:GetParent().verticalFlyout ) then
3515                   if ( isReversed ) then
3516                           self:GetNormalTexture():SetTexCoord(0.15625, 0.84375, 0, 0.5);
3517                           self:GetHighlightTexture():SetTexCoord(0.15625, 0.84375, 0.5, 1);
3518                   else
3519                           self:GetNormalTexture():SetTexCoord(0.15625, 0.84375, 0.5, 0);
3520                           self:GetHighlightTexture():SetTexCoord(0.15625, 0.84375, 1, 0.5);
3521                   end
3522           else
3523                   if ( isReversed ) then
3524                           self:GetNormalTexture():SetTexCoord(0.15625, 0, 0.84375, 0, 0.15625, 0.5, 0.84375, 0.5);
3525                           self:GetHighlightTexture():SetTexCoord(0.15625, 0.5, 0.84375, 0.5, 0.15625, 1, 0.84375, 1);
3526                   else
3527                           self:GetNormalTexture():SetTexCoord(0.15625, 0.5, 0.84375, 0.5, 0.15625, 0, 0.84375, 0);
3528                           self:GetHighlightTexture():SetTexCoord(0.15625, 1, 0.84375, 1, 0.15625, 0.5, 0.84375, 0.5);
3529                   end
  3082         if ( itemSlotButton.hasItem ) then
  3083                 tinsert(itemDisplayTable, 1, EQUIPMENTFLYOUT_PLACEINBAGS_LOCATION);
  3084                 numItems = numItems + 1;
 
  3086         return numItems;
 
3707           Input:  index = index into a list of equipped items follows by the macro items. Only tricky part is the equipped items list keeps changing.
  3263         Input:  index = index into a list of equipped items followed by the macro items. Only tricky part is the equipped items list keeps changing.
 
3709                           and positive from the equipped items for the macro items//
  3265                         and positive for the macro items//
 
3860           PaperDollFrameItemPopoutButton_ShowAll();
  3416         EquipmentFlyoutPopoutButton_ShowAll();
 
3888           PaperDollFrameItemPopoutButton_HideAll();
  3444         EquipmentFlyoutPopoutButton_HideAll();
   
File: FrameXML\PaperDollFrame.xml  
5           <Texture name="PaperDollFrameFlyoutTexture" file="Interface\PaperDollInfoFrame\UI-GearManager-Flyout" hidden="true" virtual="true"/>
 
19                           <Button name="$parentPopoutButton" parentKey="popoutButton" hidden="true">
20                                   <Size>
21                                           <AbsDimension x="16" y="32"/>
22                                   </Size>
23                                   <Anchors>
24                                           <Anchor point="LEFT" relativePoint="RIGHT"/>
25                                   </Anchors>
26                                   <Scripts>
27                                           <OnLoad>
28                                                   PaperDollFrameItemPopoutButton_OnLoad(self);
29                                           </OnLoad>
30                                           <OnClick>
31                                                   PaperDollFrameItemPopoutButton_OnClick(self);
32                                           </OnClick>
33                                   </Scripts>
34                                   <NormalTexture file="Interface\PaperDollInfoFrame\UI-GearManager-FlyoutButton"/>
35                                   <HighlightTexture file="Interface\PaperDollInfoFrame\UI-GearManager-FlyoutButton"/>
36                           </Button>
  18                         <Button name="$parentPopoutButton" parentKey="popoutButton" inherits="EquipmentFlyoutPopoutButtonTemplate"/>
 
104           </Button>
105           <Button name="PaperDollFrameItemFlyoutButtonTemplate" inherits="ItemButtonTemplate" virtual="true">
106                   <Frames>
107                           <Cooldown name="$parentCooldown" parentKey="cooldown" inherits="CooldownFrameTemplate"/>
108                   </Frames>
109                   <Scripts>
110                           <OnEnter>
111                                   PaperDollFrameItemFlyoutButton_OnEnter(self, motion);
112                           </OnEnter>
113                           <OnLeave>
114                                   GameTooltip:Hide();
115                                   ResetCursor();
116                           </OnLeave>
117                           <OnClick>
118                                   PaperDollFrameItemFlyoutButton_OnClick(self, button, down);
119                           </OnClick>
120                   </Scripts>
 
  431                         </Layer>
  432                         <Layer level="OVERLAY">
 
467                       <Size x="250" y="0"/>
  434                     <Size x="0" y="0"/>
 
634                           <PlayerModel name="CharacterModelFrame">
  601                         <PlayerModel name="CharacterModelFrame" inherits="ModelWithControlsTemplate">
 
733                       <OnLoad function="Model_OnLoad"/>
734                                           <OnEvent function="Model_OnEvent"/>
735                       <OnUpdate function="Model_OnUpdate"/>
736                                           <OnMouseUp function="CharacterModelFrame_OnMouseUp"/>
737                                           <OnMouseDown function="Model_OnMouseDown"/>
  700                                         <OnLoad>
  701                                                 Model_OnLoad(self, MODELFRAME_MAX_PLAYER_ZOOM, nil, nil, CharacterModelFrame_OnMouseUp);
  702                                         </OnLoad>
 
741                                           <OnMouseWheel>
742                                                   Model_OnMouseWheel(self, delta, MODELFRAME_MAX_PLAYER_ZOOM);
743                                           </OnMouseWheel>
 
745                                   <Frames>
746                                           <Button name="CharacterModelFrameRotateLeftButton">
747                                                   <Size>
748                                                           <AbsDimension x="35" y="35"/>
749                                                   </Size>
750                                                   <Anchors>
751                                                           <Anchor point="TOPLEFT" x="4" y="0"/>
752                                                   </Anchors>
753                                                   <Scripts>
754                                                           <OnLoad>
755                                                                   self:RegisterForClicks("LeftButtonDown", "LeftButtonUp");
756                                                           </OnLoad>
757                                                           <OnClick>
758                                                                   Model_RotateLeft(self:GetParent());
759                                                           </OnClick>
760                                                   </Scripts>
761                                                   <NormalTexture file="Interface\Buttons\UI-RotationLeft-Button-Up"/>
762                                                   <PushedTexture file="Interface\Buttons\UI-RotationLeft-Button-Down"/>
763                                                   <HighlightTexture file="Interface\Buttons\ButtonHilight-Round" alphaMode="ADD"/>
764                                           </Button>
765                                           <Button name="CharacterModelFrameRotateRightButton">
766                                                   <Size>
767                                                           <AbsDimension x="35" y="35"/>
768                                                   </Size>
769                                                   <Anchors>
770                                                           <Anchor point="TOPLEFT" relativeTo="CharacterModelFrameRotateLeftButton" relativePoint="TOPRIGHT"/>
771                                                   </Anchors>
772                                                   <Scripts>
773                                                           <OnLoad>
774                                                                   self:RegisterForClicks("LeftButtonDown", "LeftButtonUp");
775                                                           </OnLoad>
776                                                           <OnClick>
777                                                                   Model_RotateRight(self:GetParent());
778                                                           </OnClick>
779                                                   </Scripts>
780                                                   <NormalTexture file="Interface\Buttons\UI-RotationRight-Button-Up"/>
781                                                   <PushedTexture file="Interface\Buttons\UI-RotationRight-Button-Down"/>
782                                                   <HighlightTexture file="Interface\Buttons\ButtonHilight-Round" alphaMode="ADD"/>
783                                           </Button>
784                                   </Frames>
 
911           <Frame name="PaperDollFrameItemFlyout" parent="PaperDollFrame" hidden="true" enableMouse="false" frameStrata="HIGH">
912                   <Size x="43" y="43"/>
913                   <Layers>
914                           <Layer level="OVERLAY">
915                                   <Texture name="$parentHighlight" file="Interface\PaperDollInfoFrame\UI-GearManager-ItemButton-Highlight">
916                                           <Size x="50" y="50"/>
917                                           <Anchors>
918                                                   <Anchor point="LEFT">
919                                                           <Offset x="-4" y="0"/>
920                                                   </Anchor>
921                                           </Anchors>
922                                           <TexCoords left="0" right="0.78125" top="0" bottom="0.78125"/>
923                                   </Texture>
924                           </Layer>
925                   </Layers>
926                   <Frames>
927                           <Frame name="$parentButtons" frameStrata="HIGH" enableMouse="true" parentKey="buttonFrame" clampedToScreen="true">
928                                   <Anchors>
929                                           <Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
930                                                   <Offset x="0" y="0"/>
931                                           </Anchor>
932                                   </Anchors>
933                                   <Layers>
934                                           <Layer level="BACKGROUND">
935                                                   <Texture parentKey="bg1" inherits="PaperDollFrameFlyoutTexture">
936                                                           <Anchors>
937                                                                   <Anchor point="TOPLEFT">
938                                                                           <Offset x="-5" y="4"/>
939                                                                   </Anchor>
940                                                           </Anchors>
941                                                   </Texture>
942                                           </Layer>                                       
943                                   </Layers>
944                                   <Scripts>
945                                           <OnLoad>
946                                                   self.numBGs = 1;
947                                           </OnLoad>
948                                   </Scripts>
949                           </Frame>
950                   </Frames>
951                   <Scripts>
952                           <OnLoad>
953                                   self.buttons = {};
954                           </OnLoad>
955                           <OnUpdate function="PaperDollFrameItemFlyout_OnUpdate"/>
956                           <OnShow function="PaperDollFrameItemFlyout_OnShow"/>
957                           <OnHide function="PaperDollFrameItemFlyout_OnHide"/>
958                           <OnEvent function="PaperDollFrameItemFlyout_OnEvent"/>
959                   </Scripts>
960           </Frame>
   
File: FrameXML\PartyFrame.xml  
7                   <Anchors>
8                           <Anchor point="TOPLEFT">
9                                   <Offset>
10                                           <AbsDimension x="10" y="-160"/>
11                                   </Offset>
12                           </Anchor>
13                   </Anchors>
  8                 <Anchors>
  9                         <Anchor point="TOPLEFT">
  10                                 <Offset>
  11                                         <AbsDimension x="10" y="-160"/>
  12                                 </Offset>
  13                         </Anchor>
  14                 </Anchors>-->
   
File: FrameXML\PartyMemberFrame.lua  
379                           ReadyCheck_Finish(_G["PartyMemberFrame"..self:GetID().."ReadyCheck"]);
  379                         local finishTime = DEFAULT_READY_CHECK_STAY_TIME;
  380                         if ( GetDisplayedAllyFrames() ~= "party" ) then
  381                                 finishTime = 0;
  382                         end
  383                         ReadyCheck_Finish(_G["PartyMemberFrame"..self:GetID().."ReadyCheck"], finishTime);
   
File: FrameXML\PetActionBarFrame.lua  
  30         self:RegisterEvent("PLAYER_TARGET_CHANGED");
 
50           elseif ( event == "PLAYER_CONTROL_LOST" or event == "PLAYER_CONTROL_GAINED" or event == "PLAYER_FARSIGHT_FOCUS_CHANGED" or event == "PET_BAR_UPDATE_USABLE" ) then
  51         elseif ( event == "PLAYER_CONTROL_LOST" or event == "PLAYER_CONTROL_GAINED" or event == "PLAYER_FARSIGHT_FOCUS_CHANGED" or event == "PET_BAR_UPDATE_USABLE" or event == "PLAYER_TARGET_CHANGED") then
 
  130                                 PetActionButton_StopFlash(petActionButton);
 
133                           if ( IsPetAttackAction(i) ) then
 
135                           end
 
157                                   SetDesaturation(petActionIcon, nil);
  157                                 petActionIcon:SetVertexColor(1, 1, 1);
 
159                                   SetDesaturation(petActionIcon, 1);
  159                                 petActionIcon:SetVertexColor(0.4, 0.4, 0.4);
   
File: FrameXML\PetPaperDollFrame.xml  
122                           <PlayerModel name="PetModelFrame">
  122                         <PlayerModel name="PetModelFrame" inherits="ModelWithZoomTemplate">
 
132                                           <OnEvent function="Model_OnEvent"/>
133                                           <OnUpdate function="Model_OnUpdate"/>
134                                           <OnMouseDown function="Model_OnMouseDown"/>
135                                           <OnMouseUp function="Model_OnMouseUp"/>
136                                           <OnMouseWheel>
137                                                   Model_OnMouseWheel(self, delta, MODELFRAME_MAX_PET_ZOOM);
138                                           </OnMouseWheel>
   
File: FrameXML\PetStable.xml  
184                           <PlayerModel name="PetStableModel">
  184                         <PlayerModel name="PetStableModel" inherits="ModelWithZoomTemplate">
 
194                                           <OnEvent function="Model_OnEvent"/>
195                       <OnUpdate function="Model_OnUpdate"/>
196                                           <OnMouseUp function="Model_OnMouseUp"/>
197                                           <OnMouseDown function="Model_OnMouseDown"/>
198                                           <OnMouseWheel>
199                                                   Model_OnMouseWheel(self, delta, MODELFRAME_MAX_PET_ZOOM);
200                                           </OnMouseWheel>
   
File: FrameXML\PlayerFrame.lua  
210                   ReadyCheck_Finish(PlayerFrameReadyCheck);
  210                 ReadyCheck_Finish(PlayerFrameReadyCheck, DEFAULT_READY_CHECK_STAY_TIME);
   
File: FrameXML\PVPFrame.lua  
4   MAX_BATTLEFIELD_QUEUES = 2;
 
13   MAX_BATTLEFIELD_QUEUES = 2;
14   MAX_WORLD_PVP_QUEUES = 1;
  12 MAX_WORLD_PVP_QUEUES = 2;
 
  129         ClearBattlemaster();
 
  365         local capped;
 
  368                 capped = true;
 
371           if ( pointsThisWeek >= maxPointsThisWeek ) then
  372         if ( capped or tier2Quantity >= tier2Limit ) then
 
378           if ( tier1Quantity >= tier1Limit ) then
  379         if ( capped or tier1Quantity >= tier1Limit ) then
 
721           for i=1, MAX_BATTLEFIELD_QUEUES do
  722         for i=1, GetMaxBattlefieldID() do
 
1448                   for i = 1, MAX_BATTLEFIELD_QUEUES do
  1449                 for i = 1, GetMaxBattlefieldID() do
 
1596           for i=1, MAX_BATTLEFIELD_QUEUES do
  1597         for i=1, GetMaxBattlefieldID() do
 
1835           for i=1, MAX_BATTLEFIELD_QUEUES do
1836                   status, mapName, instanceID, levelRangeMin, levelRangeMax, teamSize, registeredMatch, eligibleInQueue = GetBattlefieldStatus(i);
  1836         for i=1, GetMaxBattlefieldID() do
  1837                 status, mapName, instanceID, levelRangeMin, levelRangeMax, teamSize, registeredMatch, eligibleInQueue, waitingOnOtherActivity = GetBattlefieldStatus(i);
 
1922                                   if ( not eligibleInQueue ) then
  1923                                 if ( not eligibleInQueue and status ~= "active" and status ~= "confirm" ) then
  1924                                         if ( waitingOnOtherActivity ) then
  1925                                                 MiniMapBattlefieldFrame.tooltip = MiniMapBattlefieldFrame.tooltip.."\n\n"..PVP_SUSPENDED_QUEUE_STATUS;
  1926                                         else
 
  1928                                         end
   
File: FrameXML\PVPFrame.xml  
1454                                                                           <AbsDimension x="0" y="0"/>
  1454                                                                         <AbsDimension x="0" y="2"/>
 
1487                                                                                                   <AbsDimension x="-3" y="5"/>
  1487                                                                                                 <AbsDimension x="-3" y="3"/>
 
1500                                                                                                   <AbsDimension x="-3" y="-2"/>
  1500                                                                                                 <AbsDimension x="-3" y="-4"/>
 
1517                                                                  
  1517                                                                 scrollBar:SetPoint("TOPLEFT", self, "TOPRIGHT", 6, -18);
  1518                                                                 scrollBar:SetPoint("BOTTOMLEFT", self, "BOTTOMRIGHT", 6, 14);
 
1656                                   <FontString name="$parentTitle" parentKey="title" inherits="GameFontHighlight" justifyH="CENTER">
  1657                                 <FontString name="$parentTitle" parentKey="title" inherits="GameFontHighlight" justifyH="CENTER" justifyV="CENTER">
 
1658                                                   <AbsDimension x="240" y="0"/>
  1659                                                 <AbsDimension x="240" y="48"/>
 
1663                                                                   <AbsDimension x="0" y="-34"/>
  1664                                                                 <AbsDimension x="0" y="-24"/>
   
File: FrameXML\QuestInfo.lua  
98           QuestInfoDescriptionText:SetAlphaGradient(0, 0);       
   
File: FrameXML\RaidFinder.lua  
  1 function RaidFinderFrame_OnLoad(self)
  2         self:RegisterEvent("LFG_LOCK_INFO_RECEIVED");
  3 end
 
  5 function RaidFinderFrame_OnEvent(self, event, ...)
  6         if ( event == "LFG_LOCK_INFO_RECEIVED" ) then
  7                 if ( not RaidFinderQueueFrame.raid or not IsLFGDungeonJoinable(RaidFinderQueueFrame.raid) ) then
  8                         RaidFinderQueueFrame_SetRaid(GetBestRFChoice());
  9                         --RaidFinderQueueFrame.raid = GetBestRFChoice();
  10                         --UIDropDownMenu_SetSelectedValue(RaidFinderQueueFrameSelectionDropDown, RaidFinderQueueFrame.raid);
  11                 end
  12         end
  13 end
 
  15 function RaidFinderFrame_OnShow(self)
  16         RequestLFDPlayerLockInfo();
  17         RequestLFDPartyLockInfo();
  18         ButtonFrameTemplate_HideAttic(self:GetParent());
  19         self:GetParent().TitleText:SetText(RAID_FINDER);
  20         RaidFinderFrameFindRaidButton_Update();
 
  22         self:GetParent().Inset:SetPoint("TOPLEFT", self:GetParent(), "BOTTOMLEFT", 2, 284);
  23         self:GetParent().Inset:SetPoint("BOTTOMRIGHT", self:GetParent(), "BOTTOMRIGHT", -2, 26);
  24 end
 
  26 function RaidFinderQueueFrameSelectionDropDown_SetUp(self)
  27         UIDropDownMenu_SetWidth(self, 180);
  28         UIDropDownMenu_Initialize(self, RaidFinderQueueFrameSelectionDropDown_Initialize);
  29         UIDropDownMenu_SetSelectedValue(RaidFinderQueueFrameSelectionDropDown, RaidFinderQueueFrame.raid);
  30 end
 
  32 function RaidFinderQueueFrameSelectionDropDown_Initialize(self)
  33         local info = UIDropDownMenu_CreateInfo();
 
  35         for i=1, GetNumRFDungeons() do
  36                 local id, name = GetRFDungeonInfo(i);
  37                 local isAvailable = IsLFGDungeonJoinable(id);
  38                 if ( isAvailable or isRaidFinderDungeonDisplayable(id) ) then
  39                         if ( isAvailable ) then
  40                                 info.text = name; --Note that the dropdown text may be manually changed in RaidFinderQueueFrame_SetRaid
  41                                 info.value = id;
  42                                 info.isTitle = nil;
  43                                 info.func = RaidFinderQueueFrameSelectionDropDownButton_OnClick;
  44                                 info.disabled = nil;
  45                                 info.checked = (RaidFinderQueueFrame.raid == info.value);
  46                                 info.tooltipWhileDisabled = nil;
  47                                 info.tooltipOnButton = nil;
  48                                 info.tooltipTitle = nil;
  49                                 info.tooltipText = nil;
  50                                 UIDropDownMenu_AddButton(info);
  51                         else
  52                                 info.text = name; --Note that the dropdown text may be manually changed in RaidFinderQueueFrame_SetRaid
  53                                 info.value = id;
  54                                 info.isTitle = nil;
  55                                 info.func = nil;
  56                                 info.disabled = 1;
  57                                 info.checked = nil;
  58                                 info.tooltipWhileDisabled = 1;
  59                                 info.tooltipOnButton = 1;
  60                                 info.tooltipTitle = YOU_MAY_NOT_QUEUE_FOR_THIS;
  61                                 info.tooltipText = LFGConstructDeclinedMessage(id);
  62                                 UIDropDownMenu_AddButton(info);
  63                         end
  64                 end
  65         end
  66 end
 
  68 function RaidFinderQueueFrameSelectionDropDownButton_OnClick(self)
  69         RaidFinderQueueFrame_SetRaid(self.value);
  70 end
 
  72 function RaidFinderQueueFrame_SetRaid(value)
  73         RaidFinderQueueFrame.raid = value;
  74         UIDropDownMenu_SetSelectedValue(RaidFinderQueueFrameSelectionDropDown, value);
  75         if ( value ) then
  76                 local name = GetLFGDungeonInfo(value);
  77                 UIDropDownMenu_SetText(RaidFinderQueueFrameSelectionDropDown, name);
  78         end
  79         RaidFinderQueueFrameRewards_UpdateFrame();
  80 end
 
  82 function RaidFinderQueueFrame_Join()
  83         if ( RaidFinderQueueFrame.raid ) then
  84                 ClearAllLFGDungeons();
  85                 SetLFGDungeon(RaidFinderQueueFrame.raid);
  86                 JoinLFG();
  87         end
  88 end
 
  90 function isRaidFinderDungeonDisplayable(id)
  91         local name, typeID, minLevel, maxLevel, _, _, _, expansionLevel = GetLFGDungeonInfo(id);
  92         local myLevel = UnitLevel("player");
  93         return myLevel >= minLevel and myLevel <= maxLevel and EXPANSION_LEVEL >= expansionLevel;
  94 end
 
  96 function RaidFinderFrameRoleCheckButton_OnClick(self)
  97         RaidFinderQueueFrame_SetRoles();
  98 end
 
  100 function RaidFinderQueueFrame_SetRoles()
  101         SetLFGRoles(RaidFinderQueueFrameRoleButtonLeader.checkButton:GetChecked(),
  102                 RaidFinderQueueFrameRoleButtonTank.checkButton:GetChecked(),
  103                 RaidFinderQueueFrameRoleButtonHealer.checkButton:GetChecked(),
  104                 RaidFinderQueueFrameRoleButtonDPS.checkButton:GetChecked());
  105 end
 
  107 function RaidFinderQueueFrameRewards_UpdateFrame()
  108         LFGRewardsFrame_UpdateFrame(RaidFinderQueueFrameScrollFrameChildFrame, RaidFinderQueueFrame.raid, RaidFinderQueueFrameBackground);
  109 end
 
  111 function RaidFinderFrameFindRaidButton_Update()
  112         local mode, subMode = GetLFGMode();
  113         if ( mode == "queued" or mode == "rolecheck" or mode == "proposal") then
  114                 RaidFinderFrameFindRaidButton:SetText(LEAVE_QUEUE);
  115         else
  116                 if ( GetNumPartyMembers() > 0 or GetNumRaidMembers() > 0 ) then
  117                         RaidFinderFrameFindRaidButton:SetText(JOIN_AS_PARTY);
  118                 else
  119                         RaidFinderFrameFindRaidButton:SetText(FIND_A_GROUP);
  120                 end
  121         end
 
  123         if ( LFD_IsEmpowered() and mode ~= "proposal" and mode ~= "listed"  ) then --During the proposal, they must use the proposal buttons to leave the queue.
  124                 if ( mode == "queued" or mode =="proposal" or mode == "rolecheck" or not LFDQueueFramePartyBackfill:IsVisible() ) then
  125                         RaidFinderFrameFindRaidButton:Enable();
  126                 else
  127                         RaidFinderFrameFindRaidButton:Disable();
  128                 end
  129         else
  130                 RaidFinderFrameFindRaidButton:Disable();
  131         end
  132 end
   
File: FrameXML\RaidFinder.xml  
  1 <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
  2 ..\FrameXML\UI.xsd">
  3         <Script file="RaidFinder.lua"/>
  4         <Frame name="RaidFinderFrame" useParentLevel="true" setAllPoints="true" parent="RaidParentFrame">
  5                 <Layers>
  6                         <Layer level="BACKGROUND">
 
  13                                 <Texture name="$parentRoleBackground">
  14                                         <Size x="320" y="64"/>
  15                                         <Anchors>
  16                                                 <Anchor point="TOPRIGHT" x="-10" y="-28"/>
  17                                         </Anchors>
  18                                         <Color r="1" g="1" b="1"/>
  19                                         <Gradient orientation="VERTICAL">
  20                                                 <MinColor r="1" g="0" b="0" a="0.0"/>
  21                                                 <MaxColor r="1" g="0.5" b="0" a="0.2"/>
  22                                         </Gradient>
  23                                 </Texture>
  24                         </Layer>
  25                 </Layers>
  26                 <Frames>
  27                         <Frame name="$parentRoleInset" useParentLevel="true" inherits="InsetFrameTemplate">
  28                                 <Anchors>
  29                                         <Anchor point="TOPLEFT" x="4" y="-26" />
  30                                         <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT" x="-6" y="-107" />
  31                                 </Anchors>
  32                         </Frame>
  33                         <Frame name="RaidFinderQueueFrame" setAllPoints="true">
  34                                 <Layers>
  35                                         <Layer level="BORDER">
  36                                                 <Texture name="$parentBackground" file="Interface\LFGFrame\UI-LFG-BACKGROUND-QUESTPAPER">
  37                                                         <Size>
  38                                                                 <AbsDimension x="512" y="256"/>
  39                                                         </Size>
  40                                                         <Anchors>
  41                                                                 <Anchor point="BOTTOMLEFT">
  42                                                                         <Offset>
  43                                                                                 <AbsDimension x="6" y="26"/>
  44                                                                         </Offset>
  45                                                                 </Anchor>
  46                                                         </Anchors>
  47                                                 </Texture>
  48                                         </Layer>
  49                                 </Layers>
  50                                 <Frames>
  51                                         <Button name="$parentRoleButtonTank" inherits="LFGRoleButtonWithBackgroundTemplate" id="2">
  52                                                 <Anchors>
  53                                                         <Anchor point="BOTTOMLEFT">
  54                                                                 <Offset>
  55                                                                         <AbsDimension x="50" y="334"/>
  56                                                                 </Offset>
  57                                                         </Anchor>
  58                                                 </Anchors>
  59                                                 <Scripts>
  60                                                         <OnLoad>
  61                                                                 self:GetNormalTexture():SetTexCoord(GetTexCoordsForRole("TANK"));
  62                                                                 self.background:SetTexCoord(GetBackgroundTexCoordsForRole("TANK"));
  63                                                                 self.background:SetAlpha(0.6);
  64                                                                 self.checkButton.onClick = RaidFinderFrameRoleCheckButton_OnClick;
  65                                                         </OnLoad>
  66                                                 </Scripts>
  67                                         </Button>
  68                                         <Button name="$parentRoleButtonHealer" inherits="LFGRoleButtonWithBackgroundTemplate" id="3">
  69                                                 <Anchors>
  70                                                         <Anchor point="LEFT" relativeTo="$parentRoleButtonTank" relativePoint="RIGHT">
  71                                                                 <Offset>
  72                                                                         <AbsDimension x="25" y="0"/>
  73                                                                 </Offset>
  74                                                         </Anchor>
  75                                                 </Anchors>
  76                                                 <Scripts>
  77                                                         <OnLoad>
  78                                                                 self:GetNormalTexture():SetTexCoord(GetTexCoordsForRole("HEALER"));
  79                                                                 self.background:SetTexCoord(GetBackgroundTexCoordsForRole("HEALER"));
  80                                                                 self.background:SetAlpha(0.6);
  81                                                                 self.checkButton.onClick = RaidFinderFrameRoleCheckButton_OnClick;
  82                                                         </OnLoad>
  83                                                 </Scripts>
  84                                         </Button>
  85                                         <Button name="$parentRoleButtonDPS" inherits="LFGRoleButtonWithBackgroundTemplate" id="1">
  86                                                 <Anchors>
  87                                                         <Anchor point="LEFT" relativeTo="$parentRoleButtonHealer" relativePoint="RIGHT">
  88                                                                 <Offset>
  89                                                                         <AbsDimension x="23" y="0"/>
  90                                                                 </Offset>
  91                                                         </Anchor>
  92                                                 </Anchors>
  93                                                 <Scripts>
  94                                                         <OnLoad>
  95                                                                 self:GetNormalTexture():SetTexCoord(GetTexCoordsForRole("DAMAGER"));
  96                                                                 self.background:SetTexCoord(GetBackgroundTexCoordsForRole("DAMAGER"));
  97                                                                 self.background:SetAlpha(0.6);
  98                                                                 self.checkButton.onClick = RaidFinderFrameRoleCheckButton_OnClick;
  99                                                         </OnLoad>
  100                                                 </Scripts>
  101                                         </Button>
  102                                         <Button name="$parentRoleButtonLeader" inherits="LFGRoleButtonTemplate" id="4">
  103                                                 <Anchors>
  104                                                         <Anchor point="LEFT" relativeTo="$parentRoleButtonDPS" relativePoint="RIGHT">
  105                                                                 <Offset>
  106                                                                         <AbsDimension x="32" y="0"/>
  107                                                                 </Offset>
  108                                                         </Anchor>
  109                                                 </Anchors>
  110                                                 <Scripts>
  111                                                         <OnLoad>
  112                                                                 self:GetNormalTexture():SetTexCoord(GetTexCoordsForRole("GUIDE"));
  113                                                                 self.checkButton.onClick = RaidFinderFrameRoleCheckButton_OnClick;
  114                                                         </OnLoad>
  115                                                         <OnEnter>
  116                                                                 GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
  117                                                                 GameTooltip:SetText(GUIDE_TOOLTIP, nil, nil, nil, nil, 1);
  118                                                                 LFGFrameRoleCheckButton_OnEnter(self);
  119                                                         </OnEnter>
  120                                                 </Scripts>
  121                                         </Button>
  122                                         <Frame name="$parentSelectionDropDown" inherits="UIDropDownMenuTemplate">
  123                                                 <Anchors>
  124                                                         <Anchor point="BOTTOMLEFT">
  125                                                                 <Offset>
  126                                                                         <AbsDimension x="117" y="283"/>
  127                                                                 </Offset>
  128                                                         </Anchor>
  129                                                 </Anchors>
  130                                                 <Layers>
  131                                                         <Layer level="OVERLAY">
  132                                                                 <FontString name="$parentName" inherits="GameFontNormal" justifyH="RIGHT" text="RAID">
  133                                                                         <Size>
  134                                                                                 <AbsDimension x="115" y="24"/>
  135                                                                         </Size>
  136                                                                         <Anchors>
  137                                                                                 <Anchor point="RIGHT" relativePoint="LEFT">
  138                                                                                         <Offset>
  139                                                                                                 <AbsDimension x="0" y="2"/>
  140                                                                                         </Offset>
  141                                                                                 </Anchor>
  142                                                                         </Anchors>
  143                                                                 </FontString>
  144                                                         </Layer>
  145                                                 </Layers>
  146                                                 <Scripts>
  147                                                         <OnShow function="RaidFinderQueueFrameSelectionDropDown_SetUp"/>
  148                                                 </Scripts>
  149                                         </Frame>
  150                                         <ScrollFrame name="$parentScrollFrame" inherits="UIPanelScrollFrameTemplate">
  151                                                 <Size>
  152                                                         <AbsDimension x="303" y="253"/>
  153                                                 </Size>
  154                                                 <Anchors>
  155                                                         <Anchor point="BOTTOMRIGHT">
  156                                                                 <Offset>
  157                                                                         <AbsDimension x="-29" y="28"/>
  158                                                                 </Offset>
  159                                                         </Anchor>
  160                                                 </Anchors>
  161                                                 <Layers>
  162                                                         <Layer level="BACKGROUND">
  163                                                                 <Texture name="$parentScrollBackground">
  164                                                                         <Anchors>
  165                                                                                 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
  166                                                                                         <Offset>
  167                                                                                                 <AbsDimension x="-4" y="0"/>
  168                                                                                         </Offset>
  169                                                                                 </Anchor>
  170                                                                                 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
  171                                                                                         <Offset>
  172                                                                                                 <AbsDimension x="24" y="-2"/>
  173                                                                                         </Offset>
  174                                                                                 </Anchor>
  175                                                                         </Anchors>
  176                                                                         <Color r="0" b="0" g="0" a=".65"/>
  177                                                                 </Texture>
  178                                                         </Layer>
  179                                                         <Layer level="ARTWORK">
  180                                                                 <Texture name="$parentScrollBackgroundTopLeft" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
  181                                                                         <Size>
  182                                                                                 <AbsDimension x="31" y="256"/>
  183                                                                         </Size>
  184                                                                         <Anchors>
  185                                                                                 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
  186                                                                                         <Offset>
  187                                                                                                 <AbsDimension x="-5" y="5"/>
  188                                                                                         </Offset>
  189                                                                                 </Anchor>
  190                                                                         </Anchors>
  191                                                                         <TexCoords left="0" right="0.484375" top="0" bottom="1.0"/>
  192                                                                 </Texture>
  193                                                                 <Texture name="$parentScrollBackgroundBottomRight" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
  194                                                                         <Size>
  195                                                                                 <AbsDimension x="31" y="106"/>
  196                                                                         </Size>
  197                                                                         <Anchors>
  198                                                                                 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
  199                                                                                         <Offset>
  200                                                                                                 <AbsDimension x="-5" y="-4"/>
  201                                                                                         </Offset>
  202                                                                                 </Anchor>
  203                                                                         </Anchors>
  204                                                                         <TexCoords left="0.515625" right="1.0" top="0" bottom="0.4140625"/>
  205                                                                 </Texture>
  206                                                         </Layer>
  207                                                 </Layers>
  208                                                 <Scripts>
  209                                                         <OnLoad>
  210                                                                 local myName = self:GetName();
  211                                                                 _G[myName.."ScrollBackground"]:SetParent(_G[myName.."ScrollBar"]);
  212                                                                 _G[myName.."ScrollBackgroundTopLeft"]:SetParent(_G[myName.."ScrollBar"]);
  213                                                                 _G[myName.."ScrollBackgroundBottomRight"]:SetParent(_G[myName.."ScrollBar"]);
 
  215                                                                 local scrollBar = _G[myName.."ScrollBar"];
  216                                                                 scrollBar:ClearAllPoints();
  217                                                                 scrollBar:SetPoint("BOTTOMLEFT", self, "BOTTOMRIGHT", 3, 14);
  218                                                                 scrollBar:SetPoint("TOPLEFT", self, "TOPRIGHT", 3, -16);
 
  220                                                                 self.scrollBarHideable = true;
  221                                                                 ScrollFrame_OnLoad(self);
  222                                                         </OnLoad>
  223                                                 </Scripts>
  224                                                 <ScrollChild>
  225                                                         <Frame name="$parentChildFrame" inherits="LFGRewardFrameTemplate">
  226                                                                 <Scripts>
  227                                                                         <OnShow>
  228                                                                                 RaidFinderQueueFrameRewards_UpdateFrame();
  229                                                                         </OnShow>
  230                                                                 </Scripts>
  231                                                         </Frame>
  232                                                 </ScrollChild>
  233                                         </ScrollFrame>
  234                                 </Frames>
  235                         </Frame>
  236                         <Button name="$parentFindRaidButton" inherits="MagicButtonTemplate" text="FIND_RAID">
  237                                 <Size x="135" y="22"/>
  238                                 <Anchors>
  239                                         <Anchor point="BOTTOMLEFT"/>
  240                                 </Anchors>
  241                                 <Scripts>
  242                                         <OnClick>
  243                                                 local mode, subMode = GetLFGMode();
  244                                                 if ( mode == "queued" or mode == "listed" or mode == "rolecheck" ) then
  245                                                         LeaveLFG();
  246                                                 else
  247                                                         RaidFinderQueueFrame_Join();
  248                                                 end
  249                                         </OnClick>
  250                                 </Scripts>
  251                         </Button>
  252                         <Button name="$parentCancelButton" inherits="MagicButtonTemplate" text="CLOSE">
  253                                 <Size>
  254                                         <AbsDimension x="112" y="22"/>
  255                                 </Size>
  256                                 <Anchors>
  257                                         <Anchor point="BOTTOMRIGHT"/>
  258                                 </Anchors>
  259                                 <Scripts>
  260                                         <OnClick>
  261                                                 HideUIPanel(self:GetParent():GetParent())
  262                                         </OnClick>
  263                                 </Scripts>
  264                         </Button>
  265                 </Frames>
  266                 <Scripts>
  267                         <OnLoad function="RaidFinderFrame_OnLoad"/>
  268                         <OnEvent function="RaidFinderFrame_OnEvent"/>
  269                         <OnShow function="RaidFinderFrame_OnShow"/>
  270                 </Scripts>
  271         </Frame>
  272 </Ui>
   
File: FrameXML\RaidFrame.lua  
  7 function RaidParentFrame_OnLoad(self)
  8         SetPortraitToTexture(self.portrait, "Interface\\LFGFrame\\UI-LFR-PORTRAIT");
  9         PanelTemplates_SetNumTabs(self, 2);
  10         PanelTemplates_SetTab(self, 1);
  11 end
 
  31 end
 
  33 function RaidFrame_OnShow(self)
  34         ButtonFrameTemplate_ShowAttic(self:GetParent());
  35         self:GetParent().TitleText:SetText(RAID);
 
  37         RaidFrame_Update();
  38         RequestRaidInfo();
  39         UpdateMicroButtons();
   
File: FrameXML\RaidFrame.xml  
8                                           <Size>
9                                                   <AbsDimension x="5" y="24"/>
10                                           </Size>
  8                                         <Size x="5" y="24"/>
 
18                                           <Size>
19                                                   <AbsDimension x="4" y="24"/>
20                                           </Size>
  16                                         <Size x="4" y="24"/>
 
45                   <Size>
46                           <AbsDimension x="300" y="30"/>
47                   </Size>
  41                 <Size x="300" y="30"/>
 
51                                           <Size>
52                                                   <AbsDimension x="150" y="1"/>
53                                           </Size>
  45                                         <Size x="150" y="1"/>
 
55                                                   <Anchor point="TOPLEFT">
56                                                           <Offset>
57                                                                   <AbsDimension x="5" y="-10"/>
58                                                           </Offset>
59                                                   </Anchor>
  47                                                 <Anchor point="TOPLEFT" x="5" y="-10"/>
 
63                                           <Size>
64                                                   <AbsDimension x="160" y="1"/>
65                                           </Size>
  51                                         <Size x="160" y="1"/>
 
67                                                   <Anchor point="TOPLEFT" relativeTo="$parentName" relativePoint="BOTTOMLEFT">
68                                                           <Offset>
69                                                                   <AbsDimension x="10" y="-10"/>
70                                                           </Offset>
71                                                   </Anchor>
72                                                   <Anchor point="TOPRIGHT" relativeTo="$parentName" relativePoint="BOTTOMRIGHT">
73                                                           <Offset>
74                                                                   <AbsDimension x="0" y="-10"/>
75                                                           </Offset>
76                                                   </Anchor>
  53                                                 <Anchor point="TOPLEFT" relativeTo="$parentName" relativePoint="BOTTOMLEFT" x="10" y="-10"/>
  54                                                 <Anchor point="TOPRIGHT" relativeTo="$parentName" relativePoint="BOTTOMRIGHT" x="0" y="-10"/>
 
80                                           <Size>
81                                                   <AbsDimension x="150" y="1"/>
82                                           </Size>
  58                                         <Size x="150" y="1"/>
 
84                                                   <Anchor point="TOPRIGHT">
85                                                           <Offset>
86                                                                   <AbsDimension x="0" y="-11"/>
87                                                           </Offset>
88                                                   </Anchor>
  60                                                 <Anchor point="TOPRIGHT" x="0" y="-11"/>
 
92                                           <Size>
93                                                   <AbsDimension x="150" y="1"/>
94                                           </Size>
  64                                         <Size x="150" y="1"/>
 
96                                                   <Anchor point="TOPLEFT" relativeTo="$parentReset" relativePoint="BOTTOMLEFT">
97                                                           <Offset>
98                                                                   <AbsDimension x="0" y="-10"/>
99                                                           </Offset>
100                                                   </Anchor>
101                                                   <Anchor point="TOPRIGHT" relativeTo="$parentReset" relativePoint="BOTTOMRIGHT">
102                                                           <Offset>
103                                                                   <AbsDimension x="0" y="-10"/>
104                                                           </Offset>
105                                                   </Anchor>
  66                                                 <Anchor point="TOPLEFT" relativeTo="$parentReset" relativePoint="BOTTOMLEFT" x="0" y="-10"/>
  67                                                 <Anchor point="TOPRIGHT" relativeTo="$parentReset" relativePoint="BOTTOMRIGHT" x="0" y="-10"/>
 
129                                   <Anchor point="TOPLEFT">
130                                           <Offset>
131                                                   <AbsDimension x="-10" y="-2"/>
132                                           </Offset>
  91                                 <Anchor point="TOPLEFT" x="-10" y="-2"/>
  92                                 <Anchor point="BOTTOMRIGHT" x="10" y="-2"/>
  93                         </Anchors>
  94                 </HighlightTexture>
  95         </Button>
  96         <Frame name="RaidParentFrame"  toplevel="true" parent="UIParent" movable="true" enableMouse="true" hidden="true" inherits="ButtonFrameTemplate">
  97                 <Frames>
  98                         <Button name="$parentTab1" inherits="CharacterFrameTabButtonTemplate" text="RAID_FINDER" id="1">
  99                                 <Anchors>
  100                                         <Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT">
  101                                                 <Offset x="19" y="-30"/>
 
134                                   <Anchor point="BOTTOMRIGHT">
  103                                 </Anchors>
  104                 <Scripts>
  105                                         <OnClick>
  106                                                 RaidFrame:Hide();
  107                                                 RaidFinderFrame:Show();
  108                                                 PanelTemplates_Tab_OnClick(self, self:GetParent());
  109                                         </OnClick>
  110                 </Scripts>
  111                         </Button>
  112                         <Button name="$parentTab2" inherits="CharacterFrameTabButtonTemplate" text="RAID" id="2">
  113                                 <Anchors>
  114                    <Anchor point="LEFT" relativeTo="$parentTab1" relativePoint="RIGHT">
 
136                                                   <AbsDimension x="10" y="-2"/>
  116                             <AbsDimension x="-16" y="0"/>
 
140                   </HighlightTexture>
  120                 <Scripts>
  121                                         <OnClick>
  122                                                 RaidFinderFrame:Hide();
  123                                                 RaidFrame:Show();
  124                                                 PanelTemplates_Tab_OnClick(self, self:GetParent());
  125                                         </OnClick>
  126                 </Scripts>
 
142           <Frame name="RaidFrame" setAllPoints="true" hidden="true" parent="FriendsFrame">
  128                 </Frames>
  129                 <Scripts>
  130                         <OnLoad function="RaidParentFrame_OnLoad"/>
  131                         <OnShow>
  132                                 UpdateMicroButtons();
  133                         </OnShow>
  134                         <OnHide>
  135                                 UpdateMicroButtons();
  136                         </OnHide>
  137                 </Scripts>
  138         </Frame>
  139         <Frame name="RaidFrame" setAllPoints="true" parent="RaidParentFrame" hidden="true">
 
148                                                           <Size>
149                                                                   <AbsDimension x="300" y="0"/>
150                                                           </Size>
  145                                                         <Size x="300" y="0"/>
 
152                                                                   <Anchor point="TOPLEFT">
153                                                                           <Offset>
154                                                                                   <AbsDimension x="29" y="-85"/>
155                                                                           </Offset>
156                                                                   </Anchor>
  147                                                                 <Anchor point="TOPLEFT" x="15" y="-73"/>
 
160                                                           <Size>
161                                                                   <AbsDimension x="300" y="0"/>
162                                                           </Size>
  151                                                         <Size x="300" y="0"/>
 
164                                                                   <Anchor point="TOP" relativeTo="RaidFrameRaidDescription" relativePoint="BOTTOM">
165                                                                           <Offset>
166                                                                                   <AbsDimension x="-0" y="-50"/>
167                                                                           </Offset>
168                                                                   </Anchor>
  153                                                                 <Anchor point="TOP" relativeTo="RaidFrameRaidDescription" relativePoint="BOTTOM" x="-0" y="-50"/>
 
175                                                   <Size>
176                                                           <AbsDimension x="260" y="22"/>
177                                                   </Size>
  160                                                 <Size x="260" y="22"/>
 
179                                                           <Anchor point="TOP" relativeTo="RaidFrameRaidBrowserDescription" relativePoint="BOTTOM">
180                                                                   <Offset>
181                                                                           <AbsDimension x="0" y="-10"/>
182                                                                   </Offset>
183                                                           </Anchor>
  162                                                         <Anchor point="TOP" relativeTo="RaidFrameRaidBrowserDescription" relativePoint="BOTTOM" x="0" y="-10"/>
 
187                                                                   ShowUIPanel(LFRParentFrame);
  166                                                                 OpenFriendsFrame(4);
 
194                                   <Size>
195                                           <AbsDimension x="115" y="21"/>
196                                   </Size>
  173                                 <Size x="115" y="21"/>
 
198                                           <Anchor point="TOPLEFT">
199                                                   <Offset>
200                                                           <AbsDimension x="72" y="-37"/>
201                                                   </Offset>
202                                           </Anchor>
  175                                         <Anchor point="TOPLEFT" x="58" y="-24"/>
 
212                                   <Size>
213                                           <AbsDimension x="90" y="21"/>
214                                   </Size>
  185                                 <Size x="90" y="21"/>
 
216                                           <Anchor point="LEFT" relativeTo="RaidFrameConvertToRaidButton" relativePoint="RIGHT">
217                                                   <Offset>
218                                                           <AbsDimension x="65" y="0"/>
219                                                   </Offset>
220                                           </Anchor>
  187                                         <Anchor point="LEFT" relativeTo="RaidFrameConvertToRaidButton" relativePoint="RIGHT" x="67" y="0"/>
 
236                                   <Size>
237                                           <AbsDimension x="345" y="250"/>
238                                   </Size>
  203                                 <Size x="345" y="250"/>
 
240                                           <Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
241                                                   <Offset>
242                                                           <AbsDimension x="-33" y="-28"/>
243                                                   </Offset>
244                                           </Anchor>
  205                                         <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="0" y="-28"/>
 
260                                                           <Size>
261                                                                   <AbsDimension x="325" y="47"/>
262                                                           </Size>
  221                                                         <Size x="325" y="47"/>
 
264                                                                   <Anchor point="TOPLEFT">
265                                                                           <Offset>
266                                                                                   <AbsDimension x="10" y="-9"/>
267                                                                           </Offset>
268                                                                   </Anchor>
  223                                                                 <Anchor point="TOPLEFT" x="10" y="-9"/>
 
273                                                           <Size>
274                                                                   <AbsDimension x="326" y="29"/>
275                                                           </Size>
  228                                                         <Size x="326" y="29"/>
 
277                                                                   <Anchor point="BOTTOMLEFT">
278                                                                           <Offset>
279                                                                                   <AbsDimension x="9" y="9"/>
280                                                                           </Offset>
281                                                                   </Anchor>
  230                                                                 <Anchor point="BOTTOMLEFT" x="9" y="9"/>
 
288                                                           <Size>
289                                                                   <AbsDimension x="32" y="32"/>
290                                                           </Size>
  237                                                         <Size x="32" y="32"/>
 
292                                                                   <Anchor point="TOPRIGHT">
293                                                                           <Offset>
294                                                                                   <AbsDimension x="-6" y="-7"/>
295                                                                           </Offset>
296                                                                   </Anchor>
  239                                                                 <Anchor point="TOPRIGHT" x="-6" y="-7"/>
 
302                                                                   <Anchor point="TOP">
303                                                                           <Offset x="0" y="12"/>
304                                                                   </Anchor>
  245                                                                 <Anchor point="TOP" x="0" y="12"/>
 
308                                                           <Size>
309                                                                   <AbsDimension x="185" y="12"/>
310                                                           </Size>
  249                                                         <Size x="185" y="12"/>
 
312                                                                   <Anchor point="TOP" relativeTo="$parentHeader">
313                                                                           <Offset x="0" y="-14"/>
314                                                                   </Anchor>
  251                                                                 <Anchor point="TOP" relativeTo="$parentHeader" x="0" y="-14"/>
 
321                                                   <Size>
322                                                           <AbsDimension x="173" y="22"/>
323                                                   </Size>
  258                                                 <Size x="173" y="22"/>
 
325                                                           <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
326                                                                   <Offset>
327                                                                           <AbsDimension x="13" y="-31"/>
328                                                                   </Offset>
329                                                           </Anchor>
  260                                                         <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="13" y="-31"/>
 
338                                                   <Size>
339                                                           <AbsDimension x="150" y="22"/>
340                                                   </Size>
  269                                                 <Size x="150" y="22"/>
 
342                                                           <Anchor point="LEFT" relativeTo="RaidInfoInstanceLabel" relativePoint="RIGHT">
343                                                                   <Offset>
344                                                                           <AbsDimension x="-1" y="0"/>
345                                                                   </Offset>
346                                                           </Anchor>
  271                                                         <Anchor point="LEFT" relativeTo="RaidInfoInstanceLabel" relativePoint="RIGHT" x="-1" y="0"/>
 
356                                                           <Anchor point="TOPRIGHT">
357                                                                   <Offset>
358                                                                           <AbsDimension x="-2" y="-3"/>
359                                                                   </Offset>
360                                                           </Anchor>
  281                                                         <Anchor point="TOPRIGHT" x="-2" y="-3"/>
 
364                                                   <Size>
365                                                           <AbsDimension x="305" y="157"/>
366                                                   </Size>
  285                                                 <Size x="305" y="157"/>
 
368                                                           <Anchor point="TOPLEFT">
369                                                                   <Offset x="16" y="-58"/>
370                                                           </Anchor>
  287                                                         <Anchor point="TOPLEFT" x="16" y="-58"/>
 
375                                                                           <Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
376                                                                                   <Offset x="0" y="-13"/>
377                                                                           </Anchor>
378                                                                           <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
379                                                                                   <Offset x="0" y="14"/>
380                                                                           </Anchor>
  292                                                                         <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="0" y="-13"/>
  293                                                                         <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="0" y="14"/>
 
412                                                   <Size>
413                                                           <AbsDimension x="200" y="20"/>
414                                                   </Size>
  325                                                 <Size x="200" y="20"/>
 
416                                                           <Anchor point="BOTTOMLEFT">
417                                                                   <Offset>
418                                                                           <AbsDimension x="14" y="13"/>
419                                                                   </Offset>
420                                                           </Anchor>
  327                                                         <Anchor point="BOTTOMLEFT" x="14" y="13"/>
 
430                                                   <Size>
431                                                           <AbsDimension x="90" y="20"/>
432                                                   </Size>
  337                                                 <Size x="90" y="20"/>
 
434                                                           <Anchor point="BOTTOMRIGHT">
435                                                                   <Offset>
436                                                                           <AbsDimension x="-14" y="13"/>
437                                                                   </Offset>
438                                                           </Anchor>
  339                                                         <Anchor point="BOTTOMRIGHT" x="-14" y="13"/>
 
452                                                   if (GetNumRaidMembers() > 0 ) then
453                                                           RaidInfoFrame:SetPoint("TOPLEFT", "RaidFrame", "TOPRIGHT", -13, -28);
454                                                   else
455                                                           RaidInfoFrame:SetPoint("TOPLEFT", "RaidFrame", "TOPRIGHT", -33, -28);
456                                                   end
 
468                                   RaidFrame_Update();
469                                   RequestRaidInfo();
470                                   UpdateMicroButtons();
  364                                 RaidFrame_OnShow(self);
   
File: FrameXML\ReadyCheck.lua  
  19                         if (UnitInRaid("player")) then
  20                                 difficulty = GetRaidDifficulty();
  21                                 ReadyCheckFrameText:SetFormattedText(READY_CHECK_MESSAGE.."\n"..RAID_DIFFICULTY..": ".._G["RAID_DIFFICULTY"..difficulty], initiator);
  22                         else
 
  24                         end
 
78   function ReadyCheck_Finish(readyCheckFrame, fadeTime, onFinishFunc, onFinishFuncArg)
  83 function ReadyCheck_Finish(readyCheckFrame, finishTime, fadeTime, onFinishFunc, onFinishFuncArg)
 
  89         if ( finishTime > 0 ) then
 
85           readyCheckFrame.finishedTimer = 10;
  91                 readyCheckFrame.finishedTimer = finishTime;
 
  99         else
  100                 readyCheckFrame:Hide();
  101                 readyCheckFrame.state = nil;
  102                 if ( onFinishFunc ) then
  103                         onFinishFunc(onFinishFuncArg);
  104                 end
  105         end
   
File: FrameXML\ReadyCheck.xml  
5                   <Size>
6                           <AbsDimension x="32" y="32"/>
7                   </Size>
  5                 <Size x="32" y="32"/>
 
15                   <Size>
16                           <AbsDimension x="323" y="97"/>
17                   </Size>
  13                 <Size x="323" y="100"/>
 
19                           <Anchor point="CENTER">
20                                   <Offset>
21                                           <AbsDimension x="0" y="-10"/>
22                                   </Offset>
23                           </Anchor>
  15                         <Anchor point="CENTER" x="0" y="-10"/>
 
30                                                           <Size>
31                                                                   <AbsDimension x="50" y="50"/>
32                                                           </Size>
  22                                                         <Size x="50" y="50"/>
 
34                                                                   <Anchor point="TOPLEFT">
35                                                                           <Offset>
36                                                                                   <AbsDimension x="7" y="-6"/>
37                                                                           </Offset>
38                                                                   </Anchor>
  24                                                                 <Anchor point="TOPLEFT" x="7" y="-6"/>
 
44                                                           <Size>
45                                                                   <AbsDimension x="323" y="97"/>
46                                                           </Size>
  30                                                         <Size x="323" y="97"/>
 
55                                                                   <Anchor point="TOP">
56                                                                           <Offset>
57                                                                                   <AbsDimension x="20" y="-15"/>
58                                                                           </Offset>
59                                                                   </Anchor>
  39                                                                 <Anchor point="TOP" x="20" y="-15"/>
 
66                                                   <Size>
67                                                           <AbsDimension x="119" y="24"/>
68                                                   </Size>
  46                                                 <Size x="119" y="24"/>
 
70                                                           <Anchor point="TOPRIGHT" relativePoint="TOP">
71                                                                   <Offset>
72                                                                           <AbsDimension x="13" y="-55"/>
73                                                                   </Offset>
74                                                           </Anchor>
  48                                                         <Anchor point="TOPRIGHT" relativePoint="TOP" x="13" y="-55"/>
 
  52                                                                 PlaySound("igMainMenuOptionCheckBoxOn");
 
84                                                   <Size>
85                                                           <AbsDimension x="119" y="24"/>
86                                                   </Size>
  59                                                 <Size x="119" y="24"/>
 
88                                                           <Anchor point="TOPLEFT" relativePoint="TOP">
89                                                                   <Offset>
90                                                                           <AbsDimension x="17" y="-55"/>
91                                                                   </Offset>
92                                                           </Anchor>
  61                                                         <Anchor point="TOPLEFT" relativePoint="TOP" x="17" y="-55"/>
 
  65                                                                 PlaySound("igMainMenuOptionCheckBoxOn");
   
File: FrameXML\ReputationFrame.lua  
26           MAX_PLAYER_LEVEL = MAX_PLAYER_LEVEL_TABLE[GetAccountExpansionLevel()];
  26         MAX_PLAYER_LEVEL = MAX_PLAYER_LEVEL_TABLE[GetExpansionLevel()];
   
File: FrameXML\ScrollOfResurrection.lua  
  2 function ScrollOfResurrectionButton_OnClick(self)
  3         ScrollOfResurrection_Show(self.type, self.target, self.text);
  4 end
 
  6 function ScrollOfResurrection_Show(sendType, target, text)
  7         ScrollOfResurrectionFrame.type = sendType;
  8         ScrollOfResurrectionFrame.target = target;
  9         ScrollOfResurrectionFrame.text = text;
  10         ScrollOfResurrectionFrame.noteFrame.scrollFrame.editBox:SetText("");
 
  12         StaticPopupSpecial_Show(ScrollOfResurrectionFrame);
 
  14         if ( not ScrollOfResurrectionFrame.type ) then
  15                 ScrollOfResurrectionFrame.targetEditBox:Show();
  16                 ScrollOfResurrectionFrame.targetEditBox:SetText("");
  17                 ScrollOfResurrectionFrame.targetEditBox:SetFocus();
  18                 ScrollOfResurrectionFrame.name:Hide();
  19         else
  20                 ScrollOfResurrectionFrame.targetEditBox:Hide();
  21                 ScrollOfResurrectionFrame.name:Show();
  22                 ScrollOfResurrectionFrame.name:SetText(text);
  23                 ScrollOfResurrectionFrame.noteFrame.scrollFrame.editBox:SetFocus();
  24         end
  25 end
 
  27 function ScrollOfResurrectionAcceptButton_OnClick(self)
  28         local comment = ScrollOfResurrectionFrame.noteFrame.scrollFrame.editBox:GetText();
  29         if ( ScrollOfResurrectionFrame.type == "bn" ) then
  30                 BNSendSoR(ScrollOfResurrectionFrame.target, comment);
  31         elseif ( ScrollOfResurrectionFrame.type == "guild" ) then
  32                 GuildRosterSendSoR(ScrollOfResurrectionFrame.target, comment);
  33         elseif ( not ScrollOfResurrectionFrame.type ) then
  34                 local target = ScrollOfResurrectionFrame.targetEditBox:GetText();
  35                 SendSoRByText(target, comment);
  36         end
  37         StaticPopupSpecial_Hide(ScrollOfResurrectionFrame);
  38 end
   
File: FrameXML\ScrollOfResurrection.xml  
  1 <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
  2 ..\FrameXML\UI.xsd">
  3         <Script file="ScrollOfResurrection.lua"/>
 
  5         <Button name="ScrollOfResurrectionButtonTemplate" virtual="true">
  6                 <Layers>
  7                         <Layer level="BACKGROUND">
  8                                 <Texture name="$parentIcon" parentKey="icon"/>
  9                         </Layer>
  10                 </Layers>
  11                 <Scripts>
  12                         <OnLoad>
  13                                 self.icon:SetTexture("Interface\\Icons\\INV_Scroll_05");
  14                         </OnLoad>
  15                         <OnClick>
  16                                 ScrollOfResurrectionButton_OnClick(self);
  17                         </OnClick>
  18                         <OnEnter>
  19                                 GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
  20                                 GameTooltip:SetText(SEND_SCROLL_OF_RESURRECTION);
  21                                 GameTooltip:AddLine(SCROLL_OF_RESURRECTION_TOOLTIP, 1, 1, 1, 1);
  22                                 GameTooltip:Show();
  23                         </OnEnter>
  24                         <OnLeave>
  25                                 GameTooltip:Hide();
  26                         </OnLeave>
  27                 </Scripts>
  28                 <PushedTexture file="Interface\Buttons\UI-Quickslot-Depress"/>
  29                 <HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
  30         </Button>
 
  32         <Frame name="ScrollOfResurrectionFrame" parent="UIParent" hidden="true" frameStrata="DIALOG">
  33                 <Size x="386" y="300"/>
  34                 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
  35                         <BackgroundInsets>
  36                                 <AbsInset left="11" right="12" top="12" bottom="11"/>
  37                         </BackgroundInsets>
  38                         <TileSize>
  39                                 <AbsValue val="32"/>
  40                         </TileSize>
  41                         <EdgeSize>
  42                                 <AbsValue val="32"/>
  43                         </EdgeSize>
  44                 </Backdrop>
  45                 <Layers>
  46                         <Layer level="ARTWORK">
  47                                 <FontString name="$parentTitle" inherits="GameFontNormalLarge" parentKey="title" text="SCROLL_OF_RESURRECTION" justifyH="CENTER">
  48                                         <Anchors>
  49                                                 <Anchor point="TOP" x="0" y="-20"/>
  50                                         </Anchors>
  51                                 </FontString>
  52                                 <FontString name="$parentName" inherits="GameFontHighlightHuge" parentKey="name" justifyH="CENTER">
  53                                         <Anchors>
  54                                                 <Anchor point="TOP" relativeTo="$parentTitle" relativePoint="BOTTOM" x="0" y="0"/>
  55                                         </Anchors>
  56                                 </FontString>
  57                         </Layer>
  58                 </Layers>
  59                 <Frames>
  60                         <EditBox name="$parentTargetEditBox" autoFocus="false" letters="255" parentKey="targetEditBox">
  61                                 <Size x="280" y="20"/>
  62                                 <Anchors>
  63                                         <Anchor point="TOP" relativeTo="$parentTitle" relativePoint="BOTTOM" x="0" y="-5"/>
  64                                 </Anchors>
  65                                 <Layers>
  66                                         <Layer level="BACKGROUND">
  67                                                 <Texture name="$parentLeft" file="Interface\Common\Common-Input-Border">
  68                                                         <Size x="8" y="20"/>
  69                                                         <Anchors>
  70                                                                 <Anchor point="TOPLEFT" x="-5" y="0"/>
  71                                                         </Anchors>
  72                                                         <TexCoords left="0" right="0.0625" top="0" bottom="0.625"/>
  73                                                 </Texture>
  74                                                 <Texture name="$parentRight" file="Interface\Common\Common-Input-Border">
  75                                                         <Size x="8" y="20"/>
  76                                                         <Anchors>
  77                                                                 <Anchor point="RIGHT" x="0" y="0"/>
  78                                                         </Anchors>
  79                                                         <TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/>
  80                                                 </Texture>
  81                                                 <Texture name="$parentMiddle" file="Interface\Common\Common-Input-Border">
  82                                                         <Size x="0" y="20"/>
  83                                                         <Anchors>
  84                                                                 <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
  85                                                                 <Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT"/>
  86                                                         </Anchors>
  87                                                         <TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/>
  88                                                 </Texture>
  89                                         </Layer>
  90                                         <Layer level="BORDER">
  91                                                 <FontString name="$parentFill" inherits="FriendsFont_Small" justifyH="LEFT" justifyV="MIDDLE" text="ENTER_EMAIL" parentKey="fill">
  92                                                         <Anchors>
  93                                                                 <Anchor point="LEFT" x="3" y="0"/>
  94                                                         </Anchors>
  95                                                         <Color r="0.35" g="0.35" b="0.35"/>
  96                                                 </FontString>
  97                                         </Layer>
  98                                 </Layers>
  99                                 <Scripts>
  100                                         <OnTextChanged>
  101                                                 if ( self:GetText() ~= "" ) then
  102                                                         self.fill:Hide();
  103                                                 else
  104                                                         self.fill:Show();
  105                                                 end
  106                                         </OnTextChanged>
  107                                         <OnEnterPressed>
  108                                                 ScrollOfResurrectionFrame.noteFrame.scrollFrame.editBox:SetFocus();
  109                                         </OnEnterPressed>
  110                                         <OnTabPressed>
  111                                                 ScrollOfResurrectionFrame.noteFrame.scrollFrame.editBox:SetFocus();
  112                                         </OnTabPressed>
  113                                         <OnEscapePressed>
  114                                                 self:ClearFocus();
  115                                         </OnEscapePressed>     
  116                                 </Scripts>
  117                                 <FontString inherits="FriendsFont_Small">
  118                                         <Color r="1" g="1" b="1" />
  119                                 </FontString>
  120                         </EditBox>
  121                         <Frame name="$parentNoteFrame" parentKey="noteFrame">
  122                                 <Size x="286" y="150"/>
  123                                 <Anchors>
  124                                         <Anchor point="TOP" x="-2" y="-74"/>
  125                                 </Anchors>
  126                                 <Layers>
  127                                         <Layer level="BACKGROUND">
  128                                                 <Texture name="$parentTopLeft" file="Interface\Common\Common-Input-Border-TL">
  129                                                         <Size x="8" y="8"/>
  130                                                         <Anchors>
  131                                                                 <Anchor point="TOPLEFT" x="0" y="0"/>
  132                                                         </Anchors>
  133                                                 </Texture>
  134                                                 <Texture name="$parentTopRight" file="Interface\Common\Common-Input-Border-TR">
  135                                                         <Size x="8" y="8"/>
  136                                                         <Anchors>
  137                                                                 <Anchor point="TOPRIGHT" x="0" y="0"/>
  138                                                         </Anchors>
  139                                                 </Texture>
  140                                                 <Texture name="$parentTop" file="Interface\Common\Common-Input-Border-T">
  141                                                         <Anchors>
  142                                                                 <Anchor point="TOPLEFT" relativeTo="$parentTopLeft" relativePoint="TOPRIGHT"/>
  143                                                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parentTopRight" relativePoint="BOTTOMLEFT"/>
  144                                                         </Anchors>
  145                                                 </Texture>
  146                                                 <Texture name="$parentBottomLeft" file="Interface\Common\Common-Input-Border-BL">
  147                                                         <Size x="8" y="8"/>
  148                                                         <Anchors>
  149                                                                 <Anchor point="BOTTOMLEFT" x="0" y="0"/>
  150                                                         </Anchors>
  151                                                 </Texture>
  152                                                 <Texture name="$parentBottomRight" file="Interface\Common\Common-Input-Border-BR">
  153                                                         <Size x="8" y="8"/>
  154                                                         <Anchors>
  155                                                                 <Anchor point="BOTTOMRIGHT" x="0" y="0"/>
  156                                                         </Anchors>
  157                                                 </Texture>
  158                                                 <Texture name="$parentBottom" file="Interface\Common\Common-Input-Border-B">
  159                                                         <Anchors>
  160                                                                 <Anchor point="TOPLEFT" relativeTo="$parentBottomLeft" relativePoint="TOPRIGHT"/>
  161                                                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parentBottomRight" relativePoint="BOTTOMLEFT"/>
  162                                                         </Anchors>
  163                                                 </Texture>
  164                                                 <Texture name="$parentLeft" file="Interface\Common\Common-Input-Border-L">
  165                                                         <Anchors>
  166                                                                 <Anchor point="TOPLEFT" relativeTo="$parentTopLeft" relativePoint="BOTTOMLEFT"/>
  167                                                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parentBottomLeft" relativePoint="TOPRIGHT"/>
  168                                                         </Anchors>
  169                                                 </Texture>
  170                                                 <Texture name="$parentRight" file="Interface\Common\Common-Input-Border-R">
  171                                                         <Anchors>
  172                                                                 <Anchor point="TOPLEFT" relativeTo="$parentTopRight" relativePoint="BOTTOMLEFT"/>
  173                                                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parentBottomRight" relativePoint="TOPRIGHT"/>
  174                                                         </Anchors>
  175                                                 </Texture>
  176                                                 <Texture name="$parentMiddle" file="Interface\Common\Common-Input-Border-M">
  177                                                         <Anchors>
  178                                                                 <Anchor point="TOPLEFT" relativeTo="$parentLeft" relativePoint="TOPRIGHT"/>
  179                                                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parentRight" relativePoint="BOTTOMLEFT"/>
  180                                                         </Anchors>
  181                                                 </Texture>
  182                                         </Layer>
  183                                 </Layers>
  184                                 <Frames>
  185                                         <ScrollFrame name="$parentScrollFrame" inherits="UIPanelScrollFrameTemplate" parentKey="scrollFrame">
  186                                                 <Anchors>
  187                                                         <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="6" y="-6"/>
  188                                                         <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT" x="0" y="6"/>
  189                                                 </Anchors>
  190                                                 <Frames>
  191                                                         <Button name="$parentFocusButton" setAllPoints="true">
  192                                                                 <Scripts>
  193                                                                         <OnClick>
  194                                                                                 self:GetParent().editBox:SetFocus();
  195                                                                         </OnClick>
  196                                                                 </Scripts>
  197                                                         </Button>
  198                                                 </Frames>
  199                                                 <Scripts>
  200                                                         <OnLoad>
  201                                                                 local scrollBar = _G[self:GetName().."ScrollBar"];
  202                                                                 scrollBar:SetFrameLevel(_G[self:GetName().."FocusButton"]:GetFrameLevel() + 2);
  203                                                                 scrollBar:ClearAllPoints();
  204                                                                 scrollBar:SetPoint("TOPLEFT", self, "TOPRIGHT", -18, -10);
  205                                                                 scrollBar:SetPoint("BOTTOMLEFT", self, "BOTTOMRIGHT", -18, 8);
  206                                                                 -- reposition the up and down buttons
  207                                                                 _G[self:GetName().."ScrollBarScrollDownButton"]:SetPoint("TOP", scrollBar, "BOTTOM", 0, 4);
  208                                                                 _G[self:GetName().."ScrollBarScrollUpButton"]:SetPoint("BOTTOM", scrollBar, "TOP", 0, -4);
  209                                                                 -- make the scroll bar hideable and force it to start off hidden so positioning calculations can be done
  210                                                                 -- as soon as it needs to be shown
  211                                                                 self.scrollBarHideable = 1;
  212                                                                 scrollBar:Hide();
  213                                                         </OnLoad>
  214                                                 </Scripts>
  215                                                 <ScrollChild>
  216                                                         <EditBox name="$parentEditBox" multiLine="true" letters="127" countInvisibleLetters="true" autoFocus="false" parentKey="editBox">
  217                                                                 <Size x="258" y="1"/>
  218                                                                 <Layers>
  219                                                                         <Layer level="BORDER">
  220                                                                                 <FontString name="$parentFill" inherits="FriendsFont_Small" justifyH="LEFT" justifyV="MIDDLE" text="ENTER_INVITE_NOTE" parentKey="fill">
  221                                                                                         <Anchors>
  222                                                                                                 <Anchor point="LEFT" x="3" y="0"/>
  223                                                                                         </Anchors>
  224                                                                                         <Color r="0.35" g="0.35" b="0.35"/>
  225                                                                                 </FontString>
  226                                                                         </Layer>
  227                                                                 </Layers>
  228                                                                 <Scripts>
  229                                                                         <OnTextChanged>
  230                                                                                 ScrollingEdit_OnTextChanged(self, self:GetParent());
  231                                                                                 if ( self:GetText() ~= "" ) then
  232                                                                                         self.fill:Hide();
  233                                                                                 else
  234                                                                                         self.fill:Show();
  235                                                                                 end
  236                                                                         </OnTextChanged>
  237                                                                         <OnCursorChanged function="ScrollingEdit_OnCursorChanged"/>
  238                                                                         <OnUpdate>
  239                                                                                 ScrollingEdit_OnUpdate(self, elapsed, self:GetParent());
  240                                                                         </OnUpdate>
  241                                                                         <OnEscapePressed>
  242                                                                                 self:ClearFocus();
  243                                                                         </OnEscapePressed>
  244                                                                 </Scripts>
  245                                                                 <FontString inherits="FriendsFont_Small"/>
  246                                                         </EditBox>
  247                                                 </ScrollChild>
  248                                         </ScrollFrame>
  249                                 </Frames>
  250                         </Frame>
  251                         <Button name="$parentAcceptButton" inherits="UIPanelButtonTemplate2" text="ACCEPT">
  252                                 <Size x="118" y="22"/>
  253                                 <Anchors>
  254                                         <Anchor point="BOTTOMLEFT" x="45" y="30"/>
  255                                 </Anchors>
  256                                 <Scripts>
  257                                         <OnClick function="ScrollOfResurrectionAcceptButton_OnClick"/>
  258                                 </Scripts>
  259                         </Button>
  260                         <Button name="$parentCancelButton" inherits="UIPanelButtonTemplate2" text="CANCEL">
  261                                 <Size x="118" y="22"/>
  262                                 <Anchors>
  263                                         <Anchor point="BOTTOMRIGHT" x="-50" y="30"/>
  264                                 </Anchors>
  265                                 <Scripts>
  266                                         <OnClick>
  267                                                 StaticPopupSpecial_Hide(ScrollOfResurrectionFrame);
  268                                         </OnClick>
  269                                 </Scripts>
  270                         </Button>
  271                 </Frames>
  272         </Frame>
  273 </Ui>
   
File: FrameXML\SecureGroupHeaders.lua  
102   function SetupUnitButtonConfiguration( header, newChild, defaultConfigFunction )
  102 local function SetupUnitButtonConfiguration( header, newChild, defaultConfigFunction )
 
601    sortDir = ["+", "-"] -- defines the sort order (Default: "+")
  601 sortDirection = ["+", "-"] -- defines the sort order (Default: "+")
 
619   wrapAfter = [NUMBER] -- begin a new row or column after this many auras
  619 wrapAfter = [NUMBER] -- begin a new row or column after this many auras. If 0 or nil, never wrap or limit the first row
 
622   maxWraps = [NUMBER] -- limit the number of rows or columns
  622 maxWraps = [NUMBER] -- limit the number of rows or columns. If 0 or nil, the number of rows or columns will not be limited.
 
  625 local function SetupAuraButtonConfiguration( header, newChild, defaultConfigFunction )
  626         local configCode = newChild:GetAttribute("initialConfigFunction") or header:GetAttribute("initialConfigFunction") or defaultConfigFunction;
 
  628         if ( type(configCode) == "string" ) then
  629                 local selfHandle = GetFrameHandle(newChild);
  630                 if ( selfHandle ) then
  631                         CallRestrictedClosure("self", GetManagedEnvironment(header, true),
  632                                               selfHandle, configCode, selfHandle);
  633                 end
  634         end
  635 end
 
664                   template, widgetType = strsplit(",", tostring(template):trim():gsub("%s*,%s*", ","));
  676                 template, widgetType = strsplit(",", (tostring(template):trim():gsub("%s*,%s*", ",")) );
 
  687 local function constructChild(kind, name, parent, template, ...)
  688         local new = CreateFrame(kind, name, parent, template);
  689         setAttributesWithoutResponse(new, ...);
  690         SetupAuraButtonConfiguration(parent, new);
  691         return new;
  692 end
 
  694 local enchantableSlots = {
  695         [1] = "MainHandSlot",
  696         [2] = "SecondaryHandSlot",
  697         [3] = "RangedSlot",
  698 }
 
  709         if ( maxWraps == 0 ) then maxWraps = nil; end
 
701                                   button = CreateFrame(buffWidget, name and name.."AuraButton"..i, self, buffTemplate);
702                                   setAttributesWithoutResponse(self, childAttr, button, "frameref-"..childAttr, GetFrameHandle(button));
  727                                 button = constructChild(buffWidget, name and name.."AuraButton"..i, self, buffTemplate, childAttr, button, "frameref-"..childAttr, GetFrameHandle(button));
 
711           local deadIndex = #buttons + 1;
712           local button = self:GetAttribute("child"..deadIndex);
713           while ( button ) do
714                   button:Hide();
715                   deadIndex = deadIndex + 1;
716                   button = self:GetAttribute("child"..deadIndex)
717           end
  736  
  737         local consolidateProxy = self:GetAttribute("consolidateProxy");
 
719           local consolidateProxy = nil;
 
721                   consolidateProxy = self:GetAttribute("consolidateProxy");
 
725                                   consolidateProxy = CreateFrame(widgetType, name and name.."ProxyButton", self, template);
726                                   setAttributesWithoutResponse(self, "consolidateProxy", consolidateProxy, "frameref-proxy", GetFrameHandle(consolidateProxy));
  742                                 consolidateProxy = constructChild(widgetType, name and name.."ProxyButton", self, template, "consolidateProxy", consolidateProxy, "frameref-proxy", GetFrameHandle(consolidateProxy));
 
740                   local consolidateProxy = self:GetAttribute("consolidateProxy");
 
746                   local hasMainHandEnchant, hasOffHandEnchant, _, tempEnchant1, tempEnchant2;
747                   hasMainHandEnchant, _, _, hasOffHandEnchant, _, _ = GetWeaponEnchantInfo();
  761                 local hasMainHandEnchant, hasOffHandEnchant, hasRangedEnchant, _;
  762                 hasMainHandEnchant, _, _, hasOffHandEnchant, _, _, hasRangedEnchant, _, _ = GetWeaponEnchantInfo();
 
749                   if ( hasOffHandEnchant ) then
750                           tempEnchant2 = self:GetAttribute("tempEnchant2");
751                           if ( not tempEnchant2 ) then
  764                 for weapon=3,1,-1 do
  765                         local weaponAttr = "tempEnchant"..weapon
  766                         local tempEnchant = self:GetAttribute(weaponAttr)
  767                         if ( (select(weapon, hasMainHandEnchant, hasOffHandEnchant, hasRangedEnchant)) ) then
  768                                 if ( not tempEnchant ) then
 
754                                           tempEnchant2 = CreateFrame(widgetType, name and name.."TempEnchant2", self, template);
755                                           setAttributesWithoutResponse(self, "tempEnchant2", tempEnchant2);
  771                                                 tempEnchant = constructChild(widgetType, name and name.."TempEnchant"..weapon, self, template, weaponAttr, tempEnchant2);
 
758                           if ( tempEnchant2 ) then
759                                   tempEnchant2:ClearAllPoints();
760                                   local slot = GetInventorySlotInfo("MainHandSlot");
761                                   tempEnchant2:SetAttribute("target-slot", slot);
762                                   tempEnchant2:SetID(slot);
  774                                 if ( tempEnchant ) then
  775                                         tempEnchant:ClearAllPoints();
  776                                         local slot = GetInventorySlotInfo(enchantableSlots[weapon]);
  777                                         tempEnchant:SetAttribute("target-slot", slot);
  778                                         tempEnchant:SetID(slot);
 
764                                           tinsert(buttons, tempEnchant2);
  780                                                 tinsert(buttons, tempEnchant);
 
766                                           tinsert(buttons, weaponPosition, tempEnchant2);
  782                                                 tinsert(buttons, weaponPosition, tempEnchant);
 
770                           tempEnchant2 = self:GetAttribute("tempEnchant2");
771                           if ( tempEnchant2 and type(tempEnchant2.Hide) == 'function' ) then
772                                   tempEnchant2:Hide();
773                           end
774                   end
  786                                 if ( tempEnchant and type(tempEnchant.Hide) == 'function' ) then
  787                                         tempEnchant:Hide();
 
776                   if ( hasMainHandEnchant ) then
777                           tempEnchant1 = self:GetAttribute("tempEnchant1");
778                           if ( not tempEnchant1 ) then
779                                   local template, widgetType = extractTemplateInfo(self:GetAttribute("weaponTemplate"), "Button");
780                                   if ( template ) then
781                                           tempEnchant1 = CreateFrame(widgetType, name and name.."TempEnchant1", self, template);
782                                           setAttributesWithoutResponse(self, "tempEnchant1", tempEnchant1);
 
785                           if ( tempEnchant1 ) then
786                                   tempEnchant1:ClearAllPoints();
787                                   local slot = GetInventorySlotInfo("MainHandSlot");
788                                   tempEnchant1:SetAttribute("target-slot", slot);
789                                   tempEnchant1:SetID(slot);
790                                   if ( weaponPosition == 0 ) then
791                                           tinsert(buttons, tempEnchant1);
792                                   else
793                                           tinsert(buttons, weaponPosition, tempEnchant1);
794                                   end
795                           end
796                   else
797                           tempEnchant1 = self:GetAttribute("tempEnchant1");
798                           if ( tempEnchant1 and type(tempEnchant1.Hide) == 'function' ) then
799                                   tempEnchant1:Hide();
800                           end
 
809           local left, right, top, bottom = math.huge, 0, 0, math.huge;
  798         local left, right, top, bottom = math.huge, -math.huge, -math.huge, math.huge;
 
  801                 local wrapAfter = wrapAfter or index
 
816                   right = max(right, button:GetRight() or 0);
817                   top = max(top, button:GetTop() or 0);
  806                 right = max(right, button:GetRight() or -math.huge);
  807                 top = max(top, button:GetTop() or -math.huge);
 
  810         local deadIndex = #display + 1;
  811         local button = self:GetAttribute("child"..deadIndex);
  812         while ( button ) do
  813                 button:Hide();
  814                 deadIndex = deadIndex + 1;
  815                 button = self:GetAttribute("child"..deadIndex)
  816         end
 
832                                   header = CreateFrame(widgetType, name and name.."ProxyHeader", consolidateProxy, template);
833                                   setAttributesWithoutResponse(self, "consolidateHeader", header);
  830                                 header = constructChild(widgetType, name and name.."ProxyHeader", consolidateProxy, template, "consolidateHeader", header);
 
867           if ( separateOwn ) then
  864         if ( separateOwn ~= 0 ) then
 
  928         if ( includeWeapons == 0 ) then
  929                 includeWeapons = nil
  930         end
   
File: FrameXML\SecureTemplates.lua  
  491 SECURE_ACTIONS.worldmarker =
  492         function(self, unit, button)
  493                 local marker = tonumber(SecureButton_GetModifiedAttribute(self, "marker", button));
  494                 local action = SecureButton_GetModifiedAttribute(self, "action", button) or "toggle";
  495                 if ( action == "set" ) then
  496                         PlaceRaidMarker(marker or 1);
  497                 elseif ( action == "clear" ) then
  498                         ClearRaidMarker(marker);
  499                 elseif ( action == "toggle" ) then
  500                         marker = marker or 1;
  501                         if ( IsRaidMarkerActive(marker) ) then
  502                                 ClearRaidMarker(marker);
  503                         else
  504                                 PlaceRaidMarker(marker);
  505                         end
  506                 end
  507         end;
   
File: FrameXML\SpellBookFrame.lua  
129                   else
  129                 elseif ( tabNum <= GetNumSpellTabs() ) then
 
810           if ( event == "COMPANION_LEARNED" ) then
  810         if ( event == "SPELL_UPDATE_COOLDOWN" ) then
  811                 if ( self:IsVisible() ) then
  812                         SpellBook_UpdateCompanionCooldowns();
  813                 end    
  814         elseif ( event == "COMPANION_LEARNED" ) then
 
853                   end
854           elseif ( event == "SPELL_UPDATE_COOLDOWN" ) then
855                   if ( self:IsVisible() ) then
856                           SpellBook_UpdateCompanionCooldowns();
 
  1179         end
 
  1181         if ( self:GetParent().specializationIndex >= 0 and self:GetID() == self:GetParent().specializationOffset) then
  1182                 self.unlearn:Show();
  1183         else
  1184                 self.unlearn:Hide();
 
1197                   local name, texture, rank, maxRank, numSpells, spelloffset, skillLine, rankModifier = GetProfessionInfo(index);
  1199                 local name, texture, rank, maxRank, numSpells, spelloffset, skillLine, rankModifier, specializationIndex, specializationOffset = GetProfessionInfo(index);
 
  1203                 frame.specializationIndex = specializationIndex;
  1204                 frame.specializationOffset = specializationOffset;
 
  1222                 end
  1223                 -- trial cap
  1224                 if IsTrialAccount() then
  1225                         local _, _, profCap = GetRestrictedAccountData();
  1226                         if rank >= profCap then
  1227                                 frame.statusBar.capped:Show();
  1228                                 frame.statusBar.rankText:SetTextColor(RED_FONT_COLOR.r, RED_FONT_COLOR.g, RED_FONT_COLOR.b);
  1229                                 frame.statusBar.tooltip = RED_FONT_COLOR_CODE..TRIAL_CAPPED;
  1230                         else
  1231                                 frame.statusBar.capped:Hide();
  1232                                 frame.statusBar.rankText:SetTextColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b);
  1233                                 frame.statusBar.tooltip = nil;
  1234                         end
   
File: FrameXML\SpellBookFrame.xml  
  395                         <Button name="$parentUnlearnButton" parentKey="unlearn" hidden="true">
  396                                 <Size>
  397                                         <AbsDimension x="16" y="16"/>
  398                                 </Size>                                
  399                                 <Anchors>
  400                                         <Anchor point="RIGHT"  relativeTo="$parent" relativePoint="LEFT" x="-5" y="0"/>
  401                                 </Anchors>
  402                                 <Layers>
  403                                         <Layer level="ARTWORK">
  404                                                 <Texture file="Interface\Buttons\UI-GroupLoot-Pass-Up" alpha="0.75" parentKey="texture"/>
  405                                         </Layer>
  406                                 </Layers>
  407                                 <Scripts>
  408                                         <OnEnter>
  409                                                 self.texture:SetAlpha(1.0);
  410                                                 GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
  411                                                 GameTooltip:SetText(UNLEARN_SPECIALIZATION_TOOLTIP);                                        
  412                                         </OnEnter>
  413                                         <OnLeave>
  414                                                 self.texture:SetAlpha(0.75);
  415                                                 GameTooltip_Hide();
  416                                         </OnLeave>
  417                                         <OnMouseDown>
  418                                                 self.texture:SetPoint("TOPLEFT", 1, -1);
  419                                         </OnMouseDown>
  420                                         <OnMouseUp>
  421                                                 self.texture:SetPoint("TOPLEFT", 0, 0);
  422                                         </OnMouseUp>
  423                                         <OnClick>
  424                                                 local parent = self:GetParent():GetParent();
  425                                                 if ( parent.specializationIndex >= 0 ) then
  426                                                         local spellName, subSpellName = GetSpellBookItemName( (parent.spellOffset + parent.specializationOffset), SpellBookFrame.bookType);
  427                                                         StaticPopup_Show("UNLEARN_SPECIALIZATION", spellName, nil, parent.specializationIndex);
  428                                                 end
  429                                         </OnClick>
  430                                 </Scripts>
  431                         </Button>
 
  473         <Frame name="ProfessionTrialCapTemplate" hidden="true" enableMouse="true" virtual="true">
  474                 <Size>
  475                         <AbsDimension x="18" y="21"/>
  476                 </Size>
  477                 <Layers>
  478                         <Layer level="ARTWORK">
  479                                 <Texture name="$parentLockedIndicator"  file="Interface/LFGFrame/UI-LFG-ICON-LOCK" parentKey="lockedIndicator" setAllPoints="true">
  480                                         <TexCoords left="0" right="0.71875" top="0" bottom="0.875"/>
  481                                 </Texture>
  482                         </Layer>
  483                 </Layers>
  484                 <Scripts>
  485                         <OnEnter>
  486                                 GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
  487                                 GameTooltip:SetText(TRIAL_CAPPED, RED_FONT_COLOR.r, RED_FONT_COLOR.b, RED_FONT_COLOR.b);
  488                         </OnEnter>
  489                         <OnLeave>
  490                                 GameTooltip:Hide();
  491                         </OnLeave>
  492                 </Scripts>
  493         </Frame>
 
  634                 <Frames>
  635                         <Frame name="$parentCapped" parentKey="capped" inherits="ProfessionTrialCapTemplate">
  636                                 <Anchors>
  637                                         <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT" x="14" y="2"/>
  638                                 </Anchors>
  639                         </Frame>
  640                 </Frames>
  641                 <Scripts>
  642                         <OnEnter>
  643                                 if ( self.tooltip ) then
  644                                         GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
  645                                         GameTooltip:SetText(self.tooltip);
  646                                 end
  647                         </OnEnter>
  648                         <OnLeave>
  649                                 GameTooltip:Hide();
  650                         </OnLeave>
  651                 </Scripts>
 
700                                                   local dialog = StaticPopup_Show("UNLEARN_SKILL", self:GetParent().skillName);
701                                                   if ( dialog ) then
702                                                           dialog.data = self:GetParent().skillLine;
703                                                   end
  776                                                 local parent = self:GetParent();
  777                                                 StaticPopup_Show("UNLEARN_SKILL", parent.skillName, nil, parent.skillLine);
 
1288                                           <PlayerModel name="SpellBookCompanionModelFrame" useParentLevel="true">
  1362                                         <PlayerModel name="SpellBookCompanionModelFrame" useParentLevel="true" inherits="ModelWithZoomTemplate">
 
1293                                                   <Scripts>
1294                                                           <OnLoad>
1295                                                                   Model_OnLoad(self);
1296                                                           </OnLoad>
1297                                                           <OnEvent function="Model_OnEvent"/>
1298                                                           <OnUpdate function="Model_OnUpdate"/>
1299                                                           <OnMouseUp function="Model_OnMouseUp"/>
1300                                                           <OnMouseDown function="Model_OnMouseDown"/>
1301                                                           <OnMouseWheel>
1302                                                                   Model_OnMouseWheel(self, delta, MODELFRAME_MAX_PET_ZOOM);
1303                                                           </OnMouseWheel>
1304                                                   </Scripts>
   
File: FrameXML\StaticPopup.lua  
621                   self.timeleft = select(4, GetWorldPVPQueueStatus(1));
  621                 for i = 1, MAX_WORLD_PVP_QUEUES do
  622                         local status, mapName, queueID, timeleft = GetWorldPVPQueueStatus(i);
  623                         if ( queueID == self.data ) then
  624                                 self.timeleft = timeleft;
  625                         end
  626                 end
 
  2181 StaticPopupDialogs["UNLEARN_SPECIALIZATION"] = {
  2182         text = UNLEARN_SKILL,
  2183         button1 = UNLEARN,
  2184         button2 = CANCEL,
  2185         OnAccept = function(self, index)
  2186                 UnlearnSpecialization(index);
  2187         end,
  2188         timeout = 60,
  2189         exclusive = 1,
  2190         whileDead = 1,
  2191         showAlert = 1,
  2192         hideOnEscape = 1
  2193 };
 
  2983 StaticPopupDialogs["VOID_DEPOSIT_CONFIRM"] = {
  2984         text = VOID_STORAGE_DEPOSIT_CONFIRMATION.."\n"..CONFIRM_CONTINUE,
  2985         button1 = OKAY,
  2986         button2 = CANCEL,
  2987         OnAccept = function(self)
  2988                 VoidStorage_UpdateTransferButton();
  2989         end,
  2990         OnCancel = function(self)
  2991                 VoidStorage_CloseConfirmationDialog(self.data.slot);
  2992         end,
  2993         timeout = 0,
  2994         exclusive = 1,
  2995         whileDead = 1,
  2996         hideOnEscape = 1,
  2997         hasItemFrame = 1
  2998 };
  2999 StaticPopupDialogs["TRANSMOGRIFY_BIND_CONFIRM"] = {
  3000         text = TRANSMOGRIFY_BIND_CONFIRMATION.."\n"..CONFIRM_CONTINUE,
  3001         button1 = OKAY,
  3002         button2 = CANCEL,
  3003         OnAccept = function(self)
  3004                 TransmogrifyFrame_UpdateApplyButton();
  3005         end,
  3006         OnCancel = function(self)
  3007                 ClearTransmogrifySlot(self.data.slot);
  3008         end,
  3009         timeout = 0,
  3010         exclusive = 1,
  3011         whileDead = 1,
  3012         hideOnEscape = 1,
  3013         hasItemFrame = 1
  3014 };
 
  3016 StaticPopupDialogs["GUILD_IMPEACH"] = {
  3017         text = GUILD_IMPEACH_POPUP_TEXT ,
  3018         button1 = GUILD_IMPEACH_POPUP_CONFIRM,
  3019         button2 = CANCEL,
  3020         OnAccept = function (self) ReplaceGuildMaster(); end,
  3021         OnCancel = function (self) end,
  3022         hideOnEscape = 1,
  3023         timeout = 0,
  3024         exclusive = 1,
  3025 }
 
  3063         elseif ( which == "GUILD_IMPEACH" ) then
  3064                 width = 375;
   
File: FrameXML\TargetFrame.lua  
229                   if ( arg1 == "SHOW_CASTABLE_DEBUFFS_TEXT" and self:IsShown() ) then
  229                 if ( arg1 == "SHOW_ALL_ENEMY_DEBUFFS_TEXT" and self:IsShown() ) then
 
231                           SHOW_CASTABLE_DEBUFFS = GetCVar("showCastableDebuffs");
  231                         SHOW_ALL_ENEMY_DEBUFFS_TEXT = GetCVar("showAllEnemyDebuffs");
 
359           local name, rank, icon, count, debuffType, duration, expirationTime, caster, isStealable;
  359         local name, rank, icon, count, debuffType, duration, expirationTime, caster, canStealOrPurge;
 
372                   name, rank, icon, count, debuffType, duration, expirationTime, caster, isStealable = UnitBuff(self.unit, i, filter);
  372                 name, rank, icon, count, debuffType, duration, expirationTime, caster, canStealOrPurge = UnitBuff(self.unit, i, filter);
 
408                           -- Show stealable frame if the target is not a player and the buff is stealable.
  408                         -- Show stealable frame if the target is not the current player and the buff is stealable.
 
410                           if ( not playerIsTarget and isStealable ) then
  410                         if ( not playerIsTarget and canStealOrPurge ) then
 
  439         local frameNum = 1;
  440         local index = 1;
 
438           for i = 1, MAX_TARGET_DEBUFFS do
439                   name, rank, icon, count, debuffType, duration, expirationTime, caster = UnitDebuff(self.unit, i, filter);
440                   frameName = selfName.."Debuff"..i;
  442         while ( frameNum <= (self.maxDebuffs or MAX_TARGET_DEBUFFS) ) do
  443                 local debuffName = UnitDebuff(self.unit, index, filter);
  444                 if ( debuffName ) then
  445                         if ( TargetFrame_ShouldShowDebuff(self.unit, index, filter) ) then
  446                                 name, rank, icon, count, debuffType, duration, expirationTime, caster = UnitDebuff(self.unit, index, filter);
  447                                 frameName = selfName.."Debuff"..frameNum;
 
  449                                 if ( icon ) then
 
443                           if ( not icon ) then
444                                   break;
445                           else
 
449                   end
450                   if ( icon and ( not self.maxDebuffs or i <= self.maxDebuffs ) and ( SHOW_CASTABLE_DEBUFFS == "0" or not isEnemy or caster == "player" or caster == "vehicle") ) then
451                           frame:SetID(i);
  454                                         frame:SetID(index);
 
485                           largeDebuffList[i] = (PLAYER_UNITS[caster]);
  488                                         largeDebuffList[index] = (PLAYER_UNITS[caster]);
 
  495                                         frameNum = frameNum + 1;
  496                                 end
  497                         end
  498                         index = index + 1;
 
  500                         break;
  501                 end
  502         end
 
  504         for i = frameNum, MAX_TARGET_DEBUFFS do
  505                 local frame = _G[selfName.."Debuff"..i];
  506                 if ( frame ) then
 
  508                 else
  509                         break;
 
  534         end
  535 end
 
  537 function TargetFrame_ShouldShowDebuff(unit, index, filter)
  538         --This is an enemy
  539         if ( SHOW_ALL_ENEMY_DEBUFFS == "1" or not UnitCanAttack("player", unit) ) then
  540                 return true;
  541         else
  542                 local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, canStealOrPurge, shouldConsolidate, spellId, canApplyAura, isBossDebuff, points1, points2, points3, isCastByPlayer = UnitDebuff(unit, index, filter);
 
  544                 local hasCustom, alwaysShowMine, showForMySpec = SpellGetVisibilityInfo(spellId, "ENEMY_TARGET");
  545                 if ( hasCustom ) then
  546                         return showForMySpec or (alwaysShowMine and (unitCaster == "player" or unitCaster == "pet" or unitCaster == "vehicle") );
  547                 else
  548                         return not isCastByPlayer or unitCaster == "player" or unitCaster == "pet" or unitCaster == "vehicle";
  549                 end
   
File: FrameXML\Timer.lua  
  24 function StartTimer_OnShow(self)
  25         self.time = self.endTime - GetTime();
  26         if self.time <= 0 then
  27                 self:Hide();
  28                 self.isFree = true;
  29         elseif self.startNumbers:IsPlaying() then
  30                 self.startNumbers:Stop();
  31                 self.startNumbers:Play();
  32         end
  33 end
 
  79                         timer.endTime = GetTime() + timeSeconds;
 
  106                         timer:Show();
 
111           self.time = self.time - elasped;
  125         self.time = self.endTime - GetTime();
 
135           self.time = self.time - elasped;
  149         self.time = self.endTime - GetTime();
 
  208                 PlaySoundKitID(25477, "SFX", false);
 
  242                 PlaySoundKitID(25478);
   
File: FrameXML\Timer.xml  
6           <Frame name="StartTimerBar" virtual="true">
  6         <Frame name="StartTimerBar" virtual="true" hidden="true">
 
154           </Frame>
 
159           <Frame name="TimerTest" toplevel="true" parent="UIParent" inherits="StartTimerBar">
160                   <Anchors>
161                           <Anchor point="CENTER" x="20" y="20"/>
162                   </Anchors>
  154                 <Scripts>
  155                         <OnShow function="StartTimer_OnShow"/>
  156                 </Scripts>
 
167                   <Size x="5" y="5"/>
  160                 <Size x="0" y="0"/>
 
169                           <Anchor point="BOTTOMLEFT" x="20" y="20"/>
  162                         <Anchor point="BOTTOMLEFT" x="0" y="0"/>
   
File: FrameXML\TutorialFrame.lua  
344                   callOut = {parent = "DurabilityFrame", align = "TOPLEFT", xOff = 0, yOff = 8, width = 58, height = 90},
  344                 callOut = {parent = "DurabilityFrame", align = "TOPLEFT", xOff = -4, yOff = 8, align2 = "BOTTOMRIGHT", xOff2 = 4, yOff2 = -8},
 
354                   callOut = {parent = "DurabilityFrame", align = "TOPLEFT", xOff = 0, yOff = 8, width = 58, height = 90},
  354                 callOut = {parent = "DurabilityFrame", align = "TOPLEFT", xOff = -4, yOff = 8, align2 = "BOTTOMRIGHT", xOff2 = 4, yOff2 = -8},
 
701           if ( GetPrevCompleatedTutorial(TutorialFrame.id) ) then
  701         local prevTutorial = GetPrevCompleatedTutorial(TutorialFrame.id);
  702         while ( prevTutorial and DISPLAY_DATA[prevTutorial].tileHeight == 0) do
  703                 prevTutorial = GetPrevCompleatedTutorial(prevTutorial);
  704         end
  705         if ( prevTutorial ) then
 
706           if ( GetNextCompleatedTutorial(TutorialFrame.id) or (getn(TUTORIALFRAME_QUEUE) > 0) ) then
  711         local nextTutorial = GetNextCompleatedTutorial(TutorialFrame.id);
  712         while ( nextTutorial and DISPLAY_DATA[nextTutorial].tileHeight == 0) do
  713                 nextTutorial = GetNextCompleatedTutorial(nextTutorial);
  714         end    
  715         if ( nextTutorial or (getn(TUTORIALFRAME_QUEUE) > 0) ) then
 
  863                 if ( callOut.align2 ) then
  864                         TutorialFrameCallOut:SetPoint( callOut.align2, callOut.parent, callOut.align2, callOut.xOff2, callOut.yOff2 );
  865                 else
 
  867                 end
   
File: FrameXML\UI.xsd  
  585                                 <xs:attribute name="reverseFill" type="xs:boolean" default="false"/>
   
File: FrameXML\UIDropDownMenu.lua  
  172 local wipe = table.wipe;
 
174           local info;
175           local secure = issecure();
 
177           if ( secure ) then
178                   info = UIDropDownMenu_SecureInfo;
  177         if ( issecure() ) then
  178                 securecall(wipe, UIDropDownMenu_SecureInfo);
  179                 return UIDropDownMenu_SecureInfo;
 
180                   info = UIDropDownMenu_ButtonInfo;
  181                 return wipe(UIDropDownMenu_ButtonInfo);
 
183           for k,v in pairs(info) do
184                   info[k] = nil;
185           end
 
187           return info;
 
  588 function UIDropDownMenu_RefreshAll(frame, useValue)
  589         for dropdownLevel = UIDROPDOWNMENU_MENU_LEVEL, 2, -1 do
  590                 local listFrame = _G["DropDownList"..dropdownLevel];
  591                 if ( listFrame:IsShown() ) then
  592                         UIDropDownMenu_Refresh(frame, nil, dropdownLevel);
  593                 end
  594         end
  595         -- useValue is the text on the dropdown, only needs to be set once
  596         UIDropDownMenu_Refresh(frame, useValue, 1);
  597 end
 
715   function ToggleDropDownMenu(level, value, dropDownFrame, anchorName, xOffset, yOffset, menuList, button)
  721 function ToggleDropDownMenu(level, value, dropDownFrame, anchorName, xOffset, yOffset, menuList, button, autoHideDelay)
 
  879                 --  We just move level 1 enough to keep it on the screen. We don't necessarily change the anchors.
  880                 if ( level == 1 ) then
  881                         local offLeft = listFrame:GetLeft()/uiScale;
  882                         local offRight = (GetScreenWidth() - listFrame:GetRight())/uiScale;
  883                         local offTop = (GetScreenHeight() - listFrame:GetTop())/uiScale;
  884                         local offBottom = listFrame:GetBottom()/uiScale;
 
  886                         local xAddOffset, yAddOffset = 0, 0;
  887                         if ( offLeft < 0 ) then
  888                                 xAddOffset = -offLeft;
  889                         elseif ( offRight < 0 ) then
  890                                 xAddOffset = offRight;
  891                         end
 
  893                         if ( offTop < 0 ) then
  894                                 yAddOffset = offTop;
  895                         elseif ( offBottom < 0 ) then
  896                                 yAddOffset = -offBottom;
  897                         end
 
  899                         listFrame:ClearAllPoints();
  900                         if ( anchorName == "cursor" ) then
  901                                 listFrame:SetPoint(point, relativeTo, relativePoint, xOffset + xAddOffset, yOffset + yAddOffset);
  902                         else
  903                                 listFrame:SetPoint(point, relativeTo, relativePoint, xOffset + xAddOffset, yOffset + yAddOffset);
  904                         end
  905                 else
 
881                   --  If level 1 can only go off the bottom of the screen
882                   if ( level == 1 ) then
883                           if ( offscreenY and offscreenX ) then
884                                   point = gsub(point, "TOP(.*)", "BOTTOM%1");
885                                   point = gsub(point, "(.*)LEFT", "%1RIGHT");
886                                   relativePoint = gsub(relativePoint, "TOP(.*)", "BOTTOM%1");
887                                   relativePoint = gsub(relativePoint, "(.*)RIGHT", "%1LEFT");
888                           elseif ( offscreenY ) then
889                                   point = gsub(point, "TOP(.*)", "BOTTOM%1");
890                                   relativePoint = gsub(relativePoint, "(.*)RIGHT", "%1LEFT");
891                           elseif ( offscreenX ) then
892                                   point = gsub(point, "(.*)LEFT", "%1RIGHT");
893                                   relativePoint = gsub(relativePoint, "(.*)RIGHT", "%1LEFT");
894                           end
 
896                           listFrame:ClearAllPoints();
897                           if ( anchorName == "cursor" ) then
898                                   listFrame:SetPoint(point, relativeTo, "BOTTOMLEFT", xOffset, yOffset);
899                           else
900                                   listFrame:SetPoint(point, relativeTo, relativePoint, xOffset, yOffset);
901                           end
902                   else
 
  940                 end
 
  942                 if ( autoHideDelay and tonumber(autoHideDelay)) then
  943                         listFrame.showTimer = autoHideDelay;
  944                         listFrame.isCounting = 1;
   
File: FrameXML\UIPanelTemplates.lua  
  2 ITEM_SEARCHBAR_LIST = {
  3         "BagItemSearchBox",
  4         "GuildItemSearchBox",
  5         "VoidItemSearchBox",
  6         "BankItemSearchBox",
  7 };
 
  9 function BagSearch_OnHide(self)
  10         local allClosed = true;
  11         for _,barName in pairs(ITEM_SEARCHBAR_LIST) do
  12                 local bar = _G[barName];
  13                 if bar and bar ~= self and bar:IsVisible() then
  14                         allClosed = false;
  15                 end
  16         end
  17         if ( allClosed ) then
  18                 self.clearButton:Click();
  19                 BagSearch_OnTextChanged(self);
  20         end
  21 end
 
  23 function BagSearch_OnTextChanged(self, userChanged)
  24         local text = self:GetText();
  25         for _,barName in pairs(ITEM_SEARCHBAR_LIST) do
  26                 local bar = _G[barName];
  27                 if bar and bar ~= self then
  28                         bar:SetText(text);
  29                 end
  30         end
 
  32         if ( text == SEARCH ) then
  33                 text = "";
  34         end
  35         SetItemSearch(text);
  36         if (text ~= "") then
  37                 self.clearButton:Show();
  38         else
  39                 self.clearButton:Hide();
  40         end
  41 end
 
  43 function BagSearch_OnChar(self, text)
  44         -- clear focus if the player is repeating keys (ie - trying to move)
  45         -- TODO: move into base editbox code?
  46         local MIN_REPEAT_CHARACTERS = 3
  47         local searchString = self:GetText();
  48         if (string.len(searchString) > MIN_REPEAT_CHARACTERS) then
  49                 local repeatChar = true;
  50                 for i=1, MIN_REPEAT_CHARACTERS, 1 do
  51                         if ( string.sub(searchString,(0-i), (0-i)) ~= string.sub(searchString,(-1-i),(-1-i)) ) then
  52                                 repeatChar = false;
  53                                 break;
  54                         end
  55                 end
  56                 if ( repeatChar ) then
  57                         self:ClearFocus();
  58                 end
  59         end
  60 end
 
  364                         _G[scrollbar:GetName().."ThumbTexture"]:Hide();
 
  370                         if ( not self.noScrollThumb ) then
  371                                 _G[scrollbar:GetName().."ThumbTexture"]:Show();
  372                         end
 
309                   _G[scrollbar:GetName().."ThumbTexture"]:Hide();
 
  799         if ( totalLimit == 0) then
  800                 return;
  801         end
   
File: FrameXML\UIPanelTemplates.xml  
866                                   self:SetTextInsets(16, 0, 0, 0);
  866                                 self:SetTextInsets(16, 20, 0, 0);
 
  871                                 self:SetFontObject("GameFontDisable");
  872                                 self.searchIcon:SetVertexColor(0.6, 0.6, 0.6);
 
873                                           self:SetFontObject("GameFontDisable");
874                                           self.searchIcon:SetVertexColor(0.6, 0.6, 0.6);
 
880                                   if ( self:GetText() == SEARCH ) then
 
  882                                 if ( self:GetText() == SEARCH ) then
  883                                         self:SetText("")
 
  887                 </Scripts>
  888         </EditBox>
  889         <EditBox name="BagSearchBoxTemplate" inherits="SearchBoxTemplate" autoFocus="false" virtual="true">
  890                 <Scripts>
  891                         <OnHide function="BagSearch_OnHide"/>
  892                         <OnTextChanged function="BagSearch_OnTextChanged"/>
  893                         <OnChar function="BagSearch_OnChar"/>
 
  2790         <Frame name="EtherealFrameTemplate" inherits="PortraitFrameTemplate" virtual="true">
  2791                 <Layers>
  2792                         <Layer level="BACKGROUND" textureSubLevel="-2">
  2793                                 <Texture name="$parentCornerTL" file="Interface\Transmogrify\Textures.png">
  2794                                         <Size x="64" y="64"/>
  2795                                         <Anchors>
  2796                                                 <Anchor point="TOPLEFT" x="-2" y="-8"/>
  2797                                         </Anchors>
  2798                                         <TexCoords left="0.00781250" right="0.50781250" top="0.00195313" bottom="0.12695313"/>
  2799                                 </Texture>
  2800                                 <Texture name="$parentCornerTR" file="Interface\Transmogrify\Textures.png">
  2801                                         <Size x="64" y="64"/>
  2802                                         <Anchors>
  2803                                                 <Anchor point="TOPRIGHT" x="0" y="-8"/>
  2804                                         </Anchors>
  2805                                         <TexCoords left="0.00781250" right="0.50781250" top="0.38476563" bottom="0.50781250"/>
  2806                                 </Texture>
  2807                                 <Texture name="$parentCornerBL" file="Interface\Transmogrify\Textures.png">
  2808                                         <Size x="64" y="64"/>
  2809                                         <Anchors>
  2810                                                 <Anchor point="BOTTOMLEFT" x="-2" y="16"/>
  2811                                         </Anchors>
  2812                                         <TexCoords left="0.00781250" right="0.50781250" top="0.25781250" bottom="0.38085938"/> 
  2813                                 </Texture>
  2814                                 <Texture name="$parentCornerBR" file="Interface\Transmogrify\Textures.png">
  2815                                         <Size x="64" y="64"/>
  2816                                         <Anchors>
  2817                                                 <Anchor point="BOTTOMRIGHT" x="0" y="16"/>
  2818                                         </Anchors>
  2819                                         <TexCoords left="0.00781250" right="0.50781250" top="0.13085938" bottom="0.25390625"/>
  2820                                 </Texture>
  2821                         </Layer>
  2822                         <Layer level="BACKGROUND" textureSubLevel="-3">
  2823                                 <Texture name="$parentLeftEdge" file="Interface\Transmogrify\VerticalTiles.png" vertTile="true">
  2824                                         <Size x="23" y="64"/>
  2825                                         <Anchors>
  2826                                                 <Anchor point="TOPLEFT" relativeTo="$parentCornerTL" relativePoint="BOTTOMLEFT" x="3" y="16"/>
  2827                                                 <Anchor point="BOTTOMLEFT" relativeTo="$parentCornerBL" relativePoint="TOPLEFT" x="3" y="-16"/>
  2828                                         </Anchors>
  2829                                         <TexCoords left="0.40625000" right="0.76562500" top="0.00000000" bottom="1.00000000"/>
  2830                                 </Texture>
  2831                                 <Texture name="$parentRightEdge" file="Interface\Transmogrify\VerticalTiles.png" vertTile="true">
  2832                                         <Size x="23" y="64"/>
  2833                                         <Anchors>
  2834                                                 <Anchor point="TOPRIGHT" relativeTo="$parentCornerTR" relativePoint="BOTTOMRIGHT" x="-3" y="16"/>
  2835                                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parentCornerBR" relativePoint="TOPRIGHT" x="-3" y="-16"/>
  2836                                         </Anchors>
  2837                                         <TexCoords left="0.01562500" right="0.37500000" top="0.00000000" bottom="1.00000000"/>
  2838                                 </Texture>
  2839                                 <Texture name="$parentTopEdge" file="Interface\Transmogrify\HorizontalTiles.png" horizTile="true">
  2840                                         <Size x="64" y="23"/>
  2841                                         <Anchors>
  2842                                                 <Anchor point="TOPLEFT" relativeTo="$parentCornerTL" relativePoint="TOPRIGHT" x="-30" y="-6"/>
  2843                                                 <Anchor point="TOPRIGHT" relativeTo="$parentCornerTR" relativePoint="TOPLEFT" x="30" y="-6"/>
  2844                                         </Anchors>
  2845                                         <TexCoords left="0.00000000" right="1.00000000" top="0.40625000" bottom="0.76562500"/>
  2846                                 </Texture>
  2847                                 <Texture name="$parentBottomEdge" file="Interface\Transmogrify\HorizontalTiles.png" horizTile="true">
  2848                                         <Size x="64" y="23"/>
  2849                                         <Anchors>
  2850                                                 <Anchor point="BOTTOMLEFT" relativeTo="$parentCornerBL" relativePoint="BOTTOMRIGHT" x="-30" y="4"/>
  2851                                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parentCornerBR" relativePoint="BOTTOMLEFT" x="30" y="4"/>
  2852                                         </Anchors>
  2853                                         <TexCoords left="0.00000000" right="1.00000000" top="0.01562500" bottom="0.37500000"/>
  2854                                 </Texture>
  2855                         </Layer>
  2856                         <Layer level="BACKGROUND" textureSubLevel="1">
  2857                                 <Texture>
  2858                                         <Anchors>
  2859                                                 <Anchor point="TOPLEFT" relativeTo="$parentTitleBg"/>
  2860                                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parentTitleBg"/>
  2861                                         </Anchors>
  2862                                         <Color r="0.302" g="0.102" b="0.204" a="0.5"/>
  2863                                 </Texture>
  2864                         </Layer>
  2865                 </Layers>
  2866         </Frame>
   
File: FrameXML\UIParent.lua  
  33 UIPanelWindows["RaidParentFrame"] =                     { area = "left",                        pushable = 1,   whileDead = 1 };
  34 UIPanelWindows["FriendsFrame"] =                                { area = "left",                        pushable = 0,   whileDead = 1, extraWidth = 32};
 
43   UIPanelWindows["FriendsFrame"] =                                { area = "left",                        pushable = 0,           xoffset = -16,          yoffset = 12,   whileDead = 1 };
 
55   UIPanelWindows["LFRParentFrame"] =                              { area = "left",                        pushable = 1,           xoffset = -16,          yoffset = 12,   whileDead = 1 };
 
  252         -- Events for transmogrify
  253         self:RegisterEvent("TRANSMOGRIFY_OPEN");
  254         self:RegisterEvent("TRANSMOGRIFY_CLOSE");
 
  256         -- Events for void storage
  257         self:RegisterEvent("VOID_STORAGE_OPEN");
  258         self:RegisterEvent("VOID_STORAGE_CLOSE");
 
  364 function ItemAlteration_LoadUI()
  365         UIParentLoadAddOn("Blizzard_ItemAlterationUI");
  366 end
 
  368 function VoidStorage_LoadUI()
  369         UIParentLoadAddOn("Blizzard_VoidStorageUI");
  370 end
 
  399 function EncounterJournal_LoadUI()
  400         UIParentLoadAddOn("Blizzard_EncounterJournal");
  401 end
 
506   function ToggleLFRParentFrame()
507           if ( LFRParentFrame:IsShown() ) then
508                   HideUIPanel(LFRParentFrame);
509           else
510                   ShowUIPanel(LFRParentFrame);
511           end
512   end
 
  541 function ToggleRaidFrame()
  542         if ( RaidParentFrame:IsShown() ) then
  543                 HideUIPanel(RaidParentFrame);
  544         else
  545                 ShowUIPanel(RaidParentFrame);
  546         end
  547 end
 
  549 function ToggleEncounterJournal()
  550         if ( not EncounterJournal ) then
  551                 EncounterJournal_LoadUI();
  552         end
  553         if ( EncounterJournal ) then
  554                 ToggleFrame(EncounterJournal);
  555         end
  556 end
 
538           if ( event == "VARIABLES_LOADED" ) then
  570         if ( event == "CURRENT_SPELL_CAST_CHANGED" and #StaticPopup_DisplayedFrames > 0 ) then
  571                 if ( arg1 ) then
  572                         StaticPopup_Hide("BIND_ENCHANT");
  573                         StaticPopup_Hide("REPLACE_ENCHANT");
  574                 end
  575                 StaticPopup_Hide("TRADE_REPLACE_ENCHANT");
  576                 StaticPopup_Hide("END_BOUND_TRADEABLE");
  577         elseif ( event == "VARIABLES_LOADED" ) then
 
775           elseif ( event == "CURRENT_SPELL_CAST_CHANGED" ) then
776                   StaticPopup_Hide("BIND_ENCHANT");
777                   StaticPopup_Hide("REPLACE_ENCHANT");
778                   StaticPopup_Hide("TRADE_REPLACE_ENCHANT");
779                   StaticPopup_Hide("END_BOUND_TRADEABLE");
 
  1109         -- Events for Transmogrify UI handling
  1110         elseif ( event == "TRANSMOGRIFY_OPEN" ) then
  1111                 ItemAlteration_LoadUI();
  1112                 if ( TransmogrifyFrame_Show ) then
  1113                         TransmogrifyFrame_Show();
  1114                 end
  1115         elseif ( event == "TRANSMOGRIFY_CLOSE" ) then
  1116                 if ( TransmogrifyFrame_Hide ) then
  1117                         TransmogrifyFrame_Hide();
  1118                 end
 
  1120         -- Events for Void Storage UI handling
  1121         elseif ( event == "VOID_STORAGE_OPEN" ) then
  1122                 VoidStorage_LoadUI();
  1123                 if ( VoidStorageFrame_Show ) then
  1124                         VoidStorageFrame_Show();
  1125                 end
  1126         elseif ( event == "VOID_STORAGE_CLOSE" ) then
  1127                 if ( VoidStorageFrame_Hide ) then
  1128                         VoidStorageFrame_Hide();
  1129                 end
 
1124           ["CastingBarFrame"] = {baseY = true, yOffset = 40, bottomEither = actionBarOffset, vehicleMenuBar = vehicleMenuBarTop, bonusActionBar = 1, pet = 1, reputation = 1, tutorialAlert = 1, playerPowerBarAlt = 1};
1125           ["PlayerPowerBarAlt"] = {baseY = true, yOffset = 40, bottomEither = actionBarOffset, vehicleMenuBar = vehicleMenuBarTop, bonusActionBar = 1, pet = 1, reputation = 1, tutorialAlert = 1};
  1180         ["CastingBarFrame"] = {baseY = true, yOffset = 40, bottomEither = actionBarOffset, vehicleMenuBar = vehicleMenuBarTop, bonusActionBar = 1, pet = 1, reputation = 1, tutorialAlert = 1, playerPowerBarAlt = 1, extraActionBarFrame = 1};
  1181         ["PlayerPowerBarAlt"] = {baseY = true, yOffset = 40, bottomEither = actionBarOffset, vehicleMenuBar = vehicleMenuBarTop, bonusActionBar = 1, pet = 1, reputation = 1, tutorialAlert = 1, extraActionBarFrame = 1};
  1182         ["ExtraActionBarFrame"] = {baseY = true, yOffset = 40, bottomEither = actionBarOffset, vehicleMenuBar = vehicleMenuBarTop, bonusActionBar = 1, pet = 1, reputation = 1, tutorialAlert = 1};
 
  1804                 if (ExtraActionBarFrame and ExtraActionBarFrame:IsShown() ) then
  1805                         tinsert(yOffsetFrames, "extraActionBarFrame");
  1806                 end
 
  1820                 end
  1821                 if ( value.extraActionBarFrame and ExtraActionBarFrame ) then
  1822                         value.extraActionBarFrame = ExtraActionBarFrame:GetHeight() + 10;
 
1871           local durabilityXOffset = CONTAINER_OFFSET_X;
 
1892                   if ( DurabilityShield:IsShown() or DurabilityOffWeapon:IsShown() or DurabilityRanged:IsShown() ) then
1893                           durabilityXOffset = durabilityXOffset + 20;
1894                   end
1895                   DurabilityFrame:SetPoint("TOPRIGHT", "MinimapCluster", "BOTTOMRIGHT", -durabilityXOffset, anchorY);
  1954                 DurabilityFrame:SetPoint("TOPRIGHT", "MinimapCluster", "BOTTOMRIGHT", -CONTAINER_OFFSET_X, anchorY);
 
1897                           anchorY = anchorY - DurabilityFrame:GetHeight() - 10;
  1956                         anchorY = anchorY - DurabilityFrame:GetHeight();
 
2846   -- Model --
 
2848   MODELFRAME_DRAG_ROTATION_CONSTANT = 0.010;
2849   MODELFRAME_MAX_PLAYER_ZOOM = 0.8;
2850   MODELFRAME_MAX_PET_ZOOM = 0.7;
 
2852   -- Generic model rotation functions
2853   function Model_OnLoad (self)
2854           self.rotation = 0.61;
2855           self:SetRotation(self.rotation);
2856           self:RegisterEvent("UI_SCALE_CHANGED");
2857           self:RegisterEvent("DISPLAY_SIZE_CHANGED");
2858   end
 
2860   function Model_OnEvent(self, event, ...)
2861           self:RefreshCamera();
2862   end
 
2864   function Model_RotateLeft(model, rotationIncrement)
2865           if ( not rotationIncrement ) then
2866                   rotationIncrement = 0.03;
2867           end
2868           model.rotation = model.rotation - rotationIncrement;
2869           model:SetRotation(model.rotation);
2870           PlaySound("igInventoryRotateCharacter");
2871   end
 
2873   function Model_RotateRight(model, rotationIncrement)
2874           if ( not rotationIncrement ) then
2875                   rotationIncrement = 0.03;
2876           end
2877           model.rotation = model.rotation + rotationIncrement;
2878           model:SetRotation(model.rotation);
2879           PlaySound("igInventoryRotateCharacter");
2880   end
 
2882   function Model_OnMouseDown(model, button)
2883           if ( button == "LeftButton" ) then
2884                   model.mouseDown = true;
2885                   model.rotationCursorStart = GetCursorPosition();
2886           end
2887   end
 
2889   function Model_OnMouseUp(model, button)
2890           if ( button == "LeftButton" ) then
2891                   model.mouseDown = false;
2892           end
2893   end
 
2895   function Model_OnMouseWheel(self, delta, maxZoom)
2896           if (not maxZoom) then
2897                   maxZoom = MODELFRAME_MAX_PET_ZOOM;
2898           end
2899           if (not self.zoomLevel) then
2900                   self.zoomLevel = 0;
2901           end
2902           self.zoomLevel = self.zoomLevel + delta*0.15;
2903           if (self.zoomLevel > maxZoom) then
2904                   self.zoomLevel = maxZoom;
2905           end
2906           if (0 > self.zoomLevel) then
2907                   self.zoomLevel = 0;
2908           end
2909           self:SetPortraitZoom(self.zoomLevel);
2910   end
 
2912   function Model_OnUpdate(self, elapsedTime, rotationsPerSecond)
2913           if ( not rotationsPerSecond ) then
2914                   rotationsPerSecond = ROTATIONS_PER_SECOND;
2915           end
 
2917           -- Mouse drag rotation
2918           if (self.mouseDown) then
2919                   if ( self.rotationCursorStart ) then
2920                           local x = GetCursorPosition();
2921                           local diff = (x - self.rotationCursorStart) * MODELFRAME_DRAG_ROTATION_CONSTANT;
2922                           self.rotationCursorStart = GetCursorPosition();
2923                           self.rotation = self.rotation + diff;
2924                           if ( self.rotation < 0 ) then
2925                                   self.rotation = self.rotation + (2 * PI);
2926                           end
2927                           if ( self.rotation > (2 * PI) ) then
2928                                   self.rotation = self.rotation - (2 * PI);
2929                           end
2930                           self:SetRotation(self.rotation, false);
2931                   end
2932           end
 
2934           -- Rotate buttons
2935           local button = _G[self:GetName().."RotateLeftButton"];
2936           if ( button and button:GetButtonState() == "PUSHED" ) then
2937                   self.rotation = self.rotation + (elapsedTime * 2 * PI * rotationsPerSecond);
2938                   if ( self.rotation < 0 ) then
2939                           self.rotation = self.rotation + (2 * PI);
2940                   end
2941                   self:SetRotation(self.rotation);
2942           end
2943           button = _G[self:GetName().."RotateRightButton"];
2944           if ( button and button:GetButtonState() == "PUSHED" ) then
2945                   self.rotation = self.rotation - (elapsedTime * 2 * PI * rotationsPerSecond);
2946                   if ( self.rotation > (2 * PI) ) then
2947                           self.rotation = self.rotation - (2 * PI);
2948                   end
2949                   self:SetRotation(self.rotation);
2950           end
2951   end
 
  3019                         if ( i == 1 ) then
  3020                                 -- this means two "-" in a row, so it's "-" in combination with a modifier key
  3021                                 count = count - 1;
  3022                         end
 
  3422 -- takes in a table with r, g, and b entries and converts it to a color string
  3423 function ConvertRGBtoColorString(color)
  3424         local colorString = "|cff";
  3425         local r = color.r * 255;
  3426         local g = color.g * 255;
  3427         local b = color.b * 255;
  3428         colorString = colorString..string.format("%2x%2x%2x", r, g, b);
  3429         return colorString;
  3430 end
   
File: FrameXML\UnitPopup.lua  
  576                         local playerName, playerServer = UnitName("player");
 
577                                   if ( canCoop == 0  or dropdownMenu.name == UnitName("player") ) then
  578                                 if ( canCoop == 0  or (dropdownMenu.name == playerName and dropdownMenu.server == playerServer) ) then
 
806                                   if ( dropdownMenu.name == UnitName("player") or IsMuted(dropdownMenu.name) ) then
  807                                 local playerName, playerServer = UnitName("player");
  808                                 if ( (dropdownMenu.name == playerName and dropdownMenu.server == playerServer) or IsMuted(dropdownMenu.name) ) then
 
824                           if ( isLeader == 0 ) then
  826                         if ( isLeader == 0 or IsEveryoneAssistant() ) then
 
838                                           if ( UnitIsPartyLeader(dropdownMenu.unit) or not UnitIsRaidOfficer(dropdownMenu.unit)) then
  840                                         if ( UnitIsPartyLeader(dropdownMenu.unit) or not UnitIsRaidOfficer(dropdownMenu.unit) or IsEveryoneAssistant()) then
 
1337                   UninviteUnit(fullname);
  1339                 UninviteUnit(fullname, nil, 1);
 
1421                   SetLootMethod("master", fullname);
  1423                 SetLootMethod("master", fullname, 1);
 
1480                   UninviteUnit(fullname);
  1482                 UninviteUnit(fullname, nil, 1);
   
File: FrameXML\UnitPowerBarAlt.lua  
  7 --Counter bar uses a different frame
  8 ALT_POWER_TYPE_COUNTER                  = 4;
 
  29         [ALT_POWER_TYPE_COUNTER]                        = {x = 32, y = 32},
 
  34         self.counterBar.unit = unit;
 
  78                         local barType, minPower = UnitAlternatePowerInfo(self.unit);
 
  81                         if ( not barType or barType == ALT_POWER_TYPE_COUNTER ) then
  82                                 CounterBar_UpdateCount(self.counterBar, currentPower);
  83                         else
 
  85                         end
 
  90                         if ( not barType or barType == ALT_POWER_TYPE_COUNTER ) then
  91                                 CounterBar_Update(self.counterBar);
  92                                 return;
  93                         end
 
115                   local texturePath, r, g, b = UnitAlternatePowerTextureInfo(unit, textureIndex);
  129                 local texturePath, r, g, b = UnitAlternatePowerTextureInfo(unit, textureIndex, frame.timerIndex);
 
  146         if ( self.pillFrames ) then
 
  149                 end
 
137   function UnitPowerBarAlt_SetUp(self)
138           local barType, minPower, startInset, endInset, smooth, hideFromOthers, showOnRaid, opaqueSpark, opaqueFlash, powerName, powerTooltip = UnitAlternatePowerInfo(self.unit);
  153 function UnitPowerBarAlt_SetUp(self, barID)
  154         local barType, minPower, startInset, endInset, smooth, hideFromOthers, showOnRaid, opaqueSpark, opaqueFlash, powerName, powerTooltip;
  155         if ( barID ) then
  156                 barType, minPower, startInset, endInset, smooth, hideFromOthers, showOnRaid, opaqueSpark, opaqueFlash, powerName, powerTooltip = GetAlternatePowerInfoByID(barID);
  157         else
  158                 barType, minPower, startInset, endInset, smooth, hideFromOthers, showOnRaid, opaqueSpark, opaqueFlash, powerName, powerTooltip = UnitAlternatePowerInfo(self.unit);
  159         end
 
  189         elseif ( barType == ALT_POWER_TYPE_COUNTER ) then
  190                 self.counterBar:Show();
  191                 CounterBar_Update(self.counterBar);
 
  228                 if ( barType ~= ALT_POWER_TYPE_COUNTER ) then
 
208                  
  234                 end
 
  239                 self.counterBar:Hide();
 
  503 ---------------------------------
  504 ------- Counter Bar Code --------
  505 ---------------------------------
  506 local COUNTERBAR_CHANGE_TIME = 0.2;
  507 local COUNTERBAR_MAX_DIGIT = 7;
  508 local COUNTERBAR_COLUMNS = 8;
  509 local COUNTERBAR_ROWS = 2;
  510 local COUNTERBAR_NUMBER_WIDTH = 16;
  511 local COUNTERBAR_NUMBER_HEIGHT = 32;
  512 local COUNTERBAR_LEADING_ZERO_INDEX = 11;
  513 local COUNTERBAR_SLASH_INDEX = 10;
 
  516 function CounterBar_OnShow(self)
  517         self:SetPoint("TOP", UIParent, "TOP", 0, -20);
  518         if ( not TARGET_FRAME_UNLOCKED and self:GetLeft() < TargetFrame:GetRight() ) then
  519                 self:SetPoint("TOP", UIParent, "TOP", TargetFrame:GetRight() - self:GetLeft(), -20);
  520         end
  521 end
 
  524 function CounterBar_Update(self)
  525         local useFactional, animNumbers, barType = UnitAlternatePowerCounterInfo(self.unit);
 
  527         local maxValue = UnitPowerMax(self.unit, ALTERNATE_POWER_INDEX);
  528         CounterBar_SetStyle(self, useFactional, animNumbers, maxValue);
  529         self:RegisterEvent("UNIT_POWER");
  530         self:RegisterEvent("UNIT_MAXPOWER");
  531         self:Show();
  532 end
 
  535 function CounterBar_SetStyle(self, useFactional, animNumbers, maxValue)
 
  537         local texturePath, r, g, b;
  538         --Set Textures
  539         texturePath, r, g, b = UnitAlternatePowerTextureInfo(self.unit, 5, self.timerIndex);
  540         for i=1,COUNTERBAR_MAX_DIGIT do
  541                 local digitFrame = self["digit"..i];
  542                 digitFrame.number:SetTexture(texturePath);
  543                 digitFrame.number:SetVertexColor(r, g, b);
  544                 digitFrame.numberMask:SetTexture(texturePath);
  545                 digitFrame.numberMask:SetVertexColor(r, g, b);
  546                 digitFrame:Show();
  547         end
 
  550         texturePath, r, g, b = UnitAlternatePowerTextureInfo(self.unit, 0, self.timerIndex);
  551         self.BG:SetTexture(texturePath, true, false);
  552         self.BG:SetVertexColor(r, g, b);
  553         self.BGL:SetTexture(texturePath);
  554         self.BGL:SetVertexColor(r, g, b);
  555         self.BGR:SetTexture(texturePath);
  556         self.BGR:SetVertexColor(r, g, b);
  557         self.artTop:SetTexture(texturePath);
  558         self.artTop:SetVertexColor(r, g, b);
  559         self.artBottom:SetTexture(texturePath);
  560         self.artBottom:SetVertexColor(r, g, b);
 
  562         --Set Initial State
  563         local maxDigits = ceil(log10(maxValue));
  564         local startIndex = 1;
  565         if useFactional then
  566                 local count = maxValue;
  567                 for i=1,maxDigits+1 do
  568                         local digitFrame = self["digit"..i];
  569                         local digit = CounterBar_GetDigit(count);
  570                         count = floor(count/10);
  571                         if digit == COUNTERBAR_LEADING_ZERO_INDEX then
  572                                 digit = COUNTERBAR_SLASH_INDEX;
  573                         end
  574                         l,r,t,b = CounterBar_GetNumberCoord(digit);
  575                         digitFrame.number:SetTexCoord(l,r,t,b);
  576                         digitFrame.numberMask:Hide();
  577                 end
  578                 startIndex = startIndex + maxDigits + 1;
  579         end
 
  581         for i=startIndex+maxDigits,COUNTERBAR_MAX_DIGIT do
  582                 self["digit"..i]:Hide();
  583         end
 
  585         self:SetWidth((startIndex+maxDigits-1)*COUNTERBAR_NUMBER_WIDTH);
  586         self.count = 0;
  587         self.maxValue = maxValue;
  588         self.fractional = useFactional;
  589         self.startIndex = startIndex;
  590         CounterBar_SetNumbers(self);
  591 end
 
  594 function CounterBar_GetNumberCoord(digit)
  595         local l,r,t,b;
  596         l = (1/COUNTERBAR_COLUMNS) * mod(digit,COUNTERBAR_COLUMNS);
  597         r = l + (1/COUNTERBAR_COLUMNS);
  598         t = (1/COUNTERBAR_ROWS) * floor(digit/COUNTERBAR_COLUMNS);
  599         b = t + (1/COUNTERBAR_ROWS);
  600         return l,r,t,b;
  601 end
 
  604 function CounterBar_GetDigit(count)
  605         if count > 0 then
  606                 digit = mod(count, 10);
  607         else
  608                 digit = COUNTERBAR_LEADING_ZERO_INDEX;
  609         end
  610         return digit;
  611 end
 
  614 function CounterBar_SetNumbers(self)
  615         local l,r,t,b;
  616         local count = self.count;
  617         for i=self.startIndex,COUNTERBAR_MAX_DIGIT do
  618                 local digitFrame = self["digit"..i];
  619                 local digit = CounterBar_GetDigit(count);
  620                 count = floor(count/10);
 
  622                 l,r,t,b = CounterBar_GetNumberCoord(digit);
  623                 digitFrame.number:SetTexCoord(l,r,t,b);
  624                 digitFrame.numberMask:Hide();
  625         end
  626 end
 
  629 function CounterBar_UpdateCount(self, newCount)
  630         local count1 = self.count;
  631         local count2 = min(newCount, self.maxValue);
  632         if count1 == count2 then
  633                 return;
  634         end
  635         self.animUp = count1 < count2;
  636         for i=self.startIndex,COUNTERBAR_MAX_DIGIT do
  637                 local digitFrame = self["digit"..i];
  638                 local digit1, digit2 = CounterBar_GetDigit(count1), CounterBar_GetDigit(count2);
  639                 count1, count2 = floor(count1/10), floor(count2/10);
  640                 if digit1 ~= digit2 then
  641                         digitFrame.numberMask:SetHeight(0);
  642                         digitFrame.animTime = COUNTERBAR_CHANGE_TIME;
  643                         digitFrame.numberMask:ClearAllPoints()
  644                         local l,r,t,b = CounterBar_GetNumberCoord(digit2);
  645                         if self.animUp then
  646                                 digitFrame.numberMask:SetPoint("BOTTOM", 0 ,0);
  647                                 digitFrame.numberMask:SetTexCoord(l,r,t,t);
  648                         else
  649                                 digitFrame.numberMask:SetPoint("TOP", 0 ,0);
  650                                 digitFrame.numberMask:SetTexCoord(l,r,b,b);
  651                         end
  652                         digitFrame.numberMask:Show();
  653                 end
  654         end
 
  656         --CounterBar_SetNumbers(self); -- clear out any current animations
  657         self.lastOnUpdate = self:GetScript("OnUpdate");
  658         self:SetScript("OnUpdate", CounterBar_OnUpdate);
  659         self.count = newCount;
  660 end
 
  663 function CounterBar_OnUpdate(self, elapsed)
  664         local updatingNumbers = false
  665         local l, t, _, b, r;
 
  667         for i=1,COUNTERBAR_MAX_DIGIT do
  668                 local digitFrame = self["digit"..i];
  669                 if digitFrame.animTime and digitFrame.animTime > 0 then
  670                         local delta = (elapsed/COUNTERBAR_CHANGE_TIME) * (1/COUNTERBAR_ROWS);
  671                         local deltaT, deltaB = 0, 0;
  672                         if not self.animUp then
  673                                 deltaT = -delta;
  674                                 delta = -delta;
  675                         else
  676                                 deltaB = delta;
  677                         end
 
  679                         --Number shift
  680                         l, t, _, b, r = digitFrame.number:GetTexCoord();
  681                         digitFrame.number:SetTexCoord(l,r,t+delta,b+delta);
 
  683                         --Mask Shift
  684                         l, t, _, b, r = digitFrame.numberMask:GetTexCoord();
  685                         digitFrame.numberMask:SetTexCoord(l,r,t+deltaT,b+deltaB);
  686                         digitFrame.numberMask:SetHeight(COUNTERBAR_NUMBER_HEIGHT * (1.0 - digitFrame.animTime/COUNTERBAR_CHANGE_TIME));
 
  688                         digitFrame.animTime = digitFrame.animTime - elapsed
  689                         updatingNumbers = true;
  690                 end
  691         end
 
  693         if not updatingNumbers then
  694                 self:SetScript("OnUpdate", self.lastOnUpdate); -- nil or PlayerBuffTimer_OnUpdate for timers
  695                 CounterBar_SetNumbers(self)
  696         end
  697 end
 
  702 ---------------------------------
  703 -------- Buff Timer Code --------
  704 ---------------------------------
  705 local PlayerBuffTimers = {}
  706 local numBuffTimers = 0;
 
  709 function PlayerBuffTimerManager_OnLoad(self)
  710         self:RegisterEvent("UNIT_POWER_BAR_TIMER_UPDATE");
  711         self.unit = "player"
  712 end
 
  715 function PlayerBuffTimerManager_OnEvent(self, event, ...)
  716         local arg1 = ...;
  717         if ( arg1 == self.unit and event == "UNIT_POWER_BAR_TIMER_UPDATE" ) then
  718                 PlayerBuffTimerManager_UpdateTimers(self);
  719         end
  720 end
 
  723 function PlayerBuffTimerManager_GetTimer(barType)
  724         local timerFrame;
  725         local isCounter = barType == ALT_POWER_TYPE_COUNTER;
 
  727         for i=1,numBuffTimers do
  728                 local frame = _G["BuffTimer"..i];
  729                 if ( frame and not frame:IsShown() and frame.isCounter == isCounter ) then
  730                         timerFrame = frame;
  731                         break;
  732                 end
  733         end
 
  735         if ( not timerFrame ) then
  736                 numBuffTimers = numBuffTimers + 1;
  737                 if ( isCounter ) then
  738                         timerFrame = CreateFrame("Frame", "BuffTimer"..numBuffTimers, UIParent, "UnitPowerBarAltCounterTemplate");
  739                         timerFrame.isCounter = true;
 
  741                 else
  742                         timerFrame = CreateFrame("Frame", "BuffTimer"..numBuffTimers, UIParent, "UnitPowerBarAltTemplate");
  743                         timerFrame.isCounter = false;
  744                         timerFrame.scale = 1.0;
  745                 end
  746                 timerFrame.unit = "player"
  747                 timerFrame:SetScript("OnUpdate", PlayerBuffTimer_OnUpdate);
  748         end
 
  750         return timerFrame;
  751 end
 
  754 function PlayerBuffTimer_OnUpdate(self, elapsed)
  755         local timeLeft = self.timerExpiration - GetTime();
  756         if ( timeLeft >= 0 ) then
  757                 if ( self.isCounter ) then
  758                         CounterBar_UpdateCount(self, floor(timeLeft));
  759                 else
  760                         UnitPowerBarAlt_SetPower(self, timeLeft, true);
  761                 end
  762         end
  763 end
 
  766 function PlayerBuffTimerManager_UpdateTimers(self)
  767         for _, timer in pairs(PlayerBuffTimers) do
  768                 timer.flagForHide = true;
  769         end
 
  771         local index = 1;
  772         local anchorFrame = PlayerPowerBarAlt;
  773         local duration, expiration, barID, auraID = UnitPowerBarTimerInfo("player", index);
  774         while ( barID ) do
  775                 if ( not PlayerBuffTimers[auraID] ) then -- this timer is new. add it
  776                         local barType = GetAlternatePowerInfoByID(barID);
  777                         local timer = PlayerBuffTimerManager_GetTimer(barType);
  778                         timer.timerIndex = index;
  779                         if ( timer.isCounter ) then
  780                                 CounterBar_SetStyle(timer, useFactional, animNumbers, duration);
  781                         else
  782                                 UnitPowerBarAlt_TearDown(timer);
  783                                 UnitPowerBarAlt_SetUp(timer, barID);
  784                                 UnitPowerBarAlt_SetMinMaxPower(timer, 0, duration);
  785                                 UnitPowerBarAlt_SetPower(timer, duration, true);
  786                         end
 
  788                         timer.timerExpiration = expiration;
  789                         timer:Show();
  790                         PlayerBuffTimers[auraID] = timer;
  791                 end
 
  794                 PlayerBuffTimers[auraID]:SetPoint("BOTTOM", anchorFrame, "TOP", 0, 32);
  795                 anchorFrame = PlayerBuffTimers[auraID];
  796                 PlayerBuffTimers[auraID].flagForHide = false;
  797                 PlayerBuffTimers[auraID].timerIndex = index;
  798                 index = index + 1;
  799                 duration, expiration, barID, auraID = UnitPowerBarTimerInfo("player", index);
  800         end
 
  802         for auraID, timer in pairs(PlayerBuffTimers) do
  803                 if ( timer.flagForHide ) then
  804                         PlayerBuffTimers[auraID] = nil;
  805                         if ( not timer.isCounter ) then
  806                                 UnitPowerBarAlt_TearDown(timer);
  807                         end
  808                         timer:Hide();
  809                 end
  810         end
  811 end
   
File: FrameXML\UnitPowerBarAlt.xml  
  37         <Frame name="UnitCounterBarNumberTemplate" virtual="true">
  38                 <Size x="16" y="32"/>
  39                 <Layers>
  40                         <Layer level="BACKGROUND">
  41                                 <Texture parentKey="number">
  42                                         <Size x="16" y="32"/>
  43                                         <Anchors>
  44                                                 <Anchor point="TOP"/>
  45                                         </Anchors>
  46                                 </Texture>
  47                         </Layer>
  48                         <Layer level="BACKGROUND" textureSubLevel="1">
  49                                 <Texture parentKey="numberMask">
  50                                         <Size x="16" y="32"/>
  51                                 </Texture>
  52                         </Layer>
  53                 </Layers>
  54         </Frame>
  55         <Frame name="UnitPowerBarAltCounterTemplate" hidden="true" virtual="true">
  56                 <Size x="16" y="64"/>
  57                 <Layers>
  58                         <Layer level="BACKGROUND">
  59                                 <Texture horizTile="true" parentKey="BG" setAllPoints="true">
  60                                         <Size x="16" y="64"/>
  61                                         <TexCoords left="0.0" right="1.0" top="0.25" bottom="0.5"/>
  62                                 </Texture>
  63                                 <Texture parentKey="BGL">
  64                                         <Size x="32" y="64"/>
  65                                         <Anchors>
  66                                                 <Anchor point="RIGHT" relativePoint="LEFT"/>
  67                                         </Anchors>
  68                                         <TexCoords left="0.0" right="0.5" top="0.0" bottom="0.25"/>
  69                                 </Texture>
  70                                 <Texture parentKey="BGR">
  71                                         <Size x="32" y="64"/>
  72                                         <Anchors>
  73                                                 <Anchor point="LEFT" relativePoint="RIGHT"/>
  74                                         </Anchors>
  75                                         <TexCoords left="0.5" right="1.0" top="0.0" bottom="0.25"/>
  76                                 </Texture>
  77                         </Layer>
  78                         <Layer level="ARTWORK">
  79                                 <Texture parentKey="artTop">
  80                                         <Size x="64" y="64"/>
  81                                         <Anchors>
  82                                                 <Anchor point="CENTER" relativePoint="TOP"/>
  83                                         </Anchors>
  84                                         <TexCoords left="0.0" right="1.0" top="0.5" bottom="0.75"/>
  85                                 </Texture>
  86                                 <Texture parentKey="artBottom">
  87                                         <Size x="64" y="64"/>
  88                                         <Anchors>
  89                                                 <Anchor point="CENTER" relativePoint="BOTTOM"/>
  90                                         </Anchors>
  91                                         <TexCoords left="0.0" right="1.0" top="0.75" bottom="1.0"/>
  92                                 </Texture>
  93                         </Layer>
  94                 </Layers>
  95                 <Frames>
  96                         <Frame name="$parentDigit1" inherits="UnitCounterBarNumberTemplate" parentKey="digit1">
  97                                 <Anchors>
  98                                         <Anchor point="RIGHT"/>
  99                                 </Anchors>
  100                         </Frame>
  101                         <Frame name="$parentDigit2" inherits="UnitCounterBarNumberTemplate" parentKey="digit2">
  102                                 <Anchors>
  103                                         <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentDigit1"/>
  104                                 </Anchors>
  105                         </Frame>
  106                         <Frame name="$parentDigit3" inherits="UnitCounterBarNumberTemplate" parentKey="digit3">
  107                                 <Anchors>
  108                                         <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentDigit2"/>
  109                                 </Anchors>
  110                         </Frame>
  111                         <Frame name="$parentDigit4" inherits="UnitCounterBarNumberTemplate" parentKey="digit4">
  112                                 <Anchors>
  113                                         <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentDigit3"/>
  114                                 </Anchors>
  115                         </Frame>
  116                         <Frame name="$parentDigit5" inherits="UnitCounterBarNumberTemplate" parentKey="digit5">
  117                                 <Anchors>
  118                                         <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentDigit4"/>
  119                                 </Anchors>
  120                         </Frame>
  121                         <Frame name="$parentDigit6" inherits="UnitCounterBarNumberTemplate" parentKey="digit6">
  122                                 <Anchors>
  123                                         <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentDigit5"/>
  124                                 </Anchors>
  125                         </Frame>
  126                         <Frame name="$parentDigit7" inherits="UnitCounterBarNumberTemplate" parentKey="digit7">
  127                                 <Anchors>
  128                                         <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentDigit6"/>
  129                                 </Anchors>
  130                         </Frame>
  131                 </Frames>
  132         </Frame>
 
  150                         <Frame name="$parentCounterBar" inherits="UnitPowerBarAltCounterTemplate" parentKey="counterBar">
  151                                 <Anchors>
  152                                         <Anchor point="CENTER"/>
  153                                 </Anchors>
  154                         </Frame>
 
63                                                   <FontString name="$Text" inherits="TextStatusBarText" parentKey="text">
  164                                                 <FontString name="$parentText" inherits="TextStatusBarText" parentKey="text">
 
  219         <Frame name="PlayerBuffTimerManager" parent="UIParent" frameStrata="LOW" hidden="true">
  220                 <Size x="8" y="8"/>
  221                 <Scripts>
  222                         <OnLoad>
  223                                 PlayerBuffTimerManager_OnLoad(self);
  224                         </OnLoad>
  225                         <OnEvent>
  226                                 PlayerBuffTimerManager_OnEvent(self, event, ...);
  227                         </OnEvent>
  228                 </Scripts>
  229         </Frame>
   
File: FrameXML\VehicleMenuBar.lua  
  16                 ["MicroButtons"] = {
  17                         xOfs = -340,
  18                         yOfs = 41,
  19                 },
  20                 ["XpBar"] = {
  21                         xOfsLeft = 148,
  22                         xOfsRight = -150,
  23                         yOfs = 50,
  24                 },
 
  36                         forceBellowArt = true,
 
  49                         forceBellowArt = true,
 
  61                         forceBellowArt = true,
 
  76                         forceBellowArt = true,
 
  317                 ["MicroButtons"] = {
  318                         xOfs = -365,
  319                         yOfs = 41,
  320                 },
  321                 ["XpBar"] = {
  322                         xOfsLeft = 166,
  323                         xOfsRight = -166,
  324                         yOfs = 53,
  325                 },
 
  337                         forceBellowArt = true,
 
  350                         forceBellowArt = true,
 
  362                         forceBellowArt = true,
 
  378                         forceBellowArt = true,
 
  626         ["Tree"] = { -- the tree theme
  627                 ["Overall"] = {
  628                         yesPitchWidth = 970,
  629                         noPitchWidth = 888,
  630                         yesPitchHeight = 53,
  631                         noPitchHeight = 53,
  632                 },
  633                 ["MicroButtons"] = {
  634                         xOfs = -340,
  635                         yOfs = 41,
  636                 },
  637                 ["XpBar"] = {
  638                         xOfsLeft = 148,
  639                         xOfsRight = -150,
  640                         yOfs = 56,
  641                 },
  642                 ["PitchUpButton"] = {   --Pitch up button
  643                         height = 36,
  644                         width = 38,
  645                         point = "BOTTOMLEFT",
  646                         xOfs = 150,
  647                         yOfs = 45,
  648                         normalTexture = [[Interface\Vehicles\UI-Vehicles-Button-Pitch-Up]],
  649                         normalTexCoord = { 0.21875, 0.765625, 0.234375, 0.78125 },
  650                         pushedTexture = [[Interface\Vehicles\UI-Vehicles-Button-Pitch-Down]],
  651                         pushedTexCoord = { 0.21875, 0.765625, 0.234375, 0.78125 },
  652                         pitchHidden = 1,
  653                         forceAboveArt = true,
  654                 },
  655                 ["PitchDownButton"] = { --Pitch up button
  656                         height = 36,
  657                         width = 38,
  658                         point = "BOTTOMLEFT",
  659                         xOfs = 150,
  660                         yOfs = 7,
  661                         normalTexture = [[Interface\Vehicles\UI-Vehicles-Button-PitchDown-Up]],
  662                         normalTexCoord = { 0.21875, 0.765625, 0.234375, 0.78125 },
  663                         pushedTexture = [[Interface\Vehicles\UI-Vehicles-Button-PitchDown-Down]],
  664                         pushedTexCoord = { 0.21875, 0.765625, 0.234375, 0.78125 },
  665                         pitchHidden = 1,
  666                         forceAboveArt = true,
  667                 },
  668                 ["LeaveButton"] = {     --Leave button
  669                         height = 47,
  670                         width = 50,
  671                         point = "BOTTOMRIGHT",
  672                         xOfs = -148,
  673                         yOfs = 18,
  674                         normalTexture = [[Interface\Vehicles\UI-Vehicles-Button-Exit-Up]],
  675                         normalTexCoord = { 0.140625, 0.859375, 0.140625, 0.859375 },
  676                         pushedTexture = [[Interface\Vehicles\UI-Vehicles-Button-Exit-Down]],
  677                         pushedTexCoord = { 0.140625, 0.859375, 0.140625, 0.859375 },
  678                         forceAboveArt = true,
  679                 },
  680                 ["ActionButtonFrame"] = {
  681                         point = "BOTTOMLEFT",
  682                         relativePoint = "BOTTOMRIGHT",
  683                         xOfs = -733,
  684                         yOfs = 12,
  685                 },
  686                 ["PitchSlider"] = {
  687                         height = 80,
  688                         width = 23,
  689                         point = "BOTTOMLEFT",
  690                         xOfs = 202,
  691                         yOfs = 3,
  692                         pitchHidden = 1,
  693                         forceAboveArt = true,
  694                 },
  695                 ["PitchSliderBG"] = {
  696                         texture = [[Interface\Vehicles\UI-Vehicles-Elements-Nature]],
  697                         texCoord = {  0.55078125, 0.63671875, 0.33203125, 0.625 },
  698                         vertexColor = { 0, 0.85, 0.99 },
  699                 },
  700                 ["PitchSliderOverlayThing"] = {
  701                         texture = [[Interface\Vehicles\UI-Vehicles-Elements-Nature]],
  702                         texCoord = { 0.39453125, 0.48046875, 0.33203125, 0.625 },
  703                 },
  704                 ["PitchSliderMarker"] = {
  705                         height = 10,
  706                         width = 10,
  707                         point = "CENTER",
  708                         texture = [[Interface\Vehicles\UI-Vehicles-Elements-Nature]],
  709                         texCoord = { 0.5, 0.5234375, 0.33984375, 0.6171875 },
  710                         vertexColor = { 1, 0, 0 },
  711                 },
  712                 ["HealthBar"] = {
  713                         height = 72,
  714                         width = 33,
  715                         point = "BOTTOMLEFT",
  716                         xOfs = 96,
  717                         yOfs = 10,
  718                 },
  719                 ["HealthBarBackground"] = {
  720                         height = 92,
  721                         width = 38,
  722                         point = "BOTTOMLEFT",
  723                         xOfs = -2,
  724                         yOfs = -9,
  725                         texture = [[Interface\Vehicles\UI-Vehicles-FuelTank-Nature]],
  726                         texCoord = { 0.5390625, 0.953125, 0.0, 1.0 },
  727                 },
  728                 ["HealthBarOverlay"] = {
  729                         height = 92,
  730                         width = 44,
  731                         point = "BOTTOMLEFT",
  732                         xOfs = -5,
  733                         yOfs = -9,
  734                         texture = [[Interface\Vehicles\UI-Vehicles-FuelTank-Nature]],
  735                         texCoord = { 0.015625, 0.4921875, 0.0, 1.0 },
  736                 },
  737                 ["PowerBar"] = {
  738                         height = 72,
  739                         width = 33,
  740                         point = "BOTTOMRIGHT",
  741                         xOfs = -98,
  742                         yOfs = 10,
  743                 },
  744                 ["PowerBarBackground"] = {
  745                         height = 92,
  746                         width = 38,
  747                         point = "BOTTOMLEFT",
  748                         xOfs = -2,
  749                         yOfs = -9,
  750                         texture = [[Interface\Vehicles\UI-Vehicles-FuelTank-Nature]],
  751                         texCoord = { 0.5390625, 0.953125, 0.0, 1.0 },
  752                 },
  753                 ["PowerBarOverlay"] = {
  754                         height = 92,
  755                         width = 44,
  756                         point = "BOTTOMLEFT",
  757                         xOfs = -5,
  758                         yOfs = -9,
  759                         texture = [[Interface\Vehicles\UI-Vehicles-FuelTank-Nature]],
  760                         texCoord = { 0.015625, 0.4921875, 0.0, 1.0 },
  761                 },
  762                 [1] = { --Left end cap
  763                         layer = "OVERLAY",
  764                         height = 110,
  765                         width = 165,
  766                         point = "BOTTOMLEFT",
  767                         xOfs = 0,
  768                         yOfs = 0,
  769                         texture = [[Interface\Vehicles\UI-Vehicles-Endcap-Nature]],
  770                         texCoord = { 0.0, 0.64453125, 0.0, 0.859375 },
  771                 },
  772                 [2] = { --Right end cap
  773                         layer = "OVERLAY",
  774                         height = 110,
  775                         width = 165,
  776                         point = "BOTTOMRIGHT",
  777                         xOfs = 0,
  778                         yOfs = 0,
  779                         texture = [[Interface\Vehicles\UI-Vehicles-Endcap-Nature]],
  780                         texCoord = { 0.64453125, 0.0, 0.0, 0.859375 },
  781                 },
  782                 [3] = { --Background
  783                         layer = "BACKGROUND",
  784                         height = 90,
  785                         width = 634,
  786                         tile = true,
  787                         point = "BOTTOMRIGHT",
  788                         xOfs = -130,
  789                         yOfs = 0,
  790                         texture = [[Interface\Vehicles\UI-Vehicles-Elements-Nature]],
  791                         texCoord = { 0.0, 2, 0.6484375, 1.0 },
  792                 },
  793                 [4] = { --Top Wood Boarder
  794                         layer = "ARTWORK",
  795                         height = 32,
  796                         width = 614,
  797                         tile = true,
  798                         point = "BOTTOMRIGHT",
  799                         xOfs = -135,
  800                         yOfs = 75,
  801                         texture = [[Interface\Vehicles\UI-Vehicles-Frame-Border-Nature]],
  802                         texCoord = { 0.0, 2.3984375, 0.0, 1.0 },
  803                 },
  804                 [5] = { --MicroButton Shadow
  805                         layer = "BORDER",
  806                         height = 82,
  807                         width = 118,
  808                         tile = true,
  809                         point = "BOTTOMRIGHT",
  810                         xOfs = -217,
  811                         yOfs = 0,
  812                         texture = [[Interface\Vehicles\UI-Vehicles-Elements-Nature]],
  813                         texCoord = { 0.8359375, 0.83203125, 0.32421875, 0.63671875 },
  814                 },
  815                 [6] = { --MicroButton Shadow Right
  816                         layer = "BORDER",
  817                         height = 82,
  818                         width = 11,
  819                         tile = true,
  820                         point = "BOTTOMRIGHT",
  821                         xOfs = -206,
  822                         yOfs = 0,
  823                         texture = [[Interface\Vehicles\UI-Vehicles-Elements-Nature]],
  824                         texCoord = { 0.83203125, 0.87890625, 0.32421875, 0.63671875 },
  825                 },
  826                 [7] = { --MicroButton Shadow Left
  827                         layer = "BORDER",
  828                         height = 82,
  829                         width = 11,
  830                         tile = true,
  831                         point = "BOTTOMRIGHT",
  832                         xOfs = -335,
  833                         yOfs = 0,
  834                         texture = [[Interface\Vehicles\UI-Vehicles-Elements-Nature]],
  835                         texCoord = { 0.7734375, 0.81640625, 0.32421875, 0.63671875 },
  836                 },
  837                 [8] = { --LeaveButton Shadow
  838                         layer = "BORDER",
  839                         height = 54,
  840                         width = 53,
  841                         tile = true,
  842                         point = "BOTTOMRIGHT",
  843                         xOfs = -146,
  844                         yOfs = 16,
  845                         texture = [[Interface\Vehicles\UI-Vehicles-Elements-Nature]],
  846                         texCoord = { 0.0, 0.20703125, 0.3671875, 0.578125 },
  847                 },
  848                 [9] = { --Divider
  849                         layer = "BORDER",
  850                         height = 89,
  851                         width = 18,
  852                         tile = true,
  853                         point = "BOTTOMRIGHT",
  854                         xOfs = -346,
  855                         yOfs = 0,
  856                         texture = [[Interface\Vehicles\UI-Vehicles-Elements-Nature]],
  857                         texCoord = { 0.91015625, 0.98046875, 0.296875, 0.64453125 },
  858                 },
  859                 [10] = {        --ActionButtons Shadow Right
  860                         layer = "ARTWORK",
  861                         height = 73,
  862                         width = 11,
  863                         tile = true,
  864                         point = "BOTTOMRIGHT",
  865                         xOfs = -365,
  866                         yOfs = 7,
  867                         texture = [[Interface\Vehicles\UI-Vehicles-Elements-Nature]],
  868                         texCoord = { 0.71484375, 0.7578125, 0.3359375, 0.62109375 },
  869                 },
  870                 [11] = {        --ActionButtons Shadow MID
  871                         layer = "ARTWORK",
  872                         height = 73,
  873                         width = 350,
  874                         tile = true,
  875                         point = "BOTTOMRIGHT",
  876                         xOfs = -376,
  877                         yOfs = 7,
  878                         texture = [[Interface\Vehicles\UI-Vehicles-Elements-Nature]],
  879                         texCoord = { 0.69921875, 0.7109375, 0.3359375, 0.62109375 },
  880                 },
  881                 [12] = {        --ActionButtons Shadow Left
  882                         layer = "ARTWORK",
  883                         height = 73,
  884                         width = 11,
  885                         tile = true,
  886                         point = "BOTTOMRIGHT",
  887                         xOfs = -726,
  888                         yOfs = 7,
  889                         texture = [[Interface\Vehicles\UI-Vehicles-Elements-Nature]],
  890                         texCoord = { 0.65234375, 0.6953125, 0.3359375, 0.62109375 },
  891                 },
  892                 --Pitch Textures
  893                 [13] = {        --Pitch Background
  894                         layer = "BACKGROUND",
  895                         height = 90,
  896                         width = 80,
  897                         point = "BOTTOMRIGHT",
  898                         xOfs = -764,
  899                         yOfs = 0,
  900                         texture = [[Interface\Vehicles\UI-Vehicles-Elements-Nature]],
  901                         texCoord = { 0.8, 1, 0.6484375, 1.0 },
  902                         pitchHidden = 1,
  903                 },
  904                 [14] = {        --Pitch Top Wood Boarder
  905                         layer = "ARTWORK",
  906                         height = 32,
  907                         width = 70,
  908                         point = "BOTTOMRIGHT",
  909                         xOfs = -749,
  910                         yOfs = 75,
  911                         texture = [[Interface\Vehicles\UI-Vehicles-Frame-Border-Nature]],
  912                         texCoord = { 0.7, 1.0, 0.0, 1.0 },
  913                         pitchHidden = 1,
  914                 },
  915                 [15] = {        --Pitch Button Background
  916                         layer = "ARTWORK",
  917                         height = 80,
  918                         width = 42,
  919                         point = "BOTTOMLEFT",
  920                         xOfs = 149,
  921                         yOfs = 4,
  922                         texture = [[Interface\Vehicles\UI-Vehicles-Elements-Nature]],
  923                         texCoord = { 0.21875, 0.375, 0.3203125, 0.625 },
  924                         pitchHidden = 1,
  925                 },
  926                 [16] = {        --Pitch Button FILL Background
  927                         layer = "ARTWORK",
  928                         height = 72,
  929                         width = 12,
  930                         point = "BOTTOMLEFT",
  931                         xOfs = 206,
  932                         yOfs = 7,
  933                         texture = [[Interface\Vehicles\UI-Vehicles-Elements-Nature]],
  934                         texCoord = { 0.5, 0.5234375, 0.33984375, 0.6171875 },
  935                         vertexColor = { 0.4, 0, 0 },
  936                         pitchHidden = 1,
  937                 },
  938         },
  939         ["Darkmoon"] = { -- the tree theme
  940                 ["Overall"] = {
  941                         yesPitchWidth = 997,
  942                         noPitchWidth = 915,
  943                         yesPitchHeight = 53,
  944                         noPitchHeight = 53,
  945                 },
  946                 ["MicroButtons"] = {
  947                         xOfs = -358,
  948                         yOfs = 41,
  949                 },
  950                 ["XpBar"] = {
  951                         xOfsLeft = 148,
  952                         xOfsRight = -150,
  953                         yOfs = 60,
  954                 },
  955                 ["PitchUpButton"] = {   --Pitch up button
  956                         height = 34,
  957                         width = 34,
  958                         point = "BOTTOMLEFT",
  959                         xOfs = 163,
  960                         yOfs = 44,
  961                         normalTexture = [[Interface\PlayerActionBarAlt\DarkMoon]],
  962                         normalTexCoord = { 0.001953125, 0.06835938, 0.4433594, 0.5097656},
  963                         pushedTexture = [[Interface\PlayerActionBarAlt\DarkMoon]],
  964                         pushedTexCoord = { 0.0703125, 0.1367188, 0.4433594, 0.5097656},
  965                         pitchHidden = 1,
  966                         forceAboveArt = true,
  967                 },
  968                 ["PitchDownButton"] = { --Pitch up button
  969                         height = 34,
  970                         width = 34,
  971                         point = "BOTTOMLEFT",
  972                         xOfs = 163,
  973                         yOfs = 8,
  974                         normalTexture = [[Interface\PlayerActionBarAlt\DarkMoon]],
  975                         normalTexCoord = { 0.2890625, 0.3554688, 0.5644531, 0.6308594},
  976                         pushedTexture = [[Interface\PlayerActionBarAlt\DarkMoon]],
  977                         pushedTexCoord = { 0.2890625, 0.3554688, 0.6308594, 0.6972656},
  978                         pitchHidden = 1,
  979                         forceAboveArt = true,
  980                 },
  981                 ["LeaveButton"] = {     --Leave button
  982                         height = 42,
  983                         width = 42,
  984                         point = "BOTTOMRIGHT",
  985                         xOfs = -160,
  986                         yOfs = 22,
  987                         normalTexture = [[Interface\PlayerActionBarAlt\DarkMoon]],
  988                         normalTexCoord = { 0.0859375, 0.1679688, 0.359375, 0.4414063},
  989                         pushedTexture = [[Interface\PlayerActionBarAlt\DarkMoon]],
  990                         pushedTexCoord = { 0.001953125, 0.08398438, 0.359375, 0.4414063},
  991                         forceAboveArt = true,
  992                 },
  993                 ["ActionButtonFrame"] = {
  994                         point = "BOTTOMLEFT",
  995                         relativePoint = "BOTTOMRIGHT",
  996                         xOfs = -753,
  997                         yOfs = 12,
  998                 },
  999                 ["PitchSlider"] = {
  1000                         height = 80,
  1001                         width = 23,
  1002                         point = "BOTTOMLEFT",
  1003                         xOfs = 207,
  1004                         yOfs = 3,
  1005                         pitchHidden = 1,
  1006                         forceAboveArt = true,
  1007                 },
  1008                 ["PitchSliderBG"] = {
  1009                         texture = [[Interface\PlayerActionBarAlt\DarkMoon]],
  1010                         texCoord = { 0.1699219, 0.1894531, 0.359375, 0.5039063},
  1011                         vertexColor = { 0, 0, 0, 0 },
  1012                 },
  1013                 ["PitchSliderOverlayThing"] = {
  1014                         texture = [[Interface\PlayerActionBarAlt\DarkMoon]],
  1015                         texCoord = { 0.3515625, 0.4023438, 0.8125, 0.9960938},
  1016                 },
  1017                 ["PitchSliderMarker"] = {
  1018                         height = 10,
  1019                         width = 10,
  1020                         point = "CENTER",
  1021                         texture = [[Interface\PlayerActionBarAlt\DarkMoon]],
  1022                         texCoord = { 0.2734375, 0.2929688, 0.359375, 0.3867188},
  1023                 },
  1024                 ["HealthBar"] = {
  1025                         height = 72,
  1026                         width = 33,
  1027                         point = "BOTTOMLEFT",
  1028                         xOfs = 111,
  1029                         yOfs = 10,
  1030                 },
  1031                 ["HealthBarBackground"] = {
  1032                         height = 92,
  1033                         width = 38,
  1034                         point = "BOTTOMLEFT",
  1035                         xOfs = -2,
  1036                         yOfs = -9,
  1037                         texture = [[Interface\PlayerActionBarAlt\DarkMoon]],
  1038                         texCoord = { 0.09765625, 0.1914063, 0.5136719, 0.6972656},
  1039                 },
  1040                 ["HealthBarOverlay"] = {
  1041                         height = 92,
  1042                         width = 44,
  1043                         point = "BOTTOMLEFT",
  1044                         xOfs = -5,
  1045                         yOfs = -9,
  1046                         texture = [[Interface\PlayerActionBarAlt\DarkMoon]],
  1047                         texCoord = { 0.001953125, 0.09570313, 0.5136719, 0.6972656},
  1048                 },
  1049                 ["PowerBar"] = {
  1050                         height = 72,
  1051                         width = 33,
  1052                         point = "BOTTOMRIGHT",
  1053                         xOfs = -111,
  1054                         yOfs = 10,
  1055                 },
  1056                 ["PowerBarBackground"] = {
  1057                         height = 92,
  1058                         width = 38,
  1059                         point = "BOTTOMLEFT",
  1060                         xOfs = -2,
  1061                         yOfs = -9,
  1062                         texture = [[Interface\PlayerActionBarAlt\DarkMoon]],
  1063                         texCoord = { 0.09765625, 0.1914063, 0.5136719, 0.6972656},
  1064                 },
  1065                 ["PowerBarOverlay"] = {
  1066                         height = 92,
  1067                         width = 44,
  1068                         point = "BOTTOMLEFT",
  1069                         xOfs = -5,
  1070                         yOfs = -9,
  1071                         texture = [[Interface\PlayerActionBarAlt\DarkMoon]],
  1072                         texCoord = { 0.001953125, 0.09570313, 0.5136719, 0.6972656},
  1073                 },
  1074                 [1] = { --Left end cap
  1075                         layer = "OVERLAY",
  1076                         height = 152,
  1077                         width = 178,
  1078                         point = "BOTTOMLEFT",
  1079                         xOfs = 0,
  1080                         yOfs = 0,
  1081                         texture = [[Interface\PlayerActionBarAlt\DarkMoon]],
  1082                         texCoord = { 0.001953125, 0.3496094, 0.6992188, 0.9960938},
  1083                 },
  1084                 [2] = { --Right end cap
  1085                         layer = "OVERLAY",
  1086                         height = 152,
  1087                         width = 178,
  1088                         point = "BOTTOMRIGHT",
  1089                         xOfs = 0,
  1090                         yOfs = 0,
  1091                         texture = [[Interface\PlayerActionBarAlt\DarkMoon]],
  1092                         texCoord = { 0.3496094, 0.001953125, 0.6992188, 0.9960938},
  1093                 },
  1094                 [3] = { --Background
  1095                         layer = "BACKGROUND",
  1096                         height = 94,
  1097                         width = 634,
  1098                         tile = true,
  1099                         point = "BOTTOMRIGHT",
  1100                         xOfs = -140,
  1101                         yOfs = 0,
  1102                         texture = [[Interface\PlayerActionBarAlt\DarkMoon]],
  1103                         texCoord = { 0, 1.23828125, 0.1738281, 0.3574219},
  1104                 },
  1105                 [4] = { --Top Wood Boarder
  1106                         layer = "ARTWORK",
  1107                         height = 32,
  1108                         width = 634,
  1109                         tile = true,
  1110                         point = "BOTTOMRIGHT",
  1111                         xOfs = -140,
  1112                         yOfs = 80,
  1113                         texture = [[Interface\PlayerActionBarAlt\DarkMoon]],
  1114                         texCoord = { 0, 1.23828125, 0.001953125, 0.07226563},
  1115                 },
  1116                 [5] = { --MicroButton Shadow
  1117                         layer = "BORDER",
  1118                         height = 86,
  1119                         width = 118,
  1120                         tile = true,
  1121                         point = "BOTTOMRIGHT",
  1122                         xOfs = -235,
  1123                         yOfs = -2,
  1124                         texture = [[Interface\PlayerActionBarAlt\DarkMoon]],
  1125                         texCoord = { 0.34375002, 0.36328128, 0.359375, 0.5234375},
  1126                 },
  1127                 [6] = { --MicroButton Shadow Right
  1128                         layer = "BORDER",
  1129                         height = 86,
  1130                         width = 20,
  1131                         tile = true,
  1132                         point = "BOTTOMRIGHT",
  1133                         xOfs = -215,
  1134                         yOfs = -2,
  1135                         texture = [[Interface\PlayerActionBarAlt\DarkMoon]],
  1136                         texCoord = { 0.36328128, 0.4023438, 0.359375, 0.5234375},
  1137                 },
  1138                 [7] = { --MicroButton Shadow Left
  1139                         layer = "BORDER",
  1140                         height = 86,
  1141                         width = 20,
  1142                         tile = true,
  1143                         point = "BOTTOMRIGHT",
  1144                         xOfs = -353,
  1145                         yOfs = -2,
  1146                         texture = [[Interface\PlayerActionBarAlt\DarkMoon]],
  1147                         texCoord = { 0.3046875, 0.34375002, 0.359375, 0.5234375},
  1148                 },
  1149                 [8] = { --LeaveButton Shadow
  1150                         layer = "BORDER",
  1151                         height = 94,
  1152                         width = 70,
  1153                         point = "BOTTOMRIGHT",
  1154                         xOfs = -145,
  1155                         yOfs = 0,
  1156                         texture = [[Interface\PlayerActionBarAlt\DarkMoon]],
  1157                         texCoord = { 0.3613281, 0.4980469, 0.5839844, 0.7675781},
  1158                 },
  1159                 [9] = { --Divider
  1160                         layer = "BORDER",
  1161                         height = 89,
  1162                         width = 18,
  1163                         tile = true,
  1164                         point = "BOTTOMRIGHT",
  1165                         xOfs = -346,
  1166                         yOfs = 0,
  1167                         texture = [[Interface\PlayerActionBarAlt\DarkMoon]],
  1168                         texCoord = { 0,0,0,0 },
  1169                 },
  1170                 [10] = {        --ActionButtons Shadow Right
  1171                         layer = "ARTWORK",
  1172                         height = 84,
  1173                         width = 20,
  1174                         tile = true,
  1175                         point = "BOTTOMRIGHT",
  1176                         xOfs = -376,
  1177                         yOfs = 0,
  1178                         texture = [[Interface\PlayerActionBarAlt\DarkMoon]],
  1179                         texCoord = { 0.36328128, 0.4023438, 0.359375, 0.5234375},
  1180                 },
  1181                 [11] = {        --ActionButtons Shadow MID
  1182                         layer = "ARTWORK",
  1183                         height = 84,
  1184                         width = 350,
  1185                         tile = true,
  1186                         point = "BOTTOMRIGHT",
  1187                         xOfs = -396,
  1188                         yOfs = 0,
  1189                         texture = [[Interface\PlayerActionBarAlt\DarkMoon]],
  1190                         texCoord = { 0.34375002, 0.36328128, 0.359375, 0.5234375},
  1191                 },
  1192                 [12] = {        --ActionButtons Shadow Left
  1193                         layer = "ARTWORK",
  1194                         height = 84,
  1195                         width = 20,
  1196                         tile = true,
  1197                         point = "BOTTOMRIGHT",
  1198                         xOfs = -746,
  1199                         yOfs = 0,
  1200                         texture = [[Interface\PlayerActionBarAlt\DarkMoon]],
  1201                         texCoord = { 0.3046875, 0.34375002, 0.359375, 0.5234375},
  1202                 },
  1203                 --Pitch Textures
  1204                 [13] = {        --Pitch Background
  1205                         layer = "BACKGROUND",
  1206                         height = 94,
  1207                         width = 90,
  1208                         point = "BOTTOMRIGHT",
  1209                         xOfs = -774,
  1210                         yOfs = 0,
  1211                         texture = [[Interface\PlayerActionBarAlt\DarkMoon]],
  1212                         texCoord = {0.82421875, 1, 0.1738281, 0.3574219},
  1213                         pitchHidden = 1,
  1214                 },
  1215                 [14] = {        --Pitch Top Boarder
  1216                         layer = "ARTWORK",
  1217                         height = 32,
  1218                         width = 90,
  1219                         point = "BOTTOMRIGHT",
  1220                         xOfs = -774,
  1221                         yOfs = 80,
  1222                         texture = [[Interface\PlayerActionBarAlt\DarkMoon]],
  1223                         texCoord = {0.82421875, 1, 0.001953125, 0.07226563},
  1224                         pitchHidden = 1,
  1225                 },
  1226                 [15] = {        --Pitch Button Background
  1227                         layer = "ARTWORK",
  1228                         height = 94,
  1229                         width = 58,
  1230                         point = "BOTTOMLEFT",
  1231                         xOfs = 149,
  1232                         yOfs = 0,
  1233                         texture = [[Interface\PlayerActionBarAlt\DarkMoon]],
  1234                         texCoord = { 0.5, 0.6132813, 0.359375, 0.5429688},
  1235                         pitchHidden = 1,
  1236                 },
  1237                 [16] = {        --Pitch Button FILL Background
  1238                         layer = "ARTWORK",
  1239                         height = 66,
  1240                         width = 10,
  1241                         point = "BOTTOMLEFT",
  1242                         xOfs = 214,
  1243                         yOfs = 7,
  1244                         texture = [[Interface\PlayerActionBarAlt\DarkMoon]],
  1245                         texCoord = { 0.1699219, 0.1894531, 0.359375, 0.5039063},
  1246                         pitchHidden = 1,
  1247                 },
  1248         },
 
  1295                         if ( framedata.vertexColor ) then
  1296                                 frame:SetVertexColor( unpack(framedata.vertexColor) );
  1297                         else
  1298                                 frame:SetVertexColor( 1.0, 1.0, 1.0, 1.0 );
  1299                         end
 
652                          
  1306                         if ( frame ) then
 
  1348                                 end
 
  1350                                 if ( framedata.forceAboveArt ) then
  1351                                         frame:SetFrameLevel(VehicleMenuBarArtFrame:GetFrameLevel() + 1);
  1352                                 end
 
  1354                                 if ( framedata.forceBellowArt ) then
  1355                                         frame:SetFrameLevel(VehicleMenuBarArtFrame:GetFrameLevel() - 1);
  1356                                 end
 
701   local MicroButtons = {
702           CharacterMicroButton,
703           SpellbookMicroButton,
704           TalentMicroButton,
705           AchievementMicroButton,
706           QuestLogMicroButton,
707           GuildMicroButton,
708           PVPMicroButton,
709           LFDMicroButton,
710           EJMicroButton,
711           RaidMicroButton,
712           MainMenuMicroButton,
713           HelpMicroButton,
714           }
 
726                   LFDMicroButton:SetPoint("TOPLEFT", CharacterMicroButton, "BOTTOMLEFT", 0, 20);
  1373                 LFDMicroButton:SetPoint("TOPLEFT", CharacterMicroButton, "BOTTOMLEFT", 0, 22);
 
738                   for _, frame in pairs(MicroButtons) do
  1385                 for _, frameName in pairs(MICRO_BUTTONS) do
  1386                         local frame = _G[frameName];
 
747           elseif ( skinName == "Mechanical" ) then
748                   for _, frame in pairs(MicroButtons) do
749                           frame:SetParent(VehicleMenuBarArtFrame);
750                           frame:Show();
751                   end
752                   MoveMicroButtons("BOTTOMLEFT", VehicleMenuBar, "BOTTOMRIGHT", -340, 41, true);
753                   MainMenuExpBar:ClearAllPoints();                       
754                   MainMenuExpBar:SetParent(VehicleMenuBar);
755                   MainMenuExpBar:SetPoint("TOPLEFT", VehicleMenuBar, "TOPLEFT", 148, 50);
756                   MainMenuExpBar:SetPoint("TOPRIGHT", VehicleMenuBar, "TOPRIGHT", -150, 50);
757                   MainMenuExpBar_SetWidth(VehicleMenuBar:GetWidth() - 148 - 150);
758                   MainMenuExpBar:SetFrameLevel(MainMenuExpBar:GetParent():GetFrameLevel());
759           elseif ( skinName == "Natural" ) then
  1395         else
  1396                 local skinTable = SkinsData[skinName];
 
761                   for _, frame in pairs(MicroButtons) do
  1397                 for _, frameName in pairs(MICRO_BUTTONS) do
  1398                         local frame = _G[frameName];
 
765                   MoveMicroButtons("BOTTOMLEFT", VehicleMenuBar, "BOTTOMRIGHT", -365, 41, true);
  1402                 MoveMicroButtons("BOTTOMLEFT", VehicleMenuBar, "BOTTOMRIGHT", skinTable.MicroButtons.xOfs, skinTable.MicroButtons.yOfs, true);
 
768                   MainMenuExpBar:SetPoint("TOPLEFT", VehicleMenuBar, "TOPLEFT", 166, 53);
769                   MainMenuExpBar:SetPoint("TOPRIGHT", VehicleMenuBar, "TOPRIGHT", -166, 53);
770                   MainMenuExpBar_SetWidth(VehicleMenuBar:GetWidth() - 166 - 166);
  1405                 MainMenuExpBar:SetPoint("TOPLEFT", VehicleMenuBar, "TOPLEFT", skinTable.XpBar.xOfsLeft, skinTable.XpBar.yOfs);
  1406                 MainMenuExpBar:SetPoint("TOPRIGHT", VehicleMenuBar, "TOPRIGHT", -skinTable.XpBar.xOfsLeft, skinTable.XpBar.yOfs);
  1407                 MainMenuExpBar_SetWidth(VehicleMenuBar:GetWidth() - skinTable.XpBar.xOfsLeft + skinTable.XpBar.xOfsRight);
   
File: FrameXML\VehicleMenuBar.xml  
246                           <Button name="VehicleMenuBarPitchSlider" enableMouse="true" frameStrata="LOW">
  246                         <Button name="VehicleMenuBarPitchSlider" enableMouse="true">
   
File: FrameXML\VideoOptionsPanels.lua  
  154         if(self.cappedTooltip) then
  155                 tooltip = tooltip.."|n"..self.cappedTooltip;
  156         end
 
  204         end
  205 end
 
  207 function ControlCheckCapTargets(self)
  208         for _, name in pairs(self.capTargets) do
  209                 frame = _G[name];
  210                 if ( frame and frame.onCapCheck ) then
  211                         frame.onCapCheck(frame);
  212                 end
  213         end
  214 end
 
  216 function ControlGetCurrentCvarValue(self, checkCvar)
  217         local value = self.newValue or self:GetValue();
  218         if ( self.data and self.data[value] ) then
  219                 for cvar, cvarValue in pairs(self.data[value].cvars) do
  220                         if ( cvar == checkCvar ) then
  221                                 return cvarValue;
  222                         end
  223                 end
  224         else
  225                 -- this means a custom cvar from config.wtf
  226                 return GetCVar(checkCvar);
 
  438         if ( self.capTargets ) then
  439                 ControlCheckCapTargets(self);
  440         end
 
  624                                 if ( self.capMaxValue and mode > self.capMaxValue ) then
  625                                         info.notClickable = true;
  626                                         info.disablecolor = GREYCOLORCODE;
  627                                 end
 
  675                                 if ( self.capTargets ) then
  676                                         ControlCheckCapTargets(self);
  677                                 end
 
  687         if ( self.capTargets ) then
  688                 ControlCheckCapTargets(self);
  689         end
 
  811         if ( self:GetChecked() ) then
  812                 PlaySound("igMainMenuOptionCheckBoxOn");
  813         else
  814                 PlaySound("igMainMenuOptionCheckBoxOff");
  815         end
 
  907 LanguageRegions["ptPT"] = 13;
   
File: FrameXML\VideoOptionsPanels.xml  
1148                                                   if ( not IsIPv6Available() ) then
1149                                                           BlizzardOptionsPanel_CheckButton_Disable(self);
1150                                                   end
   
File: FrameXML\WorldMapFrame.lua  
  14 MAELSTROM_ZONES_LEVELS = {
  15                                 TheMaelstrom = {minLevel = 0, maxLevel = 0},
  16                                 Deepholm = {minLevel = 82, maxLevel = 83},
  17                                 Kezan = {minLevel = 1, maxLevel = 5},
  18                                 TheLostIsles = {minLevel = 5, maxLevel = 12} };
 
  27 local EJ_QUEST_POI_MINDIS_SQR = 2500;
 
73           advanced = nil,
 
198                   WORLDMAP_SETTINGS.advanced = GetCVarBool("advancedWorldMap");
 
517           if ( EncounterJournal_AddMapButtons ) then
 
519           end
 
732           SetDungeonMapLevel(GetCurrentMapDungeonLevel() - 1);
733           UIDropDownMenu_SetSelectedID(WorldMapLevelDropDown, GetCurrentMapDungeonLevel());
  734         CloseDropDownMenus();
  735         local currMapLevel = GetCurrentMapDungeonLevel();
  736         SetDungeonMapLevel(currMapLevel - 1);
  737         local newMapLevel = GetCurrentMapDungeonLevel();
  738         if ( currMapLevel ~= newMapLevel ) then
  739                 UIDropDownMenu_SetSelectedID(WorldMapLevelDropDown, newMapLevel);
  740         end
 
738           SetDungeonMapLevel(GetCurrentMapDungeonLevel() + 1);
739           UIDropDownMenu_SetSelectedID(WorldMapLevelDropDown, GetCurrentMapDungeonLevel());
  745         CloseDropDownMenus();
  746         local currMapLevel = GetCurrentMapDungeonLevel();
  747         SetDungeonMapLevel(currMapLevel + 1);
  748         local newMapLevel = GetCurrentMapDungeonLevel();
  749         if ( currMapLevel ~= newMapLevel ) then
  750                 UIDropDownMenu_SetSelectedID(WorldMapLevelDropDown, newMapLevel);
  751         end
 
891                   name, fileName, texPercentageX, texPercentageY, textureX, textureY, scrollChildX, scrollChildY = UpdateMapHighlight( adjustedX, adjustedY );
  903                 name, fileName, texPercentageX, texPercentageY, textureX, textureY, scrollChildX, scrollChildY, minLevel, maxLevel = UpdateMapHighlight( adjustedX, adjustedY );
 
  910                         name = WorldMapFrame.maelstromZoneText;
  911                         minLevel = WorldMapFrame.minLevel;
  912                         maxLevel = WorldMapFrame.maxLevel;
 
  915                 end
  916                 if (name and minLevel and maxLevel and minLevel > 0 and maxLevel > 0) then
  917                         local playerLevel = UnitLevel("player");
  918                         local color;
  919                         if (playerLevel < minLevel) then
  920                                 color = GetQuestDifficultyColor(minLevel);
  921                         elseif (playerLevel > maxLevel) then
  922                                 --subtract 2 from the maxLevel so zones entirely below the player's level won't be yellow
  923                                 color = GetQuestDifficultyColor(maxLevel - 2);
  924                         else
  925                                 color = QuestDifficultyColors["difficult"];
  926                         end
  927                         color = ConvertRGBtoColorString(color);
  928                         WorldMapFrameAreaLabel:SetText(WorldMapFrameAreaLabel:GetText()..color.." ("..minLevel.."-"..maxLevel..")");
 
1580           -- managed or user-placed?
1581           WorldMapFrame_SetMiniMode();
  1609         -- user-movable
  1610         WorldMapFrame:ClearAllPoints();
  1611         SetUIPanelAttribute(WorldMapFrame, "area", "center");
  1612         SetUIPanelAttribute(WorldMapFrame, "allowOtherPanels", true);
  1613         WorldMapFrame:SetMovable("true");
  1614         WorldMapFrame:SetWidth(593);
  1615         WorldMapFrame:SetHeight(437);
  1616         WorldMapFrame:SetPoint("TOPLEFT", WorldMapScreenAnchor, 0, 0);
  1617         WorldMapFrameMiniBorderLeft:SetPoint("TOPLEFT", 0, 0);
  1618         WorldMapDetailFrame:SetPoint("TOPLEFT", 19, -42);
 
2179   function WorldMapFrame_ToggleAdvanced()
2180           local newState = GetCVarBool("advancedWorldMap");
2181           if ( WORLDMAP_SETTINGS.advanced ~= newState ) then
2182                   WORLDMAP_SETTINGS.advanced = newState;
2183                   WorldMapScreenAnchor:StartMoving();
2184                   WorldMapScreenAnchor:SetPoint("TOPLEFT", 10, -118);
2185                   WorldMapScreenAnchor:StopMovingOrSizing();
2186                   if ( WORLDMAP_SETTINGS.size == WORLDMAP_WINDOWED_SIZE ) then
2187                           WorldMapFrame_SetMiniMode();
2188                   end
2189           end
2190   end
 
2192   function WorldMapFrame_SetMiniMode()
2193           WorldMapFrame:ClearAllPoints();
2194           if ( WORLDMAP_SETTINGS.advanced ) then
2195                   SetUIPanelAttribute(WorldMapFrame, "area", "center");
2196                   SetUIPanelAttribute(WorldMapFrame, "allowOtherPanels", true);
2197                   WorldMapFrame:SetMovable("true");
2198                   WorldMapFrame:SetWidth(593);           
2199                   WorldMapFrame:SetPoint("TOPLEFT", WorldMapScreenAnchor, 0, 0);
2200                   WorldMapFrameMiniBorderLeft:SetPoint("TOPLEFT", 0, 0);         
2201                   WorldMapDetailFrame:SetPoint("TOPLEFT", 19, -42);
2202           else
2203                   SetUIPanelAttribute(WorldMapFrame, "area", "doublewide");
2204                   SetUIPanelAttribute(WorldMapFrame, "allowOtherPanels", true);
2205                   WorldMapFrame:SetMovable("false");
2206                   WorldMapFrame:SetWidth(623);    -- extra width so it tiles nicely
2207                   WorldMapFrameMiniBorderLeft:SetPoint("TOPLEFT", 10, -14);              
2208                   WorldMapDetailFrame:SetPoint("TOPLEFT", 37, -66);
2209           end
2210           WorldMapFrame:SetHeight(437);  
2211   end
 
2240           if ( WORLDMAP_SETTINGS.advanced and not WORLDMAP_SETTINGS.locked ) then
  2244         if ( not WORLDMAP_SETTINGS.locked ) then
 
2251           if ( WORLDMAP_SETTINGS.advanced and not WORLDMAP_SETTINGS.locked ) then
  2255         if ( not WORLDMAP_SETTINGS.locked ) then
 
2268          
  2272         info.notCheckable = true;
 
2270           if ( WORLDMAP_SETTINGS.advanced ) then
2271                   info.text = LOCK_WINDOW;
 
2273                   info.checked = WORLDMAP_SETTINGS.locked;
  2275         if ( WORLDMAP_SETTINGS.locked ) then
  2276                 info.text = UNLOCK_FRAME;
  2277         else
  2278                 info.text = LOCK_FRAME;
  2279         end
 
2275           end
2276          
  2281         -- Reset
  2282         info.func = WorldMapTitleDropDown_ResetPosition;
  2283         info.text = RESET_POSITION;
  2284         UIDropDownMenu_AddButton(info, UIDROPDOWNMENU_MENU_LEVEL);
 
2280           info.notCheckable = true;
 
  2315 end
 
  2317 function WorldMapTitleDropDown_ResetPosition()
  2318         WorldMapFrame:SetPoint("TOPLEFT", 10, -118);
  2319         WorldMapScreenAnchor:ClearAllPoints();
  2320         WorldMapScreenAnchor:StartMoving();
  2321         WorldMapScreenAnchor:SetPoint("TOPLEFT", WorldMapFrame);
  2322         WorldMapScreenAnchor:StopMovingOrSizing();
 
  2375 --- For EJ boss butons
  2376 --- For EJ boss butons
  2377 function EncounterJournal_AddMapButtons()
  2378         local left = WorldMapBossButtonFrame:GetLeft();
  2379         local right = WorldMapBossButtonFrame:GetRight();
  2380         local top = WorldMapBossButtonFrame:GetTop();
  2381         local bottom = WorldMapBossButtonFrame:GetBottom();
 
  2383         if not left or not right or not top or not bottom then
  2384                 --This frame is resizing
  2385                 WorldMapBossButtonFrame.ready = false;
  2386                 WorldMapBossButtonFrame:SetScript("OnUpdate", EncounterJournal_AddMapButtons);
  2387                 return;
  2388         else
  2389                 WorldMapBossButtonFrame:SetScript("OnUpdate", nil);
  2390         end
 
  2392         local scale = WorldMapDetailFrame:GetScale();
  2393         local width = WorldMapDetailFrame:GetWidth() * scale;
  2394         local height = WorldMapDetailFrame:GetHeight() * scale;
 
  2396         local bossButton, questPOI, displayInfo, _;
  2397         local index = 1;
  2398         local x, y, instanceID, name, description, encounterID = EJ_GetMapEncounter(index);
  2399         while name do
  2400                 bossButton = _G["EJMapButton"..index];
  2401                 if not bossButton then -- create button
  2402                         bossButton = CreateFrame("Button", "EJMapButton"..index, WorldMapBossButtonFrame, "EncounterMapButtonTemplate");
  2403                 end
 
  2405                 bossButton.instanceID = instanceID;
  2406                 bossButton.encounterID = encounterID;
  2407                 bossButton.tooltipTitle = name;
  2408                 bossButton.tooltipText = description;
  2409                 bossButton:SetPoint("CENTER", WorldMapBossButtonFrame, "BOTTOMLEFT", x*width, y*height);
  2410                 _, _, _, displayInfo = EJ_GetCreatureInfo(1, encounterID);
  2411                 bossButton.displayInfo = displayInfo;
  2412                 if ( displayInfo ) then
  2413                         SetPortraitTexture(bossButton.bgImage, displayInfo);
  2414                 else
  2415                         bossButton.bgImage:SetTexture("DoesNotExist");
  2416                 end
  2417                 bossButton:Show();
  2418                 index = index + 1;
  2419                 x, y, instanceID, name, description, encounterID = EJ_GetMapEncounter(index);
  2420         end
 
  2422         if (index == 1) then --not looking at dungeon map
  2423                 WorldMapQuestShowObjectives:Show();
  2424                 WorldMapShowDropDown:Hide();
  2425         else
  2426                 WorldMapQuestShowObjectives:Hide();
  2427                 WorldMapShowDropDown:Show();
  2428         end
  2429         if (not GetCVarBool("showBosses")) then
  2430                 index = 1;
  2431         end
 
  2433         bossButton = _G["EJMapButton"..index];
  2434         while bossButton do
  2435                 bossButton:Hide();
  2436                 index = index + 1;
  2437                 bossButton = _G["EJMapButton"..index];
  2438         end
 
  2440         WorldMapBossButtonFrame.ready = true;
  2441         EncounterJournal_CheckQuestButtons();
  2442 end
 
  2445 --- For EJ boss butons
  2446 --- For EJ boss butons
  2447 function EncounterJournal_CheckQuestButtons()
  2448         if not WorldMapBossButtonFrame.ready then
  2449                 return;
  2450         end
 
  2452         --Validate that there are no quest button intersection
  2453         local questI, bossI = 1, 1;
  2454         bossButton = _G["EJMapButton"..bossI];
  2455         questPOI = _G["poiWorldMapPOIFrame1_"..questI];
  2456         while bossButton and bossButton:IsShown() do
  2457                 while questPOI and questPOI:IsShown() do
  2458                         local qx,qy = questPOI:GetCenter();
  2459                         local bx,by = bossButton:GetCenter();
  2460                         if not qx or not qy or not bx or not by then
  2461                                 _G["EJMapButton1"]:SetScript("OnUpdate", EncounterJournal_CheckQuestButtons);
  2462                                 return;
  2463                         end
 
  2465                         local xdis = abs(bx-qx);
  2466                         local ydis = abs(by-qy);
  2467                         local disSqr = xdis*xdis + ydis*ydis;
 
  2469                         if EJ_QUEST_POI_MINDIS_SQR > disSqr then
  2470                                 questPOI:SetPoint("CENTER", bossButton, "BOTTOMRIGHT",  -15, 15);
  2471                         end
  2472                         questI = questI + 1;
  2473                         questPOI = _G["poiWorldMapPOIFrame1_"..questI];
  2474                 end
  2475                 questI = 1;
  2476                 bossI = bossI + 1;
  2477                 bossButton = _G["EJMapButton"..bossI];
  2478                 questPOI = _G["poiWorldMapPOIFrame1_"..questI];
  2479         end
  2480         if _G["EJMapButton1"] then
  2481                 _G["EJMapButton1"]:SetScript("OnUpdate", nil);
  2482         end
  2483 end
 
  2486 -- functions to deal with map options dropdown that shows up when looking at a dungeon map
 
  2488 function WorldMapShowDropDown_OnLoad(self)
  2489         UIDropDownMenu_Initialize(self, WorldMapShowDropDown_Initialize);
  2490         UIDropDownMenu_SetText(self, MAP_OPTIONS_TEXT);
  2491         UIDropDownMenu_SetWidth(self, 150);
  2492 end
 
  2495 function WorldMapShowDropDown_Initialize()
  2496         local info = UIDropDownMenu_CreateInfo();
 
  2498         -- Show quests button
  2499         info.text = SHOW_QUEST_OBJECTIVES_ON_MAP_TEXT;
  2500         info.value = "quests";
  2501         info.func = WorldMapShowDropDown_OnClick;
  2502         info.checked = GetCVarBool("questPOI");
  2503         info.isNotRadio = true;
  2504         info.keepShownOnClick = 1;
  2505         UIDropDownMenu_AddButton(info);
 
  2507         -- Show bosses button
  2508         info.text = SHOW_BOSSES_ON_MAP_TEXT;
  2509         info.value = "bosses";
  2510         info.func = WorldMapShowDropDown_OnClick;
  2511         info.checked = GetCVarBool("showBosses");
  2512         info.isNotRadio = true;
  2513         info.keepShownOnClick = 1;
  2514         UIDropDownMenu_AddButton(info);
  2515 end
 
  2518 function WorldMapShowDropDown_OnClick(self)
  2519         if (self.value == "quests") then
  2520                 WorldMapQuestShowObjectives:Click()
  2521         end
  2522         if (self.value == "bosses") then
  2523                 if (self.checked) then
  2524                         SetCVar("showBosses", "1");
  2525                 else
  2526                         SetCVar("showBosses", "0");
  2527                 end
  2528                 WorldMapFrame_Update();
  2529         end
  2530 end
   
File: FrameXML\WorldMapFrame.xml  
18                                           <Size>
19                                                   <AbsDimension x="512" y="512"/>
20                                           </Size>
  18                                         <Size x="512" y="512"/>
 
22                                                   <Anchor point="TOPLEFT">
23                                                           <Offset>
24                                                                   <AbsDimension x="12" y="-28"/>
25                                                           </Offset>
26                                                   </Anchor>
  20                                                 <Anchor point="TOPLEFT" x="12" y="-28"/>
 
30                                           <Size>
31                                                   <AbsDimension x="128" y="512"/>
32                                           </Size>
  24                                         <Size x="128" y="512"/>
 
34                                                   <Anchor point="LEFT" relativeTo="$parentMiniBorderLeft" relativePoint="RIGHT">
35                                                           <Offset>
36                                                                   <AbsDimension x="0" y="0"/>
37                                                           </Offset>
38                                                   </Anchor>
  26                                                 <Anchor point="LEFT" relativeTo="$parentMiniBorderLeft" relativePoint="RIGHT" x="0" y="0"/>
 
42                                           <Size>
43                                                   <AbsDimension x="256" y="256"/>
44                                           </Size>
  30                                         <Size x="256" y="256"/>
 
46                                                   <Anchor point="TOPLEFT" relativePoint="CENTER">
47                                                           <Offset>
48                                                                   <AbsDimension x="-512" y="384"/>
49                                                           </Offset>
50                                                   </Anchor>
  32                                                 <Anchor point="TOPLEFT" relativePoint="CENTER" x="-512" y="384"/>
 
54                                           <Size>
55                                                   <AbsDimension x="256" y="256"/>
56                                           </Size>
  36                                         <Size x="256" y="256"/>
 
58                                                   <Anchor point="TOPLEFT" relativePoint="CENTER">
59                                                           <Offset>
60                                                                   <AbsDimension x="-256" y="384"/>
61                                                           </Offset>
62                                                   </Anchor>
  38                                                 <Anchor point="TOPLEFT" relativePoint="CENTER" x="-256" y="384"/>
 
66                                           <Size>
67                                                   <AbsDimension x="256" y="256"/>
68                                           </Size>
  42                                         <Size x="256" y="256"/>
 
70                                                   <Anchor point="TOPLEFT" relativePoint="CENTER">
71                                                           <Offset>
72                                                                   <AbsDimension x="0" y="384"/>
73                                                           </Offset>
74                                                   </Anchor>
  44                                                 <Anchor point="TOPLEFT" relativePoint="CENTER" x="0" y="384"/>
 
78                                           <Size>
79                                                   <AbsDimension x="256" y="256"/>
80                                           </Size>
  48                                         <Size x="256" y="256"/>
 
82                                                   <Anchor point="TOPLEFT" relativePoint="CENTER">
83                                                           <Offset>
84                                                                   <AbsDimension x="256" y="384"/>
85                                                           </Offset>
86                                                   </Anchor>
  50                                                 <Anchor point="TOPLEFT" relativePoint="CENTER" x="256" y="384"/>
 
90                                           <Size>
91                                                   <AbsDimension x="256" y="256"/>
92                                           </Size>
  54                                         <Size x="256" y="256"/>
 
94                                                   <Anchor point="TOPLEFT" relativePoint="CENTER">
95                                                           <Offset>
96                                                                   <AbsDimension x="-512" y="128"/>
97                                                           </Offset>
98                                                   </Anchor>
  56                                                 <Anchor point="TOPLEFT" relativePoint="CENTER" x="-512" y="128"/>
 
102                                           <Size>
103                                                   <AbsDimension x="256" y="256"/>
104                                           </Size>
  60                                         <Size x="256" y="256"/>
 
106                                                   <Anchor point="TOPLEFT" relativePoint="CENTER">
107                                                           <Offset>
108                                                                   <AbsDimension x="-256" y="128"/>
109                                                           </Offset>
110                                                   </Anchor>
  62                                                 <Anchor point="TOPLEFT" relativePoint="CENTER" x="-256" y="128"/>
 
114                                           <Size>
115                                                   <AbsDimension x="256" y="256"/>
116                                           </Size>
  66                                         <Size x="256" y="256"/>
 
118                                                   <Anchor point="TOPLEFT" relativePoint="CENTER">
119                                                           <Offset>
120                                                                   <AbsDimension x="0" y="128"/>
121                                                           </Offset>
122                                                   </Anchor>
  68                                                 <Anchor point="TOPLEFT" relativePoint="CENTER" x="0" y="128"/>
 
126                                           <Size>
127                                                   <AbsDimension x="256" y="256"/>
128                                           </Size>
  72                                         <Size x="256" y="256"/>
 
130                                                   <Anchor point="TOPLEFT" relativePoint="CENTER">
131                                                           <Offset>
132                                                                   <AbsDimension x="256" y="128"/>
133                                                           </Offset>
134                                                   </Anchor>
  74                                                 <Anchor point="TOPLEFT" relativePoint="CENTER" x="256" y="128"/>
 
138                                           <Size>
139                                                   <AbsDimension x="256" y="256"/>
140                                           </Size>
  78                                         <Size x="256" y="256"/>
 
142                                                   <Anchor point="TOPLEFT" relativePoint="CENTER">
143                                                           <Offset>
144                                                                   <AbsDimension x="-512" y="-128"/>
145                                                           </Offset>
146                                                   </Anchor>
  80                                                 <Anchor point="TOPLEFT" relativePoint="CENTER" x="-512" y="-128"/>
 
150                                           <Size>
151                                                   <AbsDimension x="256" y="256"/>
152                                           </Size>
  84                                         <Size x="256" y="256"/>
 
154                                                   <Anchor point="TOPLEFT" relativePoint="CENTER">
155                                                           <Offset>
156                                                                   <AbsDimension x="-256" y="-128"/>
157                                                           </Offset>
158                                                   </Anchor>
  86                                                 <Anchor point="TOPLEFT" relativePoint="CENTER" x="-256" y="-128"/>
 
162                                           <Size>
163                                                   <AbsDimension x="256" y="256"/>
164                                           </Size>
  90                                         <Size x="256" y="256"/>
 
166                                                   <Anchor point="TOPLEFT" relativePoint="CENTER">
167                                                           <Offset>
168                                                                   <AbsDimension x="0" y="-128"/>
169                                                           </Offset>
170                                                   </Anchor>
  92                                                 <Anchor point="TOPLEFT" relativePoint="CENTER" x="0" y="-128"/>
 
174                                           <Size>
175                                                   <AbsDimension x="256" y="256"/>
176                                           </Size>
  96                                         <Size x="256" y="256"/>
 
178                                                   <Anchor point="TOPLEFT" relativePoint="CENTER">
179                                                           <Offset>
180                                                                   <AbsDimension x="256" y="-128"/>
181                                                           </Offset>
182                                                   </Anchor>
  98                                                 <Anchor point="TOPLEFT" relativePoint="CENTER" x="256" y="-128"/>
 
187                                                   <Anchor point="CENTER">
188                                                           <Offset>
189                                                                   <AbsDimension x="0" y="372"/>
190                                                           </Offset>
191                                                   </Anchor>
  103                                                 <Anchor point="CENTER" x="0" y="372"/>
 
197                                           <Size>
198                                                   <AbsDimension x="16" y="16"/>
199                                           </Size>
  109                                         <Size x="16" y="16"/>
 
201                                                   <Anchor point="TOPLEFT" relativeTo="$parentTexture9">
202                                                           <Offset>
203                                                                   <AbsDimension x="4" y="-13"/>
204                                                           </Offset>
205                                                   </Anchor>
  111                                                 <Anchor point="TOPLEFT" relativeTo="$parentTexture9" x="4" y="-13"/>
 
209                                           <Size>
210                                                   <AbsDimension x="16" y="16"/>
211                                           </Size>
  115                                         <Size x="16" y="16"/>
 
213                                                   <Anchor point="TOPLEFT" relativeTo="$parentTexture11">
214                                                           <Offset>
215                                                                   <AbsDimension x="188" y="-220"/>
216                                                           </Offset>
217                                                   </Anchor>
  117                                                 <Anchor point="TOPLEFT" relativeTo="$parentTexture11" x="188" y="-220"/>
 
221                                           <Size>
222                                                   <AbsDimension x="32" y="32"/>
223                                           </Size>
  121                                         <Size x="32" y="32"/>
 
225                                                   <Anchor point="TOPLEFT" relativeTo="$parentTexture12">
226                                                           <Offset>
227                                                                   <AbsDimension x="220" y="-201"/>
228                                                           </Offset>
229                                                   </Anchor>
  123                                                 <Anchor point="TOPLEFT" relativeTo="$parentTexture12" x="220" y="-201"/>
 
233                                           <Size>
234                                                   <AbsDimension x="16" y="16"/>
235                                           </Size>
  127                                         <Size x="16" y="16"/>
 
237                                                   <Anchor point="TOPLEFT" relativeTo="$parentTexture3">
238                                                           <Offset>
239                                                                   <AbsDimension x="187" y="-59"/>
240                                                           </Offset>
241                                                   </Anchor>
  129                                                 <Anchor point="TOPLEFT" relativeTo="$parentTexture3" x="187" y="-59"/>
 
245                                           <Size>
246                                                   <AbsDimension x="32" y="32"/>
247                                           </Size>
  133                                         <Size x="32" y="32"/>
 
249                                                   <Anchor point="TOPLEFT" relativeTo="$parentTexture4">
250                                                           <Offset>
251                                                                   <AbsDimension x="220" y="-62"/>
252                                                           </Offset>
253                                                   </Anchor>
  135                                                 <Anchor point="TOPLEFT" relativeTo="$parentTexture4" x="220" y="-62"/>
 
257                                           <Size>
258                                                   <AbsDimension x="690" y="4"/>
259                                           </Size>
  139                                         <Size x="690" y="4"/>
 
261                                                   <Anchor point="TOPLEFT" relativeTo="$parentTexture9">
262                                                           <Offset>
263                                                                   <AbsDimension x="12" y="-223"/>
264                                                           </Offset>
265                                                   </Anchor>
  141                                                 <Anchor point="TOPLEFT" relativeTo="$parentTexture9" x="12" y="-223"/>
 
274                                           <Anchor point="TOP">
275                                                   <Offset>
276                                                           <AbsDimension x="-80" y="-35"/>
277                                                   </Offset>
278                                           </Anchor>
  150                                         <Anchor point="TOP" x="-80" y="-35"/>
 
282                                   <Size>
283                                           <AbsDimension x="1024" y="768" />
284                                   </Size>                
  154                                 <Size x="1024" y="768" />
 
286                                           <Anchor point="CENTER">
287                                                   <Offset>
288                                                           <AbsDimension x="0" y="0" />
289                                                   </Offset>
290                                           </Anchor>
  156                                         <Anchor point="CENTER" x="0" y="0" />
 
295                                           <Anchor point="TOPLEFT" relativeTo="WorldMapPositioningGuide" relativePoint="TOPLEFT">
296                                                   <Offset>
297                                                           <AbsDimension x="20" y="-35"/>
298                                                   </Offset>
299                                           </Anchor>
  161                                         <Anchor point="TOPLEFT" relativeTo="WorldMapPositioningGuide" relativePoint="TOPLEFT" x="20" y="-35"/>
 
305                                                                   <Anchor point="TOPLEFT">
306                                                                           <Offset>
307                                                                                   <AbsDimension x="20" y="10"/>
308                                                                           </Offset>
309                                                                   </Anchor>
  167                                                                 <Anchor point="TOPLEFT" x="20" y="10"/>
 
327                                           <Anchor point="TOPRIGHT" relativePoint="TOP" relativeTo="WorldMapPositioningGuide">
328                                                   <Offset>
329                                                           <AbsDimension x="-50" y="-35"/>
330                                                   </Offset>
331                                           </Anchor>
  185                                         <Anchor point="TOPRIGHT" relativePoint="TOP" relativeTo="WorldMapPositioningGuide" x="-50" y="-35"/>
 
337                                                                   <Anchor point="TOPLEFT">
338                                                                           <Offset>
339                                                                                   <AbsDimension x="20" y="10"/>
340                                                                           </Offset>
341                                                                   </Anchor>
  191                                                                 <Anchor point="TOPLEFT" x="20" y="10"/>
 
349                                           <Anchor point="TOPLEFT" relativeTo="WorldMapPositioningGuide" relativePoint="TOP">
350                                                   <Offset>
351                                                           <AbsDimension x="-70" y="-35"/>
352                                                   </Offset>
353                                           </Anchor>
  199                                         <Anchor point="TOPLEFT" relativeTo="WorldMapPositioningGuide" relativePoint="TOP" x="-70" y="-35"/>
 
359                                                                   <Anchor point="TOPLEFT">
360                                                                           <Offset>
361                                                                                   <AbsDimension x="20" y="10"/>
362                                                                           </Offset>
363                                                                   </Anchor>
  205                                                                 <Anchor point="TOPLEFT" x="20" y="10"/>
 
374                                           <Anchor point="LEFT" relativeTo="WorldMapZoneDropDown" relativePoint="RIGHT">
375                                                   <Offset>
376                                                           <AbsDimension x="-10" y="3"/>
377                                                   </Offset>
378                                           </Anchor>
  216                                         <Anchor point="LEFT" relativeTo="WorldMapZoneDropDown" relativePoint="RIGHT" x="-10" y="3"/>
 
385                   <Size>
386                       <AbsDimension x="1002" y="668"/>
387                   </Size>
  223                 <Size x="1002" y="668"/>
 
389                       <Anchor point="TOPLEFT" relativePoint="TOP" relativeTo="WorldMapPositioningGuide">
390                           <Offset>
391                               <AbsDimension x="-726" y="-99"/>
392                           </Offset>
393                       </Anchor>
  225                     <Anchor point="TOPLEFT" relativePoint="TOP" relativeTo="WorldMapPositioningGuide" x="-726" y="-99"/>
 
398                               <Size>
399                                   <AbsDimension x="256" y="256"/>
400                               </Size>
  230                             <Size x="256" y="256"/>
 
406                               <Size>
407                                   <AbsDimension x="256" y="256"/>
408                               </Size>
  236                             <Size x="256" y="256"/>
 
414                               <Size>
415                                   <AbsDimension x="256" y="256"/>
416                               </Size>
  242                             <Size x="256" y="256"/>
 
422                               <Size>
423                                   <AbsDimension x="256" y="256"/>
424                               </Size>
  248                             <Size x="256" y="256"/>
 
430                               <Size>
431                                   <AbsDimension x="256" y="256"/>
432                               </Size>
  254                             <Size x="256" y="256"/>
 
438                               <Size>
439                                   <AbsDimension x="256" y="256"/>
440                               </Size>
  260                             <Size x="256" y="256"/>
 
446                               <Size>
447                                   <AbsDimension x="256" y="256"/>
448                               </Size>
  266                             <Size x="256" y="256"/>
 
454                               <Size>
455                                   <AbsDimension x="256" y="256"/>
456                               </Size>
  272                             <Size x="256" y="256"/>
 
462                               <Size>
463                                   <AbsDimension x="256" y="256"/>
464                               </Size>
  278                             <Size x="256" y="256"/>
 
470                               <Size>
471                                   <AbsDimension x="256" y="256"/>
472                               </Size>
  284                             <Size x="256" y="256"/>
 
478                               <Size>
479                                   <AbsDimension x="256" y="256"/>
480                               </Size>
  290                             <Size x="256" y="256"/>
 
486                               <Size>
487                                   <AbsDimension x="256" y="256"/>
488                               </Size>
  296                             <Size x="256" y="256"/>
 
496                               <Size>
497                                   <AbsDimension x="128" y="128"/>
498                               </Size>
  304                             <Size x="128" y="128"/>
 
507                                   <Anchor point="BOTTOM" relativePoint="BOTTOM">
508                                       <Offset>
509                                           <AbsDimension x="0" y="20"/>
510                                       </Offset>
511                                   </Anchor>
  313                                 <Anchor point="BOTTOM" relativePoint="BOTTOM" x="0" y="20"/>
 
516                                   <Anchor point="BOTTOM" relativePoint="BOTTOM">
517                                       <Offset>
518                                           <AbsDimension x="0" y="64"/>
519                                       </Offset>
520                                   </Anchor>
  318                                 <Anchor point="BOTTOM" relativePoint="BOTTOM" x="0" y="64"/>
 
533                                           <Anchor point="TOPLEFT" relativeTo="WorldMapDetailFrame" relativePoint="TOPLEFT">
534                                                   <Offset>
535                                                           <AbsDimension x="780" y="34"/>
536                                                   </Offset>
537                                           </Anchor>
  331                                         <Anchor point="TOPLEFT" relativeTo="WorldMapDetailFrame" relativePoint="TOPLEFT" x="780" y="34"/>
 
543                                                                   <Anchor point="TOPLEFT">
544                                                                           <Offset>
545                                                                                   <AbsDimension x="20" y="10"/>
546                                                                           </Offset>
547                                                                   </Anchor>
  337                                                                 <Anchor point="TOPLEFT" x="20" y="10"/>
 
554                                   <Size>
555                                           <AbsDimension x="16" y="16"/>
556                                   </Size>
  344                                 <Size x="16" y="16"/>
 
558                                           <Anchor point="TOPLEFT" relativeTo="WorldMapLevelDropDown" relativePoint="TOPRIGHT">
559                                                   <Offset>
560                                                           <AbsDimension x="-10" y="8"/>
561                                                   </Offset>
562                                           </Anchor>
  346                                         <Anchor point="TOPLEFT" relativeTo="WorldMapLevelDropDown" relativePoint="TOPRIGHT" x="-10" y="8"/>
 
572                                   <Size>
573                                           <AbsDimension x="16" y="16"/>
574                                   </Size>
  356                                 <Size x="16" y="16"/>
 
576                                           <Anchor point="BOTTOMLEFT" relativeTo="WorldMapLevelDropDown" relativePoint="BOTTOMRIGHT">
577                                                   <Offset>
578                                                           <AbsDimension x="-10" y="2"/>
579                                                   </Offset>
580                                           </Anchor>
  358                                         <Anchor point="BOTTOMLEFT" relativeTo="WorldMapLevelDropDown" relativePoint="BOTTOMRIGHT" x="-10" y="2"/>
 
590                                   <Size>
591                                           <AbsDimension x="179" y="40"/>
592                                   </Size>
  368                                 <Size x="179" y="40"/>
 
594                                           <Anchor point="TOPLEFT" relativePoint="TOP" relativeTo="WorldMapPositioningGuide">
595                                                   <Offset>
596                                                           <AbsDimension x="-468" y="-86"/>
597                                                   </Offset>
598                                           </Anchor>
  370                                         <Anchor point="TOPLEFT" relativePoint="TOP" relativeTo="WorldMapPositioningGuide" x="-468" y="-86"/>
 
603                                                           <Size>
604                                                                   <AbsDimension x="32" y="32"/>
605                                                           </Size>
  375                                                         <Size x="32" y="32"/>
 
621                                                   <Anchor point="TOPLEFT">
622                                                           <Offset>
623                                                                   <AbsDimension x="32" y="-5"/>
624                                                           </Offset>
625                                                   </Anchor>
  391                                                 <Anchor point="TOPLEFT" x="32" y="-5"/>
 
632                                           <Anchor point="TOPRIGHT" relativeTo="WorldMapPositioningGuide">
633                                                   <Offset>
634                                                           <AbsDimension x="4" y="4"/>
635                                                   </Offset>
636                                           </Anchor>
  398                                         <Anchor point="TOPRIGHT" relativeTo="WorldMapPositioningGuide" x="4" y="4"/>
 
640                                   <Size>
641                                           <AbsDimension x="32" y="32"/>
642                                   </Size>
  402                                 <Size x="32" y="32"/>
 
644                                           <Anchor point="TOPRIGHT" relativeTo="WorldMapPositioningGuide">
645                                                   <Offset>
646                                                           <AbsDimension x="-16" y="4"/>
647                                                   </Offset>
648                                           </Anchor>
  404                                         <Anchor point="TOPRIGHT" relativeTo="WorldMapPositioningGuide" x="-16" y="4"/>
 
658                                   <Size>
659                                           <AbsDimension x="32" y="32"/>
660                                   </Size>
  414                                 <Size x="32" y="32"/>
 
662                                           <Anchor point="TOPLEFT" relativeTo="WorldMapFrameSizeDownButton">
663                                                   <Offset>
664                                                           <AbsDimension x="0" y="0"/>
665                                                   </Offset>
666                                           </Anchor>
  416                                         <Anchor point="TOPLEFT" relativeTo="WorldMapFrameSizeDownButton" x="0" y="0"/>
 
676                                   <Size>
677                                           <AbsDimension x="1002" y="668"/>
678                                   </Size>
  426                                 <Size x="1002" y="668"/>
 
680                                           <Anchor point="TOPLEFT" relativeTo="WorldMapDetailFrame">
681                                                   <Offset>
682                                                           <AbsDimension x="0" y="0"/>
683                                                   </Offset>
684                                           </Anchor>
  428                                         <Anchor point="TOPLEFT" relativeTo="WorldMapDetailFrame" x="0" y="0"/>
 
697                                   <Size>
698                                           <AbsDimension x="1002" y="668"/>
699                                   </Size>
  441                                 <Size x="1002" y="668"/>
 
722                                   <Size>
723                                           <AbsDimension x="1002" y="668"/>
724                                   </Size>
  464                                 <Size x="1002" y="668"/>
 
726                                           <Anchor point="TOPLEFT" relativeTo="WorldMapDetailFrame">
727                                                   <Offset>
728                                                           <AbsDimension x="0" y="0"/>
729                                                   </Offset>
730                                           </Anchor>
  466                                         <Anchor point="TOPLEFT" relativeTo="WorldMapDetailFrame" x="0" y="0"/>
 
734                                                   <Size>
735                                                           <AbsDimension x="16" y="16"/>
736                                                   </Size>
  470                                                 <Size x="16" y="16"/>
 
822                                                   <Size>
823                                                           <AbsDimension x="50" y="50"/>
824                                                   </Size>
  556                                                 <Size x="50" y="50"/>
 
838                                                           <Anchor point="TOP">
839                                                                   <Offset>
840                                                                           <AbsDimension x="0" y="-10"/>
841                                                                   </Offset>
842                                                           </Anchor>
  570                                                         <Anchor point="TOP" x="0" y="-10"/>
 
854                                                                                   <Anchor point="TOP" relativeTo="WorldMapFrameAreaLabel" relativePoint="BOTTOM">
855                                                                                           <Offset>
856                                                                                                   <AbsDimension x="0" y="0"/>
857                                                                                           </Offset>
858                                                                                   </Anchor>
  582                                                                                 <Anchor point="TOP" relativeTo="WorldMapFrameAreaLabel" relativePoint="BOTTOM" x="0" y="0"/>
 
865                                                   <Size>
866                                                           <AbsDimension x="320" y="320"/>
867                                                   </Size>
  589                                                 <Size x="320" y="320"/>
 
869                                                           <Anchor point="TOPLEFT">
870                                                                   <Offset>
871                                                                           <AbsDimension x="115" y="-90"/>
872                                                                   </Offset>
873                                                           </Anchor>
  591                                                         <Anchor point="TOPLEFT" x="115" y="-90"/>
 
883                                                                   <Anchor point="CENTER">
884                                                                           <Offset>
885                                                                                   <AbsDimension x="176" y="-87"/>
886                                                                           </Offset>
887                                                                   </Anchor>
  601                                                                 <Anchor point="CENTER" x="176" y="-87"/>
 
892                                                   <Size>
893                                                           <AbsDimension x="366" y="366"/>
894                                                   </Size>
  606                                                 <Size x="366" y="366"/>
 
896                                                           <Anchor point="TOPLEFT">
897                                                                   <Offset>
898                                                                           <AbsDimension x="593" y="-255"/>
899                                                                   </Offset>
900                                                           </Anchor>
  608                                                         <Anchor point="TOPLEFT" x="593" y="-255"/>
 
910                                                                   <Anchor point="CENTER">
911                                                                           <Offset>
912                                                                                   <AbsDimension x="-224" y="104"/>
913                                                                           </Offset>
914                                                                   </Anchor>
  618                                                                 <Anchor point="CENTER" x="-224" y="104"/>
 
919                                                   <Size>
920                                                           <AbsDimension x="120" y="120"/>
921                                                   </Size>
  623                                                 <Size x="120" y="120"/>
 
923                                                           <Anchor point="TOPLEFT">
924                                                                   <Offset>
925                                                                           <AbsDimension x="305" y="-140"/>
926                                                                   </Offset>
927                                                           </Anchor>
  625                                                         <Anchor point="TOPLEFT" x="305" y="-140"/>
 
930                                                           <Size>
931                                                                   <AbsDimension x="128" y="128"/>
932                                                           </Size>
  628                                                         <Size x="128" y="128"/>
 
939                                                   <Size>
940                                                           <AbsDimension x="120" y="120"/>
941                                                   </Size>
  635                                                 <Size x="120" y="120"/>
 
943                                                           <Anchor point="TOPLEFT">
944                                                                   <Offset>
945                                                                           <AbsDimension x="450" y="-130"/>
946                                                                   </Offset>
947                                                           </Anchor>
  637                                                         <Anchor point="TOPLEFT" x="450" y="-130"/>
 
950                                                           <Size>
951                                                                   <AbsDimension x="160" y="160"/>
952                                                           </Size>
  640                                                         <Size x="160" y="160"/>
 
959                                                   <Size>
960                                                           <AbsDimension x="254" y="240"/>
961                                                   </Size>
  647                                                 <Size x="254" y="240"/>
 
963                                                           <Anchor point="TOPLEFT">
964                                                                   <Offset>
965                                                                           <AbsDimension x="236" y="-380"/>
966                                                                   </Offset>
967                                                           </Anchor>
  649                                                         <Anchor point="TOPLEFT" x="236" y="-380"/>
 
970                                                           <Size>
971                                                                   <AbsDimension x="360" y="360"/>
972                                                           </Size>
  652                                                         <Size x="360" y="360"/>
 
979                                                   <Size>
980                                                           <AbsDimension x="152" y="180"/>
981                                                   </Size>
  659                                                 <Size x="152" y="180"/>
 
983                                                           <Anchor point="TOPLEFT">
984                                                                   <Offset>
985                                                                           <AbsDimension x="75" y="-266"/>
986                                                                   </Offset>
987                                                           </Anchor>
  661                                                         <Anchor point="TOPLEFT" x="75" y="-266"/>
 
990                                                           <Size>
991                                                                   <AbsDimension x="250" y="250"/>
992                                                           </Size>
  664                                                         <Size x="250" y="250"/>
 
1028                                   <Size>
1029                                           <AbsDimension x="1002" y="668"/>
1030                                   </Size>
  700                                 <Size x="1002" y="668"/>
 
1032                                           <Anchor point="TOPLEFT" relativeTo="WorldMapDetailFrame">
1033                                                   <Offset>
1034                                                           <AbsDimension x="0" y="0"/>
1035                                                   </Offset>
1036                                           </Anchor>
  702                                         <Anchor point="TOPLEFT" relativeTo="WorldMapDetailFrame" x="0" y="0"/>
 
1046                                   <Size>
1047                                           <AbsDimension x="283" y="670"/>
1048                                   </Size>
  712                                 <Size x="283" y="670"/>
 
1050                                           <Anchor point="TOPLEFT" relativeTo="WorldMapDetailFrame" relativePoint="TOPRIGHT">
1051                                                   <Offset>
1052                                                           <AbsDimension x="6" y="0"/>
1053                                                   </Offset>
1054                                           </Anchor>
  714                                         <Anchor point="TOPLEFT" relativeTo="WorldMapDetailFrame" relativePoint="TOPRIGHT" x="6" y="0"/>
 
1058                                                   <Size>
1059                                                           <AbsDimension x="283" y="50"/>
1060                                                   </Size>
  718                                                 <Size x="283" y="50"/>
 
1066                                                                   <Size>
1067                                                                           <AbsDimension x="301" y="50"/>
1068                                                                   </Size>
  724                                                                 <Size x="301" y="50"/>
 
1081                                                                   <Size>
1082                                                                           <AbsDimension x="301" y="50"/>
1083                                                                   </Size>                                                                
  737                                                                 <Size x="301" y="50"/>                                         
 
1100                                   <Size>
1101                                           <AbsDimension x="302" y="199"/>
1102                                   </Size>
  754                                 <Size x="302" y="199"/>
 
1104                                           <Anchor point="BOTTOMLEFT" relativeTo="WorldMapDetailFrame" relativePoint="BOTTOMLEFT">
1105                                                   <Offset>
1106                                                           <AbsDimension x="20" y="-207"/>
1107                                                   </Offset>
1108                                           </Anchor>
  756                                         <Anchor point="BOTTOMLEFT" relativeTo="WorldMapDetailFrame" relativePoint="BOTTOMLEFT" x="20" y="-207"/>
 
1112                                                   <Size>
1113                                                           <AbsDimension x="300" y="199"/>
1114                                                   </Size>
  760                                                 <Size x="300" y="199"/>
 
1122                                   <Size>
1123                                           <AbsDimension x="323" y="199"/>
1124                                   </Size>
  768                                 <Size x="323" y="199"/>
 
1126                                           <Anchor point="LEFT" relativeTo="WorldMapQuestDetailScrollFrame" relativePoint="RIGHT">
1127                                                   <Offset>
1128                                                           <AbsDimension x="28" y="0"/>
1129                                                   </Offset>
1130                                           </Anchor>
  770                                         <Anchor point="LEFT" relativeTo="WorldMapQuestDetailScrollFrame" relativePoint="RIGHT" x="28" y="0"/>
 
1134                                                   <Size>
1135                                                           <AbsDimension x="323" y="199"/>
1136                                                   </Size>
  774                                                 <Size x="323" y="199"/>
 
  879                         <Frame name="WorldMapShowDropDown" inherits="UIDropDownMenuTemplate" enableMouse="true">
  880                                 <Anchors>
  881                                         <Anchor point="BOTTOMRIGHT" relativeTo="WorldMapPositioningGuide" relativePoint="BOTTOMRIGHT" x="10" y="-2" />
  882                                 </Anchors>
  883                                 <Scripts>
  884                                         <OnLoad function="WorldMapShowDropDown_OnLoad" />
  885                                         <OnShow function="WorldMapShowDropDown_OnLoad" />
  886                                 </Scripts>
  887                         </Frame>
 
1266                           <Anchor point="TOPLEFT"/>
  913                         <Anchor point="TOPLEFT" x="10" y="-118"/>
 
1270                   <Size>
1271                           <AbsDimension x="544" y="22" />
1272                   </Size>                        
  917                 <Size x="544" y="22" />
 
1274                           <Anchor point="TOPLEFT" relativeTo="$parentMiniBorderLeft">
1275                                   <Offset>
1276                                           <AbsDimension x="0" y="0" />
1277                                   </Offset>
1278                           </Anchor>
  919                         <Anchor point="TOPLEFT" relativeTo="$parentMiniBorderLeft" x="0" y="0" />
   
File: FrameXML\WorldMapFrameTemplates.xml  
  226                                 self.minLevel = MAELSTROM_ZONES_LEVELS[zoneName].minLevel;
  227                                 self.maxLevel = MAELSTROM_ZONES_LEVELS[zoneName].maxLevel;
 
  238                                 WorldMapFrame.minLevel = self.minLevel;
  239                                 WorldMapFrame.maxLevel = self.maxLevel;
 
  243                                 WorldMapFrame.minLevel = nil;
  244                                 WorldMapFrame.maxLevel = nil;
 
  249         <Button name="EncounterMapButtonTemplate" virtual="true">
  250                 <Size x="50" y="49"/>
  251                 <Layers>
  252                         <Layer level="BACKGROUND">
  253                                 <Texture name="$parentbgImage" parentKey="bgImage">
  254                                         <Size x="36" y="36"/>
  255                                         <Anchors>
  256                                                 <Anchor point="CENTER" x="0" y="0"/>
  257                                         </Anchors>
  258                                 </Texture>
  259                         </Layer>
  260                 </Layers>
  261                 <NormalTexture file="Interface\EncounterJournal\UI-EncounterJournalTextures">
  262                         <TexCoords left="0.84960938" right="0.97070313" top="0.42871094" bottom="0.48828125"/>
  263                 </NormalTexture>
  264                 <PushedTexture file="Interface\EncounterJournal\UI-EncounterJournalTextures">
  265                         <TexCoords left="0.77734375" right="0.89843750" top="0.26953125" bottom="0.32910156"/>
  266                 </PushedTexture>
  267                 <HighlightTexture file="Interface\EncounterJournal\UI-EncounterJournalTextures">
  268                         <TexCoords left="0.68945313" right="0.81054688" top="0.33300781" bottom="0.39257813"/>
  269                 </HighlightTexture>
  270                 <Scripts>
  271                         <OnEnter>
  272                                 if self.tooltipTitle then
  273                                         WorldMapTooltip:SetOwner(self, "ANCHOR_LEFT");
  274                                         WorldMapTooltip:SetText(self.tooltipTitle,1,1,1);
  275                                         WorldMapTooltip:AddLine(self.tooltipText, nil, nil, nil, 1);
  276                                         WorldMapTooltip:Show();
  277                                         WorldMapTooltip.EJ_using = true;
  278                                 end
  279                         </OnEnter>
  280                         <OnLeave>
  281                                 WorldMapTooltip:Hide();
  282                                 WorldMapTooltip.EJ_using = false;
  283                         </OnLeave>
  284                         <OnShow>
  285                                 self:SetFrameLevel(self:GetParent():GetFrameLevel() + 10);
  286                         </OnShow>
  287                         <OnClick>
  288                                 if WORLDMAP_SETTINGS.size ~= WORLDMAP_WINDOWED_SIZE then
  289                                         ToggleFrame(WorldMapFrame);
  290                                 end
 
  292                                 if not EncounterJournal or not EncounterJournal:IsShown() then
  293                                         ToggleEncounterJournal();
  294                                 end
  295                                 EncounterJournal_ListInstances();
  296                                 EncounterJournal_DisplayInstance(self.instanceID);
  297                                 EncounterJournal_DisplayEncounter(self.encounterID);
  298                         </OnClick>
  299                 </Scripts>
  300         </Button>
   
File: FrameXML\WorldStateFrame.lua  
850           local numHorde = 0;
851           local numAlliance = 0;
852           local _;
853           for i=1, numScores do
854                   _, _, _, _, _, faction, _, _, _, _, _, bgRating = GetBattlefieldScore(i);      
855                   if ( faction ) then
856                           if ( faction == 0 ) then
857                                   numHorde = numHorde + 1;
858                           else
859                                   numAlliance = numAlliance + 1;
860                           end
861                   end
862           end
  850         local _, _, _, _, numHorde = GetBattlefieldTeamInfo(0);
  851         local _, _, _, _, numAlliance = GetBattlefieldTeamInfo(1);
 
991   function ScorePlayer_OnMouseUp(self, mouseButton)
  980 function ScorePlayer_OnClick(self, mouseButton)
 
  986         elseif ( mouseButton == "LeftButton" and IsModifiedClick("CHATLINK") and ChatEdit_GetActiveWindow() ) then
  987                 ChatEdit_InsertLink(self.text:GetText());
   
File: FrameXML\WorldStateFrame.xml  
418                           <Frame name="$parentName"  parentKey="name">
  418                         <Button name="$parentName"  parentKey="name">
 
  439                                         <OnLoad>
  440                                                 self:RegisterForClicks("LeftButtonUp", "RightButtonUp");
  441                                         </OnLoad>
 
450                                           <OnMouseUp>
451                                                   ScorePlayer_OnMouseUp(self, button);
452                                           </OnMouseUp>
  453                                         <OnClick>
  454                                                 ScorePlayer_OnClick(self, button);
  455                                         </OnClick>
 
454                           </Frame>
  457                         </Button>
   
File: GlueXML\AccountLogin.lua  
66           if( IsTrialAccount() ) then
67                   AccountLoginUpgradeAccountButton:Show();
68           else
69                   AccountLoginUpgradeAccountButton:Hide();
70           end
 
209   function CharacterSelect_UpgradeAccount()
210           PlaySound("gsLoginNewAccount");
211           LaunchURL(AUTH_NO_TIME_URL);
212   end
   
File: GlueXML\AccountLogin.xml  
506                                                                           <AbsDimension x="10" y="130"/>
  506                                                                         <AbsDimension x="10" y="84"/>
 
  530                                         <Button name="AccountLoginCreateAccountButton" inherits="GlueButtonSmallTemplateBlue" text="CREATE_ACCOUNT">
  531                                                 <Anchors>
  532                                                         <Anchor point="BOTTOM" relativeTo="AccountLoginManageAccountButton" relativePoint="TOP">
  533                                                                 <Offset>
  534                                                                         <AbsDimension x="0" y="0"/>
  535                                                                 </Offset>
  536                                                         </Anchor>
  537                                                 </Anchors>
  538                                                 <Scripts>
  539                                                         <OnClick>
  540                                                                 AccountLogin_ManageAccount();
  541                                                         </OnClick>
  542                                                 </Scripts>
  543                                         </Button>
 
532                                                           <Anchor point="BOTTOM" relativeTo="AccountLoginManageAccountButton" relativePoint="TOP">
  546                                                         <Anchor point="BOTTOM" relativeTo="AccountLoginCreateAccountButton" relativePoint="TOP">
 
554                                                           </OnClick>
555                                                   </Scripts>
556                                           </Button>
557                                           <Button name="AccountLoginUpgradeAccountButton" inherits="GlueButtonTemplateBlue" text="UPGRADE_ACCOUNT" hidden="true">
558                                                   <Size x="320" y="60"/>
559                                                   <Anchors>
560                                                           <Anchor point="TOP" x="0" y="-10"/>
561                                                   </Anchors>
562                                                   <Scripts>
563                                                           <OnClick>
564                                                                   UpgradeAccount();
 
618                                                           </OnClick>
619                                                   </Scripts>
620                                                   <NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
621                                                   <PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
622                                                   <HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
623                                                   <CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
624                                                   <DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
625                                           </CheckButton>
626                                           <CheckButton name="AccountLoginShowLauncher">
627                                                   <Size>
628                                                           <AbsDimension x="20" y="20"/>
629                                                   </Size>
630                                                   <Anchors>
631                                                           <Anchor point="TOPLEFT" relativeTo="AccountLoginCommunityButton" relativePoint="BOTTOMLEFT">
632                                                                   <Offset>
633                                                                           <AbsDimension x="7" y="-5"/>
634                                                                   </Offset>
635                                                           </Anchor>
636                                                   </Anchors>
637                                                   <Layers>
638                                                           <Layer level="ARTWORK">
639                                                                   <FontString inherits="GlueFontNormalSmall" text="SHOW_LAUNCHER">
640                                                                           <Anchors>
641                                                                                   <Anchor point="LEFT">
642                                                                                           <Offset>
643                                                                                                   <AbsDimension x="24" y="0"/>
644                                                                                           </Offset>
645                                                                                   </Anchor>
646                                                                           </Anchors>
647                                                                           <FontHeight>
648                                                                                   <AbsValue val="10"/>
649                                                                           </FontHeight>
650                                                                           <Shadow>
651                                                                                   <Offset>
652                                                                                           <AbsDimension x="1" y="-1"/>
653                                                                                   </Offset>
654                                                                                   <Color r="0" g="0" b="0"/>
655                                                                           </Shadow>
656                                                                           <Color r="1.0" g="0.78" b="0"/>
657                                                                   </FontString>
658                                                           </Layer>
659                                                   </Layers>
660                                                   <Scripts>
661                                                           <OnLoad>
662                                                                   if ( GetCVar("showToolsUI") == "1" ) then
663                                                                           self:SetChecked(1);
664                                                                   else
665                                                                           self:SetChecked(0);
666                                                                   end
667                                                           </OnLoad>
668                                                           <OnClick>
669                                                                   if ( self:GetChecked() ) then
670                                                                           PlaySound("igMainMenuOptionCheckBoxOff");
671                                                                   else
672                                                                           PlaySound("igMainMenuOptionCheckBoxOn");
673                                                                   end
674                                                                   local checked = self:GetChecked();
675                                                                   if ( not checked ) then
676                                                                           checked = "0";
677                                                                   end
678                                                                   SetCVar("showToolsUI", checked);
   
File: GlueXML\CharacterSelect.lua  
  21 CHARACTER_SELECT_LOGOS = {
  22         TRIAL = "Interface\\Glues\\Common\\Glues-WoW-StarterLogo",
  23         [1] = "Interface\\Glues\\Common\\Glues-WoW-ClassicLogo",
  24         [2] = "Interface\\Glues\\Common\\Glues-WoW-WotLKLogo",
  25         [3] = "Interface\\Glues\\Common\\Glues-WoW-CCLogo",
  26         --When adding entries to here, make sure to update the zhTW and zhCN localization files.
  27 };
 
169           if( IsTrialAccount() ) then
170                   CharacterSelectUpgradeAccountButton:Show();
171           else
172                   CharacterSelectUpgradeAccountButton:Hide();
173           end
 
  186         AccountUpgradePanel_Update(CharSelectAccountUpgradeButton.isExpanded);
 
  370         if ( CharacterSelect.selectLast == 1 ) then
  371                 CHARACTER_LIST_OFFSET = max(numChars - MAX_CHARACTERS_DISPLAYED, 0);
  372                 CharacterSelect.selectedIndex = numChars;
  373                 CharacterSelect.selectLast = 0;
  374         end
 
488           if ( CharacterSelect.selectLast == 1 ) then
489                   CharacterSelect.selectLast = 0;
490                   CHARACTER_LIST_OFFSET = max(numChars - MAX_CHARACTERS_DISPLAYED, 0);
491                   CharacterSelect_SelectCharacter(numChars, 1);
492                   return;
493           end
 
  832 ACCOUNT_UPGRADE_FEATURES = {
  833         TRIAL = { [1] = { icon = "Interface\\Icons\\achievement_level_70", text = UPGRADE_FEATURE_1 },
  834                   [2] = { icon = "Interface\\Icons\\Achievement_Quests_Completed_06", text = UPGRADE_FEATURE_2 },
  835                   [3] = { icon = "Interface\\Icons\\achievement_zone_hellfirepeninsula_01", text = UPGRADE_FEATURE_3 },
  836                   logo = "Interface\\Glues\\Common\\Glues-WoW-ClassicLogo",
  837                   banner = { 0.0, 0.777, 0.0, 0.136 }},
  838         [1] =   { [1] = { icon = "Interface\\Icons\\achievement_level_80", text = UPGRADE_FEATURE_4 },
  839                   [2] = { icon = "Interface\\Icons\\achievement_boss_lichking", text = UPGRADE_FEATURE_5 },
  840                   [3] = { icon = "Interface\\Icons\\achievement_zone_icecrown_01", text = UPGRADE_FEATURE_6 },
  841                   logo = "Interface\\Glues\\Common\\Glues-WoW-WotLKLogo",
  842                   banner = { 0.0, 0.777, 0.411, 0.546 }},
  843         [2] =   { [1] = { icon = "Interface\\Icons\\achievement_level_85", text = UPGRADE_FEATURE_7 },
  844                   [2] = { icon = "Interface\\Glues\\AccountUpgrade\\icon-gob-worg", text = UPGRADE_FEATURE_8 },
  845                   [3] = { icon = "Interface\\Icons\\Ability_Mount_CelestialHorse", text = UPGRADE_FEATURE_9 },
  846                   logo = "Interface\\Glues\\Common\\Glues-WoW-CCLogo",
  847                   banner = { 0.0, 0.777, 0.138, 0.272 }},
  848 }
 
  850 -- Account upgrade panel
  851 function AccountUpgradePanel_Update(isExpanded)
  852         local tag = nil;
  853         if ( IsTrialAccount() ) then
  854                 tag = "TRIAL";
  855         else
  856                 tag = GetAccountExpansionLevel();
  857         end
 
  859         if ( CHARACTER_SELECT_LOGOS[tag] ) then
  860                 CharacterSelectLogo:SetTexture(CHARACTER_SELECT_LOGOS[tag]);
  861                 CharacterSelectLogo:Show();
  862         else
  863                 CharacterSelectLogo:Hide();
  864         end
 
  867         if ( not CanUpgradeExpansion() or not ACCOUNT_UPGRADE_FEATURES[tag] ) then
  868                 CharSelectAccountUpgradePanel:Hide();
  869                 CharSelectAccountUpgradeButton:Hide();
  870                 CharSelectAccountUpgradeMiniPanel:Hide();
  871         else
  872                 local featureTable = ACCOUNT_UPGRADE_FEATURES[tag];
  873                 CharSelectAccountUpgradeButton:Show();
  874                 if ( isExpanded ) then
  875                         CharSelectAccountUpgradePanel:Show();
  876                         CharSelectAccountUpgradeMiniPanel:Hide();
 
  878                         CharSelectAccountUpgradePanel.logo:SetTexture(featureTable.logo);
  879                         CharSelectAccountUpgradePanel.banner:SetTexCoord(unpack(featureTable.banner));
 
  881                         local featureFrames = CharSelectAccountUpgradePanel.featureFrames;
  882                         for i=1, #featureTable do
  883                                 local frame = featureFrames[i];
  884                                 if ( not frame ) then
  885                                         frame = CreateFrame("FRAME", "CharSelectAccountUpgradePanelFeature"..i, CharSelectAccountUpgradePanel, "UpgradeFrameFeatureTemplate");
  886                                         frame:SetPoint("TOPLEFT", featureFrames[i - 1], "BOTTOMLEFT", 0, 0);
  887                                 end
 
  889                                 frame.icon:SetTexture(featureTable[i].icon);
  890                                 frame.text:SetText(featureTable[i].text);
  891                         end
  892                         for i=#featureTable + 1, #featureFrames do
  893                                 featureFrames[i]:Hide();
  894                         end
 
  896                         CharSelectAccountUpgradeButtonExpandCollapseButton:SetNormalTexture("Interface\\ChatFrame\\UI-ChatIcon-ScrollUp-Up");
  897                         CharSelectAccountUpgradeButtonExpandCollapseButton:SetPushedTexture("Interface\\ChatFrame\\UI-ChatIcon-ScrollUp-Down");
  898                         CharSelectAccountUpgradeButtonExpandCollapseButton:SetDisabledTexture("Interface\\ChatFrame\\UI-ChatIcon-ScrollUp-Disabled");
  899                 else
  900                         CharSelectAccountUpgradePanel:Hide();
  901                         CharSelectAccountUpgradeMiniPanel:Show();
 
  903                         CharSelectAccountUpgradeMiniPanel.logo:SetTexture(featureTable.logo);
  904                         CharSelectAccountUpgradeMiniPanel.banner:SetTexCoord(unpack(featureTable.banner));
 
  906                         CharSelectAccountUpgradeButtonExpandCollapseButton:SetNormalTexture("Interface\\ChatFrame\\UI-ChatIcon-ScrollDown-Up");
  907                         CharSelectAccountUpgradeButtonExpandCollapseButton:SetPushedTexture("Interface\\ChatFrame\\UI-ChatIcon-ScrollDown-Down");
  908                         CharSelectAccountUpgradeButtonExpandCollapseButton:SetDisabledTexture("Interface\\ChatFrame\\UI-ChatIcon-ScrollDown-Disabled");
  909                 end
  910         end
  911         CharSelectAccountUpgradeButton.isExpanded = isExpanded;
  912         SetCVar("expandUpgradePanel", isExpanded and "1" or "0");
  913 end
 
  915 function AccountUpgradePanel_ToggleExpandState()
  916         AccountUpgradePanel_Update(not CharSelectAccountUpgradeButton.isExpanded);
  917 end
   
File: GlueXML\CharacterSelect.xml  
  215         <Frame name="UpgradeFrameBorderedTemplate" virtual="true">
  216                 <Layers>
  217                         <Layer level="ARTWORK" textureSubLevel="1">
  218                                 <Texture name="$parentBorderTopLeft" file="Interface\Glues\AccountUpgrade\golden-main">
  219                                         <Size x="35" y="41"/>  
  220                                         <Anchors>
  221                                                 <Anchor point="TOPLEFT" x="-15" y="15"/>
  222                                         </Anchors>
  223                                         <TexCoords left="0.00390625" right="0.14062500" top="0.33984375" bottom="0.50000000"/> 
  224                                 </Texture>
  225                                 <Texture name="$parentBorderTopRight" file="Interface\Glues\AccountUpgrade\golden-main">
  226                                         <Size x="35" y="41"/>  
  227                                         <Anchors>
  228                                                 <Anchor point="TOPRIGHT" x="15" y="15"/>
  229                                         </Anchors>
  230                                         <TexCoords left="0.00390625" right="0.14062500" top="0.00390625" bottom="0.16406250"/>
  231                                 </Texture>
  232                                 <Texture name="$parentBorderBottomLeft" file="Interface\Glues\AccountUpgrade\golden-main">
  233                                         <Size x="35" y="41"/>  
  234                                         <Anchors>
  235                                                 <Anchor point="BOTTOMLEFT" x="-15" y="-15"/>
  236                                         </Anchors>
  237                                         <TexCoords left="0.00390625" right="0.14062500" top="0.50781250" bottom="0.66796875"/>
  238                                 </Texture>
  239                                 <Texture name="$parentBorderBottomRight" file="Interface\Glues\AccountUpgrade\golden-main">
  240                                         <Size x="35" y="41"/>  
  241                                         <Anchors>
  242                                                 <Anchor point="BOTTOMRIGHT" x="15" y="-15"/>
  243                                         </Anchors>
  244                                         <TexCoords left="0.00390625" right="0.14062500" top="0.17187500" bottom="0.33203125"/>
  245                                 </Texture>
  246                                 <Texture name="$parentBorderBottom" file="Interface\Glues\AccountUpgrade\golden-h" horizTile="true">
  247                                         <Size x="128" y="32"/>
  248                                         <Anchors>
  249                                                 <Anchor point="BOTTOMLEFT" relativeTo="$parentBorderBottomLeft" relativePoint="BOTTOMRIGHT" x="0" y="-4"/>
  250                                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parentBorderBottomRight" relativePoint="BOTTOMLEFT" x="0" y="-4"/>
  251                                         </Anchors>
  252                                 </Texture>
  253                                 <Texture name="$parentBorderTop" file="Interface\Glues\AccountUpgrade\golden-h" horizTile="true">
  254                                         <Size x="128" y="32"/>
  255                                         <Anchors>
  256                                                 <Anchor point="TOPLEFT" relativeTo="$parentBorderTopLeft" relativePoint="TOPRIGHT" x="0" y="4"/>
  257                                                 <Anchor point="TOPRIGHT" relativeTo="$parentBorderTopRight" relativePoint="TOPLEFT" x="0" y="4"/>
  258                                         </Anchors>
  259                                         <TexCoords left="0.0" right="1.0" top="1.0" bottom="0.0"/>
  260                                 </Texture>
  261                                 <Texture name="$parentBorderLeft" file="Interface\Glues\AccountUpgrade\golden-v" vertTile="true">
  262                                         <Size x="32" y="128"/>
  263                                         <Anchors>
  264                                                 <Anchor point="TOPLEFT" relativeTo="$parentBorderTopLeft" relativePoint="BOTTOMLEFT" x="-1" y="0"/>
  265                                                 <Anchor point="BOTTOMLEFT" relativeTo="$parentBorderBottomLeft" relativePoint="TOPLEFT" x="-1" y="0"/>
  266                                         </Anchors>
  267                                 </Texture>
  268                                 <Texture name="$parentBorderRight" file="Interface\Glues\AccountUpgrade\golden-v" vertTile="true">
  269                                         <Size x="32" y="128"/>
  270                                         <Anchors>
  271                                                 <Anchor point="TOPRIGHT" relativeTo="$parentBorderTopRight" relativePoint="BOTTOMRIGHT" x="1" y="0"/>
  272                                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parentBorderBottomRight" relativePoint="TOPRIGHT" x="1" y="0"/>
  273                                         </Anchors>
  274                                         <TexCoords left="1.0" right="0.0" top="0.0" bottom="1.0"/>
  275                                 </Texture>
  276                         </Layer>
  277                 </Layers>
  278         </Frame>
  279         <Frame name="UpgradeFrameFeatureTemplate" virtual="true">
  280                 <Size x="195" y="50"/>
  281                 <Layers>
  282                         <Layer level="OVERLAY">
  283                                 <Texture name="$parentIconFrame" file="Interface\AchievementFrame\UI-Achievement-IconFrame">
  284                                         <Size x="50" y="50"/>
  285                                         <Anchors>
  286                                                 <Anchor point="TOPLEFT"/>
  287                                         </Anchors>
  288                                         <TexCoords left="0" right="0.5625" top="0" bottom="0.5625"/>
  289                                 </Texture>
  290                         </Layer>
  291                         <Layer level="ARTWORK">
  292                                 <FontString name="$parentText" inherits="GlueFontNormalSmall" parentKey="text" justifyH="LEFT" justifyV="MIDDLE" text="Heal the land ravaged by the evil dragon Deathwing!">
  293                                         <Anchors>
  294                                                 <Anchor point="TOPLEFT" relativeTo="$parentIconFrame" relativePoint="TOPRIGHT" x="0" y="0"/>
  295                                                 <Anchor point="BOTTOMRIGHT"/>
  296                                         </Anchors>
  297                                 </FontString>
  298                                 <Texture name="$parentIcon" parentKey="icon">
  299                                         <Anchors>
  300                                                 <Anchor point="TOPLEFT" relativeTo="$parentIconFrame" relativePoint="TOPLEFT" x="5" y="-5"/>
  301                                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parentIconFrame" relativePoint="BOTTOMRIGHT" x="-5" y="5"/>
  302                                         </Anchors>
  303                                 </Texture>
  304                         </Layer>
  305                 </Layers>
  306                 <Scripts>
  307                         <OnLoad>
  308                                 local parent = self:GetParent();
  309                                 if ( not parent.featureFrames ) then
  310                                         parent.featureFrames = {};
  311                                 end
  312                                 tinsert(parent.featureFrames, self);
  313                         </OnLoad>
  314                 </Scripts>
  315         </Frame>
 
  331                                 </Layers>
  332                                 <Frames>
  333                                         <Frame name="LogoHoist" frameStrata="HIGH">
  334                                                 <Size x="1" y="1"/>
  335                                                 <Anchors>
  336                                                         <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="0" y="0"/>
  337                                                 </Anchors>
  338                                                 <Layers>
 
231                                                   <Texture name="CharacterSelectLogo" file="Interface\Glues\Common\Glues-WoW-CCLogo">
  340                                                                 <Texture name="CharacterSelectLogo">
 
  354                                         </Frame>
  355                                         <Button name="CharSelectAccountUpgradeButton" inherits="GlueButtonTemplate" text="UPGRADE">
  356                                                 <Size x="203" y="72"/>
  357                                                 <Anchors>
  358                                                         <Anchor point="TOP" relativeTo="CharacterSelectLogo" relativePoint="BOTTOM" x="0" y="-10"/>
  359                                                 </Anchors>
  360                                                 <Layers>
  361                                                         <Layer level="BACKGROUND">
  362                                                                 <Texture name="$parentChains1" file="Interface\Glues\AccountUpgrade\golden-main">
  363                                                                         <Size x="20" y="62"/>
  364                                                                         <Anchors>
  365                                                                                 <Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="20" y="-15"/>
  366                                                                         </Anchors>
  367                                                                         <TexCoords left="0.148" right="0.227" top="0.508" bottom="0.777"/>
  368                                                                 </Texture>
  369                                                                 <Texture name="$parentChains2" file="Interface\Glues\AccountUpgrade\golden-main">
  370                                                                         <Size x="20" y="62"/>
  371                                                                         <Anchors>
  372                                                                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT" x="-20" y="-15"/>
  373                                                                         </Anchors>
  374                                                                         <TexCoords left="0.148" right="0.227" top="0.508" bottom="0.777"/>
  375                                                                 </Texture>
  376                                                         </Layer>
  377                                                         <Layer level="OVERLAY">
  378                                                                 <Texture name="$parentBorder" file="Interface\Glues\AccountUpgrade\golden-main">
  379                                                                         <Size x="208" y="72"/>
  380                                                                         <Anchors>
  381                                                                                 <Anchor point="CENTER" x="-2" y="3"/>
  382                                                                         </Anchors>
  383                                                                         <TexCoords left="0.14843750" right="0.96093750" top="0.00390625" bottom="0.28515625"/>
  384                                                                 </Texture>
  385                                                         </Layer>
  386                                                 </Layers>
 
  388                                                         <Button name="$parentExpandCollapseButton" parentKey="expandCollapseButton">
  389                                                                 <Size x="32" y="32"/>
  390                                                                 <Anchors>
  391                                                                         <Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT" x="-31" y="2"/>
  392                                                                 </Anchors>
  393                                                                 <Layers>
  394                                                                         <Layer level="OVERLAY">
  395                                                                                 <Texture name="$parentIconFrame" file="Interface\AchievementFrame\UI-Achievement-IconFrame">
  396                                                                                         <Size x="32" y="32"/>
  397                                                                                         <Anchors>
  398                                                                                                 <Anchor point="CENTER"/>
  399                                                                                         </Anchors>
  400                                                                                         <TexCoords left="0" right="0.5625" top="0" bottom="0.5625"/>
  401                                                                                 </Texture>
  402                                                                         </Layer>
  403                                                                 </Layers>
  404                                                                 <Scripts>
  405                                                                         <OnClick>
  406                                                                                 AccountUpgradePanel_ToggleExpandState();
  407                                                                         </OnClick>
  408                                                                 </Scripts>
  409                                                                 <NormalTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Up"/>
  410                                                                 <PushedTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Down"/>
  411                                                                 <DisabledTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Disabled"/>
  412                                                                 <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
  413                                                         </Button>
  414                                                 </Frames>
  415                                                 <Scripts>
  416                                                         <OnLoad>
  417                                                                 self.isExpanded = GetCVarBool("expandUpgradePanel");
  418                                                                 self:RegisterEvent("ACCOUNT_DATA_INITIALIZED");
  419                                                         </OnLoad>
  420                                                         <OnEvent>
  421                                                                 if ( event == "ACCOUNT_DATA_INITIALIZED" ) then
  422                                                                         if ( IsTrialAccount() ) then
  423                                                                                 self.isExpanded = true;
  424                                                                                 self.expandCollapseButton:Disable();
  425                                                                         else
  426                                                                                 self.expandCollapseButton:Enable();
  427                                                                         end
  428                                                                         AccountUpgradePanel_Update(self.isExpanded);
  429                                                                 end
  430                                                         </OnEvent>
  431                                                         <OnClick>
  432                                                                 UpgradeAccount();
  433                                                         </OnClick>
  434                                                 </Scripts>
  435                                         </Button>
  436                                         <Frame name="CharSelectAccountUpgradeMiniPanel" inherits="UpgradeFrameBorderedTemplate">
  437                                                 <Size x="200" y="100"/>
  438                                                 <Anchors>
  439                                                         <Anchor point="TOP" relativeTo="CharSelectAccountUpgradeButton" relativePoint="BOTTOM" x="0" y="15"/>
  440                                                 </Anchors>
  441                                                 <Layers>
  442                                                         <Layer level="BACKGROUND" textureSubLevel="-1">
  443                                                                 <Texture name="$parentBG" setAllPoints="true">
  444                                                                         <Color r="0.0" g="0.0" b="0.0"/>
  445                                                                 </Texture>
  446                                                         </Layer>
  447                                                         <Layer level="ARTWORK">
  448                                                                 <Texture name="$parentBanner" parentKey="banner" file="Interface\Glues\AccountUpgrade\banners">
  449                                                                         <Size x="198" y="138"/>
  450                                                                         <Anchors>
  451                                                                                 <Anchor point="TOP" relativeTo="$parent" relativePoint="TOP" x="0" y="0"/>
  452                                                                         </Anchors>
  453                                                                 </Texture>
  454                                                         </Layer>
  455                                                         <Layer level="OVERLAY">
  456                                                                 <Texture name="$parentUpgradeLogo" parentKey="logo">
  457                                                                         <Size x="128" y="64"/>
  458                                                                         <Anchors>
  459                                                                                 <Anchor point="CENTER" relativeTo="$parent" relativePoint="BOTTOM" x="0" y="0"/>
  460                                                                         </Anchors>
  461                                                                 </Texture>
  462                                                         </Layer>
  463                                                 </Layers>
  464                                                 <Scripts>
  465                                                         <OnLoad>
  466                                                                 self:SetFrameLevel(CharSelectAccountUpgradeButton:GetFrameLevel() - 1);
  467                                                         </OnLoad>
  468                                                 </Scripts>
  469                                         </Frame>
  470                                         <Frame name="CharSelectAccountUpgradePanel" inherits="UpgradeFrameBorderedTemplate">
  471                                                 <Size x="200" y="250"/>
  472                                                 <Anchors>
  473                                                         <Anchor point="TOP" relativeTo="CharSelectAccountUpgradeButton" relativePoint="BOTTOM" x="0" y="-40"/>
  474                                                 </Anchors>
  475                                                 <Layers>
  476                                                         <Layer level="BACKGROUND" textureSubLevel="-1">
  477                                                                 <Texture name="$parentChains1" file="Interface\Glues\AccountUpgrade\golden-main">
  478                                                                         <Size x="20" y="62"/>
  479                                                                         <Anchors>
  480                                                                                 <Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="18" y="-10"/>
  481                                                                         </Anchors>
  482                                                                         <TexCoords left="0.148" right="0.227" top="0.293" bottom="0.508"/>
  483                                                                 </Texture>
  484                                                                 <Texture name="$parentChains2" file="Interface\Glues\AccountUpgrade\golden-main">
  485                                                                         <Size x="20" y="62"/>
  486                                                                         <Anchors>
  487                                                                                 <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT" x="-18" y="-10"/>
  488                                                                         </Anchors>
  489                                                                         <TexCoords left="0.148" right="0.227" top="0.293" bottom="0.508"/>
  490                                                                 </Texture>
  491                                                                 <Texture name="$parentBG" setAllPoints="true">
  492                                                                         <Color r="0.0" g="0.0" b="0.0" a="0.8"/>
  493                                                                 </Texture>
  494                                                         </Layer>
  495                                                         <Layer level="ARTWORK">
  496                                                                 <Texture name="$parentBanner" parentKey="banner" file="Interface\Glues\AccountUpgrade\banners">
  497                                                                         <Size x="198" y="138"/>
  498                                                                         <Anchors>
  499                                                                                 <Anchor point="TOP" relativeTo="$parent" relativePoint="TOP" x="0" y="0"/>
  500                                                                         </Anchors>
  501                                                                 </Texture>
  502                                                         </Layer>
  503                                                         <Layer level="OVERLAY">
  504                                                                 <Texture name="$parentUpgradeLogo" parentKey="logo">
  505                                                                         <Size x="128" y="64"/>
  506                                                                         <Anchors>
  507                                                                                 <Anchor point="CENTER" relativeTo="$parent" relativePoint="TOP" x="0" y="10"/>
  508                                                                         </Anchors>
  509                                                                 </Texture>
  510                                                         </Layer>
  511                                                 </Layers>
  512                                                 <Frames>
  513                                                         <Frame name="$parentFeature1" inherits="UpgradeFrameFeatureTemplate">
  514                                                                 <Anchors>
  515                                                                         <Anchor point="TOPLEFT" x="-5" y="-90"/>
  516                                                                 </Anchors>
  517                                                         </Frame>
  518                                                 </Frames>
  519                                         </Frame>
 
452                                           <Button name="CharacterSelectUpgradeAccountButton" inherits="GlueButtonTemplate" text="UPGRADE_ACCOUNT" hidden="true">
453                                                   <Size x="320" y="60"/>
454                                                   <Anchors>
455                                                           <Anchor point="TOP" x="0" y="-10"/>
456                                                   </Anchors>
457                                                   <Scripts>
458                                                           <OnClick>
459                                                                   UpgradeAccount();
460                                                           </OnClick>
461                                                           <OnUpdate>
462                                                                   CharacterSelect_DeathKnightSwap(self);
463                                                           </OnUpdate>
464                                                   </Scripts>
465                                           </Button>
 
688                                                                           <Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT" x="-15" y="0"/>
  948                                                                         <Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT" x="9" y="0"/>
   
File: GlueXML\GlueLocalization.lua  
13           AUTH_NO_TIME_URL = "http://www.wow-europe.com/en/account/";
  13         AUTH_NO_TIME_URL = "http://enGB.nydus.battle.net/WOW/enGB/client/manage_account";
   
File: GlueXML\GlueParent.lua  
506           LaunchURL(AUTH_NO_TIME_URL);
  506         LoadURLIndex(2);
   
File: GlueXML\GlueStrings.lua  
119   AUTH_NO_TIME_URL = "http://www.worldofwarcraft.com/account";
  119 AUTH_NO_TIME_URL = "http://enUS.nydus.battle.net/WOW/enUS/client/manage_account";
 
  209 CHAR_DELETE_FAILED_HAS_HEIRLOOM_OR_MAIL = "This character has mail or has an heirloom in their inventory or void storage and cannot be deleted.";
 
  494 GRAPHICS_OPTIONS_UNAVAILABLE = "Some options are unavailable while %1$s is set to %2$s.";
 
833   SCANDLL_MESSAGE_DOWNLOADING = "[TEMPORARY] Downloading Blizzard Scan";
834   SCANDLL_MESSAGE_ERROR = "[TEMPORARY] |cFFFF0000Blizzard Scan failed to complete|r\n\nNEED WORDING";
 
838   SCANDLL_MESSAGE_SCANNING = "[TEMPORARY] Scanning for Trojans";
 
  925 UPGRADE = "Upgrade";
 
  927 UPGRADE_ACCOUNT_EXPANSION = "Upgrade to Next Expansion";
  928 UPGRADE_FEATURE_1 = "Battle to Level 70!";
  929 UPGRADE_FEATURE_2 = "Embark on thousands of additional quests!";
  930 UPGRADE_FEATURE_3 = "Venture beyond the Dark Portal into Outland!";
  931 UPGRADE_FEATURE_4 = "Battle to Level 80!";
  932 UPGRADE_FEATURE_5 = "New Hero Class: Death Knight!";
  933 UPGRADE_FEATURE_6 = "Explore the frozen waste of Northrend!";
  934 UPGRADE_FEATURE_7 = "Battle to Level 85 in 5 new zones!";
  935 UPGRADE_FEATURE_8 = "New Races: Goblin and Worgen!";
  936 UPGRADE_FEATURE_9 = "Use your flying mount in Azeroth!";