Jump to content

Dx Scroll


Oussema

Recommended Posts

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

  • Thanks 1
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...