Skip to content

Commit

Permalink
10.2.6.1 - [retail] Fixed some missing _G references and cleared out …
Browse files Browse the repository at this point in the history
…luacheck warnings
  • Loading branch information
arnvid committed Apr 20, 2024
1 parent d59bd4d commit 49ce72e
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Skin/Interface/AddOns/Blizzard_PlayerChoice.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function private.AddOns.Blizzard_PlayerChoice()
----====####$$$$%%%%%$$$$####====----
-- Blizzard_PlayerChoice --
----====####$$$$%%%%%$$$$####====----
local PlayerChoiceFrame = _G.PlayerChoiceFrame
-- local PlayerChoiceFrame = _G.PlayerChoiceFrame
-- Util.Mixin(PlayerChoiceFrame, Hook.PlayerChoiceFrameMixin)
-- Skin.NineSlicePanelTemplate(PlayerChoiceFrame.NineSlice)
-- PlayerChoiceFrame.BlackBackground:SetAllPoints(PlayerChoiceFrame.NineSlice)
Expand Down
1 change: 0 additions & 1 deletion Skin/Interface/FrameXML/ColorPickerFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ function private.FrameXML.ColorPickerFrame()
-- ----------------------
-- OpacitySliderFrame has been removed
-- ----------------------

-- Skin.OpacitySlider(_G.OpacitySliderFrame)

-- ------------------
Expand Down
10 changes: 5 additions & 5 deletions Skin/Interface/FrameXML/LFGFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ local Hook, Skin = Aurora.Hook, Aurora.Skin
local Color, Util = Aurora.Color, Aurora.Util

local LFGRoleEnumToString = {
[Enum.LFGRole.Tank] = "TANK",
[Enum.LFGRole.Healer] = "HEALER",
[Enum.LFGRole.Damage] = "DAMAGER",
[Constants.LFG_ROLEConstants.LFG_ROLE_NO_ROLE] = "GUIDE"
[_G.Enum.LFGRole.Tank] = "TANK",
[_G.Enum.LFGRole.Healer] = "HEALER",
[_G.Enum.LFGRole.Damage] = "DAMAGER",
[_G.Constants.LFG_ROLEConstants.LFG_ROLE_NO_ROLE] = "GUIDE"
}

do
Expand All @@ -41,7 +41,7 @@ do

--When the group doesn't require a role (like scenarios and legacy raids), we get "NONE" as the role
if role == "NONE" then
role = Enum.LFGRole.Damage
role = _G.Enum.LFGRole.Damage
end

if not hasResponded then
Expand Down
2 changes: 1 addition & 1 deletion Skin/Interface/FrameXML/LFGList.lua
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ do --[[ FrameXML\LFGList.lua ]]
local searchResultInfo = _G.C_LFGList.GetSearchResultInfo(resultID)
local activityInfo = _G.C_LFGList.GetActivityInfoTable(searchResultInfo.activityID)
if activityInfo.displayType ~= _G.Enum.LFGListDisplayType.ClassEnumerate then return end
if searchResultInfo.isDelisted or not tooltip:IsShown() then
if searchResultInfo.isDelisted or not tooltip:IsShown() then
-- _G.print("LFGListUtil_SetSearchEntryTooltip is isDelisted or not shown.")
return
end
Expand Down
1 change: 0 additions & 1 deletion Skin/Interface/FrameXML/ReadyCheck.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ function private.FrameXML.ReadyCheck()
_G.ReadyCheckFrameYesButton:SetPoint("TOPRIGHT", -184, -55)
Skin.UIPanelButtonTemplate(_G.ReadyCheckFrameNoButton)
_G.ReadyCheckFrameNoButton:SetPoint("TOPLEFT", 184, -55)

end
8 changes: 4 additions & 4 deletions Skin/Interface/FrameXML/RolePoll.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ end
function private.FrameXML.RolePoll()
Skin.DialogBorderTemplate(_G.RolePollPopup.Border)
Skin.UIPanelCloseButton(_G.RolePollPopupCloseButton)
Skin.LFGRoleButtonTemplate(RolePollPopupRoleButtonTank)
Skin.LFGRoleButtonTemplate(RolePollPopupRoleButtonHealer)
Skin.LFGRoleButtonTemplate(RolePollPopupRoleButtonDPS)
Skin.UIPanelButtonTemplate(RolePollPopupAcceptButton)
Skin.LFGRoleButtonTemplate(_G.RolePollPopupRoleButtonTank)
Skin.LFGRoleButtonTemplate(_G.RolePollPopupRoleButtonHealer)
Skin.LFGRoleButtonTemplate(_G.RolePollPopupRoleButtonDPS)
Skin.UIPanelButtonTemplate(_G.RolePollPopupAcceptButton)
end
3 changes: 2 additions & 1 deletion Skin/Interface/SharedXML/AddonList.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ if private.shouldSkip() then return end
--[[ Core ]]
local Aurora = private.Aurora
local Hook, Skin = Aurora.Hook, Aurora.Skin
local Color, Util = Aurora.Color, Aurora.Util
local Util = Aurora.Util
-- local Color = Aurora.Color

do --[[ SharedXML\AddonList.lua ]]
function Hook.AddonListCharacterDropDownButton_OnClick(self)
Expand Down

0 comments on commit 49ce72e

Please sign in to comment.