diff --git a/android/assets/jsons/translations/template.properties b/android/assets/jsons/translations/template.properties index 7b8ffcf6fa..2d8e3918b6 100644 --- a/android/assets/jsons/translations/template.properties +++ b/android/assets/jsons/translations/template.properties @@ -1534,6 +1534,7 @@ Update [modName] = Could not download mod list = Download mod from URL = Please enter the mod repository -or- archive zip url: = +Paste from clipboard = Download = Done! = Delete [modName] = diff --git a/core/src/com/unciv/ui/pickerscreens/ModManagementScreen.kt b/core/src/com/unciv/ui/pickerscreens/ModManagementScreen.kt index 1c86a10f43..3d6595398d 100644 --- a/core/src/com/unciv/ui/pickerscreens/ModManagementScreen.kt +++ b/core/src/com/unciv/ui/pickerscreens/ModManagementScreen.kt @@ -388,6 +388,11 @@ class ModManagementScreen( popup.addGoodSizedLabel("Please enter the mod repository -or- archive zip url:").row() val textField = UncivTextField.create("") 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() actualDownloadButton.onClick { actualDownloadButton.setText("Downloading...".tr())