Skip to content

Commit

Permalink
fix for TWW api update
Browse files Browse the repository at this point in the history
  • Loading branch information
FuriousProgrammer committed Jul 24, 2024
1 parent 373854b commit 9d969d4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions DialogKey.toc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Interface: 100200
## Interface: 110000
## Title: DialogKey DF
## Notes: Lets you hit a key to confirm loot/purchase dialogs, accept/complete quests, select quest rewards, etc. Hit 2 to select a reward then spacebar to complete quests? Easy!
## Author: N01ch & FuriousProgrammer
## Version: 1.6.4
## Version: 1.7.0
## SavedVariables: DialogKeyDFDB
## OptionalDeps: Immersion
embeds.xml
Expand Down
13 changes: 7 additions & 6 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -305,20 +305,21 @@ function DialogKey:EnumerateGossips(isGossipFrame)
-- (2) :GetChildren() should return an unpacked list of the sub-objects instead of, you know, a Table.
-- :)
-- FuriousProgrammer
local tab
local tab = {}
DialogKey.frames = {}
if isGossipFrame then
tab = {}
for _, v in pairs{ GossipFrame.GreetingPanel.ScrollBox.ScrollTarget:GetChildren() } do
tab[v] = true
end
else
if QuestFrameGreetingPanel and QuestFrameGreetingPanel.titleButtonPool then
tab = QuestFrameGreetingPanel.titleButtonPool.activeObjects
-- _, tab = QuestFrameGreetingPanel.titleButtonPool:EnumerateActive()
for tab in QuestFrameGreetingPanel.titleButtonPool:EnumerateActive() do
if tab:GetObjectType() == "Button" then
table.insert(DialogKey.frames, tab)
end
end
elseif QuestFrameGreetingPanel and not QuestFrameGreetingPanel.titleButtonPool then
tab = {}
local children = {QuestGreetingScrollChildFrame:GetChildren()}
local children = { QuestGreetingScrollChildFrame:GetChildren() }
for i, c in ipairs(children) do
if c:GetObjectType() == "Button" and c:IsVisible() then
table.insert(DialogKey.frames, c)
Expand Down

0 comments on commit 9d969d4

Please sign in to comment.