mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-10 10:58:13 +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 =
|
||||
Download mod from URL =
|
||||
Please enter the mod repository -or- archive zip url: =
|
||||
Paste from clipboard =
|
||||
Download =
|
||||
Done! =
|
||||
Delete [modName] =
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user