diff --git a/HistOffline.lua b/HistOffline.lua
index 2d28f9e..9cb4960 100644
--- a/HistOffline.lua
+++ b/HistOffline.lua
@@ -551,6 +551,7 @@ btn_archive = iup.button{title="Archive", FGCOLOR = "#FF0000"}
end
-- Create SkillQuest Achievements Box==========================
+
accounts[acc].name[char].SQ_box= iup.matrix {numcol=4, numcol_visible=4, numlin=5, widthdef=110}
accounts[acc].name[char].SQ_Info = {}
for i=1, 4 do -- Load headings, not craglorn
@@ -584,10 +585,17 @@ btn_archive = iup.button{title="Archive", FGCOLOR = "#FF0000"}
dname = "key " .. key .." not found"
end
- SQ_Info[key] = {}
- SQ_Info[key].quest = {}
- SQ_count[key] = {count= 0}
- SQ_Area[C] =0
+ if SQ_Info[key] == nil then
+ SQ_Info[key] = {}
+ SQ_Info[key].quest = {}
+ SQ_Info[key].allquest = {}
+ SQ_Info[key].L = L -- Save separating it out from key later
+ SQ_Info[key].C = C
+ SQ_count[key] = {count= 0}
+ SQ_Area[C] =0
+ end
+ --print("Added " .. id)
+ table.insert(SQ_Info[key].allquest,id)
accounts[acc].name[char].SQ_box:setcell(L,C,dname .. " (0)")
end
@@ -622,8 +630,44 @@ btn_archive = iup.button{title="Archive", FGCOLOR = "#FF0000"}
table.insert(SQ_Info[key].quest, id)
end
end
+-- Create SkillQuest Achievements Detail Boxes=======================
+ accounts[acc].name[char].SQ_Detail_box= {}
+ accounts[acc].name[char].SQ_Frame = iup.frame{title = "Quest Details"} -- Panel for details
+
+ local info, name, link
+ for key, info in pairs(SQ_Info) do -- for each zone
+ --print (key, dump(info))
+ accounts[acc].name[char].SQ_Detail_box[key]= iup.matrix {numcol=2, numcol_visible=2, numlin=0}
+ local thisbox = accounts[acc].name[char].SQ_Detail_box[key]
+ Line = 1
+ thisbox:setcell(0,0, "Ach_ID")
+ thisbox:setcell(0,1, "Name")
+ thisbox:setcell(0,2, "Link")
+ iup.SetAttribute(thisbox, "READONLY", "YES")
+ iup.SetAttribute(thisbox, "ALIGNMENT0", "ACENTER")
+ iup.SetAttribute(thisbox, "ALIGNMENT1", "ALEFT")
+ iup.SetAttribute(thisbox, "ALIGNMENT2", "ALEFT")
+ iup.SetAttribute(thisbox,"WIDTH0", "30")
+ iup.SetAttribute(thisbox,"WIDTH1", "120")
+ iup.SetAttribute(thisbox,"WIDTH2", "220")
+ for _, id in ipairs (info.allquest) do -- get the quests of the zone
+ -- print (dump(id))
+ thisbox.numlin = Line
+ thisbox:setcell(Line,0, tostring(id))
+
+ if Ach_Detail[id] == nil then
+ name = "UNKN"
+ else
+ name = Ach_Detail[id].name
+ end
+ link = SQ_dat[id].link1
+ thisbox:setcell(Line,3, link)
+ --print(name, link)
+ Line= Line+1
+ end
+ end
-
+ iup.Append(accounts[acc].name[char].SQ_Frame, accounts[acc].name[char].SQ_Detail_box["11"])
-- ====================================
-- == Prepare for the user display tabs
@@ -677,6 +721,7 @@ btn_archive = iup.button{title="Archive", FGCOLOR = "#FF0000"}
iup.vbox { ["tabtitle"] =L.SkillQuests,
iup.label{title=L.SkillLab,expand="HORIZONTAL"},
accounts[acc].name[char].SQ_box,
+ accounts[acc].name[char].SQ_Frame,
iup.fill{}
},
}, -- end of tabs for dungeons