Jump to content

[HELP] Edit Box problem


sFxMTA

Recommended Posts

Posted (edited)

Hello, i'm getting some problems with DX Edit Box, i don't really know if it's outdated and i should use something else (If so please tell me which library i could use instead for making DX editboxes)

This is the actual library i'm using: https://forum.multitheftauto.com/topic/71958-reldx-edit-box/

Which gets me into this problem: https://imgur.com/4p41xQQ

My code:

createEditBox( "login", 0.44, 0.50, 0.13, 0.04, true, "", false, 25, "arial", false, 0, { 255,255,255, 180 }, true, { 0,0,0, 180 }, 1, true, 60, false, "Insert here your username!", { 255,255,255, 40 }, true, 3, "arial", true, true, {0, 114, 210}, false  )

 

 

 

Edited by XisH

DFZ0gFL.png


 

  • Moderators
Posted (edited)

Use 'dgs', it seems like this lib is a little bit outdated+has some bugs.
Btw it seems like it has some kind of problem with getting the real text width.
Look into the code and fix it.

Edited by Pirulax
  • Like 1
Posted

Calculation for carret position is wrong seems like isn't considering that text starts writting from center. Seems like you'll need to fix it yourself

 

"El conocimiento jamás debe detenerse, por que es lo único que nos salvará cuando no nos quede más".

Att: -|TG|-Mister[Q]<.

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