|
|
|
|
|
|
|
|
local x={}; |
|
|
local x={}; |
|
|
x.name = v.name; |
|
|
x.name = v.name; |
|
|
x.gorq = gorq; |
|
|
x.gorq = gorq; |
|
|
x.args = i; |
|
|
|
|
|
|
|
|
if x.orderIndex then |
|
|
|
|
|
x.args = v.orderIndex; |
|
|
|
|
|
else |
|
|
|
|
|
x.args = i; |
|
|
|
|
|
end |
|
|
x.type = v.type; |
|
|
x.type = v.type; |
|
|
x.icon = v.icon; |
|
|
x.icon = v.icon; |
|
|
x.state = false; |
|
|
x.state = false; |
|
|
table.insert(ListEntry, x); |
|
|
table.insert(ListEntry, x); |
|
|
end |
|
|
end |
|
|
ListEntry.state = false; |
|
|
ListEntry.state = false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
local TotalOptions = #AvailableQuests+#ActiveQuests+#GossipOptions; |
|
|
local TotalOptions = #AvailableQuests+#ActiveQuests+#GossipOptions; |
|
|
if(TotalOptions < 1) then |
|
|
if(TotalOptions < 1) then |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function TI_TabulateGossipUIInfo_Retail(guis) |
|
|
function TI_TabulateGossipUIInfo_Retail(guis) |
|
|
local x = {}; |
|
|
local x = {}; |
|
|
|
|
|
|
|
|
|
|
|
table.sort(guis, GossipOptionSort); |
|
|
for i,gui in ipairs(guis) do |
|
|
for i,gui in ipairs(guis) do |
|
|
local temp = {}; |
|
|
local temp = {}; |
|
|
temp.name = gui.name; |
|
|
temp.name = gui.name; |
|
|
|
|
|
|
|
|
else |
|
|
else |
|
|
TI_FunctionList = { |
|
|
TI_FunctionList = { |
|
|
g = { |
|
|
g = { |
|
|
availquest = SelectGossipAvailableQuest, |
|
|
|
|
|
activequest = SelectGossipActiveQuest, |
|
|
|
|
|
|
|
|
availquest = C_GossipInfo.SelectAvailableQuest, |
|
|
|
|
|
activequest = C_GossipInfo.SelectActiveQuest, |
|
|
gossip = SelectGossipOption, |
|
|
gossip = SelectGossipOption, |
|
|
getavailquests = GetGossipAvailableQuests, |
|
|
|
|
|
getactivequests = GetGossipActiveQuests, |
|
|
|
|
|
getoptions = GetGossipOptions, |
|
|
|
|
|
tabulateAvailable = TI_TabulateGossipAvailableQuests_Classic, |
|
|
|
|
|
tabulateActive = TI_TabulateGossipActiveQuests_Classic, |
|
|
|
|
|
tabulateOptions = TI_TabulateGossipOptions_Classic, |
|
|
|
|
|
|
|
|
getavailquests = C_GossipInfo.GetAvailableQuests, |
|
|
|
|
|
getactivequests = C_GossipInfo.GetActiveQuests, |
|
|
|
|
|
getoptions = C_GossipInfo.GetOptions, |
|
|
|
|
|
tabulateAvailable = TI_TabulateGossipQuestUIInfo_Retail, |
|
|
|
|
|
tabulateActive = TI_TabulateGossipQuestUIInfo_Retail, |
|
|
|
|
|
tabulateOptions = TI_TabulateGossipUIInfo_Retail, |
|
|
}, |
|
|
}, |
|
|
q = { |
|
|
q = { |
|
|
activequest = SelectActiveQuest, |
|
|
activequest = SelectActiveQuest, |