Jump to content

Howto create static image above minimap?


Recommended Posts

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
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 
  

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.

×
×
  • Create New...