cheez3d Posted June 20, 2014 Share Posted June 20, 2014 (edited) Shouldn't this function also work with GUI elements alpha? I set the alpha of a static image to 0.5 and then I parented another static image to it and it's alpha also became 0.5 even tough I used setElementCallPropagationEnabled. When I try to output the child's alpha using guiGetAlpha I somehow get 1. local Parent = guiCreateStaticImage(0,0,100,100,"Image1.png",false); setElementCallPropagationEnabled(Parent,false); guiSetAlpha(Parent,0.5); outputChatBox(guiGetAlpha(Parent)); --> 0.5; local Child = guiCreateStaticImage(1,1,98,98,"Image2.png",false,Parent); outputChatBox(guiGetAlpha(Child)); --> 1; it returns 1 even tough visually it's alpha is 0.5; Edited June 21, 2014 by Guest Link to comment
Castillo Posted June 20, 2014 Share Posted June 20, 2014 That seems like a bug, you should report it in the bug tracker. https://bugs.multitheftauto.com/ 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