Replace [k][k] with [k].label
His Dad [12-22-14 - 03:04]
Replace [k][k] with [k].label
diff --git a/lua/GRID.lua b/lua/GRID.lua
index 082544b..a202b24 100644
--- a/lua/GRID.lua
+++ b/lua/GRID.lua
@@ -53,15 +53,15 @@ function CRT.GRID_Create_Character(k)
-- label for chracter name
CRT.UI.GRID_WD[k] = {}
- CRT.UI.GRID_WD[k][k] = WINDOW_MANAGER:CreateControl("CRT_GRID_"..k.."_"..k,CRT.UI.GRID_TLW,CT_LABEL)
+ CRT.UI.GRID_WD[k].label = WINDOW_MANAGER:CreateControl("CRT_GRID_"..k.."_"..k,CRT.UI.GRID_TLW,CT_LABEL)
--CRT.UI.GRID_WD[k][k]:SetHidden(false)
- CRT.UI.GRID_WD[k][k]:SetFont("ZoFontGame")
- CRT.UI.GRID_WD[k][k]:SetDimensions(360,20)
- CRT.UI.GRID_WD[k][k]:SetColor(CRT.SV.Settings.GRID.Color.r, CRT.SV.Settings.GRID.Color.g, CRT.SV.Settings.GRID.Color.b, CRT.SV.Settings.GRID.Color.a)
- CRT.UI.GRID_WD[k][k]:SetAlpha(1)
- CRT.UI.GRID_WD[k][k]:SetAnchor(TOPLEFT,CRT.UI.GRID_TLW,TOPLEFT,0,120*num_char)
- CRT.UI.GRID_WD[k][k]:SetHorizontalAlignment(1)
- CRT.UI.GRID_WD[k][k]:SetText(string.upper(k))
+ CRT.UI.GRID_WD[k].label:SetFont("ZoFontGame")
+ CRT.UI.GRID_WD[k].label:SetDimensions(360,20)
+ CRT.UI.GRID_WD[k].label:SetColor(CRT.SV.Settings.GRID.Color.r, CRT.SV.Settings.GRID.Color.g, CRT.SV.Settings.GRID.Color.b, CRT.SV.Settings.GRID.Color.a)
+ CRT.UI.GRID_WD[k].label:SetAlpha(1)
+ CRT.UI.GRID_WD[k].label:SetAnchor(TOPLEFT,CRT.UI.GRID_TLW,TOPLEFT,0,120*num_char)
+ CRT.UI.GRID_WD[k].label:SetHorizontalAlignment(1)
+ CRT.UI.GRID_WD[k].label:SetText(string.upper(k))
if (num_char == 0) then
x = 0