Página 1 de 3

UI | APZ | Avatar

Publicado: 11 Dic 2013 00:53
por Cixg
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

Publicado: 11 Dic 2013 09:55
por rafaxplayer
way ,gracias por compartir , esperamos mas...

Publicado: 11 Dic 2013 20:24
por mecivic
Thank you

Publicado: 11 Dic 2013 23:58
por Thedary
Sube más concepts, son de mucha utilidad :yes:

Gracias

Publicado: 12 Dic 2013 20:36
por ZyA
Buena pinta, Saludos

Publicado: 05 Ene 2014 18:42
por amsplug
ok :ohyeah: :ohyeah: :ohyeah: :ohyeah:

Re: UI | APZ | Avatar

Publicado: 06 Ene 2014 10:35
por Cirseven
Muchas gracias.

Publicado: 27 Ene 2014 00:10
por chuchuqui
muchas greacias

Publicado: 20 Mar 2014 05:24
por Alejandro Marín
Muchas gracias, sera de mucha utilidad

Re: UI | APZ | Avatar

Publicado: 23 Mar 2014 20:42
por jomedel
excelente aporte

Re: UI | APZ | Avatar

Publicado: 21 Jul 2014 03:16
por Dow Sher
Muchas gracias ami me encanta el estilo UI

Publicado: 02 Ago 2014 22:22
por hajuki
chromium

Publicado: 04 Ago 2014 01:46
por rockgame42
GRACIAS

Publicado: 23 Ago 2014 20:12
por comprotodo201480
uff que buena pinta...

Publicado: 19 Sep 2014 15:01
por Haitham.2012
gracias

Re: UI | APZ | Avatar

Publicado: 20 Sep 2014 17:21
por dgfsdgvedrfg
obrigada

Re: UI | APZ | Avatar

Publicado: 14 Ene 2015 00:53
por Bruno AND
Uau! *u*

Re: UI | APZ | Avatar

Publicado: 19 Ene 2015 13:57
por samirmax
Thank you

Re: UI | APZ | Avatar

Publicado: 29 Ene 2015 11:49
por Phaelitico
Great!

Re: UI | APZ | Avatar

Publicado: 13 Feb 2015 01:38
por cris690
12312356