function Window.AddLine(u,L,C)C=C or{}L=tostring(L)if typeof(C)=="\067\111\108\111\114\051"then C={Color=C}end if#L==0 then Window:UpdateWindowHeight()return end local M=u.Cmdr.Util.EmulateTabstops(L or"\110\105\108",8)local a=Line:Clone()a.Size=UDim2.new(a.Size.X.Scale,a.Size.X.Offset,0,(TextService:GetTextSize(M,a.TextSize,a.Font,Vector2.new(Gui.UIListLayout.AbsoluteContentSize.X,math.huge))).Y+(LINE_HEIGHT-a.TextSize))a.Text=M a.TextColor3=C.Color or a.TextColor3 a.RichText=C.RichText or false a.Parent=Gui end

function Window:AddLine(text, options)
	options = options or {}
	text = tostring(text)

	if typeof(options) == "Color3" then
		options = { Color = options }
	end

	if #text == 0 then
		Window:UpdateWindowHeight()
		return
	end

	local str = self.Cmdr.Util.EmulateTabstops(text or "nil", 8)
	local line = Line:Clone()
	line.Size =
		UDim2.new(
		line.Size.X.Scale,
		line.Size.X.Offset,
		0,
		TextService:GetTextSize(
			str,
			line.TextSize,
			line.Font,
			Vector2.new(Gui.UIListLayout.AbsoluteContentSize.X, math.huge)
		).Y + (LINE_HEIGHT - line.TextSize)
	)
	line.Text = str
	line.TextColor3 = options.Color or line.TextColor3
	line.RichText = options.RichText or false
	line.Parent = Gui
end
