sFxMTA Posted August 18, 2018 Share Posted August 18, 2018 (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 August 18, 2018 by XisH Link to comment
Discord Moderators Pirulax Posted August 19, 2018 Discord Moderators Share Posted August 19, 2018 (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 August 19, 2018 by Pirulax 1 Link to comment
MisterQuestions Posted August 19, 2018 Share Posted August 19, 2018 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 Link to comment
sFxMTA Posted August 20, 2018 Author Share Posted August 20, 2018 (edited) 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 August 20, 2018 by XisH 1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now