Fix Grid_TLW Vert Scaling,
His Dad [12-22-14 - 18:33]
Fix Grid_TLW Vert Scaling,
Characters not positioned correctly on scale though.
/crt sortT helps
diff --git a/lua/GRID.lua b/lua/GRID.lua
index 9c9dbd1..c570c51 100644
--- a/lua/GRID.lua
+++ b/lua/GRID.lua
@@ -245,10 +245,12 @@ end
-- move characters in grid
function CRT.GRID_Sort()
- local panel
+ local panelheight
CRT.Char_sort()
- panelheight = CRT.UI.GRID_WD[CRT.CharsInOrder[1]].panel:GetHeight()
+ panelheight = CRT.UI.GRID_WD[CRT.CharsInOrder[1]].panel:GetHeight() -- after scaling
for k, v in ipairs(CRT.CharsInOrder) do
CRT.UI.GRID_WD[v].panel:SetAnchor(TOPLEFT,CRT.UI.GRID_TLW,TOPLEFT,0,panelheight*(k-1))
- end
+ end
+ -- We shouldn't have to manually set the height of the TLW and scale it, but we do. Bug perhaps??
+ CRT.UI.GRID_TLW:SetHeight(table.getn(CRT.CharsInOrder) * panelheight / CRT.UI.GRID_TLW:GetScale())
end