Jump to content

[SOLVED] setElementCallPropagationEnabled


cheez3d

Recommended Posts

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 by Guest
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...