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,
|
y: Float = 0f,
|
||||||
width: Float = 164f,
|
width: Float = 164f,
|
||||||
height: Float = 118f,
|
height: Float = 118f,
|
||||||
val callback: Consumer<RGBAColor>? = null
|
var callback: Consumer<RGBAColor>? = null
|
||||||
) : EditablePanel<S>(screen, parent, x, y, width, height) {
|
) : EditablePanel<S>(screen, parent, x, y, width, height) {
|
||||||
open fun onColorChanged(color: RGBAColor) {
|
open fun onColorChanged(color: RGBAColor) {
|
||||||
callback?.accept(color)
|
callback?.accept(color)
|
||||||
|
Loading…
Reference in New Issue
Block a user