Hello everyone can someone help me set the gui to all resolution it only works on one
screenW, screenH = guiGetScreenSize()
resW, resH = 1366, 768
sW, sH = (screenW/resW), (screenH/resH)
example:
dxDrawRectangle(0*sW, (i*45)-ground.scroll*sH, 43*sW, 43*sH, tocolor(255, 255, 255, 230))
dxDrawImage(0*sW, (i*45)-ground.scroll*sH, 43*sW, 43*sH, "Imagenes/Inventario/Iconos/"..v[2]..".png", 0, 0, 0, tocolor(255, 255, 255))
dxDrawRectangle(43*sW, (i*45)-ground.scroll*sH, 196*sW, 43*sH, tocolor(255, 255, 255, 200))
dxDrawLine(0*sW, (i*45+42)-ground.scroll*sH, 513*sW, (i*45+42)-ground.scroll*sH, tocolor(255, 255, 255, 230), 2, false)
dxDrawText(translateLocalization(v[2]), 48*sW, (i*45)-ground.scroll*sH, 194*sW, (i*45+45)-ground.scroll*sH, tocolor(255, 255, 255), 1, "default", "left", "center", false, false, false, false, false, 0, 0, 0);