Oussema Posted April 5, 2017 Share Posted April 5, 2017 as you can see in the screen shot everything is fine for me only the text color i want change the text color to white but it won't work pff no errors no anything my code : local renderTarget = dxCreateRenderTarget(835, 518,true) local scrollerW, scrollerH = 13, 50 local Scrolled = 1870 local Size = 60 local moveY = 0 local Lines = [[sqdqsdqsdqsdqsdsq. dsqdqsdqsdqsdqsdqs sqdqsdqsdqsdqsdsqdsqsq qsdqsdqsdqs qsdqsdqsdqsq qs]] function dxDraws() dxSetRenderTarget(renderTarget, true) dxDrawText(Lines, 0, moveY, 375, 518, tocolor(255, 255, 255, 255)) dxSetRenderTarget() dxDrawImage(375, 198, 835, 518, renderTarget, 0 ,0 ,0,tocolor(0, 5, 7, 168)) local Percentage = (-moveY)/Size dxDrawRectangle(1210-scrollerW, 198+Percentage*15, scrollerW, scrollerH, tocolor(30, 194, 161, 239)) end addEventHandler("onClientRender", getRootElement(), dxDraws) Link to comment
NeXuS™ Posted April 6, 2017 Share Posted April 6, 2017 function dxDraws() dxSetRenderTarget(renderTarget, true) dxSetRenderTarget() dxDrawImage(375, 198, 835, 518, renderTarget, 0 ,0 ,0,tocolor(0, 5, 7, 168)) local Percentage = (-moveY)/Size dxDrawRectangle(1210-scrollerW, 198+Percentage*15, scrollerW, scrollerH, tocolor(30, 194, 161, 239)) dxDrawText(Lines, 0, moveY, 375, 518, tocolor(255, 255, 255, 255)) end addEventHandler("onClientRender", getRootElement(), dxDraws) It was behind your panel. 1 Link to comment
Oussema Posted April 6, 2017 Author Share Posted April 6, 2017 I sloved it , anyway thx NeXuS <3 how did i fix it ? : from : dxDrawImage(375, 198, 835, 518, renderTarget, 0 ,0 ,0,tocolor(0, 5, 7, 168)) to : dxDrawImage(375, 198, 835, 518, renderTarget, 0 ,0 ,0,tocolor(255, 255, 255, 250)) 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