mirror of
https://github.com/ppy/osu.git
synced 2026-05-13 19:54:15 +08:00
Reset UI scale for mobile platforms
This commit is contained in:
@@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="deploymentTargetSelector">
|
||||||
|
<selectionStates>
|
||||||
|
<SelectionState runConfigName="osu.Android">
|
||||||
|
<option name="selectionMode" value="DROPDOWN" />
|
||||||
|
</SelectionState>
|
||||||
|
</selectionStates>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
@@ -238,7 +238,7 @@ namespace osu.Game.Configuration
|
|||||||
|
|
||||||
public void Migrate()
|
public void Migrate()
|
||||||
{
|
{
|
||||||
// arrives as 2020.123.0
|
// arrives as 2020.123.0-lazer
|
||||||
string rawVersion = Get<string>(OsuSetting.Version);
|
string rawVersion = Get<string>(OsuSetting.Version);
|
||||||
|
|
||||||
if (rawVersion.Length < 6)
|
if (rawVersion.Length < 6)
|
||||||
@@ -251,11 +251,14 @@ namespace osu.Game.Configuration
|
|||||||
if (!int.TryParse(pieces[0], out int year)) return;
|
if (!int.TryParse(pieces[0], out int year)) return;
|
||||||
if (!int.TryParse(pieces[1], out int monthDay)) return;
|
if (!int.TryParse(pieces[1], out int monthDay)) return;
|
||||||
|
|
||||||
// ReSharper disable once UnusedVariable
|
int combined = year * 10000 + monthDay;
|
||||||
int combined = (year * 10000) + monthDay;
|
|
||||||
|
|
||||||
// migrations can be added here using a condition like:
|
if (combined < 20250214)
|
||||||
// if (combined < 20220103) { performMigration() }
|
{
|
||||||
|
// UI scaling on mobile platforms has been internally adjusted such that 1x UI scale looks correctly zoomed in than before.
|
||||||
|
if (RuntimeInfo.IsMobile)
|
||||||
|
GetBindable<float>(OsuSetting.UIScale).SetDefault();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override TrackedSettings CreateTrackedSettings()
|
public override TrackedSettings CreateTrackedSettings()
|
||||||
|
|||||||
Reference in New Issue
Block a user