Dzsozi (h03) Posted April 25, 2014 Share Posted April 25, 2014 Hello everybody, I'm wondering if there's any way to check which image is loaded when I use guiStaticImageLoadImage function, and if image1 is loaded then label color is black, else if image2 is loaded then label color is white. Is there any way to do this? Here's my try, which is not working: img = guiCreateStaticImage(0.0, 0.3, 1, 0.375, "img/image1.png", true, window) label = guiCreateLabel(0.3, 0.1, 0.5, 0.2, "test", true, img) if (img == "img/image1.png") then guiLabelSetColor(label, 255, 255, 255) else guiLabelSetColor(label, 0, 0, 0) end Link to comment
Karuzo Posted April 25, 2014 Share Posted April 25, 2014 Make a variable which you just set to true if label should be black , and then just add that variable in the staticimageloadimage function. 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