how to move text to red zone ?
Image
local screenX, screenY = guiGetScreenSize()
local responsiveMultiplier = (screenX + 2048) / (2048 * 2)
local testRectangleWidth = 350 * responsiveMultiplier
local testRectangleHeight = 225 * responsiveMultiplier
local testFont = dxCreateFont("font.ttf", 14 * responsiveMultiplier, false, "antialiased")
local marginOffset = 10
local rightSideOfTheScreen = (screenX - marginOffset) - testRectangleWidth
local centerTheBoxY = (screenY - testRectangleHeight) / 2
function render()
dxDrawRectangle(rightSideOfTheScreen, centerTheBoxY, testRectangleWidth, testRectangleHeight, tocolor(0, 0, 0, 150))
for i = 1, 5 do
dxDrawText ( ""..i..". GridList DX",rightSideOfTheScreen, centerTheBoxY+50*i, testRectangleWidth, testRectangleHeight, tocolor ( 255, 255, 255, 255 ), 0.8,testFont,"center","center",true,true,true,true,false)
end
end
addEventHandler("onClientRender", root, render)