mirror of
https://github.com/ppy/osu.git
synced 2026-05-30 05:59:53 +08:00
first attempt at changing windowMode to be fullscreen on default
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user