Jump to content

thisdp

Moderators
  • Posts

    535
  • Joined

  • Last visited

  • Days Won

    9

Everything posted by thisdp

  1. https://wiki.multitheftauto.com/wiki/RequestBrowserDomains
  2. https://wiki.multitheftauto.com/wiki/DGS_General_Basic_Properties Property: outline
  3. I mean CPU usage
  4. What about its performance?
  5. Wow! What have I found? A new brilliant UIKit Library with smooth feeling!
  6. use render target, but it will take some Video Memory. And if there is no video memory free for mta, then, you can't create render target.
  7. This GUI Widget System is not based on dx
  8. try to create gui element, and move your cursor, then you will find the same thing.
  9. You finally spell the right name XD Good Job ! Keep it up !
  10. That is clearly claimed in dxDrawText
  11. sry, it's my fault, updatedgs But it seems there is still a problem. I will fix it later Thank you
  12. so I told you, set "Face To" to nil,nil,nil https://wiki.multitheftauto.com/wiki/DgsCreate3DInterface If you want to face to a point, use pointPosition-3dInterfacePosition
  13. face to of dgs 3d interface is offset relative to the position of 3d interface such as face to 1,0,0 the absolute position is x+1,y,z
  14. I just wonder how can you draw a window on 3d interface. set face to nil,nil,nil can give you an always facing to the camera state
  15. create edits in the same parent gui element
  16. here is an example local sortfnc = [[ local arg = {...} local a = arg[1] local b = arg[2] local column = dgsElementData[self].sortColumn local texta,textb = a[column][1],b[column][1] local texta,textb = tonumber(texta:sub(2)),tonumber(textb:sub(2)) print(texta,textb) return texta < textb ]] gridlist = dgsCreateGridList(300,50,600,600,false) dgsGridListAddColumn(gridlist,"test1",0.2) for i=1,50 do local row = dgsGridListAddRow(gridlist) dgsGridListSetItemText(gridlist,row,1,"#"..tostring(i)) end dgsGridListSetSortEnabled(gridlist,false) --disable click sorting dgsGridListSetSortFunction(gridlist,sortfnc) dgsGridListSetSortColumn(gridlist,1) I have just released DGS 3.393 You can use dgsScrollBarSetLocked to lock the position dgsScrollBarSetLocked(scrollbar,state)
  17. Event Name: On*** -> on*** use custom sort function
  18. function scr(new, old) if source == dgsGridListGetScrollBar(gridlist)[1] then local vertical = dgsGridListGetScrollPosition(gridlist) if vertical ~= old then dgsGridListSetScrollPosition(gridlist,old) end end end addEventHandler("onDgsScrollBarScrollPositionChange",root,scr) https://wiki.multitheftauto.com/wiki/OnDgsMouseClick read the bold text in "state" carefully
  19. My pleasure Thanks for your support again
  20. https://wiki.multitheftauto.com/wiki/DgsGridListGetScrollBar
×
×
  • Create New...