Jump to content

thisdp

Scripting Moderators
  • Posts

    535
  • Joined

  • Last visited

  • Days Won

    9

Everything posted by thisdp

  1. I am writing wiki for dgs . see the head page. And the usage actually is very like the original gui's. So it is easy to get familiar with it. good. it works
  2. Lua will do that itself
  3. By the way, label can execute functions. local fnc = [[ --self is defined as the dxgui which is executing this function. local arg = {...} -- arguments return getPlayerName(localPlayer) ]] dgsDxGUISetProperty(label,"functions",fnc,"arguments",...)
  4. Don't worry. You can see the update log in : angel.mtaip.cn:233/dgsUpdate And it will check update itself.
  5. Radio Button, Check Box, Tab Panel Can Be Made As Plugins. But I think that you prefer them in core. And it is still WIP, though I have spent 2 years in programming it
  6. you can either use tocolor(r,g,b,a) or use 0xRRGGBBAA
  7. Actually. Tab panel can be made as a plugin in dgs. I have a very strong property system dgsDxGUISetProperty(label,"textcolor",tocolor(r,g,b,a))
  8. It is the same. local tabl = {} tabl["a"] = 1 tabl["b"] = 2 dgsDxGridListSetItemText(list,row,-4,tabl,true) local mytabl = dgsDxGridListGetItemText(list,row,-4) print(mytabl.a)
  9. Tab Panel can be created by button and (static image or scroll pane) I am thinking about how to make a memo
  10. I have already did this -> dgsDxGridListSetItemText(list,row,-4,table,true)
  11. It have 90+ functions and 18 events. I don't have so much time to write it.
  12. It will closed itself. But if you want to add animations, you need to cancel Event (onClientDgsDxWindowClose) and insert your code then closeWindow(source)
  13. You can use it like original gui, more over I added additional functions
  14. This is my server. The gui is made by dgs. ( I am bad in design sry)
  15. if he wants to save 5000+ vehicles, sqlite is the best solution to his question
  16. Thisdp's DirectX Graphical User Interface System ( MTASA 2D+3D DxLIB ) This dxlib provide dx gui functions and events to make it easier to use and alternative to change the style more flexibly. Features: 1. Update Check(DGS will notice you if there is a higher version, and you can choose to ignore it or disable it in the config file) Update Command: "updatedgs" 2. Dx GUI Types: Basic: Window Edit Box Button Grid List Image Scroll Bar Scroll Pane Text Label Tab Panel Detect Area Radio Button Combo Box Check Box Memo 3D Interface 3D Text Browser Switch Button Selector Plugin: Media Browser Color Picker Mask Remote Image QRCode Blur Box Rounded Rectangle Nine Slice Scaling Object Preview Support Canvas Scroll Pane's 3D Effect 3. Edit/Memo rewrite ( You can no longer find the problems in dgs, the problems which exist in cegui) 4. Detect Area is efficient when checking whether your cursor is in a complicated shape. 5. Debug Mode , Command: "debugdgs" 6. You can apply shader to the dxgui ( Compatible with some resources like Objec tPreview ). 7. Include CMD, Command: "dgscmd" ( For more help, please input "help" in the CMD ) 8. Memo/Edit rewritten. 9. Object Oriented Programming Class. 10. Render Target Failure Check ( Warns when there's no enough video memory to create render target ). 11. DGS resembles cegui, you can find the similar feeling when scripting with dgs. 12. 48-hour-response service, your suggestions and bug report will be dealt with in 48 hours ( or less, like 12 hours ? ) 13. Custom Style system 14. Built-in shader plugin 15. More properties 16. Built in multi-language support 17. Simple GUI To DGS (G2D) Notice:Do not close your server or stop the script when it is updating. Wiki: https://wiki.multitheftauto.com/wiki/Dgs ( Still Working In Process ) Auto Completion For N++ (Thanks To Ahmed Ly): http://www.mediafire.com/file/m6dm7815d5dihax/Lua.zip Discord Server: https://discord.gg/QEs8q6W Download DGS : https://github.com/thisdp/dgs Notice: Need acl rights to call fetchRemote/getPlayerIP. If you want to sell your script which involves DGS, please exclude DGS from your price. HurtWorld Backpack Panel(Example) DGS Network Monitor(Built-in)
  17. I want to make a socket module. When I attempt to connect to my local socket server, I got an error : PANIC: unprotected error in call to Lua API (connect event call error: 2) What does this mean and how to solve this problem? Thanks.
  18. I think you should call your friends
  19. You should use string.gsub Lua uses string library you can call functions with string.*
  20. Some modules have client-sided functions. But I don't know how to use them on client.
×
×
  • Create New...