From 23d0399e516b5bee581ccf4d80e0bbb128cfe382 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Tue, 29 Jan 2019 17:01:53 +0900 Subject: [PATCH 1/2] Allow deselection of textboxes on registration screen on mobile devices --- osu.Game/Overlays/AccountCreation/ScreenEntry.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/osu.Game/Overlays/AccountCreation/ScreenEntry.cs b/osu.Game/Overlays/AccountCreation/ScreenEntry.cs index b0d08d3c6c..4b835b446e 100644 --- a/osu.Game/Overlays/AccountCreation/ScreenEntry.cs +++ b/osu.Game/Overlays/AccountCreation/ScreenEntry.cs @@ -10,6 +10,7 @@ using osu.Framework.Extensions.IEnumerableExtensions; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.MathUtils; +using osu.Framework.Platform; using osu.Framework.Screens; using osu.Game.Graphics; using osu.Game.Graphics.Containers; @@ -38,11 +39,13 @@ namespace osu.Game.Overlays.AccountCreation private OsuTextBox[] textboxes; private ProcessingOverlay processingOverlay; + private GameHost host; [BackgroundDependencyLoader] - private void load(OsuColour colours, APIAccess api) + private void load(OsuColour colours, APIAccess api, GameHost host) { this.api = api; + this.host = host; Children = new Drawable[] { @@ -139,7 +142,7 @@ namespace osu.Game.Overlays.AccountCreation { base.Update(); - if (!textboxes.Any(t => t.HasFocus)) + if (host?.OnScreenKeyboardOverlapsGameWindow != true && !textboxes.Any(t => t.HasFocus)) focusNextTextbox(); } From d1c8ee65a5b3c24f622397fd67b1913a821577a6 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 31 Jan 2019 19:22:29 +0900 Subject: [PATCH 2/2] Fix osu! logo potentially appearing during game load in a weird place --- osu.Game/OsuGame.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game/OsuGame.cs b/osu.Game/OsuGame.cs index 3cc040ecb1..b1f18341d2 100644 --- a/osu.Game/OsuGame.cs +++ b/osu.Game/OsuGame.cs @@ -169,7 +169,7 @@ namespace osu.Game dependencies.CacheAs(ruleset); dependencies.CacheAs>(ruleset); - dependencies.Cache(osuLogo = new OsuLogo()); + dependencies.Cache(osuLogo = new OsuLogo { Alpha = 0 }); // bind config int to database RulesetInfo configRuleset = LocalConfig.GetBindable(OsuSetting.Ruleset);