Best-Killer Posted October 29, 2016 Share Posted October 29, 2016 Some one explain to me how to make a chatbox dx ? Link to comment
GTX Posted October 29, 2016 Share Posted October 29, 2016 You can check out this resource: https://community.multitheftauto.com/index.php?p=resources&s=details&id=10074 Link to comment
Best-Killer Posted October 30, 2016 Author Share Posted October 30, 2016 already i checked it Look at this ss : what i have to do ?? i know how to get text from the editbox ...... ect and but how to make dxtext moving up i hope that you understand me Link to comment
KariiiM Posted October 30, 2016 Share Posted October 30, 2016 The default chatbox is already based on directX, But to make a custom one you'll need to disable the default one and start building a custom one, using dxDrawText and if needed dxDrawRectangle, Also you can use the event onClientChatMessage to output on your custom chatbox any when any text is output to the default chatbox of MTA. 1 Link to comment
Best-Killer Posted October 30, 2016 Author Share Posted October 30, 2016 i won't it output in the defualt mta chat and that scripts is support system did you understand me @KariiiM Link to comment
KariiiM Posted October 30, 2016 Share Posted October 30, 2016 Whatever, I had answered your main topic's question, About your second question, you'll need to make some calculations using math to draw the first text in the top of the rectangle and in each message draw a new message under the first one using some logic calculations by getting the last height plus the new height ..etc And when your box becomes containing max lines make a scroll system. 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