diff --git a/HistOffline.lua b/HistOffline.lua
index 2a3f832..feb4850 100644
--- a/HistOffline.lua
+++ b/HistOffline.lua
@@ -512,8 +512,8 @@ end
-- Create Trials Achievements Box==========================
me.Trials_box= iup.matrix {numcol=1, numcol_visible=1, numlin=4, widthdef=110}
- -- Load headings
- me.Trials_box:setcell(0,1, Area_names[5].long) -- craglorn
+ -- Load heading
+ me.Trials_box:setcell(0,1, L.Achievements)
iup.SetAttribute(me.Trials_box, "READONLY", "YES")
iup.SetAttribute(me.Trials_box, "FGCOLOR*:1", Colour_Not_Complete)
@@ -523,11 +523,13 @@ end
for line,key in ipairs (trial2key) do -- Load Dungeons Name. Info LC is the Dungeon Identifier
Trials_Info[key] = {count = 0}
- me.Trials_box:setcell(line,1, "(0)")
+ me.Trials_box:setcell(line,0, trial_names[key])
+ me.Trials_box:setcell(line,1, "0") -- know column is always 1
end
for id,_ in pairs (trial_dat) do -- For Achievements we have..
+ print ("chech " .. type(id))
if thischar.ach[id] ~= nil then
local L = trial_dat[id].L
local C = trial_dat[id].C
@@ -537,7 +539,7 @@ end
key = tostring(L) .. tostring(C) -- make name key
dname = trial_names[key]
-
+ print ("fiund " .. dname)
-- Increment count and display
Trials_Info[key].count = Trials_Info[key].count+1
me.Trials_box:setcell(L,C, " (" .. Trials_Info[key].count ..")")
@@ -833,6 +835,13 @@ end
me.Vet_box,
iup.fill{}
})
+
+ iup.Append(me.data_tabs, iup.vbox { ["tabtitle"] =L.Trials,
+ -- iup.label{title=L.TrailLab,expand="HORIZONTAL"},
+ me.Trials_box,
+ iup.fill{}
+ })
+
end
iup.Append(me.data_tabs, iup.vbox { ["tabtitle"] =L.Leveling,
@@ -1000,28 +1009,28 @@ iup.Append(accounts[acc].char_tabs, accounts[acc].log_tab)
-- Create Trials Character Box=======================
- dung.Trial_box = {}
- dung.Trial_box = iup.matrix {numcol=0, numlin=#trial2key, widthdef=90}
+ dung.Trials_box = {}
+ dung.Trials_box = iup.matrix {numcol=0, numlin=#trial2key, widthdef=90}
--Set Line titles
for line=1, #trial2key do
- dung.Trial_box:setcell(line, 0, grp_names[trial2key[line]])
+ dung.Trials_box:setcell(line, 0, grp_names[trial2key[line]])
end
--set lines
- dung.Trial_box:setcell(0,0, L.Location)
+ dung.Trials_box:setcell(0,0, L.Location)
local col = 0
--Create Columns for Chars
for line,char in ipairs(accounts[acc].names_vet) do
col = col +1
- dung.Trial_box.numcol = col
- dung.Trial_box:setcell(0, line, char)
+ dung.Trials_box.numcol = col
+ dung.Trials_box:setcell(0, line, char)
end
- iup.SetAttribute(dung.Trial_box, "READONLY", "YES")
+ iup.SetAttribute(dung.Trials_box, "READONLY", "YES")
-- Create Trial Tab ============================================
dung.Trial_tab = iup.vbox {
- ["tabtitle"] =L.Trial,
- dung.Trial_box,
+ ["tabtitle"] =L.Trials,
+ dung.Trials_box,
iup.fill{},
}
if col > 0 then
diff --git a/data/data.lua b/data/data.lua
index 03d44f1..8963612 100644
--- a/data/data.lua
+++ b/data/data.lua
@@ -62,8 +62,8 @@
[854]= {L=1, C=2},
[855]= {L=1, C=2},
[446]= {L=1, C=2},
- [448] = {L=1, C=2},
-[421] = {L=1, C=2},
+ [448] = {L=1, C=2},
+ [421] = {L=1, C=2},
--Wayrest Sewers
[860]= {L=2, C=2},
diff --git a/data/en.lua b/data/en.lua
index f12aea2..a19ab43 100644
--- a/data/en.lua
+++ b/data/en.lua
@@ -62,7 +62,8 @@ Area_names = {
Grp = "Group",
Pub = "Public",
Vet = "Veteran",
- Trial = "Trial"
+ Trials = "Trials",
+ Achievements = "Achievements",
}
pub_names = {