Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. UI.RENDER_TARGET = dxCreateRenderTarget(700, 500, true)
  2. UI.DRAW = function()
  3. dxSetRenderTarget(UI.RENDER_TARGET)
  4. UI.INDEX = 0
  5. for i,v in ipairs(ITEMS) do
  6. if UI.MAX_ROW >= i and UI.MIN_ROW <= i then
  7. UI.INDEX = UI.INDEX + 1
  8. local offset = 83 * (UI.INDEX-1)
  9.  
  10. dxDrawRectangle(50, offset, 600, 83, tocolor(42, 40, 41))
  11. dxDrawText(v["name"].." "..i, 50, offset, 650, offset+83, tocolor(255, 255, 255, 150), 1, UI.FONTS[1], "center", "center")
  12. end
  13. end
  14. dxSetRenderTarget()
  15. local x, y, z = unpack(UI.POSITION)
  16. dxDrawMaterialLine3D(x, y, z+1, x, y, z, UI.RENDER_TARGET, 1, tocolor(255, 255, 255, 255), 0, 0, 0)
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement