mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-11 11:28:03 +07:00
added button to paste from clipboard when downloading a mod (#8101)
This commit is contained in:
parent
ff25014a54
commit
ccb1d769f1
@ -1534,6 +1534,7 @@ Update [modName] =
|
|||||||
Could not download mod list =
|
Could not download mod list =
|
||||||
Download mod from URL =
|
Download mod from URL =
|
||||||
Please enter the mod repository -or- archive zip url: =
|
Please enter the mod repository -or- archive zip url: =
|
||||||
|
Paste from clipboard =
|
||||||
Download =
|
Download =
|
||||||
Done! =
|
Done! =
|
||||||
Delete [modName] =
|
Delete [modName] =
|
||||||
|
@ -388,6 +388,11 @@ class ModManagementScreen(
|
|||||||
popup.addGoodSizedLabel("Please enter the mod repository -or- archive zip url:").row()
|
popup.addGoodSizedLabel("Please enter the mod repository -or- archive zip url:").row()
|
||||||
val textField = UncivTextField.create("")
|
val textField = UncivTextField.create("")
|
||||||
popup.add(textField).width(stage.width / 2).row()
|
popup.add(textField).width(stage.width / 2).row()
|
||||||
|
val pasteLinkButton = "Paste from clipboard".toTextButton()
|
||||||
|
pasteLinkButton.onClick {
|
||||||
|
textField.text = Gdx.app.clipboard.contents
|
||||||
|
}
|
||||||
|
popup.add(pasteLinkButton).row()
|
||||||
val actualDownloadButton = "Download".toTextButton()
|
val actualDownloadButton = "Download".toTextButton()
|
||||||
actualDownloadButton.onClick {
|
actualDownloadButton.onClick {
|
||||||
actualDownloadButton.setText("Downloading...".tr())
|
actualDownloadButton.setText("Downloading...".tr())
|
||||||
|
Loading…
Reference in New Issue
Block a user