mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 13:55:54 -04:00
Added "copy to clipboard" button for mod errors
This commit is contained in:
parent
5bac71709b
commit
91816d9c37
@ -338,6 +338,11 @@ class OptionsPopup(val previousScreen: BaseScreen) : Popup(previousScreen) {
|
|||||||
label.wrap = true
|
label.wrap = true
|
||||||
it.add(label).width(stage.width / 2).row()
|
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()
|
val loadingLabel = modCheckResultTable.children.last()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user