mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09:00
Merge pull request #9927 from peppy/force-tourney-client-windows
Force tournament client to run in windowed mode
This commit is contained in:
commit
3ecc47cd3e
@ -31,6 +31,7 @@ namespace osu.Game.Tournament
|
|||||||
public static readonly Color4 TEXT_COLOUR = Color4Extensions.FromHex("#fff");
|
public static readonly Color4 TEXT_COLOUR = Color4Extensions.FromHex("#fff");
|
||||||
private Drawable heightWarning;
|
private Drawable heightWarning;
|
||||||
private Bindable<Size> windowSize;
|
private Bindable<Size> windowSize;
|
||||||
|
private Bindable<WindowMode> windowMode;
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(FrameworkConfigManager frameworkConfig)
|
private void load(FrameworkConfigManager frameworkConfig)
|
||||||
@ -43,6 +44,12 @@ namespace osu.Game.Tournament
|
|||||||
heightWarning.Alpha = size.NewValue.Width < minWidth ? 1 : 0;
|
heightWarning.Alpha = size.NewValue.Width < minWidth ? 1 : 0;
|
||||||
}), true);
|
}), true);
|
||||||
|
|
||||||
|
windowMode = frameworkConfig.GetBindable<WindowMode>(FrameworkSetting.WindowMode);
|
||||||
|
windowMode.BindValueChanged(mode => ScheduleAfterChildren(() =>
|
||||||
|
{
|
||||||
|
windowMode.Value = WindowMode.Windowed;
|
||||||
|
}), true);
|
||||||
|
|
||||||
AddRange(new[]
|
AddRange(new[]
|
||||||
{
|
{
|
||||||
new Container
|
new Container
|
||||||
|
Loading…
x
Reference in New Issue
Block a user