mirror of
https://github.com/ppy/osu.git
synced 2025-02-16 01:42:54 +08:00
IStateful implementation
This commit is contained in:
parent
2a269dbc5a
commit
bf6c170541
@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
using OpenTK;
|
using OpenTK;
|
||||||
@ -28,8 +28,7 @@ namespace osu.Desktop.VisualTests.Tests
|
|||||||
switch (action)
|
switch (action)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
if (test.Status == 0) test.Status = 1;
|
test.State = test.State == MultiRoomPanel.PanelState.Free ? MultiRoomPanel.PanelState.Busy : MultiRoomPanel.PanelState.Free;
|
||||||
else test.Status = 0;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user