mirror of
https://github.com/ppy/osu
synced 2025-01-18 20:10:49 +00:00
first attempt at changing windowMode to be fullscreen on default
This commit is contained in:
parent
716b9048c1
commit
f7bf23dbe9
@ -126,6 +126,8 @@ namespace osu.Game
|
||||
|
||||
private Bindable<int> configSkin;
|
||||
|
||||
private Bindable<WindowMode> windowMode;
|
||||
|
||||
private readonly string[] args;
|
||||
|
||||
private readonly List<OverlayContainer> overlays = new List<OverlayContainer>();
|
||||
@ -631,6 +633,12 @@ namespace osu.Game
|
||||
|
||||
loadComponentSingleFile(volume = new VolumeOverlay(), leftFloatingOverlayContent.Add, true);
|
||||
|
||||
frameworkConfig.GetBindable<WindowMode>(FrameworkSetting.WindowMode);
|
||||
windowMode.BindValueChanged(mode => ScheduleAfterChildren(() =>
|
||||
{
|
||||
windowMode.Value = WindowMode.Windowed;
|
||||
}), true);
|
||||
|
||||
var onScreenDisplay = new OnScreenDisplay();
|
||||
|
||||
onScreenDisplay.BeginTracking(this, frameworkConfig);
|
||||
|
Loading…
Reference in New Issue
Block a user