Wb Dettails,

His Dad [05-18-18 - 07:52]
Wb Dettails,
Dungeon Mode Scrollable
Filename
Doc/Changelog.txt
HistOffline.lua
history.txt
diff --git a/Doc/Changelog.txt b/Doc/Changelog.txt
index 116f6b7..1721e48 100644
--- a/Doc/Changelog.txt
+++ b/Doc/Changelog.txt
@@ -1,3 +1,9 @@
+2018-05-18 version 47
+	Changed WB display to have detail panel
+	Made Dungeon Mode scrollable for people with lots of chars
+
+
+
 2018-05-17 version 46
 	Fixed missing Vvardendell World Boss
 	Thanks Snakefish!!!
diff --git a/HistOffline.lua b/HistOffline.lua
index 010ffe3..ffdaade 100644
--- a/HistOffline.lua
+++ b/HistOffline.lua
@@ -318,7 +318,7 @@ end
   dung.DLC = {}
   dung.DLC.box = {}
   dung.DLC.key = {}
-
+  dung.nPlayers = #accounts[acc].playerIDs
   dung.Grp = {}		-- these ones are indexed.
   dung.Trials = {}

@@ -326,7 +326,7 @@ end
   for _,i in ipairs(Grp_Order) do
 	dung.Grp[i]= {}
 	dung.Grp[i].key ={}   -- key lookup
-	dung.Grp[i].box = iup.matrix {numcol=#accounts[acc].playerIDs,  numlin=_size(Grp_Dat[i].id), widthdef=100}
+	dung.Grp[i].box = iup.matrix {numcol=dung.nPlayers,     numlin=_size(Grp_Dat[i].id), widthdef=100}
 	iup.SetAttribute(dung.Grp[i].box, "READONLY", "YES")

 	dung.Grp[i].tab = iup.vbox {
@@ -378,7 +378,7 @@ end
   for _,i in ipairs(Trials_Order) do
 		dung.Trials[i]= {}
 		dung.Trials[i].key ={}   -- key lookup
-		dung.Trials[i].box = iup.matrix {numcol=#accounts[acc].playerIDs,  numlin=_size(Trials_Dat[i].id), widthdef=100}
+		dung.Trials[i].box = iup.matrix {numcol=dung.nPlayers,  numlin=_size(Trials_Dat[i].id), widthdef=100}
 		iup.SetAttribute(dung.Trials[i].box, "READONLY", "YES")

 		dung.Trials[i].tab = iup.vbox {
@@ -1066,11 +1066,11 @@ end

 		iup.Append(accounts[acc].char_tabs,me.tab)

-		local wide =(((#accounts[acc].playerIDs+1) * 110)+10)
-		if wide < 680  then
-			wide = 680
-		elseif wide >950 then
-		--	panel = 1600
+		local wide =((dung.nPlayers+1) * 110)
+		if wide < 690  then
+			wide = 690
+		elseif wide >960 then
+			wide =  960
 		end

 		accounts[acc].panelsize =  tostring(wide) ..  "x350"
@@ -1107,7 +1107,7 @@ 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}
+	dung.pub.box = iup.matrix {numcol=dung.nPlayers,  numlin=#Pub_Dat.key, widthdef=100}
 	dung.pub.box.dat = Pub_Dat
 	dung.pub.box.mousemove_cb = box_mousemove_cb
 	dung.pub.box.leavewindow_cb = box_leavewindow_cb
@@ -1151,7 +1151,7 @@ iup.Append(accounts[acc].char_tabs, accounts[acc].log_tab)

 	-- Create DLC Dungeon Character Box=========================

-	dung.DLC.box = iup.matrix {numcol=#accounts[acc].playerIDs ,  numlin=#DLC2key, widthdef=100}
+	dung.DLC.box = iup.matrix {numcol=dung.nPlayers ,  numlin=#DLC2key, widthdef=100}

 	dung.DLC.box.dat = DLC_Dat
 	dung.DLC.box.mousemove_cb = box_mousemove_cb
diff --git a/history.txt b/history.txt
index 3151160..f518931 100644
--- a/history.txt
+++ b/history.txt
@@ -1,6 +1,6 @@
 ## Title: Dad's History
 ## APIVersion: 100022 100023
-## Version: 46
+## Version: 47
 ## Author: HisDad
 ## Description: Record progress of all characters for offline viewing.
 ## SavedVariables: History_SV