Sign in to follow this  
sFxMTA

[HELP] Edit Box problem

Recommended Posts

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

Share this post


Link to post

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

Share this post


Link to post

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

 

Share this post


Link to post

Well, i switched to dgs but it feels like there's something missing still...

I can't figure out how to change the font size into the Edit Box and the default one is really small...

 

EDIT: Nevermind, i found the right documentation here https://wiki.multitheftauto.com/wiki/Dgs-dxedit

Thank you so much :)

Edited by XisH
  • Like 1

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.