A game framework written with osu! in mind.
at master 28 lines 781 B view raw
1// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. 2// See the LICENCE file in the repository root for full licence text. 3 4using NUnit.Framework; 5using osu.Framework.Allocation; 6using osu.Framework.Bindables; 7 8namespace osu.Framework.Tests.Visual.Platform 9{ 10 [Ignore("for manual testing")] 11 public class TestSceneBlockExiting : FrameworkTestScene 12 { 13 private Bindable<bool> blockingClose; 14 15 [BackgroundDependencyLoader] 16 private void load(TestGame game) 17 { 18 blockingClose = game.BlockExit.GetBoundCopy(); 19 } 20 21 protected override void LoadComplete() 22 { 23 base.LoadComplete(); 24 25 AddToggleStep("Block closing window", b => blockingClose.Value = b); 26 } 27 } 28}