Ad
Log in to vote
1

What is the most efficient way to make UI circles?

Asked by 5 years ago

I know of 2 ways to do this. I just wonder what is the most efficient way?

Code 1:

local parent = script.Parent
local color = Color3.fromRGB(0,0,0)-- makes the frame a Color3 RGB value
for i=1,360,1 do
    local frame = Instance.new("Frame",parent)--Makes a frame
    frame.Rotation=i -- Sets the rotation
    frame.Size = UDim2.new(0.5,0,0.5,0)--Sets size
    frame.BorderSizePixel=0 --Remove the border
end

Setup 2: Use a decal

1
The most efficient way would be to use an ImageLabel! XAXA 1569 — 5y
1
Decals: low quality theevanegps2 15 — 5y
1
Use several ImageLabels to make up one circle image. That way, you can get a high-res circle image out of 4 to 8 ImageLabels as apposed to 360 Frames. cfiredog 274 — 5y
0
Using images does not yield low-quality results. Do you have any evidence that they do? You can upload images larger than 1000x1000, which should be large enough for almost any purpose. XAXA 1569 — 5y
View all comments (3 more)
0
I tried, it has a border. I didn't want a border. theevanegps2 15 — 5y
0
If you use paint.net or a tool like it you could make it transparent around the circle, just need BackgroundTransparency = 1 blowup999 647 — 5y
0
Lots of games use image UI elements for example treelands and their ui is High quality TheGreatSailor 20 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

If you are looking for a GTA 5 interface, then make (for example) a 1/5 circle piece, and when you open the menu do the math to distribute them into 1/5 pieces.

Ad

Answer this question