mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 15:27:50 +07:00
Added "copy to clipboard" button for mod errors
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user