浏览代码

Fix Gossip option ordering (entries generated during the last releases since 10.0 may need to be deleted and readded)

Fix for Classic 3.4.1 API Updates
tags/2.3.2
SabinDeus 2 年前
父节点
当前提交
4f03bdf323
共有 1 个文件被更改,包括 15 次插入11 次删除
  1. 15
    11
      TurnIn.lua

+ 15
- 11
TurnIn.lua 查看文件

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,

正在加载...
取消
保存