i don't know why didn't work with dxDrawText just one line appear , all what i need how to resize the dxRectangle
i tried this but did work.
just a part from my script:
-- Your example ofc with string.split function
myString = "1234567891011121314151617181920abcdefghi" -- 40 Characters
allLines = string.split ( myString, 20 )
function testDx()
for _, line in ipairs ( allLines ) do
-- i add my code here to call the Dx function
end
addCommandHandler("test",testDx)
-- And i add this to get the text width (it's correct or not)
-- settings tabe (bla , bla)
local X = dxGetTextWidth(string.gsub(line,"%#%x%x%x%x%x%x",""),settings.fontHeight,settings.font)+20*settings.scale
local Y = dxGetFontHeight(settings.fontHeight,settings.font)*2+40*settings.scale