mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-17 19:35:00 -04:00
fullbright: properly color debug message
This commit is contained in:
parent
be1ce2aa7d
commit
e84e08e991
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Minosoft
|
* Minosoft
|
||||||
* Copyright (C) 2020-2022 Moritz Zwerger
|
* Copyright (C) 2020-2023 Moritz Zwerger
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
@ -23,6 +23,7 @@ import de.bixilon.minosoft.gui.rendering.RenderContext
|
|||||||
import de.bixilon.minosoft.gui.rendering.RenderingStates
|
import de.bixilon.minosoft.gui.rendering.RenderingStates
|
||||||
import de.bixilon.minosoft.gui.rendering.world.WorldRenderer
|
import de.bixilon.minosoft.gui.rendering.world.WorldRenderer
|
||||||
import de.bixilon.minosoft.gui.rendering.world.light.debug.LightmapDebugWindow
|
import de.bixilon.minosoft.gui.rendering.world.light.debug.LightmapDebugWindow
|
||||||
|
import de.bixilon.minosoft.util.KUtil.format
|
||||||
import de.bixilon.minosoft.util.KUtil.toResourceLocation
|
import de.bixilon.minosoft.util.KUtil.toResourceLocation
|
||||||
import de.bixilon.minosoft.util.delegate.JavaFXDelegate.observeFX
|
import de.bixilon.minosoft.util.delegate.JavaFXDelegate.observeFX
|
||||||
|
|
||||||
@ -56,7 +57,7 @@ class RenderLight(val context: RenderContext) {
|
|||||||
defaultPressed = connection.profiles.rendering.light.fullbright,
|
defaultPressed = connection.profiles.rendering.light.fullbright,
|
||||||
) {
|
) {
|
||||||
connection.profiles.rendering.light.fullbright = it
|
connection.profiles.rendering.light.fullbright = it
|
||||||
connection.util.sendDebugMessage("Fullbright: $it")
|
connection.util.sendDebugMessage("Fullbright: ${it.format()}")
|
||||||
}
|
}
|
||||||
if (DebugOptions.LIGHTMAP_DEBUG_WINDOW) {
|
if (DebugOptions.LIGHTMAP_DEBUG_WINDOW) {
|
||||||
context::state.observeFX(this) {
|
context::state.observeFX(this) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user