WIP

His Dad [08-27-18 - 20:15]
WIP
Filename
HistOfflineBeta.lua
diff --git a/HistOfflineBeta.lua b/HistOfflineBeta.lua
index 93dd30a..74a6670 100644
--- a/HistOfflineBeta.lua
+++ b/HistOfflineBeta.lua
@@ -1011,7 +1011,7 @@ end
 		end

 		me.DLC2 = {}
-		me.DLC2_tabs = iup.tabs{}		-- we add our tabs to here for display. (list of vboxes)
+		me.DLC2_tabs = iup.flattabs{}		-- we add our tabs to here for display. (list of vboxes)



@@ -1036,7 +1036,16 @@ end
 			for line,id in ipairs(DLC_Dat2[dlc].line) do
 				me.DLC2[dlc].box:setcell(line, 1, tostring(id))
 				me.DLC2[dlc].box:setcell(line, 2, Ach_Detail[id].name)
-				me.DLC2[dlc].box:setcell(line, 3, Ach_Detail[id].description)
+
+				local ll = string.gsub(Ach_Detail[id].description,"%.%s","\n")
+
+			--	me.DLC2[dlc].box:setcell(line, 3, Ach_Detail[id].description)
+				me.DLC2[dlc].box:setcell(line, 3, ll)
+				if (string.find(Ach_Detail[id].description,"%.%s")) then
+					iup.SetAttribute(me.DLC2[dlc].box,"FITTOTEXT", "L".. tostring(line))
+				--	print("Updateing line: .. " ..Ach_Detail[id].description )
+				end
+

 				local bgcolour1 = "BGCOLOR" .. tostring(line) .. ":1"	--Detail and Description Columns
 				local bgcolour2 = "BGCOLOR" .. tostring(line) .. ":2"
@@ -1071,7 +1080,7 @@ end

 			--Check for Special Completion
 			if (DLC_Dat2[dlc].complete ~= nil and thischar.ach[DLC_Dat2[dlc].complete]) then
-			 print(me.name ..  "  Complete.")
+			 -- print(me.name ..  "  Complete.")

 			end