-
Posts
535 -
Joined
-
Last visited
-
Days Won
9
Everything posted by thisdp
-
EDA ( Ellipse Detect Area ) Updated! Please update dgs with command: updatedgs to get the latest version.
-
And you can make it multilingual insided for example, you can choose language in the editor. Thanks for your working ! It is really amazed me ! Keep Working ! I sent a new version 2.965 just now, I hope this version will help you a lot and some functions on the wiki about memo was just finished. By the way , please remove cyclehitshape. Because it will be no longer used.
-
And the data struct of memo is not what you thought. I use a table to store the texts in every line. dgsDxMemoGetPartOfText This function returns a string. Would you mind put this project on github?
-
Sry everyone, I am so busy with my study these days. This project will slow down for several days. But I promise, when I came back, it will be a big update ( DGS Version 3.0 ) with a lot of new properties and functions.
-
Good Job. And don't forget to tell beginners how to deal with errors and warnings.
-
I recommend you not to use this function, because it will be abandoned soon. In stead, it will be replaced by another function which have more options and functions.
-
local players = getElementsByType ( "player" ) for theKey,thePlayer in ipairs(players) do if getElementData(thePlayer,"char:chatting") then local DataUpText = getElementData(thePlayer,"char:upText") local imageSize = dxGetFontHeight ( textscale*NAMETAG_TEXTSIZE2, srfont ) nameWidth = dxGetTextWidth ( playerName, textscale*NAMETAG_TEXTSIZE, srfont ) teamWidth = nameWidth if DataUpText == "" then -- dxDrawImage(x - 25 / (distance/10),y - 100 / (distance/10),50 / (distance/10),50 / (distance/10),getElementData(thePlayer, "char:admin")..".png") else dxDrawImage(sx - math.max(nameWidth/2) - imageSize - -18*scale, sy - imageSize - 8*scale, imageSize, imageSize,"keyboard.png") end end end
-
Oh , I think it was my mistake.Sry for it and it will be fixed after 14 hours. Thanks for your report.
-
Keep working, it will finally be a great DX LIB.
-
Actually the link is blocked for me.xd I would be appreciate it very much if you could upload it on community.multitheftauto.com
-
just table.sort export table and sort it rowData = dgsDxGUIGetProperty(gridlist,"rowData") table.sort(rowData,function(a,b) return a[1][1]>b[1][1] end) dgsDxGUISetProperty(gridlist,"rowData",rowData)
-
It means you pass a nil value into the function math.floor as its first argument.
-
Use gui to check the mouse and move the gui. At the top of gui, render the hud with dx functions. Or you can choose to use a dxlib.
-
Error: SAFshop\speedometer.lua:20 bad argument 'math.floor' at argument 1 (number expected, got nil) Now can you understand it?