Resolved #804 - bigger Diplomacy and Next Turn buttons for easier click

This commit is contained in:
Yair Morgenstern
2019-05-26 15:07:15 +03:00
parent 9352243eb4
commit e70e052515
2 changed files with 6 additions and 3 deletions

View File

@ -21,8 +21,8 @@ android {
applicationId "com.unciv.app"
minSdkVersion 14
targetSdkVersion 28
versionCode 247
versionName "2.16.10"
versionCode 248
versionName "2.16.10-patch1"
}
// Had to add this crap for Travis to build, it wanted to sign the app

View File

@ -184,6 +184,8 @@ class WorldScreen : CameraStageBaseScreen() {
displayTutorials("OtherCivEncountered")
val btn = TextButton("Diplomacy".tr(), skin)
btn.onClick { UnCivGame.Current.screen = DiplomacyScreen() }
btn.label.setFontSize(30)
btn.labelCell.pad(10f)
diplomacyButtonWrapper.add(btn)
}
diplomacyButtonWrapper.pack()
@ -223,9 +225,10 @@ class WorldScreen : CameraStageBaseScreen() {
private fun createNextTurnButton(): TextButton {
val nextTurnButton = TextButton("", skin) // text is set in update()
nextTurnButton.label.setFontSize(30)
nextTurnButton.labelCell.pad(10f)
nextTurnButton.onClick {
// cycle through units not yet done
if (currentPlayerCiv.shouldGoToDueUnit()) {
val nextDueUnit = currentPlayerCiv.getNextDueUnit()