Deltanic Posted November 7, 2010 Share Posted November 7, 2010 Is that possible? With a property or so? I wanna use grayscale images, and when they get hovered, they should get colors. But I can't find any property related to it, so maybe I'm just looking wrong. Link to comment
Discord Moderators Zango Posted November 7, 2010 Discord Moderators Share Posted November 7, 2010 (edited) Not as far as I'm aware. If the image isn't too big, you can compress a grey scale edition and use it combined with onClientMouseEnter attached to your grey image. Draw the coloured image on the same X Y as the grey scale one, and now add an event onClientMouseLeave for the coloured one, to show the grey one. Edited November 7, 2010 by Guest Link to comment
Antibird Posted November 7, 2010 Share Posted November 7, 2010 Afaik there are no other ways rather than using 2 images in your case. Link to comment
Deltanic Posted November 7, 2010 Author Share Posted November 7, 2010 Not as far as I'm aware.If the image isn't too big, you can compress a grey scale edition and use it combined with onClientMouseEnter attached to your grey image. Draw the coloured image on the same X Y as the grey scale one, and now add an event onClientMouseLeave for the coloured one, to show the grey one. Using guiStaticImageLoadImage has a high risk of client crashing, so I'm not going to use that. Too bad there isn't a property for it, so I'll use what I already got: Alpha effects. Link to comment
Discord Moderators Zango Posted November 7, 2010 Discord Moderators Share Posted November 7, 2010 I didn't mention guiStaticImageLoadImage or refer to it I think thought it was hidden logic to use guiSetVisible on the images. That is atleast what I'd do Link to comment
Deltanic Posted November 7, 2010 Author Share Posted November 7, 2010 Oh, I didn't even thought of that. Well, I'm going to think about it later. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now