mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 13:37:58 +01:00
Update kirin
This commit is contained in:
parent
95e487ad1b
commit
184af1d53e
2 changed files with 4 additions and 4 deletions
|
@ -17,4 +17,4 @@ org.gradle.daemon=false
|
|||
# Dependencies
|
||||
modmenu_version=4.0.6
|
||||
minelp_version=4.6.1
|
||||
kirin_version=1.11.0
|
||||
kirin_version=1.11.1
|
||||
|
|
|
@ -96,7 +96,7 @@ public class DynamicContent implements Content {
|
|||
return (bounds.width - 10) - elements.stream()
|
||||
.filter(PageElement::isFloating)
|
||||
.map(PageElement::bounds)
|
||||
.filter(b -> b.contains(b.left + b.width / 2, yPosition))
|
||||
.filter(b -> b.containsY(yPosition))
|
||||
.mapToInt(b -> b.width)
|
||||
.sum();
|
||||
}
|
||||
|
@ -105,7 +105,7 @@ public class DynamicContent implements Content {
|
|||
return elements.stream()
|
||||
.filter(p -> p.flow() == PageElement.Flow.LEFT)
|
||||
.map(PageElement::bounds)
|
||||
.filter(b -> b.contains(b.left + b.width / 2, yPosition))
|
||||
.filter(b -> b.containsY(yPosition))
|
||||
.mapToInt(b -> b.width)
|
||||
.sum();
|
||||
}
|
||||
|
@ -150,7 +150,7 @@ public class DynamicContent implements Content {
|
|||
elements.stream().filter(PageElement::isFloating).forEach(element -> {
|
||||
Bounds bounds = element.bounds();
|
||||
matrices.push();
|
||||
matrices.translate(bounds.left, bounds.top, 0);
|
||||
bounds.translate(matrices);
|
||||
element.draw(matrices, mouseX, mouseY, container);
|
||||
matrices.pop();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue