Permalink
Browse files

Build 10026

  • Loading branch information...
1 parent 0264b19 commit 891a0d8d70be1edf4349709cb267f3cb88f581fa @tekkub tekkub committed Jun 23, 2009
Showing with 8,844 additions and 3,511 deletions.
  1. +81 −81 AddOns/Blizzard_AchievementUI/Blizzard_AchievementUI.lua
  2. +1 −1 AddOns/Blizzard_AchievementUI/Blizzard_AchievementUI.toc
  3. +31 −31 AddOns/Blizzard_AchievementUI/Blizzard_AchievementUI.xml
  4. +6 −6 AddOns/Blizzard_ArenaUI/Blizzard_ArenaUI.lua
  5. +1 −1 AddOns/Blizzard_ArenaUI/Blizzard_ArenaUI.toc
  6. +5 −5 AddOns/Blizzard_ArenaUI/Blizzard_ArenaUI.xml
  7. +1 −1 AddOns/Blizzard_AuctionUI/Blizzard_AuctionUI.toc
  8. +15 −2 AddOns/Blizzard_BarbershopUI/Blizzard_BarberShopUI.lua
  9. +1 −1 AddOns/Blizzard_BarbershopUI/Blizzard_BarberShopUI.toc
  10. +14 −0 AddOns/Blizzard_BarbershopUI/Blizzard_BarberShopUI.xml
  11. +8 −6 AddOns/Blizzard_BattlefieldMinimap/Blizzard_BattlefieldMinimap.lua
  12. +1 −1 AddOns/Blizzard_BattlefieldMinimap/Blizzard_BattlefieldMinimap.toc
  13. +31 −11 AddOns/Blizzard_BindingUI/Blizzard_BindingUI.lua
  14. +1 −1 AddOns/Blizzard_BindingUI/Blizzard_BindingUI.toc
  15. +33 −26 AddOns/Blizzard_Calendar/Blizzard_Calendar.lua
  16. +1 −1 AddOns/Blizzard_Calendar/Blizzard_Calendar.toc
  17. +17 −10 AddOns/Blizzard_Calendar/Blizzard_Calendar.xml
  18. +27 −21 AddOns/Blizzard_CombatLog/Blizzard_CombatLog.lua
  19. +1 −1 AddOns/Blizzard_CombatLog/Blizzard_CombatLog.toc
  20. +31 −15 AddOns/Blizzard_CombatText/Blizzard_CombatText.lua
  21. +1 −1 AddOns/Blizzard_CombatText/Blizzard_CombatText.toc
  22. +579 −0 AddOns/Blizzard_DebugTools/Blizzard_DebugTools.lua
  23. +12 −0 AddOns/Blizzard_DebugTools/Blizzard_DebugTools.toc
  24. +349 −0 AddOns/Blizzard_DebugTools/Blizzard_DebugTools.xml
  25. +407 −0 AddOns/Blizzard_DebugTools/Dump.lua
  26. +1 −0 AddOns/Blizzard_DebugTools/Localization.lua
  27. +4 −2 AddOns/Blizzard_GMChatUI/Blizzard_GMChatUI.lua
  28. +1 −1 AddOns/Blizzard_GMChatUI/Blizzard_GMChatUI.toc
  29. +1 −1 AddOns/Blizzard_GMSurveyUI/Blizzard_GMSurveyUI.lua
  30. +1 −1 AddOns/Blizzard_GMSurveyUI/Blizzard_GMSurveyUI.toc
  31. +2 −2 AddOns/Blizzard_GMSurveyUI/Blizzard_GMSurveyUI.xml
  32. +3 −5 AddOns/Blizzard_GlyphUI/Blizzard_GlyphUI.lua
  33. +1 −1 AddOns/Blizzard_GlyphUI/Blizzard_GlyphUI.toc
  34. +13 −12 AddOns/Blizzard_GuildBankUI/Blizzard_GuildBankUI.lua
  35. +1 −1 AddOns/Blizzard_GuildBankUI/Blizzard_GuildBankUI.toc
  36. +1 −1 AddOns/Blizzard_GuildBankUI/Blizzard_GuildBankUI.xml
  37. +6 −2 AddOns/Blizzard_InspectUI/Blizzard_InspectUI.lua
  38. +1 −1 AddOns/Blizzard_InspectUI/Blizzard_InspectUI.toc
  39. +34 −34 AddOns/Blizzard_InspectUI/InspectPVPFrame.lua
  40. +4 −4 AddOns/Blizzard_InspectUI/InspectPaperDollFrame.lua
  41. +8 −4 AddOns/Blizzard_ItemSocketingUI/Blizzard_ItemSocketingUI.lua
  42. +1 −1 AddOns/Blizzard_ItemSocketingUI/Blizzard_ItemSocketingUI.toc
  43. +18 −13 AddOns/Blizzard_ItemSocketingUI/Blizzard_ItemSocketingUI.xml
  44. +1 −1 AddOns/Blizzard_MacroUI/Blizzard_MacroUI.toc
  45. +17 −3 AddOns/Blizzard_MacroUI/Blizzard_MacroUI.xml
  46. +1 −1 AddOns/Blizzard_RaidUI/Blizzard_RaidUI.toc
  47. +3 −0 AddOns/Blizzard_TalentUI/Blizzard_TalentUI.lua
  48. +1 −1 AddOns/Blizzard_TalentUI/Blizzard_TalentUI.toc
  49. +51 −40 AddOns/Blizzard_TalentUI/Blizzard_TalentUI.xml
  50. +1 −1 AddOns/Blizzard_TimeManager/Blizzard_TimeManager.toc
  51. +13 −13 AddOns/Blizzard_TokenUI/Blizzard_TokenUI.lua
  52. +1 −1 AddOns/Blizzard_TokenUI/Blizzard_TokenUI.toc
  53. +4 −4 AddOns/Blizzard_TokenUI/Blizzard_TokenUI.xml
  54. +8 −8 AddOns/Blizzard_TradeSkillUI/Blizzard_TradeSkillUI.lua
  55. +1 −1 AddOns/Blizzard_TradeSkillUI/Blizzard_TradeSkillUI.toc
  56. +1 −1 AddOns/Blizzard_TradeSkillUI/Blizzard_TradeSkillUI.xml
  57. +6 −6 AddOns/Blizzard_TrainerUI/Blizzard_TrainerUI.lua
  58. +1 −1 AddOns/Blizzard_TrainerUI/Blizzard_TrainerUI.toc
  59. +21 −14 FrameXML/ActionButton.lua
  60. +7 −7 FrameXML/AlertFrames.lua
  61. +3 −3 FrameXML/AlertFrames.xml
  62. +69 −0 FrameXML/AlternatePowerBar.lua
  63. +92 −0 FrameXML/AlternatePowerBar.xml
  64. +2 −2 FrameXML/ArenaFrame.lua
  65. +1 −1 FrameXML/ArenaFrame.xml
  66. +1 −1 FrameXML/ArenaRegistrarFrame.lua
  67. +247 −0 FrameXML/AutoComplete.lua
  68. +83 −0 FrameXML/AutoComplete.xml
  69. +11 −11 FrameXML/BankFrame.lua
  70. +19 −82 FrameXML/BasicControls.xml
  71. +47 −29 FrameXML/BattlefieldFrame.lua
  72. +1 −1 FrameXML/BattlefieldFrame.xml
  73. +114 −1 FrameXML/Bindings.xml
  74. +7 −28 FrameXML/BonusActionBarFrame.lua
  75. +3 −3 FrameXML/BonusActionBarFrame.xml
  76. +1 −1 FrameXML/BuffFrame.xml
  77. +35 −11 FrameXML/CastingBarFrame.lua
  78. +18 −6 FrameXML/CastingBarFrame.xml
  79. +41 −41 FrameXML/ChannelFrame.lua
  80. +8 −8 FrameXML/ChannelFrame.xml
  81. +17 −3 FrameXML/CharacterFrame.lua
  82. +51 −51 FrameXML/ChatConfigFrame.lua
  83. +24 −24 FrameXML/ChatConfigFrame.xml
  84. +136 −37 FrameXML/ChatFrame.lua
  85. +1 −1 FrameXML/ChatFrame.xml
  86. +2 −2 FrameXML/ClassTrainerFrameTemplates.xml
  87. +1 −1 FrameXML/ColorPickerFrame.xml
  88. +3 −3 FrameXML/ComboFrame.lua
  89. +71 −11 FrameXML/Constants.lua
  90. +47 −47 FrameXML/ContainerFrame.lua
  91. +3 −3 FrameXML/DurabilityFrame.lua
  92. +7 −2 FrameXML/FloatingChatFrame.lua
  93. +6 −6 FrameXML/FocusFrame.lua
  94. +2 −2 FrameXML/FocusFrame.xml
  95. +3 −1 FrameXML/FontStyles.xml
  96. +4 −1 FrameXML/FrameXML.toc
  97. +66 −66 FrameXML/FriendsFrame.lua
  98. +5 −5 FrameXML/FriendsFrame.xml
  99. +73 −44 FrameXML/GameTooltip.lua
  100. +9 −6 FrameXML/GameTooltip.xml
  101. +1 −1 FrameXML/GameTooltipTemplate.xml
  102. +193 −13 FrameXML/GlobalStrings.lua
  103. +9 −9 FrameXML/GossipFrame.lua
  104. +199 −134 FrameXML/HelpFrame.lua
  105. +49 −103 FrameXML/HelpFrame.xml
  106. +21 −3 FrameXML/HybridScrollFrame.lua
  107. +1 −1 FrameXML/HybridScrollFrame.xml
  108. +15 −15 FrameXML/ItemButtonTemplate.lua
  109. +3 −1 FrameXML/ItemButtonTemplate.xml
  110. +7 −7 FrameXML/ItemRef.lua
  111. +40 −0 FrameXML/ItemRef.xml
  112. +10 −10 FrameXML/KnowledgeBaseFrame.lua
  113. +20 −13 FrameXML/LFGFrame.lua
  114. +2 −3 FrameXML/LFGFrame.xml
  115. +22 −16 FrameXML/LootFrame.lua
  116. +12 −1 FrameXML/LootFrame.xml
  117. +18 −18 FrameXML/MacOptionsFrame.lua
  118. +2 −2 FrameXML/MacOptionsFrame.xml
  119. +34 −29 FrameXML/MailFrame.lua
  120. +36 −15 FrameXML/MailFrame.xml
  121. +2 −2 FrameXML/MainMenuBarBagButtons.lua
  122. +4 −2 FrameXML/MainMenuBarBagButtons.xml
  123. +1 −1 FrameXML/MainMenuBarMicroButtons.lua
  124. +4 −8 FrameXML/MainMenuBarMicroButtons.xml
  125. +18 −18 FrameXML/MerchantFrame.lua
  126. +2 −2 FrameXML/MinigameFrame.lua
  127. +8 −10 FrameXML/Minimap.lua
  128. +15 −1 FrameXML/Minimap.xml
  129. +5 −5 FrameXML/MirrorTimer.lua
  130. +26 −26 FrameXML/MoneyFrame.lua
  131. +18 −18 FrameXML/MoneyInputFrame.lua
  132. +6 −6 FrameXML/MoneyInputFrame.xml
  133. +1 −1 FrameXML/MovieFrame.lua
  134. +12 −13 FrameXML/MultiActionBars.lua
  135. +1,044 −0 FrameXML/MultiCastActionBarFrame.lua
  136. +491 −0 FrameXML/MultiCastActionBarFrame.xml
  137. +5 −6 FrameXML/OptionsPanelTemplates.lua
  138. +41 −14 FrameXML/PVPBattlegroundFrame.lua
  139. +51 −1 FrameXML/PVPBattlegroundFrame.xml
  140. +89 −55 FrameXML/PVPFrame.lua
  141. +256 −121 FrameXML/PaperDollFrame.lua
  142. +37 −2 FrameXML/PaperDollFrame.xml
  143. +11 −11 FrameXML/PartyFrameTemplates.xml
  144. +40 −40 FrameXML/PartyMemberFrame.lua
  145. +20 −31 FrameXML/PetActionBarFrame.lua
  146. +4 −3 FrameXML/PetFrame.lua
  147. +13 −13 FrameXML/PetPaperDollFrame.lua
  148. +3 −3 FrameXML/PetPaperDollFrame.xml
  149. +13 −12 FrameXML/PetStable.lua
  150. +2 −2 FrameXML/PetitionFrame.lua
  151. +1 −1 FrameXML/PlayerFrame.lua
  152. +53 −48 FrameXML/QuestFrame.lua
  153. +1 −1 FrameXML/QuestFrameTemplates.xml
  154. +686 −391 FrameXML/QuestLogFrame.lua
  155. +677 −523 FrameXML/QuestLogFrame.xml
  156. +3 −3 FrameXML/QuestTimerFrame.lua
  157. +10 −8 FrameXML/RaidFrame.lua
  158. +5 −5 FrameXML/RaidFrame.xml
  159. +1 −1 FrameXML/RaidWarning.lua
  160. +4 −4 FrameXML/ReadyCheck.lua
  161. +24 −24 FrameXML/ReputationFrame.lua
  162. +20 −20 FrameXML/ReputationFrame.xml
  163. +4 −4 FrameXML/RuneFrame.lua
  164. +47 −32 FrameXML/SecureTemplates.lua
  165. +20 −20 FrameXML/SkillFrame.lua
  166. +1 −1 FrameXML/SkillFrame.xml
  167. +144 −60 FrameXML/StaticPopup.lua
  168. +9 −9 FrameXML/StaticPopup.xml
  169. +0 −7 FrameXML/TalentFrameTemplates.xml
  170. +10 −2 FrameXML/TargetFrame.lua
  171. +5 −5 FrameXML/TaxiFrame.lua
  172. +3 −1 FrameXML/TextStatusBar.lua
  173. +1 −1 FrameXML/TicTacToeFrame.lua
  174. +0 −14 FrameXML/TotemFrame.lua
  175. +6 −6 FrameXML/TradeFrame.lua
  176. +7 −7 FrameXML/TutorialFrame.lua
  177. +1 −0 FrameXML/UI.xsd
  178. +61 −61 FrameXML/UIDropDownMenu.lua
  179. +1 −1 FrameXML/UIDropDownMenu.xml
  180. +8 −8 FrameXML/UIDropDownMenuTemplates.xml
  181. +12 −12 FrameXML/UIMenu.lua
  182. +1 −1 FrameXML/UIOptionsFrame.lua
  183. +12 −6 FrameXML/UIOptionsPanels.lua
  184. +130 −23 FrameXML/UIOptionsPanels.xml
  185. +60 −56 FrameXML/UIPanelTemplates.lua
  186. +13 −13 FrameXML/UIPanelTemplates.xml
  187. +141 −95 FrameXML/UIParent.lua
  188. +2 −2 FrameXML/UnitFrame.lua
  189. +42 −18 FrameXML/UnitPopup.lua
  190. +64 −11 FrameXML/VehicleMenuBar.lua
  191. +1 −1 FrameXML/VehicleMenuBar.xml
  192. +1 −0 FrameXML/VideoOptionsPanels.xml
  193. +2 −2 FrameXML/VoiceChat.lua
  194. +2 −2 FrameXML/VoiceChat.xml
  195. +139 −118 FrameXML/WatchFrame.lua
  196. +1 −1 FrameXML/WatchFrame.xml
  197. +2 −2 FrameXML/WorldFrame.lua
  198. +1 −0 FrameXML/WorldFrame.xml
  199. +136 −18 FrameXML/WorldMapFrame.lua
  200. +1 −1 FrameXML/WorldMapFrame.xml
  201. +24 −0 FrameXML/WorldMapFrameTemplates.xml
  202. +79 −82 FrameXML/WorldStateFrame.lua
  203. +1 −1 FrameXML/WorldStateFrame.xml
