Jump to content

dxDrawText clip problem


Dretax

Recommended Posts

I'm having trouble with dxDrawText.

I have my own GUI system, that is able to draw nice textbox backgrounds, and drawing the guieditbox on it with alpha 0 (invisible). This makes it possible for me to draw nicer texts and backgrounds for the textbox instead of having the default white guiedit.

Everything is fine, but there is one problem. The default MTA GuiEdit is capable of  moving the text if you have exceeded the textbox's size.

If setting clip to true this happens:

JiiaHyJ.png

If I set it to false, the text will stay, but I won't see the other text after the box's limit.

I was thinking on calculating it out, and moving it manually somehow, but I thought I would ask first, since I might have missed something.

Cheers.

Link to comment
  • 3 weeks later...

~~~~~~~~

 

Incase anyone was wondering, I thought I wouldn't leave my thread empty, the solution before was to calculate the displayable amount of characters, which in default case is boxlength / 7, and sub the last n chars.

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