mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-30 16:28:00 +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
|
# Dependencies
|
||||||
modmenu_version=4.0.6
|
modmenu_version=4.0.6
|
||||||
minelp_version=4.6.1
|
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()
|
return (bounds.width - 10) - elements.stream()
|
||||||
.filter(PageElement::isFloating)
|
.filter(PageElement::isFloating)
|
||||||
.map(PageElement::bounds)
|
.map(PageElement::bounds)
|
||||||
.filter(b -> b.contains(b.left + b.width / 2, yPosition))
|
.filter(b -> b.containsY(yPosition))
|
||||||
.mapToInt(b -> b.width)
|
.mapToInt(b -> b.width)
|
||||||
.sum();
|
.sum();
|
||||||
}
|
}
|
||||||
|
@ -105,7 +105,7 @@ public class DynamicContent implements Content {
|
||||||
return elements.stream()
|
return elements.stream()
|
||||||
.filter(p -> p.flow() == PageElement.Flow.LEFT)
|
.filter(p -> p.flow() == PageElement.Flow.LEFT)
|
||||||
.map(PageElement::bounds)
|
.map(PageElement::bounds)
|
||||||
.filter(b -> b.contains(b.left + b.width / 2, yPosition))
|
.filter(b -> b.containsY(yPosition))
|
||||||
.mapToInt(b -> b.width)
|
.mapToInt(b -> b.width)
|
||||||
.sum();
|
.sum();
|
||||||
}
|
}
|
||||||
|
@ -150,7 +150,7 @@ public class DynamicContent implements Content {
|
||||||
elements.stream().filter(PageElement::isFloating).forEach(element -> {
|
elements.stream().filter(PageElement::isFloating).forEach(element -> {
|
||||||
Bounds bounds = element.bounds();
|
Bounds bounds = element.bounds();
|
||||||
matrices.push();
|
matrices.push();
|
||||||
matrices.translate(bounds.left, bounds.top, 0);
|
bounds.translate(matrices);
|
||||||
element.draw(matrices, mouseX, mouseY, container);
|
element.draw(matrices, mouseX, mouseY, container);
|
||||||
matrices.pop();
|
matrices.pop();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue