Added "copy to clipboard" button for mod errors

This commit is contained in:
Yair Morgenstern
2022-02-21 10:50:18 +02:00
parent 5bac71709b
commit 91816d9c37

View File

@ -338,6 +338,11 @@ class OptionsPopup(val previousScreen: BaseScreen) : Popup(previousScreen) {
label.wrap = true
it.add(label).width(stage.width / 2).row()
}
if(!noProblem)
it.add("Copy to clipboard".toTextButton().onClick {
Gdx.app.clipboard.contents = lines.map { it.text }.filterNot { it=="" }
.joinToString("\n")
}).row()
}
val loadingLabel = modCheckResultTable.children.last()