mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-20 17:32:57 +07:00
Increased help button size (#7784)
我试图将MainMenuScreen的helpButton放大了一点,因为有很多玩家向我抱怨说第一次查找时找不到这个按钮。 I tried to enlarge the helpButton of MainMenuScreen a little, because many players complained to me that they could not find this button the first time they searched.
This commit is contained in:
parent
d65c756e4c
commit
3b8b1dee3b
@ -195,16 +195,16 @@ class MainMenuScreen: BaseScreen(), RecreateOnResize {
|
|||||||
game.popScreen()
|
game.popScreen()
|
||||||
}
|
}
|
||||||
|
|
||||||
val helpButton = "?".toLabel(fontSize = 32)
|
val helpButton = "?".toLabel(fontSize = 48)
|
||||||
.apply { setAlignment(Align.center) }
|
.apply { setAlignment(Align.center) }
|
||||||
.surroundWithCircle(40f, color = ImageGetter.getBlue())
|
.surroundWithCircle(60f, color = ImageGetter.getBlue())
|
||||||
.apply { actor.y -= 2.5f } // compensate font baseline (empirical)
|
.apply { actor.y -= 2.5f } // compensate font baseline (empirical)
|
||||||
.surroundWithCircle(42f, resizeActor = false)
|
.surroundWithCircle(64f, resizeActor = false)
|
||||||
helpButton.touchable = Touchable.enabled
|
helpButton.touchable = Touchable.enabled
|
||||||
helpButton.onActivation { openCivilopedia() }
|
helpButton.onActivation { openCivilopedia() }
|
||||||
helpButton.keyShortcuts.add(Input.Keys.F1)
|
helpButton.keyShortcuts.add(Input.Keys.F1)
|
||||||
helpButton.addTooltip(KeyCharAndCode(Input.Keys.F1), 20f)
|
helpButton.addTooltip(KeyCharAndCode(Input.Keys.F1), 30f)
|
||||||
helpButton.setPosition(20f, 20f)
|
helpButton.setPosition(30f, 30f)
|
||||||
stage.addActor(helpButton)
|
stage.addActor(helpButton)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user