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:
xk730 2022-09-12 17:00:34 +08:00 committed by GitHub
parent d65c756e4c
commit 3b8b1dee3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,16 +195,16 @@ class MainMenuScreen: BaseScreen(), RecreateOnResize {
game.popScreen()
}
val helpButton = "?".toLabel(fontSize = 32)
val helpButton = "?".toLabel(fontSize = 48)
.apply { setAlignment(Align.center) }
.surroundWithCircle(40f, color = ImageGetter.getBlue())
.surroundWithCircle(60f, color = ImageGetter.getBlue())
.apply { actor.y -= 2.5f } // compensate font baseline (empirical)
.surroundWithCircle(42f, resizeActor = false)
.surroundWithCircle(64f, resizeActor = false)
helpButton.touchable = Touchable.enabled
helpButton.onActivation { openCivilopedia() }
helpButton.keyShortcuts.add(Input.Keys.F1)
helpButton.addTooltip(KeyCharAndCode(Input.Keys.F1), 20f)
helpButton.setPosition(20f, 20f)
helpButton.addTooltip(KeyCharAndCode(Input.Keys.F1), 30f)
helpButton.setPosition(30f, 30f)
stage.addActor(helpButton)
}