Jump to content

thisdp

Scripting Moderators
  • Posts

    535
  • Joined

  • Last visited

  • Days Won

    9

Everything posted by thisdp

  1. cant, use a dx lib instead
  2. but have you compared with rendering 1 rectangle and render text with rendertarget? If dgs takes more cpu resource, I will take measurea to reduce it.
  3. possible for server,but impossible for client
  4. Thanks for your supports. DGS edit doesn't supports arabic read style, but it will be added soon. Except for this, all things function. Text selection, other language and color and so on
  5. Now your problem is solved by DGS. If you have DGS, then loadstring(exports.dgs:dgsImportFunction())() edit = dgsCreateEdit(0.3,0.4,0.2,0.05,"test",true) dgsSetProperty(edit,"bgcolor",tocolor(255,255,255,0))
  6. Hello Everyone. DGS Discord Server is created:https://discord.gg/QEs8q6W You can put forward your suggestions in the server. Any news of dgs will be available in the server. I am glad that you can join it. Thanks for your support !
  7. https://wiki.multitheftauto.com/wiki/Modules Learn from here. If you think it too difficult or too complicated, just ignore me.
  8. You can reenable the "require" by loading module in serverside.
  9. why not use oop? https://wiki.multitheftauto.com/wiki/Matrix
  10. If you really want a dx lib, I am glad to recommend you my dgs(dx gui framework)
  11. I was meeting with such an error, but I solved it by using "updatedgs" again.
  12. Not because of this xd. If you have learned ellipse, it will be easy for you to use it. ellipse equation: x^2/a^2 + y^2/b^2 = 1 (a≠b) circle equation: x^2+y^2 = r^2 This is useful if you want to use an oval button and you don't want a square detecting area of the button.
  13. WOW! Based on cegui? I was doing the same thing 4 years ago, but failed. So I start dx gui project. Yours are great and have good looking. Keep working! Best custom gui.
  14. These three months I am preparing my college entrance exam, update will be slow. DGS still has a long way to go. Thanks for your supporting.
  15. This event will be triggered when you click the X button.
  16. The window closes does't mean it will have some effects on the cursor. use showCursor(false) in the event onDgsWindowClose. https://wiki.multitheftauto.com/wiki/OnDgsWindowClose
  17. destroyElement the object that the camera attached to.
  18. scW,scH = guiGetScreenSize() ratio = scW/scH width,height = 200,200*ratio
  19. Don't forget Render Target takes more resources and video memory. And I am actually seeking for the solution of optimization, while I found dxDrawText, dxDrawImage, dxDraw... these function are very very very slow. Object-oriented code is good for experienced scripters, but it is horrible for new scripters. Thanks for your suggestions and supports.
  20. the functions name are incorrect https://wiki.multitheftauto.com/wiki/Dgs But some functions are different from cegui's
  21. I would apperciate it very much if you could give some advice on DGS.
  22. fixed ! Thanks for report. This issue caused by some unknown characters in scheme loader, when i rewrite the code in that line, I found the size of file 1 byte smaller than before.
×
×
  • Create New...