Pedro Colto Posted March 25, 2016 Share Posted March 25, 2016 Como posso fazer para quando clicar em um botão essa dx destrua (suma) addEventHandler("onClientRender", root, function() local sW,sH = guiGetScreenSize() dxDrawText("Teste",sW*4/1280,sH*4/800,sW*112/1280, sH*64/80, tocolor(255, 0, 0, 255), 2.00, "default-bold", "left", "top", false, false, false, false, false) end ) button: GUIEditorlabel3 = guiCreateLabel(0.02, 0.00, 0.98, 1.00, "JOGAR", true, GUIEditorstaticimageA) Link to comment
#RooTs Posted March 25, 2016 Share Posted March 25, 2016 local sW,sH = guiGetScreenSize() function render() dxDrawText("Teste",sW*4/1280,sH*4/800,sW*112/1280, sH*64/80, tocolor(255, 0, 0, 255), 2.00, "default-bold", "left", "top", false, false, false, false, false) end addEventHandler("onClientRender", root, render ) use removeEventHandler("onClientRender", root, render ) Link to comment
Pedro Colto Posted March 26, 2016 Author Share Posted March 26, 2016 local sW,sH = guiGetScreenSize() function render() dxDrawText("Teste",sW*4/1280,sH*4/800,sW*112/1280, sH*64/80, tocolor(255, 0, 0, 255), 2.00, "default-bold", "left", "top", false, false, false, false, false) end addEventHandler("onClientRender", root, render ) use removeEventHandler("onClientRender", root, render ) obrigado, não sabia desta. 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