Jump to content

dxDrawImage HELP


Lloyd Logan

Recommended Posts

Posted

Hi,

I created a login panel with dxDrawImage in the GUI panel, when i click login, all elements are destroyed, which is what i want with destroyElement, but the dxDrawImage is there? How, when i press login (buLogin) can i get rid of dxDrawImage?

Thanks Lloyd.

Posted
i think you should remove the event handler

I am not too sure by what you mean here, If you are meaning to remove the removeEventHandler for the other Elements, i'll try, but if you mean removeEventHandler on the dxDrawImage, that is not what i am currently doing?

Posted

yes the latter is what he means

for example, if you did this to add the eventhandler:

  
function drawSomething() 
 dxDrawImage3D(vx,vy,vz, 3, 3, face, tocolor(255,255,255,255),0, ax,ay,az ) 
end 
  
addEventHandler("onClientRender", root, drawSomething ); 

then you remove it by doing

removeEventHandler("onClientRender", root, drawSomething ); 

Posted
yes the latter is what he means

for example, if you did this to add the eventhandler:

  
function drawSomething() 
 dxDrawImage3D(vx,vy,vz, 3, 3, face, tocolor(255,255,255,255),0, ax,ay,az ) 
end 
  
addEventHandler("onClientRender", root, drawSomething ); 

then you remove it by doing

removeEventHandler("onClientRender", root, drawSomething ); 

Yes, thanks alot!

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...