Jump to content

[REL] dxMoveable | Class


Recommended Posts


I create a class which can create moveable dxElements. It is very easy to use.

If you don't know what i mean, just watch one of the Videos :D

-- create 
dxMoveableElement dxMoveable:createMoveable(int w, int h, bool withAlpha) 

-- how to draw the moveable 
myMoveable = dxMoveable:createMoveable(259, 254, true) 
dxSetRenderTarget(myMoveable.renderTarget, true) 
        dxDrawRectangle(0, 0, 259, 254) 
myMoveable.posX, myMoveable.posY = 100, 500 -- default (0, 0) 
addEventHandler("onClientRender", root, function () 
        dxDrawImage(myMoveable.posX, myMoveable.posY, myMoveable.w, myMoveable.h, myMoveable.renderTarget) 

To move the Elements just press F2.

Old Video:

New Video:


https://community.multitheftauto.com/index.php?p= ... s&id=10330

- StiviK

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