diff --git a/.github/workflows/deploy.yml b/.github/workflows/snapshot.yml similarity index 100% rename from .github/workflows/deploy.yml rename to .github/workflows/snapshot.yml diff --git a/lib/src/main/kotlin/com/github/mnemotechnician/mkui/Buttons.kt b/lib/src/main/kotlin/com/github/mnemotechnician/mkui/Buttons.kt new file mode 100644 index 0000000..4638e32 --- /dev/null +++ b/lib/src/main/kotlin/com/github/mnemotechnician/mkui/Buttons.kt @@ -0,0 +1,79 @@ +package com.github.mnemotechnician.mkui + +import arc.scene.* +import arc.scene.ui.* +import arc.scene.ui.layout.* +import arc.scene.style.* +import arc.struct.* +import arc.graphics.* +import arc.graphics.g2d.* +import mindustry.ui.* + +/** Adds a custom button constructed by a lambda and returns the created cell */ +inline fun Table.customButton(constructor: Button.() -> Unit, style: Button.ButtonStyle = Styles.defaultb, crossinline onclick: Button.() -> Unit): Cell