Jump to content

dxDrawText cropping


DREFTHUN

Recommended Posts

Hey guys! I need help with dxDrawText cropping, cause I just can't get it to work.

I used these lines of code

startXTest = 0

function renderTest()
	sx, sy = guiGetScreenSize()
	startXTest = startXTest + sx/1000
	if startXTest > sx then
		startXTest = 0
	end
	dxDrawRectangle(startXTest, sy/2-15,3,30)
	dxDrawText("Test text please work already", 0, sy/2, startXTest+30, sy/2,tocolor(255,255,255,255),1,"arial","left","center",true,false,false)
end
addEventHandler("onClientRender", root, renderTest)

but the only thing I get is...

It should display the text within the line, shouldn't it?

What should I do? Please help!

Edited by DREFTHUN
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...