Skip to content

Feat: Corner Radii, Corner Shapes, and Custom UIBox Shapes - #1500

Open
Aikoyori wants to merge 5 commits into
Steamodded:mainfrom
Aikoyori:corner-radii
Open

Feat: Corner Radii, Corner Shapes, and Custom UIBox Shapes#1500
Aikoyori wants to merge 5 commits into
Steamodded:mainfrom
Aikoyori:corner-radii

Conversation

@Aikoyori

Copy link
Copy Markdown
Contributor

This PR changes how corners are calculated. You can now specify how each corner's radius and corner jaggedness

some absurd example here

G.FUNCS.overlay_menu({
    definition = create_UIBox_generic_options({
        back_func = "settings",
        contents = {
                { n = G.UIT.R, config = { colour = G.C.RED, r = 1, res = {5}, corners = {{0,0.1,0.2,0.4,0.8,1.6,3.2,4},{0,0.1,0.2,0.4,0.8,1.6,3.2,4},{0,0.1,0.2,0.4,0.8,1.6,3.2,4},{0,0.1,0.2,0.4,0.8,1.6,3.2,4}}, minw = 10, minh = 5 }}
            }
        })
    }) 
image

Additional Info:

  • I didn't modify api's or I've made a PR to the wiki repo.
  • I didn't modify api's or I've updated lsp definitions.
  • I didn't make new lovely files or all new lovely files have appropriate priority.

@Aikoyori Aikoyori changed the title Feat: Corner Radii & Corner Shapes Feat: Corner Radii, Corner Shapes, and Custom UIBox Shapes Aug 17, 2026
@Aikoyori

Aikoyori commented Aug 17, 2026

Copy link
Copy Markdown
Contributor Author

I have added an ability to completely customize the shape of UIBoxes'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant