mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-09 18:55:54 +00:00
One-way full screen button
This commit is contained in:
parent
eb748b462d
commit
96acadf34c
1 changed files with 2 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ public partial class OptionsMenu : MenuBase
|
|||
[Export] public OptionButton ResolutionsList { get; private set; }
|
||||
|
||||
[Export] public CheckBox VSyncToggle { get; private set; }
|
||||
[Export] public CheckBox FullScreenToggle { get; private set; }
|
||||
|
||||
//[Export] public HSlider MusicVolumeSlider { get; private set; }
|
||||
|
||||
|
|
@ -34,6 +35,7 @@ public partial class OptionsMenu : MenuBase
|
|||
|
||||
VSyncToggle.Toggled += VSyncToggleOnToggled;
|
||||
|
||||
FullScreenToggle.SetPressed(DisplayServer.WindowGetMode() is DisplayServer.WindowMode.Fullscreen);
|
||||
}
|
||||
|
||||
private void VSyncToggleOnToggled(bool toggledOn)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue