mirror of
https://github.com/osukey/osukey.git
synced 2025-05-20 21:17:32 +09:00
Merge branch 'master' into search-filter
This commit is contained in:
commit
b36243c0c2
@ -29,6 +29,8 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
|
|
||||||
private Container background = null!;
|
private Container background = null!;
|
||||||
|
|
||||||
|
private Container counters = null!;
|
||||||
|
|
||||||
private const float idle_background_alpha = 0.4f;
|
private const float idle_background_alpha = 0.4f;
|
||||||
|
|
||||||
private readonly BindableBool showFpsDisplay = new BindableBool(true);
|
private readonly BindableBool showFpsDisplay = new BindableBool(true);
|
||||||
@ -49,7 +51,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
mainContent = new Container
|
mainContent = new Container
|
||||||
{
|
{
|
||||||
Alpha = 0,
|
Alpha = 0,
|
||||||
Size = new Vector2(42, 26),
|
Height = 26,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
background = new Container
|
background = new Container
|
||||||
@ -68,6 +70,13 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
counters = new Container
|
||||||
|
{
|
||||||
|
Anchor = Anchor.TopRight,
|
||||||
|
Origin = Anchor.TopRight,
|
||||||
|
AutoSizeAxes = Axes.Both,
|
||||||
|
Children = new Drawable[]
|
||||||
|
{
|
||||||
counterUpdateFrameTime = new FrameTimeCounter
|
counterUpdateFrameTime = new FrameTimeCounter
|
||||||
{
|
{
|
||||||
Anchor = Anchor.TopRight,
|
Anchor = Anchor.TopRight,
|
||||||
@ -85,6 +94,8 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
config.BindWith(OsuSetting.ShowFpsDisplay, showFpsDisplay);
|
config.BindWith(OsuSetting.ShowFpsDisplay, showFpsDisplay);
|
||||||
@ -159,6 +170,8 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
|
|
||||||
|
mainContent.Width = Math.Max(mainContent.Width, counters.DrawWidth);
|
||||||
|
|
||||||
// Handle the case where the window has become inactive or the user changed the
|
// Handle the case where the window has become inactive or the user changed the
|
||||||
// frame limiter (we want to show the FPS as it's changing, even if it isn't an outlier).
|
// frame limiter (we want to show the FPS as it's changing, even if it isn't an outlier).
|
||||||
bool aimRatesChanged = updateAimFPS();
|
bool aimRatesChanged = updateAimFPS();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user