From 3b8b1dee3bbfc1dc536da7de13031d72e7df3c01 Mon Sep 17 00:00:00 2001 From: xk730 <40309144+xk730@users.noreply.github.com> Date: Mon, 12 Sep 2022 17:00:34 +0800 Subject: [PATCH] Increased help button size (#7784) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 我试图将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. --- core/src/com/unciv/MainMenuScreen.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/com/unciv/MainMenuScreen.kt b/core/src/com/unciv/MainMenuScreen.kt index 3673ddf216..3ea954ec84 100644 --- a/core/src/com/unciv/MainMenuScreen.kt +++ b/core/src/com/unciv/MainMenuScreen.kt @@ -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) }