Jump to content

Relative


Anubhav

Recommended Posts

addEventHandler("onClientRender", root, 
        function() 
            if(guiGetVisible(GUITeleporter.window[1]) ) then 
                local xOff, yOff = guiGetPosition(GUITeleporter.window[1], false) 
                dxDrawImage(5 + xOff, 225 + yOff, 226, 1, ":teleporter/images/dot_white.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) 
            end 
        end 
    ) 

you get the x and y position of the parent window and add it as offset

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