Maccer. Posted November 3, 2009 Posted November 3, 2009 So, I was making a button that changes images when clicked on, so I tried different methods. The first method is basically a remote onClientClick, it's used for world purposes though. It updates, but clicking doesn't work anymore. The second method attempts to update from onClientGUIClick, but it doesn't, but still functions. The third method just fails to call because... well it doesn't matter. What are the best methods of changing a static image? Edit: Ah, forgot to mention I destroy the image-button element first and create a new one, assigning it to the same variable.
Ryder! Posted November 3, 2009 Posted November 3, 2009 maybe https://wiki.multitheftauto.com/wiki/Gui ... eLoadImage
Lordy Posted November 3, 2009 Posted November 3, 2009 Btw, are you checking the state from onClientGUIClick? If you are, be sure you don't check for "down" but "up", as "down" never triggers. but yeah, the most convenient would be guiStaticImageLoadImage, as that doesn't reassign the variable.
Maccer. Posted November 4, 2009 Author Posted November 4, 2009 Holy Cripes, I just skipped that for some reason. Why damn the flu, damn it.
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