Anubhav Posted August 31, 2014 Share Posted August 31, 2014 Is it possible to make dx into relative? I don't realy know how should I get the relative positions! Can someone help :-/ Link to comment
tosfera Posted August 31, 2014 Share Posted August 31, 2014 Yes, yes you can. just use math. Link to comment
karimsqualli96 Posted August 31, 2014 Share Posted August 31, 2014 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now