Tremidinha Posted November 4, 2012 Share Posted November 4, 2012 Well, I had done an earlier topic of how to make a dxDraw stay in the same position in all resolutions so I made this topic: viewtopic.php?f=91&t=46381 and I did, but only run for dxDrawRectangle and dxDrawImage. So was wondering how does dxDrawText leaving the same position at all resolutions and take the same position of the mouse for all resolutions. Thanks, I await answers. Google Translator owna Link to comment
Anderl Posted November 4, 2012 Share Posted November 4, 2012 It's exactly the same as dxDrawRectangle and dxDrawImage. Link to comment
Tremidinha Posted November 4, 2012 Author Share Posted November 4, 2012 but the getCursorPosition and () as it does? Link to comment
Anderl Posted November 4, 2012 Share Posted November 4, 2012 Would you mind talking english properly? I didn't get it. Link to comment
Tremidinha Posted November 4, 2012 Author Share Posted November 4, 2012 enters the msn guy. Link to comment
codeluaeveryday Posted November 5, 2012 Share Posted November 5, 2012 I believe he wants his DX Text to work on every res. Link to comment
Guest Guest4401 Posted November 5, 2012 Share Posted November 5, 2012 If you make your dx elements' position relative, you might be able to get things right in my opinion. Yes, I know dx doesn't support that, but math can help you out; X Absolute / screenWidth will be the relative position on the screen Y Absolute / screenHeight will be the relative position on the screen Similarly, X Relative * screenWidth will be the absolute position on the screen Y Relative * screenHeight will be the absolute position on the screen Link to comment
Anderl Posted November 5, 2012 Share Posted November 5, 2012 I believe he wants his DX Text to work on every res. Nop, we talked over Messenger. It's something about cursor position. I didn't get it yet. @Tremidinha, please explain what's your problem better for us. 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