mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-30 23:41:03 -04:00
Resolved #804 - bigger Diplomacy and Next Turn buttons for easier click
This commit is contained in:
parent
9352243eb4
commit
e70e052515
@ -21,8 +21,8 @@ android {
|
|||||||
applicationId "com.unciv.app"
|
applicationId "com.unciv.app"
|
||||||
minSdkVersion 14
|
minSdkVersion 14
|
||||||
targetSdkVersion 28
|
targetSdkVersion 28
|
||||||
versionCode 247
|
versionCode 248
|
||||||
versionName "2.16.10"
|
versionName "2.16.10-patch1"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Had to add this crap for Travis to build, it wanted to sign the app
|
// Had to add this crap for Travis to build, it wanted to sign the app
|
||||||
|
@ -184,6 +184,8 @@ class WorldScreen : CameraStageBaseScreen() {
|
|||||||
displayTutorials("OtherCivEncountered")
|
displayTutorials("OtherCivEncountered")
|
||||||
val btn = TextButton("Diplomacy".tr(), skin)
|
val btn = TextButton("Diplomacy".tr(), skin)
|
||||||
btn.onClick { UnCivGame.Current.screen = DiplomacyScreen() }
|
btn.onClick { UnCivGame.Current.screen = DiplomacyScreen() }
|
||||||
|
btn.label.setFontSize(30)
|
||||||
|
btn.labelCell.pad(10f)
|
||||||
diplomacyButtonWrapper.add(btn)
|
diplomacyButtonWrapper.add(btn)
|
||||||
}
|
}
|
||||||
diplomacyButtonWrapper.pack()
|
diplomacyButtonWrapper.pack()
|
||||||
@ -223,9 +225,10 @@ class WorldScreen : CameraStageBaseScreen() {
|
|||||||
private fun createNextTurnButton(): TextButton {
|
private fun createNextTurnButton(): TextButton {
|
||||||
|
|
||||||
val nextTurnButton = TextButton("", skin) // text is set in update()
|
val nextTurnButton = TextButton("", skin) // text is set in update()
|
||||||
|
nextTurnButton.label.setFontSize(30)
|
||||||
|
nextTurnButton.labelCell.pad(10f)
|
||||||
|
|
||||||
nextTurnButton.onClick {
|
nextTurnButton.onClick {
|
||||||
|
|
||||||
// cycle through units not yet done
|
// cycle through units not yet done
|
||||||
if (currentPlayerCiv.shouldGoToDueUnit()) {
|
if (currentPlayerCiv.shouldGoToDueUnit()) {
|
||||||
val nextDueUnit = currentPlayerCiv.getNextDueUnit()
|
val nextDueUnit = currentPlayerCiv.getNextDueUnit()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user