@@ -120,7 +120,7 @@ function AchievementFrame_ForceUpdate ()
end
function AchievementFrameBaseTab_OnClick (id)
- PanelTemplates_Tab_OnClick(getglobal("AchievementFrameTab"..id), AchievementFrame);
+ PanelTemplates_Tab_OnClick(_G["AchievementFrameTab"..id], AchievementFrame);
local isSummary = false
if ( id == 1 ) then
@@ -168,7 +168,7 @@ function AchievementFrameComparisonTab_OnClick (id)
AchievementFrameCategories_GetCategoryList(ACHIEVEMENTUI_CATEGORIES);
AchievementFrameCategories_Update();
- PanelTemplates_Tab_OnClick(getglobal("AchievementFrameTab"..id), AchievementFrame);
+ PanelTemplates_Tab_OnClick(_G["AchievementFrameTab"..id], AchievementFrame);
achievementFunctions.updateFunc();
end
@@ -185,7 +185,7 @@ ACHIEVEMENTFRAME_SUBFRAMES = {
function AchievementFrame_ShowSubFrame(...)
local subFrame, show;
for _, name in next, ACHIEVEMENTFRAME_SUBFRAMES do
- subFrame = getglobal(name);
+ subFrame = _G[name];
show = false;
for i=1, select("#", ...) do
if ( subFrame == select(i, ...)) then
@@ -582,8 +582,8 @@ function AchievementCategoryButton_OnLoad (button)
local buttonName = button:GetName();
- button.label = getglobal(buttonName .. "Label");
- button.background = getglobal(buttonName.."Background");
+ button.label = _G[buttonName .. "Label"];
+ button.background = _G[buttonName.."Background"];
end
function AchievementCategoryButton_OnClick (button)
@@ -765,9 +765,9 @@ end
function AchievementIcon_OnLoad (self)
local name = self:GetName();
- self.bling = getglobal(name .. "Bling");
- self.texture = getglobal(name .. "Texture");
- self.frame = getglobal(name .. "Overlay");
+ self.bling = _G[name .. "Bling"];
+ self.texture = _G[name .. "Texture"];
+ self.frame = _G[name .. "Overlay"];
self.Desaturate = AchievementIcon_Desaturate;
self.Saturate = AchievementIcon_Saturate;
@@ -785,8 +785,8 @@ end
function AchievementShield_OnLoad (self)
local name = self:GetName();
- self.icon = getglobal(name .. "Icon");
- self.points = getglobal(name .. "Points");
+ self.icon = _G[name .. "Icon"];
+ self.points = _G[name .. "Points"];
self.Desaturate = AchievementShield_Desaturate;
self.Saturate = AchievementShield_Saturate;
@@ -837,8 +837,8 @@ function AchievementButton_Collapse (self)
self.collapsed = true;
AchievementButton_UpdatePlusMinusTexture(self);
self:SetHeight(ACHIEVEMENTBUTTON_COLLAPSEDHEIGHT);
- getglobal(self:GetName() .. "Background"):SetTexCoord(0, 1, 1-(ACHIEVEMENTBUTTON_COLLAPSEDHEIGHT / 256), 1);
- getglobal(self:GetName() .. "Glow"):SetTexCoord(0, 1, 0, ACHIEVEMENTBUTTON_COLLAPSEDHEIGHT / 128);
+ _G[self:GetName() .. "Background"]:SetTexCoord(0, 1, 1-(ACHIEVEMENTBUTTON_COLLAPSEDHEIGHT / 256), 1);
+ _G[self:GetName() .. "Glow"]:SetTexCoord(0, 1, 0, ACHIEVEMENTBUTTON_COLLAPSEDHEIGHT / 128);
if ( not self.tracked:GetChecked() ) then
self.tracked:Hide();
@@ -853,16 +853,16 @@ function AchievementButton_Expand (self, height)
self.collapsed = nil;
AchievementButton_UpdatePlusMinusTexture(self);
self:SetHeight(height);
- getglobal(self:GetName() .. "Background"):SetTexCoord(0, 1, max(0, 1-(height / 256)), 1);
- getglobal(self:GetName() .. "Glow"):SetTexCoord(0, 1, 0, (height+5) / 128);
+ _G[self:GetName() .. "Background"]:SetTexCoord(0, 1, max(0, 1-(height / 256)), 1);
+ _G[self:GetName() .. "Glow"]:SetTexCoord(0, 1, 0, (height+5) / 128);
end
function AchievementButton_Saturate (self)
local name = self:GetName();
self.saturated = true;
- getglobal(name .. "TitleBackground"):SetTexCoord(0, 0.9765625, 0, 0.3125);
- getglobal(name .. "Background"):SetTexture("Interface\\AchievementFrame\\UI-Achievement-Parchment-Horizontal");
- getglobal(name .. "Glow"):SetVertexColor(1.0, 1.0, 1.0);
+ _G[name .. "TitleBackground"]:SetTexCoord(0, 0.9765625, 0, 0.3125);
+ _G[name .. "Background"]:SetTexture("Interface\\AchievementFrame\\UI-Achievement-Parchment-Horizontal");
+ _G[name .. "Glow"]:SetVertexColor(1.0, 1.0, 1.0);
self.icon:Saturate();
self.shield:Saturate();
self.shield.points:SetVertexColor(1, 1, 1);
@@ -877,9 +877,9 @@ end
function AchievementButton_Desaturate (self)
local name = self:GetName();
self.saturated = nil;
- getglobal(name .. "TitleBackground"):SetTexCoord(0, 0.9765625, 0.34375, 0.65625);
- getglobal(name .. "Background"):SetTexture("Interface\\AchievementFrame\\UI-Achievement-Parchment-Horizontal-Desaturated");
- getglobal(name .. "Glow"):SetVertexColor(.22, .17, .13);
+ _G[name .. "TitleBackground"]:SetTexCoord(0, 0.9765625, 0.34375, 0.65625);
+ _G[name .. "Background"]:SetTexture("Interface\\AchievementFrame\\UI-Achievement-Parchment-Horizontal-Desaturated");
+ _G[name .. "Glow"]:SetVertexColor(.22, .17, .13);
self.icon:Desaturate();
self.shield:Desaturate();
self.shield.points:SetVertexColor(.65, .65, .65);
@@ -894,19 +894,19 @@ end
function AchievementButton_OnLoad (self)
local name = self:GetName();
- self.label = getglobal(name .. "Label");
- self.description = getglobal(name .. "Description");
- self.hiddenDescription = getglobal(name .. "HiddenDescription");
- self.reward = getglobal(name .. "Reward");
- self.rewardBackground = getglobal(name.."RewardBackground");
- self.icon = getglobal(name .. "Icon");
- self.shield = getglobal(name .. "Shield");
- self.objectives = getglobal(name .. "Objectives");
- self.highlight = getglobal(name .. "Highlight");
- self.dateCompleted = getglobal(name .. "DateCompleted")
- self.tracked = getglobal(name .. "Tracked");
- self.check = getglobal(name .. "Check");
- self.plusMinus = getglobal(name .. "PlusMinus");
+ self.label = _G[name .. "Label"];
+ self.description = _G[name .. "Description"];
+ self.hiddenDescription = _G[name .. "HiddenDescription"];
+ self.reward = _G[name .. "Reward"];
+ self.rewardBackground = _G[name.."RewardBackground"];
+ self.icon = _G[name .. "Icon"];
+ self.shield = _G[name .. "Shield"];
+ self.objectives = _G[name .. "Objectives"];
+ self.highlight = _G[name .. "Highlight"];
+ self.dateCompleted = _G[name .. "DateCompleted"]
+ self.tracked = _G[name .. "Tracked"];
+ self.check = _G[name .. "Check"];
+ self.plusMinus = _G[name .. "PlusMinus"];
self.dateCompleted:ClearAllPoints();
self.dateCompleted:SetPoint("TOP", self.shield, "BOTTOM", -3, 6);
@@ -1297,7 +1297,7 @@ function AchievementObjectives_DisplayProgressiveAchievement (objectivesFrame, i
miniAchievement:Show();
miniAchievement:SetParent(objectivesFrame);
- getglobal(miniAchievement:GetName() .. "Icon"):SetTexture(iconpath);
+ _G[miniAchievement:GetName() .. "Icon"]:SetTexture(iconpath);
if ( index == 1 ) then
miniAchievement:SetPoint("TOPLEFT", objectivesFrame, "TOPLEFT", -4, -4);
elseif ( index == 7 ) then
@@ -1753,13 +1753,13 @@ end
function AchievementStatButton_OnLoad(self, parentFrame)
local name = self:GetName();
- self.background = getglobal(name.."BG");
- self.left = getglobal(name.."HeaderLeft");
- self.middle = getglobal(name.."HeaderMiddle");
- self.right = getglobal(name.."HeaderRight");
- self.text = getglobal(name.."Text");
- self.title = getglobal(name.."Title");
- self.value = getglobal(name.."Value");
+ self.background = _G[name.."BG"];
+ self.left = _G[name.."HeaderLeft"];
+ self.middle = _G[name.."HeaderMiddle"];
+ self.right = _G[name.."HeaderRight"];
+ self.text = _G[name.."Text"];
+ self.title = _G[name.."Title"];
+ self.value = _G[name.."Value"];
self.value:SetVertexColor(1, 0.97, 0.6);
parentFrame.buttons = parentFrame.buttons or {};
tinsert(parentFrame.buttons, self);
@@ -1812,7 +1812,7 @@ function AchievementFrameSummary_UpdateAchievements(...)
button:SetPoint("TOPLEFT",AchievementFrameSummaryAchievementsHeader, "BOTTOMLEFT", 18, 2 );
button:SetPoint("TOPRIGHT",AchievementFrameSummaryAchievementsHeader, "BOTTOMRIGHT", -18, 2 );
else
- anchorTo = getglobal("AchievementFrameSummaryAchievement"..i-1);
+ anchorTo = _G["AchievementFrameSummaryAchievement"..i-1];
button:SetPoint("TOPLEFT",anchorTo, "BOTTOMLEFT", 0, 3 );
button:SetPoint("TOPRIGHT",anchorTo, "BOTTOMRIGHT", 0, 3 );
end
@@ -1898,7 +1898,7 @@ end
function AchievementFrameSummaryAchievement_OnLoad(self)
AchievementComparisonPlayerButton_OnLoad(self);
- self.highlight = getglobal(self:GetName().."Highlight");
+ self.highlight = _G[self:GetName().."Highlight"];
AchievementFrameSummaryAchievements.buttons = AchievementFrameSummaryAchievements.buttons or {};
tinsert(AchievementFrameSummaryAchievements.buttons, self);
self:Saturate();
@@ -1948,10 +1948,10 @@ function AchievementFrameSummaryCategory_OnLoad (self)
self:SetMinMaxValues(0, 100);
self:SetValue(0);
local name = self:GetName();
- self.text = getglobal(name .. "Text");
+ self.text = _G[name .. "Text"];
local categoryName = GetCategoryInfo(self:GetID());
- getglobal(name .. "Label"):SetText(categoryName);
+ _G[name .. "Label"]:SetText(categoryName);
end
function AchievementFrame_GetCategoryTotalNumAchievements (id, showAll)
@@ -2376,7 +2376,7 @@ function AchievementFrameComparison_DisplayAchievement (button, category, index)
local player = button.player;
local friend = button.friend;
- local friendCompleted, friendMonth, friendDay, friendYear = GetAchievementComparisonInfo(id, 1);
+ local friendCompleted, friendMonth, friendDay, friendYear = GetAchievementComparisonInfo(id);
player.label:SetText(name);
player.description:SetText(description);
@@ -2494,20 +2494,20 @@ end
function AchievementFrameComparisonStat_OnLoad (self)
local name = self:GetName();
- self.background = getglobal(name.."BG");
- self.left = getglobal(name.."HeaderLeft");
- self.middle = getglobal(name.."HeaderMiddle");
- self.right = getglobal(name.."HeaderRight");
- self.left2 = getglobal(name.."HeaderLeft2");
- self.middle2 = getglobal(name.."HeaderMiddle2");
- self.right2 = getglobal(name.."HeaderRight2");
- self.text = getglobal(name.."Text");
- self.title = getglobal(name.."Title");
- self.value = getglobal(name.."Value");
+ self.background = _G[name.."BG"];
+ self.left = _G[name.."HeaderLeft"];
+ self.middle = _G[name.."HeaderMiddle"];
+ self.right = _G[name.."HeaderRight"];
+ self.left2 = _G[name.."HeaderLeft2"];
+ self.middle2 = _G[name.."HeaderMiddle2"];
+ self.right2 = _G[name.."HeaderRight2"];
+ self.text = _G[name.."Text"];
+ self.title = _G[name.."Title"];
+ self.value = _G[name.."Value"];
self.value:SetVertexColor(1, 0.97, 0.6);
- self.friendValue = getglobal(name.."ComparisonValue");
+ self.friendValue = _G[name.."ComparisonValue"];
self.friendValue:SetVertexColor(1, 0.97, 0.6);
- self.mouseover = getglobal(name.. "Mouseover");
+ self.mouseover = _G[name.. "Mouseover"];
end
function AchievementFrameComparisonStats_SetStat (button, category, index, colorIndex, isSummary)
@@ -2619,9 +2619,9 @@ end
function AchievementComparisonPlayerButton_Saturate (self)
local name = self:GetName();
- getglobal(name .. "TitleBackground"):SetTexCoord(0, 0.9765625, 0, 0.3125);
- getglobal(name .. "Background"):SetTexture("Interface\\AchievementFrame\\UI-Achievement-Parchment-Horizontal");
- getglobal(name .. "Glow"):SetVertexColor(1.0, 1.0, 1.0);
+ _G[name .. "TitleBackground"]:SetTexCoord(0, 0.9765625, 0, 0.3125);
+ _G[name .. "Background"]:SetTexture("Interface\\AchievementFrame\\UI-Achievement-Parchment-Horizontal");
+ _G[name .. "Glow"]:SetVertexColor(1.0, 1.0, 1.0);
self.icon:Saturate();
self.shield:Saturate();
self.shield.points:SetVertexColor(1, 1, 1);
@@ -2633,9 +2633,9 @@ end
function AchievementComparisonPlayerButton_Desaturate (self)
local name = self:GetName();
- getglobal(name .. "TitleBackground"):SetTexCoord(0, 0.9765625, 0.34375, 0.65625);
- getglobal(name .. "Background"):SetTexture("Interface\\AchievementFrame\\UI-Achievement-Parchment-Horizontal-Desaturated");
- getglobal(name .. "Glow"):SetVertexColor(.22, .17, .13);
+ _G[name .. "TitleBackground"]:SetTexCoord(0, 0.9765625, 0.34375, 0.65625);
+ _G[name .. "Background"]:SetTexture("Interface\\AchievementFrame\\UI-Achievement-Parchment-Horizontal-Desaturated");
+ _G[name .. "Glow"]:SetVertexColor(.22, .17, .13);
self.icon:Desaturate();
self.shield:Desaturate();
self.shield.points:SetVertexColor(.65, .65, .65);
@@ -2648,12 +2648,12 @@ end
function AchievementComparisonPlayerButton_OnLoad (self)
local name = self:GetName();
- self.label = getglobal(name .. "Label");
- self.description = getglobal(name .. "Description");
- self.icon = getglobal(name .. "Icon");
- self.shield = getglobal(name .. "Shield");
- self.dateCompleted = getglobal(name .. "DateCompleted");
- self.titleBar = getglobal(name .. "TitleBackground");
+ self.label = _G[name .. "Label"];
+ self.description = _G[name .. "Description"];
+ self.icon = _G[name .. "Icon"];
+ self.shield = _G[name .. "Shield"];
+ self.dateCompleted = _G[name .. "DateCompleted"];
+ self.titleBar = _G[name .. "TitleBackground"];
self:SetBackdropBorderColor(ACHIEVEMENTUI_REDBORDER_R, ACHIEVEMENTUI_REDBORDER_G, ACHIEVEMENTUI_REDBORDER_B, ACHIEVEMENTUI_REDBORDER_A);
self.Saturate = AchievementComparisonPlayerButton_Saturate;
@@ -2667,9 +2667,9 @@ end
function AchievementComparisonFriendButton_Saturate (self)
local name = self:GetName();
- getglobal(name .. "TitleBackground"):SetTexCoord(0.3, 0.575, 0, 0.3125);
- getglobal(name .. "Background"):SetTexture("Interface\\AchievementFrame\\UI-Achievement-Parchment-Horizontal");
- getglobal(name .. "Glow"):SetVertexColor(1.0, 1.0, 1.0);
+ _G[name .. "TitleBackground"]:SetTexCoord(0.3, 0.575, 0, 0.3125);
+ _G[name .. "Background"]:SetTexture("Interface\\AchievementFrame\\UI-Achievement-Parchment-Horizontal");
+ _G[name .. "Glow"]:SetVertexColor(1.0, 1.0, 1.0);
self.icon:Saturate();
self.shield:Saturate();
self.shield.points:SetVertexColor(1, 1, 1);
@@ -2679,9 +2679,9 @@ end
function AchievementComparisonFriendButton_Desaturate (self)
local name = self:GetName();
- getglobal(name .. "TitleBackground"):SetTexCoord(0.3, 0.575, 0.34375, 0.65625);
- getglobal(name .. "Background"):SetTexture("Interface\\AchievementFrame\\UI-Achievement-Parchment-Horizontal-Desaturated");
- getglobal(name .. "Glow"):SetVertexColor(.22, .17, .13);
+ _G[name .. "TitleBackground"]:SetTexCoord(0.3, 0.575, 0.34375, 0.65625);
+ _G[name .. "Background"]:SetTexture("Interface\\AchievementFrame\\UI-Achievement-Parchment-Horizontal-Desaturated");
+ _G[name .. "Glow"]:SetVertexColor(.22, .17, .13);
self.icon:Desaturate();
self.shield:Desaturate();
self.shield.points:SetVertexColor(.65, .65, .65);
@@ -2692,9 +2692,9 @@ end
function AchievementComparisonFriendButton_OnLoad (self)
local name = self:GetName();
- self.status = getglobal(name .. "Status");
- self.icon = getglobal(name .. "Icon");
- self.shield = getglobal(name .. "Shield");
+ self.status = _G[name .. "Status"];
+ self.icon = _G[name .. "Icon"];
+ self.shield = _G[name .. "Shield"];
self:SetBackdropBorderColor(ACHIEVEMENTUI_REDBORDER_R, ACHIEVEMENTUI_REDBORDER_G, ACHIEVEMENTUI_REDBORDER_B, ACHIEVEMENTUI_REDBORDER_A);
self.Saturate = AchievementComparisonFriendButton_Saturate;
@@ -2785,14 +2785,14 @@ ACHIEVEMENT_TEXTURES_TO_LOAD = {
function AchievementFrame_ClearTextures()
for k, v in pairs(ACHIEVEMENT_TEXTURES_TO_LOAD) do
- getglobal(v.name):SetTexture(nil);
+ _G[v.name]:SetTexture(nil);
end
end
function AchievementFrame_LoadTextures()
for k, v in pairs(ACHIEVEMENT_TEXTURES_TO_LOAD) do
if ( v.file ) then
- getglobal(v.name):SetTexture(v.file);
+ _G[v.name]:SetTexture(v.file);
end
end
end
@@ -1,4 +1,4 @@
-## Interface: 30100
+## Interface: 30200
## Title: Blizzard_AchievementUI
## Notes: Hooray for Achievements! Everybody loves Achievements =D
## Secure: 1
Oops, something went wrong.

0 comments on commit 891a0d8

Please sign in to comment.