thisdp / dgs

Thisdp's Dx Graphical User Interface System (MTA Dx Lib)
http://wiki.mtasa.com/wiki/dgs
63 stars 34 forks source link

Make small circular progress bar antialiased #42

Closed ghost closed 4 years ago

ghost commented 4 years ago

The problem:

When I create a small circular progress bar, the edges are not smooth.

Code to produce the bug:

dgsSetProperty(progressBar,"bgColor", tocolor(0, 0, 0, 255))
dgsProgressBarSetStyle(progressBar,"ring-round")
local progress = 0
addEventHandler("onClientRender", root,
    function()
    dgsProgressBarSetProgress(progressBar,progress)
    progress = progress + 0.1
end)

Screenshot: circle

thisdp commented 4 years ago

Fixed. Thanks 3~GU2`OY%2B%BIUML0}4L 2

ghost commented 4 years ago

Fixed. Thanks 3~GU2`OY%2B%BIUML0}4L 2

That was fast. Thank you. :)