Thehookerkiller01

Howto create static image above minimap?

Recommended Posts

Measure.. Calculate.. Whatever. Next thing you'll ask is where to buy some toilet paper... :S

Share this post


Link to post

Relative sizes are usually calculated by dividing the absolute value by the value relative to. Just imagine your GUI window has a width of 200 pixels and the resolution of your screen is 800 x 600 pixels. The relative value is 200 / 800 = 0.25.

Edited by Guest

Share this post


Link to post
Relative sizes are usually calculated by dividing the absolute value by the value relative to. Just image your GUI window had a width of 200 pixels and the resolution of your screen is 800 x 600 pixels. The relative value is 200 / 800 = 0.25.

Erm...

Share this post


Link to post
Relative sizes are usually calculated by dividing the absolute value by the value relative to. Just imagine your GUI window has a width of 200 pixels and the resolution of your screen is 800 x 600 pixels. The relative value is 200 / 800 = 0.25.

Erm...

typo

But, seriously stop posting if you don't have anything to say. This isn't a chat box.

Absolute to relative example:

  
screenWidth, screenHeight = guiGetScreenSize() 
imageWidth = 50 
imageHeight = 50 
relImageWidth = imageWidth / screenWidth 
relImageHeight = imageHeight / screenHeight 
  

Share this post


Link to post

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.