-
Posts
535 -
Joined
-
Last visited
-
Days Won
9
Everything posted by thisdp
-
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().
-
He said why Clientsided setFPSLimit only works lower than Serversided one. And the fact is that.
-
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)
-
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.
-
Added: dgsGetDxGUIFromResource dgsGetDxGUINoParent To know the detail. See update log: http://angel.mtaip.cn:233/dgsUpdate/
-
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).
-
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
-
if button == "right" then
-
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)
-
it is getPedControlState rather than PedControlState
-
Thanks. Row and Column in dgs start from 1, because I use table and table count #mytable.
-
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.
-
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.
-
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.
-
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.