psicobleach Posted February 2, 2017 Posted February 2, 2017 Hola,quiero preguntar si se puede usar imagen para reemplazar GUI,es decir puedo poner por ejemplo una imagen y añadirle onGUIClick?. gracias.
#Dv^ Posted February 2, 2017 Posted February 2, 2017 Sí, por ejemplo creas el botón con guiCreateButton, luego por encima creas la imagen con guiCreateStaticImage, luego para que no se vea el botón usas guiSetAlpha, y con el evento onClientGUIClick ejecutas la función al presionar un botón GUI Ejemplo: button = guiCreateButton(0, 0, 80, 80, "Botón", false) image = guiCreateStaticImage(0, 0, 80, 80, "image.png", false) guiSetAlpha(button, 0) addEventHandler("onClienGUIClick", button, function() --código end )
Rose Posted February 3, 2017 Posted February 3, 2017 Que yo sepa onClientGUIClick sirve con cualquier gui-element, no es necesario crear un botón abajo
Recommended Posts