Jump to content

dxDrawText() and getCursorPosition()


Tremidinha

Recommended Posts

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 xD

Link to comment
Guest Guest4401

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...