Skip to content

Commit

Permalink
Fix luacheck errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Gethe committed Sep 27, 2022
1 parent 3c86a0c commit 57ecab9
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 27 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/package_beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ jobs:
- name: Create Mainline Package
uses: BigWigsMods/packager@v2

tbc:
wrath:
needs: is_beta
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: Create TBC Package
- name: Create Wrath Package
uses: BigWigsMods/packager@v2
with:
args: -g bcc -m .pkgmeta-tbc
args: -g wrath -m .pkgmeta-wrath

vanilla:
needs: is_beta
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function private.AddOns.Blizzard_LookingForGroupUI()

_G.LFGParentFramePortrait:Hide()


----====####$$$$%%%%$$$$####====----
-- LFGListing --
----====####$$$$%%%%$$$$####====----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ if private.shouldSkip() then return end

--[[ Core ]]
local Aurora = private.Aurora
local Base = Aurora.Base
local Hook, Skin = Aurora.Hook, Aurora.Skin
local Color, Util = Aurora.Color, Aurora.Util
local Skin = Aurora.Skin

do --[[ FrameXML\Blizzard_TalentUITemplates.lua ]]
function Skin.TalentButtonTemplate(Button)
Expand All @@ -24,7 +22,7 @@ end

function private.FrameXML.Blizzard_TalentUITemplates()
----====####$$$$%%%%$$$$####====----
-- Blizzard_TalentUITemplates --
-- Blizzard_TalentUITemplates --
----====####$$$$%%%%$$$$####====----

-------------
Expand Down
2 changes: 2 additions & 0 deletions Skin/Classic/Interface/SharedXML/HybridScrollFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ do --[[ SharedXML\HybridScrollFrame.lua ]]
Skin[buttonTemplate](self.buttons[i])
end
self._auroraNumSkinned = numButtons
else
private.debug("Missing template for HybridScrollFrame:", buttonTemplate)
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion Skin/Classic/Interface_Wrath/AddOns/Blizzard_TalentUI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function private.AddOns.Blizzard_TalentUI()

_G.PlayerTalentFrameScrollFrame:ClearAllPoints()
_G.PlayerTalentFrameScrollFrame:SetPoint("TOPLEFT", bg, 5, -45)
_G.PlayerTalentFrameScrollFrame:SetPoint("BOTTOMRIGHT", PlayerTalentFramePointsBar, "TOPRIGHT", -25, 5)
_G.PlayerTalentFrameScrollFrame:SetPoint("BOTTOMRIGHT", _G.PlayerTalentFramePointsBar, "TOPRIGHT", -25, 5)

Skin.UIPanelScrollFrameTemplate(_G.PlayerTalentFrameScrollFrame)
_G.PlayerTalentFrameScrollFrameBackgroundTop:Hide()
Expand Down
4 changes: 2 additions & 2 deletions Skin/Classic/Interface_Wrath/FrameXML/CharacterFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local _, private = ...
if private.shouldSkip() then return end

--[[ Lua Globals ]]
-- luacheck: globals
-- luacheck: globals wipe tinsert

--[[ Core ]]
local Aurora = private.Aurora
Expand All @@ -19,7 +19,7 @@ do --[[ FrameXML\CharacterFrame.lua ]]
end
end

local bg = CharacterFrame:GetBackdropTexture("bg")
local bg = _G.CharacterFrame:GetBackdropTexture("bg")
Util.PositionRelative("TOPLEFT", bg, "BOTTOMLEFT", 20, -1, 1, "Right", CharTabtable)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ function private.FrameXML.InterfaceOptionsPanels()
--------------
-- Features --
--------------
local Features = _G.InterfaceOptionsFeaturesPanel
Skin.InterfaceOptionsCheckButtonTemplate(_G.InterfaceOptionsFeaturesPanelEquipmentManager)
Skin.InterfaceOptionsCheckButtonTemplate(_G.InterfaceOptionsFeaturesPanelPreviewTalentChanges)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function private.FrameXML.MainMenuBarMicroButtons()
SetMicroButton(_G.QuestLogMicroButton, "Quest")
SetMicroButton(_G.SocialsMicroButton, "Socials")
--SetMicroButton(_G.PVPMicroButton, "")
PVPMicroButton.texture:SetPoint("TOP", 3, -30)
_G.PVPMicroButton.texture:SetPoint("TOP", 3, -30)
SetMicroButton(_G.LFGMicroButton, "LFG")
SetMicroButton(_G.MainMenuMicroButton, "MainMenu")
SetMicroButton(_G.HelpMicroButton, [[Interface\Icons\INV_Misc_QuestionMark]])
Expand Down
2 changes: 1 addition & 1 deletion Skin/Classic/Interface_Wrath/FrameXML/QuestFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ do --[[ FrameXML\QuestFrameTemplates.xml ]]
center:Hide()
right:Hide()

local titleBG = _G.CreateFrame("Frame", nil, TitleFrame)
local titleBG = _G.CreateFrame("Frame", nil, Button)
titleBG:SetPoint("TOPLEFT", left, -2, 0)
titleBG:SetPoint("BOTTOMRIGHT", right, 0, -1)
Base.SetBackdrop(titleBG, Color.frame)
Expand Down
41 changes: 28 additions & 13 deletions Skin/Classic/Interface_Wrath/FrameXML/QuestLogFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,27 @@ if private.shouldSkip() then return end
--[[ Core ]]
local Aurora = private.Aurora
local Hook, Skin = Aurora.Hook, Aurora.Skin
local Color = Aurora.Color

do --[[ FrameXML\QuestLogFrame.lua ]]
function Hook.QuestLog_Update(Button)
local numEntries = _G.GetNumQuestLogEntries()
local questIndex, questLogTitle, isHeader, _

local scrollOffset = _G.HybridScrollFrame_GetOffset(_G.QuestLogListScrollFrame)
local buttons = _G.QuestLogListScrollFrame.buttons
for i = 1, _G.QUESTS_DISPLAYED do
questIndex = i + scrollOffset
questLogTitle = buttons[i]
if questIndex <= numEntries then
_, _, _, isHeader = _G.GetQuestLogTitle(questIndex)
if isHeader then
questLogTitle._minus:Show()
questLogTitle:GetHighlightTexture():SetTexture("")
else
questLogTitle._minus:Hide()
questLogTitle._plus:Hide()
end
end
end
end
function Hook.QuestLog_UpdateQuestDetails(doNotScroll)
Expand Down Expand Up @@ -64,16 +77,16 @@ function private.FrameXML.QuestLogFrame()
bottom = 4,
})

local portrait, topLeft, topRight, bottomLeft, bottomRight, topLeftBG, topRightBG, bottomLeftBG, bottomRightBG = QuestLogDetailFrame:GetRegions()
local portrait, topLeft, topRight, botLeft, botRight, topLeftBG, topRightBG, botLeftBG, botRightBG = QuestLogDetailFrame:GetRegions()
portrait:Hide()
topLeft:Hide()
topRight:Hide()
bottomLeft:Hide()
bottomRight:Hide()
botLeft:Hide()
botRight:Hide()
topLeftBG:Hide()
topRightBG:Hide()
bottomLeftBG:Hide()
bottomRightBG:Hide()
botLeftBG:Hide()
botRightBG:Hide()

local bg = QuestLogDetailFrame:GetBackdropTexture("bg")
_G.QuestLogDetailTitle:ClearAllPoints()
Expand All @@ -99,25 +112,26 @@ function private.FrameXML.QuestLogFrame()
bottom = 11,
})

local portrait, paneLeft, paneRight = QuestLogFrame:GetRegions()
local paneLeft, paneRight
portrait, paneLeft, paneRight = QuestLogFrame:GetRegions()
portrait:Hide()
paneLeft:Hide()
paneRight:Hide()

local bg = QuestLogFrame:GetBackdropTexture("bg")
bg = QuestLogFrame:GetBackdropTexture("bg")
_G.QuestLogTitleText:ClearAllPoints()
_G.QuestLogTitleText:SetPoint("TOPLEFT", bg)
_G.QuestLogTitleText:SetPoint("BOTTOMRIGHT", bg, "TOPRIGHT", 0, -private.FRAME_TITLE_HEIGHT)

Skin.UIPanelCloseButton(_G.QuestLogFrameCloseButton)
Skin.UIPanelButtonTemplate(_G.QuestLogFrameCancelButton)

TopLeft, TopRight, BotLeft, BotRight = _G.EmptyQuestLogFrame:GetRegions()
topLeft, topRight, botLeft, botRight = _G.EmptyQuestLogFrame:GetRegions()
portrait:Hide()
TopLeft:Hide()
TopRight:Hide()
BotLeft:Hide()
BotRight:Hide()
topLeft:Hide()
topRight:Hide()
botLeft:Hide()
botRight:Hide()

_G.QuestLogCountTopRight:Hide()
_G.QuestLogCountBottomRight:Hide()
Expand All @@ -132,4 +146,5 @@ function private.FrameXML.QuestLogFrame()
_G.QuestLogSkillHighlight:SetColorTexture(1, 1, 1, 0.5)

Skin.HybridScrollBarTemplate(_G.QuestLogListScrollFrameScrollBar)
Hook.HybridScrollFrame_CreateButtons(_G.QuestLogListScrollFrame, "QuestLogTitleButtonTemplate") -- Called here since the original is called OnLoad
end

0 comments on commit 57ecab9

Please sign in to comment.