Jump to content

[REL] dxMoveable | Class


StiviK

Recommended Posts

Hello,

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) 
--destroy  
dxMoveableElement:destroyElement() 
  

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

To move the Elements just press F2.

Old Video:

New Video:

Download:

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