Jump to content

thisdp

Scripting Moderators
  • Posts

    535
  • Joined

  • Last visited

  • Days Won

    9

Everything posted by thisdp

  1. Why not use dxCreateTexture. It will work faster. If not, dgs will first copy the image file to its directory and then load it from disk when creating dxgui. The color in dgs is always using an integer which can translated by tocolor().
  2. He said why Clientsided setFPSLimit only works lower than Serversided one. And the fact is that.
  3. msyh.ttf is very big and has bad effect in render target. If you want this font, use dxCreateFont. You can use absolute column before add row. dgsDxGridListSetColumnRelative(gridlist,false) Or you can use no render target mode. dgsDxGUISetProperty(gridlist,"mode",true)
  4. That is why XD. In the bottom of dgs-dxedit, there is a gui-edit for typing (So that we can use Ctrl+V ,IME and other languages). But I rewrite the edit's function.
  5. Added: dgsGetDxGUIFromResource dgsGetDxGUINoParent To know the detail. See update log: http://angel.mtaip.cn:233/dgsUpdate/
  6. ipairs : the index of table from 1 to ∞ which can only be continuous. pairs: the index of table can be everything.(even it is continuous)
  7. That is the difference between ipairs and pairs.
  8. movetype always set to false if move types set to true , the "tovx " will be move speed. if move types set to false, the "tovx" will be time(ms).
  9. dxDrawMaterialLine3D
  10. thisdp

    [Help]

    np I have made a mistake translations = { ["ا"] = "A" , ["ب"] = "B" , } function ArabicToEnglish(str) return str:gsub(".",translations) --I don't know whether this works end
  11. thisdp

    [Help]

    translations = { ["A"] = "ا" , ["B"] = "ب" } function ArabicToEnglish(str) for k,v in pairs(translations) do str = str:gsub(v,k) end return str end translations = { ["ا"] = "A" , ["ب"] = "B" , } function ArabicToEnglish(str) str:gsub(".",translations) --I don't know whether this works return str end
  12. AlwayOnTop is not dgs property. DGS = exports.dgs window = DGS:dgsDxCreateWindow(...) addEventHandler("onClientDgsDxBlur",root,function() if source == window then DGS:dgsDxGUIBringToFront(window) end end) addEventHandler("onClientDgsDxGUICreate",root,function() DGS:dgsDxGUIBringToFront(window) end)
  13. Thanks. Row and Column in dgs start from 1, because I use table and table count #mytable.
  14. Well. You can use dgsDxGUISetProperty to change the style (color,image,font...). But if you change the code of DGS, plz don't use updatedgs again. Because it will overwrite what you have changed.
  15. Good! Keep Working. I promise you will learn the best way to use DGS, since DGS is seems to be a part of my code life in MTA.
  16. use /updatedgs to update to the latest version. It seems dgs get the width and height of a dgs-dxgui , but the dgs-dxgui is not existing. and dgsDxGridListGetSelectedItem returns -1 as guiGridListGetSelectedIte was so, if not selected.
  17. maybe i can make a memo. but don't complain about the performance
  18. 8MB? In dgs, there is just a msyh.tff ( a font ) that is big. But once a player downloaded it, it won't be download it again if he doesn't clear mta cache.
×
×
  • Create New...