GithubHelp home page GithubHelp logo

filexgh / mta-dxgui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from moon91210/mta-dxgui

0.0 0.0 0.0 392 KB

Renewed version of my DX library for Multi Theft Auto

License: MIT License

Lua 100.00%

mta-dxgui's Introduction

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 LGPLv3: https://www.gnu.org/licenses/lgpl-3.0.html

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.