diff --git a/lib/src/main/kotlin/com/github/mnemotechnician/mkui/Elements.kt b/lib/src/main/kotlin/com/github/mnemotechnician/mkui/Elements.kt index 0b85436..79a020b 100644 --- a/lib/src/main/kotlin/com/github/mnemotechnician/mkui/Elements.kt +++ b/lib/src/main/kotlin/com/github/mnemotechnician/mkui/Elements.kt @@ -27,21 +27,21 @@ inline fun Table.addLabel(crossinline provider: () -> CharSequence, style: Label } /** Adds a constant image to the table and returns the created cell */ -inline fun Table.addImage(drawable: Drawable, scaling: Scaling = Scaling.fit): Cell { +inline fun Table.addImage(drawable: Drawable, scaling: Scaling = Scaling.none): Cell { val i = Image(drawable) i.setScaling(scaling) return add(i) } /** Adds a constant image to the table and returns the created cell */ -inline fun Table.addImage(drawable: TextureRegion, scaling: Scaling = Scaling.fit): Cell { +inline fun Table.addImage(drawable: TextureRegion, scaling: Scaling = Scaling.none): Cell { val i = Image(drawable) i.setScaling(scaling) return add(i) } /** Adds a dynamic image to the table and returns the created cell */ -inline fun Table.addImage(crossinline provider: () -> TextureRegion, scaling: Scaling = Scaling.fit): Cell { +inline fun Table.addImage(crossinline provider: () -> TextureRegion, scaling: Scaling = Scaling.none): Cell { val i = Image(provider()) i.setScaling(scaling) i.update { provider() }