diff --git a/HistOffline.lua b/HistOffline.lua
index 423d8c1..3787cb3 100644
--- a/HistOffline.lua
+++ b/HistOffline.lua
@@ -246,7 +246,8 @@ end
iup.Append(accounts[acc].mode_zbox, accounts[acc].char_tabs)
- detail = iup.label {title="Lookup Area",expand = "HORIZONTAL"}
+ detail_name = iup.label {title="",expand = "HORIZONTAL"}
+ detail_desc = iup.label {title="",expand = "HORIZONTAL"}
Status_bar = iup.label{title=L.Welcome .. " " .. L.Version .. " " .. version .. ".", expand = "HORIZONTAL"}
iup.Append(accounts[acc].mode_zbox, accounts[acc].dung_tabs)
@@ -314,7 +315,7 @@ end
-- Mouseover
dung.Grp[i].box.dat=Grp_Dat[i]
- dung.Grp[i].box.mousemove_cb = box_mousemove_funct(self,l,c)
+ dung.Grp[i].box.mousemove_cb = box_mousemove_funct
--set lines Heading
dung.Grp[i].box:setcell(0,0, L.Location)
@@ -362,7 +363,7 @@ end
}
dung.Craglorn[i].box.dat=Craglorn_Dat[i]
- dung.Craglorn[i].box.mousemove_cb = box_mousemove_funct(self,l,c)
+ dung.Craglorn[i].box.mousemove_cb = box_mousemove_funct
--set lines Heading
dung.Craglorn[i].box:setcell(0,0, L.Location)
@@ -1077,33 +1078,8 @@ iup.Append(accounts[acc].char_tabs, accounts[acc].log_tab)
-- Create Pub Dungeon Character Box=========================
dung.pub.box = iup.matrix {numcol=#accounts[acc].playerIDs, numlin=#Pub_Dat.key, widthdef=100}
-
- function dung.pub.box:mousemove_cb(l, c)
- if l == 0 or c == 0 then
- detail.title = ""
- return
- end
-
- local key = Pub_Dat.key[l]
- if key == nil then
- detail.title= "(PUB) Key is nil"
- return
- end
-
- local ach = Pub_Dat.reverse_id[key]
-
- if ach == nil then
- detail.title = "(PUB) No reverse lookup on " .. key
- return
- end
- if Ach_Detail[ach] == nil then
- detail.title = "(PUB) No Achievement for " .. ach
- print (detail.title)
- return
- end
- detail.title = Ach_Detail[ach].description
- end
-
+ dung.pub.box.dat = Pub_Dat
+ dung.pub.box.mousemove_cb = box_mousemove_funct
--Set Line titles
for line,key in ipairs(Pub_Dat.key) do
@@ -1145,7 +1121,7 @@ iup.Append(accounts[acc].char_tabs, accounts[acc].log_tab)
dung.DLC.box = iup.matrix {numcol=#accounts[acc].playerIDs , numlin=#DLC2key, widthdef=100}
dung.DLC.box.dat=DLC_Dat
- dung.DLC.box.mousemove_cb = box_mousemove_funct(self,l,c)
+ dung.DLC.box.mousemove_cb = box_mousemove_funct
--Set Line titles
for i, key in ipairs(DLC2key) do
@@ -1192,10 +1168,7 @@ iup.Append(accounts[acc].char_tabs, accounts[acc].log_tab)
dung.Trials.box = iup.matrix {numcol=0, numlin=#trial2key, widthdef=100}
dung.Trials.box.dat=Trial_Dat
- dung.Trials.box.mousemove_cb = box_mousemove_funct(self,l,c)
-
-
-
+ dung.Trials.box.mousemove_cb = box_mousemove_funct
--Set Line titles
for line,key in ipairs(trial2key) do
@@ -1278,7 +1251,10 @@ if myaccount ~=nil then
dlg = iup.dialog{iup.vbox{
accounts[myaccount].mode,
accounts[myaccount].mode_zbox,
- iup.hbox{detail, -- Hover over information
+ iup.hbox{detail_name, -- Hover over information
+ iup.fill{},
+ },
+ iup.hbox{detail_desc,
iup.fill{},
},
iup.hbox{Status_bar, -- Bottom Status bar.
diff --git a/data/utility.lua b/data/utility.lua
index e2ae767..4c9c958 100644
--- a/data/utility.lua
+++ b/data/utility.lua
@@ -76,65 +76,37 @@ reverse_id = function (Adata) -- given a grp-id table like this
end
-reverse_key = function (Adata)
---given a key table like this
- --[[
- grp1tokey = {
- --EP
- "11",
- "21",
- "31",
- "41",
- "51",
- --DC
- "12",
- "22",
- "32",
- "42",
- "52",
- --AD
- "13",
- "23",
- "33",
- "43",
- "53",
- --Coldharbour
- "54",
- }
- return a reverse table lkiek this --]]
-
-
-end
-
box_mousemove_funct = function (self, l, c)
-- we have previously added .dat to the box
+
if l == 0 or c == 0 then
- detail.title = ""
+ detail_name.title = ""
+ detail_desc.title = ""
return
end
if self.dat == nil then
- detail.title = "box.dat is nil"
+ detail_name.title = "box.dat is nil"
return
end
local key = self.dat.key[l]
if key == nil then
- detail.title= "key is nil"
+ detail_name.title= "key is nil"
return
end
local ach = self.dat.reverse_id[key]
if ach == nil then
- detail.title = "No reverse lookup on " .. key
+ detail_name.title = "No reverse lookup on " .. key
return
end
if Ach_Detail[ach] == nil then
- detail.title = "No Achievement for " .. ach
- print (detail.title)
+ detail_name.title = "No Achievement for " .. ach
return
end
- detail.title = Ach_Detail[ach].description
+ detail_name.title = Ach_Detail[ach].name
+ detail_desc.title = Ach_Detail[ach].description
end