Skip to content

prnxdev/MTA_rounded_rectangle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Create rounded rectangles with this function!

Easy to use, cool effect. Why not to use? 1 thing - enable OOP in meta.xml

<meta>
  ...
  <oop>true</oop>
  ...
</meta>
SIMPLE AF
local texture = dxCreateRoundedTexture(300,40,50) -- width: 300px, height: 40px, radius: 50% (0-100%)

addEventHandler("onClientRender",root,
function()
  if texture then
    dxDrawImage(0,0,300,40,texture) -- drawing rounded texture at [0,0] with size [300,40]
  end
end)

TODO

Add antyaliasing. If you know how to make code better - DO IT! YES, YOU CAN! YESTERDAY YOU SAID TOMORROW!

cheers.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages