Jump to content

Gm image


Recommended Posts

  • Moderators
there is the image line:
dxDrawImage (x-100,y-540,36,35,getElementData(localP,"overrideCollide.uniqueblah") and "ghostmodeon.png" or "ghostmodeoff.png") 

Just say us with what resolution the position is perfect, and I can make it :wink:

Ok so I think you was in 800*600 so try this:

local xx, yy = relativeToAbsolute(0.875,0.1) 
local sxx, syy = relativeToAbsolute(0.045,0.0583) 
dxDrawImage (xx,yy,sxx,syy,getElementData(localP,"overrideCollide.uniqueblah") and "ghostmodeon.png" or "ghostmodeoff.png") 
  
function relativeToAbsolute(x, y) 
    local screenX, screenY = guiGetScreenSize() 
    local X = x*screenX 
    local Y = y*screenY 
    return X, Y 
end 

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