UI | APZ | Avatar

Aquí pueden poner todos los programas y utilidades que hayan creado con AMS.
Tomando el script publicado por Ceone en este foro y fuente de Webultra | viewtopic.php?f=23&t=1170 |
Me tome el tiempo de adaptar ese código para continuar aprendiendo sobre Diseño de IU/UX y porque no, también de LUA. Estoy pensando en subir algunos de mis diseños de UI en este hilo para quien le interese utilizarlos.

Saludos.

Imagen
function AVATAR(AVATAR_W, AVATAR_H, AVATAR_TW, AVATAR_TH)
	if AVATAR_W > AVATAR_TW or AVATAR_H > AVATAR_TH then
        RESIZE = (AVATAR_W > AVATAR_H) and AVATAR_W / AVATAR_TW or AVATAR_H / AVATAR_TH;
        nAVATAR_TW = math.ceil(AVATAR_W / RESIZE);
        nAVATAR_TH = math.ceil(AVATAR_H / RESIZE)        
        return nAVATAR_TW, nAVATAR_TH;
    else
    	CANCEL = 1;
        return AVATAR_W, AVATAR_H;
    end
end

function IMAGE_LOAD ()
	AVATAR_LOAD = Dialog.FileBrowse(true, "Buscar Archivo", _DesktopFolder, "JPG - PNG |*.jpg;*.png|", "", "", false, true);
		if (AVATAR_LOAD[1] ~= "CANCEL") then
			vAVATAR_LOAD = Image.GetFileInfo(AVATAR_LOAD[1]);
			CANCEL, AVATAR_TW, AVATAR_TH, AVATAR_W, AVATAR_H = 0, 103, 103, vAVATAR_LOAD.Width, vAVATAR_LOAD.Height
			nAVATAR_TW, nAVATAR_TH = AVATAR(AVATAR_W, AVATAR_H, AVATAR_TW, AVATAR_TH);		
			while CANCEL < 1 do
				if nAVATAR_TW < 103 or nAVATAR_TH < 103 then
					AVATAR_TW, AVATAR_TH = AVATAR_TW + 10, AVATAR_TH + 10
					nAVATAR_TW, nAVATAR_TH = AVATAR(AVATAR_W, AVATAR_H, AVATAR_TW, AVATAR_TH);
				else
					CANCEL = 1;
				end
			end
			X, Y = 345 - (nAVATAR_TW / 2) , 200 - (nAVATAR_TH / 2)
		end
end
Virus Total y MEGA [APZ]

HIDE: ON
Hidebb Message Hidden Description

way ,gracias por compartir , esperamos mas...

Thank you

Sube más concepts, son de mucha utilidad :yes:

Gracias

Buena pinta, Saludos

ok :ohyeah: :ohyeah: :ohyeah: :ohyeah:
Muchas gracias.

muchas greacias

Muchas gracias, sera de mucha utilidad
excelente aporte
Muchas gracias ami me encanta el estilo UI

chromium

GRACIAS

uff que buena pinta...

gracias
obrigada
Uau! *u*
Thank you
Great!
12312356