Kaynağa Gözat

Fixing bugs introduced by 10.0 changes as well as a long-standing QuestFrame manipulation bug

tags/2.3.1
SabinDeus 3 yıl önce
ebeveyn
işleme
5c4bf53d17
1 değiştirilmiş dosya ile 18 ekleme ve 6 silme
  1. 18
    6
      TurnIn.lua

+ 18
- 6
TurnIn.lua Dosyayı Görüntüle

@@ -120,7 +120,15 @@ end

function TI_debug(...)
if(TI_status.debugstate) then
TI_message(...)
LoadAddOn("Blizzard_DebugTools")
local x = {...};
for k,v in pairs(x) do
if type(v) == "table" and DevTools_Dump then
DevTools_Dump(v)
else
DEFAULT_CHAT_FRAME:AddMessage(tostring(v));
end
end
end
end

@@ -420,11 +428,10 @@ function TI_GetQuests(type)
local numQuests = (getglobal("GetNum"..type.."Quests"))();
local qfn = getglobal("Get"..type.."Title");
local ret = {};
local qname;
local i=1;
for i=1,numQuests do
qname = qfn(i);
ret[i] = {name=qname};
local qname, isComplete = qfn(i);
ret[i] = {name=qname, questID=i, isComplete=isComplete};
end
return ret;
end
@@ -435,6 +442,7 @@ function TI_HandleGossipWindow(gorq)
local AvailableQuests;
local ActiveQuests;
local GossipOptions;
TI_debug(gorq);
if(gorq == "g") then
AvailableQuests = TI_FunctionList.g.tabulateAvailable(TI_FunctionList.g.getavailquests());
ActiveQuests = TI_FunctionList.g.tabulateActive(TI_FunctionList.g.getactivequests());
@@ -719,6 +727,7 @@ end

function TI_TabulateGossipAvailableQuests_Classic(...)
local x = {};
local idx = 1;

for i=1, select("#", ...), 7 do
local temp = {};
@@ -738,14 +747,16 @@ function TI_TabulateGossipAvailableQuests_Classic(...)
else
temp.icon = "Interface\\GossipFrame\\AvailableQuestIcon";
end
temp.questID = idx;
table.insert(x, temp);
idx = idx + 1;
end
return x;
end

function TI_TabulateGossipActiveQuests_Classic(...)
local x = {};
local idx = 1;

for i=1, select("#", ...), 6 do
local temp = {};
@@ -763,8 +774,9 @@ function TI_TabulateGossipActiveQuests_Classic(...)
else
temp.icon = "Interface\\GossipFrame\\IncompleteQuestIcon";
end
temp.questID = idx;
table.insert(x, temp);
idx = idx + 1;
end
return x;
end

Loading…
İptal
Kaydet