orel56000 Posted June 19, 2017 Share Posted June 19, 2017 I'm tryna create bank text with dxDrawText and I can't resize it like the gta's money, how to do it? I can only with scale and that increase the X size and the Y size. What should I do to increase only the X size or the Y size of the text? Thanks for helpers and sorry for bad english. Link to comment
MIKI785 Posted June 20, 2017 Share Posted June 20, 2017 Just read the wiki: Quote scale: the size of the text.scale: can (optionally) be specified as two floats. i.e. scaleX, scaleY So instead of using one number for the scale, use two. Couldn't be easier. 1 Link to comment
orel56000 Posted June 20, 2017 Author Share Posted June 20, 2017 1 hour ago, MIKI785 said: Just read the wiki: So instead of using one number for the scale, use two. Couldn't be easier. like that {0.5, 0.3}? for example. Link to comment
MIKI785 Posted June 20, 2017 Share Posted June 20, 2017 No, not a table.. just an extra argument after the scale. 1 Link to comment
orel56000 Posted June 20, 2017 Author Share Posted June 20, 2017 34 minutes ago, MIKI785 said: No, not a table.. just an extra argument after the scale. many thanks, working Link to comment
orel56000 Posted June 20, 2017 Author Share Posted June 20, 2017 I have an other problem, I placed the other money under the gta's green money, but in other resolutions it is in an other place (not because I diden't used GuiGetScreenSize(), because the health bar and the money is in other place in every resolution, so the text stay in the same position but not under the money) how do I fix that? Link to comment
koragg Posted June 21, 2017 Share Posted June 21, 2017 Have a look at the example here: https://wiki.multitheftauto.com/wiki/GuiGetScreenSize You should do some maths and make your text always be in the same position on any resolution. Link to comment
orel56000 Posted June 21, 2017 Author Share Posted June 21, 2017 33 minutes ago, koragg said: Have a look at the example here: https://wiki.multitheftauto.com/wiki/GuiGetScreenSize You should do some maths and make your text always be in the same position on any resolution. You are nor understanding me, the text stay in the same position to any resolution, but the hud of the weapon and the health bar and the money goes to an other position... Link to comment
Hale Posted June 21, 2017 Share Posted June 21, 2017 (edited) 48 minutes ago, orel56000 said: You are nor understanding me, the text stay in the same position to any resolution, but the hud of the weapon and the health bar and the money goes to an other position... 4 He understood you, you don't understand him. Please refer to this post: Edited June 21, 2017 by Hale 1 Link to comment
orel56000 Posted June 21, 2017 Author Share Posted June 21, 2017 2 hours ago, Hale said: He understood you, you don't understand him. Please refer to this post: I understood him, he diden't understood me. I play on screen ratio 4:3, with resolution 1920X1080, but if player connecting with resolution 1920X1080 with screen ratio of 16:9 or 16:10 the text stay in the same postion but the health bar and money and weapon hud changes position, so the text not under the hud anymore.... Link to comment
Deeze Posted June 21, 2017 Share Posted June 21, 2017 Use this: https://wiki.multitheftauto.com/wiki/DxSetAspectRatioAdjustmentEnabled Link to comment
orel56000 Posted June 22, 2017 Author Share Posted June 22, 2017 On 21.6.2017 at 14:19, Deeze said: Use this: https://wiki.multitheftauto.com/wiki/DxSetAspectRatioAdjustmentEnabled Thank you so much 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