Skip to content

Renewed version of my DX library for Multi Theft Auto

License

Notifications You must be signed in to change notification settings

moon91210/mta-dxgui

Repository files navigation

DX-GUI (A framework for Multi Theft Auto)

DX-GUI allows scripters to build beautiful GUI with just a few lines of code.

My aim is to make this framework be faster and more flexible than DGS by splitting everything up in separate modules which will allow us to re-use code and also makes it easier to update the code and modify it.

We try to make the functions easy to use and you're able to chain most of the component methods which increases usability a lot and it'll make your code shorter and easier to read.

Note: This framework is currently in development and thus unstable. Every piece of code is subject to change so some functions may be changed completely or may not work at all in the future. Please take this into consideration when using this framework.

Example

Making gui with DX-GUI is really easy:

-- Create a window
local win = Window(0, 0, 800, 600,'cool window')
win:align('center')

-- Add a couple of buttons
local btn1 = Button(50, 50, 150, 60, 'click me')
btn1:setParent(win)
btn1:on('mouseup', function() btn1.value = 'clicked' end)

local btn2 = Button(50, 120, 150, 60, 'click me too')
btn2:setParent(win)
btn2:on('mouseup', function() btn2.value = 'clicked' end)

Check out demo.lua for more examples.

List of available components

Components
Window
Button
Label
Input
Image
Checkbox
TabPanel
Gridlist
MediaPlayer
ProgressBar
Scrollbar
Slider
DragArea
Browser
RadioButton
Lots more to come...
Modules
ColorPicker
Alert

Please note that some of these components aren't complete yet and/or missing features.

License

Copyright 2018 Tails

Licensed under the MIT license.

About

Renewed version of my DX library for Multi Theft Auto

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages