feat(ui): nine-slice corners clamped to half the box in each direction, cut on whole pixels
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
12f4ba8431
commit
cf8b9e425e
9 changed files with 53 additions and 7 deletions
|
|
@ -42,7 +42,7 @@ function fr_background(n: UiNode) -> void {
|
|||
}
|
||||
function fr_fill(n: UiNode, x: float, y: float, c: int, a: float) -> void {
|
||||
if n.bi_src != "" and ui_be.nine != null {
|
||||
ui_be.nine(n.bi_src, n.bi_slice, x, y, n.cw, n.ch, Math.min(n.bi_width, Math.min(n.cw, n.ch) / 2.0), c, a)
|
||||
ui_be.nine(n.bi_src, n.bi_slice, x, y, n.cw, n.ch, n.bi_width, c, a)
|
||||
return
|
||||
}
|
||||
fr_box(x, y, n.cw, n.ch, n.radius, c, a)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue