fix: floating offset

This commit is contained in:
xtex 2023-07-25 11:32:14 +08:00
parent 77c87216f7
commit 33e206f9fe
Signed by: xtex
GPG Key ID: B918086ED8045B91

View File

@ -34,10 +34,10 @@ class ProjectionEffectShell(val effect: ProjectionEffect) {
row(key) {
object : AbstractSliderButton(
0, 0, width, height,
Component.literal(property.get().toString()), (property.get() - range.start) / len
Component.literal(String.format("%.2f", property.get())), (property.get() - range.start) / len
) {
override fun updateMessage() {
message = Component.literal(property.get().toString())
message = Component.literal(String.format("%.2f", property.get()))
}
override fun applyValue() {