Skip to content

Commit

Permalink
WIP - fix addon loading lua error template
Browse files Browse the repository at this point in the history
  • Loading branch information
Neogeekmo committed Jun 12, 2024
1 parent 7187a31 commit a2413c0
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion APR-Core/Buff.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ local BuffFrame_body = CreateFrame("Frame", "BuffFrame_body", BuffFrame, "Backdr
BuffFrame_body:SetAllPoints()

-- Create the frame header
local BuffFrameHeader = CreateFrame("Frame", "BuffFrameHeader", BuffFrame, "ObjectiveTrackerHeaderTemplate")
local BuffFrameHeader = CreateFrame("Frame", "BuffFrameHeader", BuffFrame, "ObjectiveTrackerContainerHeaderTemplate")
BuffFrameHeader:SetPoint("bottom", BuffFrame, "top", 0, -20)
BuffFrameHeader.Text:SetText(L["BUFF"])
BuffFrameHeader.MinimizeButton:Hide()
Expand Down
16 changes: 8 additions & 8 deletions APR-Core/CurrentStep.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ CurrentStepFrame_StepHolder:SetAllPoints()

-- Create the frame header
local CurrentStepFrameHeader = CreateFrame("Frame", "CurrentStepFrameHeader", CurrentStepFrame,
"ObjectiveTrackerHeaderTemplate")
"ObjectiveTrackerContainerHeaderTemplate")
CurrentStepFrameHeader.Text:SetText("Azeroth Pilot Reloaded") -- Replace with APR.title if needed

CurrentStepFrameHeader:RegisterForDrag("LeftButton")
Expand Down Expand Up @@ -309,14 +309,14 @@ local On_ObjectiveTracker_Update = function()
APR.currentStep:RefreshCurrentStepFrameAnchor()
end

hooksecurefunc("ObjectiveTracker_Update", function(reason, id)
On_ObjectiveTracker_Update()
CurrentStepFrameHeader.Text:SetText(APR.title)
end)
-- hooksecurefunc("QuestLogQuests_Update", function(reason, id)
-- On_ObjectiveTracker_Update()
-- CurrentStepFrameHeader.Text:SetText(APR.title)
-- end)

ObjectiveTrackerFrame.HeaderMenu.MinimizeButton:HookScript("OnClick", function()
On_ObjectiveTracker_Update()
end)
-- ObjectiveTrackerFrame.HeaderMenu.MinimizeButton:HookScript("OnClick", function()
-- On_ObjectiveTracker_Update()
-- end)

-- Helper function to create a button
local function CreateButton(name, parent, width, height, text, script)
Expand Down
3 changes: 2 additions & 1 deletion APR-Core/Heirloom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ local HeirloomFrame_body = CreateFrame("Frame", "HeirloomFrame_body", HeirloomFr
HeirloomFrame_body:SetAllPoints()

-- Create the frame header
local HeirloomFrameHeader = CreateFrame("Frame", "HeirloomFrameHeader", HeirloomFrame, "ObjectiveTrackerHeaderTemplate")
local HeirloomFrameHeader = CreateFrame("Frame", "HeirloomFrameHeader", HeirloomFrame,
"ObjectiveTrackerContainerHeaderTemplate")
HeirloomFrameHeader:SetPoint("bottom", HeirloomFrame, "top", 0, -20)
HeirloomFrameHeader.Text:SetText(L["HEIRLOOM"])
HeirloomFrameHeader.MinimizeButton:Hide()
Expand Down
2 changes: 1 addition & 1 deletion APR-Core/Party.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ local PartyFrame_TeamHolder = CreateFrame("Frame", "PartyFrame_TeamHolder", Part
PartyFrame_TeamHolder:SetAllPoints()

-- Create the frame header
local PartyFrameHeader = CreateFrame("Frame", "PartyFrameHeader", PartyFrame, "ObjectiveTrackerHeaderTemplate")
local PartyFrameHeader = CreateFrame("Frame", "PartyFrameHeader", PartyFrame, "ObjectiveTrackerContainerHeaderTemplate")
PartyFrameHeader:SetPoint("bottom", PartyFrame, "top", 0, -20)
PartyFrameHeader.Text:SetText(L["GROUP"])

Expand Down
2 changes: 1 addition & 1 deletion APR-Core/QuestOrderList.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ QuestOrderListFrame_ScrollFrame:SetScrollChild(QuestOrderListFrame_ScrollChild)

-- Create the frame header
local QuestOrderListFrame_StepHolderHeader = CreateFrame("Frame", "QuestOrderListFrame_StepHolderHeader",
QuestOrderListFrame, "ObjectiveTrackerHeaderTemplate")
QuestOrderListFrame, "ObjectiveTrackerContainerHeaderTemplate")
QuestOrderListFrame_StepHolderHeader:SetPoint("TOPLEFT", QuestOrderListFrame, "TOPLEFT", 0, 0)
QuestOrderListFrame_StepHolderHeader.Text:SetText(L["QUEST_ORDER_LIST"])
QuestOrderListFrame_StepHolderHeader.MinimizeButton:Hide()
Expand Down
2 changes: 1 addition & 1 deletion APR-Core/RouteSelection.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RouteSelectionFrame:SetBackdropColor(unpack(APR.Color.defaultLightBackdrop))

-- Create the frame header
local RouteSelectionFrameHeader = CreateFrame("Frame", "RouteSelectionFrameHeader", RouteSelectionFrame,
"ObjectiveTrackerHeaderTemplate")
"ObjectiveTrackerContainerHeaderTemplate")
RouteSelectionFrameHeader:SetPoint("bottom", RouteSelectionFrame, "top", 0, -20)
RouteSelectionFrameHeader.Text:SetText(L["ROUTE_SELECTION"])
RouteSelectionFrameHeader.MinimizeButton:Hide()
Expand Down

0 comments on commit a2413c0

Please sign in to comment.