diff --git a/HistOffline.lua b/HistOffline.lua
index 06365d9..8ab0924 100644
--- a/HistOffline.lua
+++ b/HistOffline.lua
@@ -116,52 +116,7 @@ for id,_ in pairs (SQ_dat) do -- Load all Quest Data by Achievement ID
table.insert(SQ_Info[key].quests,id)
end
--- Create SkillQuest Achievements Detail Boxes=======================
--- These are the same for all chars, we just just hightlight the contents appropriately
-SQ_Detail_box = {}
-function load_SQ_Detail(lang) -- called per account when we know the lingua
- if SQ_Detail_box[lang] ~=nil then --already done
- return
- end
- SQ_Detail_box[lang]= {}
--- 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 ("LAng: "..lang .. " " ..key, dump(info))
- SQ_Detail_box[lang][key]= iup.matrix {numcol=2, numcol_visible=2, numlin=0}
-
- local Line = 1
- SQ_Detail_box[lang][key]:setcell(0,0, lingua[lang].L.Ach_ID)
- SQ_Detail_box[lang][key]:setcell(0,1, lingua[lang].L.Name)
- SQ_Detail_box[lang][key]:setcell(0,2, lingua[lang].L.Link)
- iup.SetAttribute(SQ_Detail_box[lang][key], "READONLY", "YES")
- iup.SetAttribute(SQ_Detail_box[lang][key], "ALIGNMENT0", "ACENTER")
- iup.SetAttribute(SQ_Detail_box[lang][key], "ALIGNMENT1", "ALEFT")
- iup.SetAttribute(SQ_Detail_box[lang][key], "ALIGNMENT2", "ALEFT")
- iup.SetAttribute(SQ_Detail_box[lang][key],"WIDTH0", "30")
- iup.SetAttribute(SQ_Detail_box[lang][key],"WIDTH1", "150")
- iup.SetAttribute(SQ_Detail_box[lang][key],"WIDTH2", "250")
- for _, id in ipairs (info.quests) do -- get the quests of the zone
- -- print (dump(id))
- SQ_Detail_box[lang][key].numlin = Line
- SQ_Detail_box[lang][key]: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
- SQ_Detail_box[lang][key]:setcell(Line,1, name)
- SQ_Detail_box[lang][key]:setcell(Line,2, link)
- --print(name, link)
- Line= Line+1
- end
- end
-end
-SQ_Detail_Zbox = {}
accounts = {}
accounts_list = {} -- String list for selection dialog
naccounts = 0
@@ -696,10 +651,50 @@ myzbox.value = alabel
iup.SetAttribute(accounts[acc].name[char].SQ_box, "BGCOLOR0:" .. tostring(C), Colour_Heading_Complete)
end
end --
+---
+-- Create SkillQuest Achievements Detail Boxes=======================
+
+ accounts[acc].name[char].SQ_Detail_box = {}
+ accounts[acc].name[char].SQ_Detail_Zbox = {}
+-- 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 ("LAng: "..lang .. " " ..key, dump(info))
+ accounts[acc].name[char].SQ_Detail_box[key]= iup.matrix {numcol=2, numcol_visible=2, numlin=0}
+
+ local Line = 1
+ accounts[acc].name[char].SQ_Detail_box[key]:setcell(0,0, lingua[lang].L.Ach_ID)
+ accounts[acc].name[char].SQ_Detail_box[key]:setcell(0,1, lingua[lang].L.Name)
+ accounts[acc].name[char].SQ_Detail_box[key]:setcell(0,2, lingua[lang].L.Link)
+ iup.SetAttribute(accounts[acc].name[char].SQ_Detail_box[key], "READONLY", "YES")
+ iup.SetAttribute(accounts[acc].name[char].SQ_Detail_box[key], "ALIGNMENT0", "ACENTER")
+ iup.SetAttribute(accounts[acc].name[char].SQ_Detail_box[key], "ALIGNMENT1", "ALEFT")
+ iup.SetAttribute(accounts[acc].name[char].SQ_Detail_box[key], "ALIGNMENT2", "ALEFT")
+ iup.SetAttribute(accounts[acc].name[char].SQ_Detail_box[key],"WIDTH0", "30")
+ iup.SetAttribute(accounts[acc].name[char].SQ_Detail_box[key],"WIDTH1", "150")
+ iup.SetAttribute(accounts[acc].name[char].SQ_Detail_box[key],"WIDTH2", "250")
+ for _, id in ipairs (info.quests) do -- get the quests of the zone
+ -- print (dump(id))
+ accounts[acc].name[char].SQ_Detail_box[key].numlin = Line
+ accounts[acc].name[char].SQ_Detail_box[key]: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
+ accounts[acc].name[char].SQ_Detail_box[key]:setcell(Line,1, name)
+ accounts[acc].name[char].SQ_Detail_box[key]:setcell(Line,2, link)
+ --print(name, link)
+ Line= Line+1
+ end
+ iup.Append(accounts[acc].name[char].SQ_Detail_Zbox,accounts[acc].name[char].SQ_Detail_box[key])
+ end
- -- iup.Append(accounts[acc].name[char].SQ_Frame, SQ_Detail_box["11"])
--]]
-- ====================================
-- == Prepare for the user display tabs