Make callback be mutable property
This commit is contained in:
parent
4daa0be19a
commit
6a5924267a
@ -500,7 +500,7 @@ open class ColorPickerPanel<out S : Screen>(
|
||||
y: Float = 0f,
|
||||
width: Float = 164f,
|
||||
height: Float = 118f,
|
||||
val callback: Consumer<RGBAColor>? = null
|
||||
var callback: Consumer<RGBAColor>? = null
|
||||
) : EditablePanel<S>(screen, parent, x, y, width, height) {
|
||||
open fun onColorChanged(color: RGBAColor) {
|
||||
callback?.accept(color)
|
||||
|
Loading…
Reference in New Issue
Block a user