Tremidinha Posted November 4, 2012 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
Anderl Posted November 4, 2012 Posted November 4, 2012 It's exactly the same as dxDrawRectangle and dxDrawImage.
Tremidinha Posted November 4, 2012 Author Posted November 4, 2012 but the getCursorPosition and () as it does?
Anderl Posted November 4, 2012 Posted November 4, 2012 Would you mind talking english properly? I didn't get it.
codeluaeveryday Posted November 5, 2012 Posted November 5, 2012 I believe he wants his DX Text to work on every res.
Guest Guest4401 Posted November 5, 2012 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
Anderl Posted November 5, 2012 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.
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