mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 03:22:54 +08:00
Use IntAction instead of new
This commit is contained in:
parent
dc82a88bb8
commit
54698f2d8f
@ -1,6 +1,8 @@
|
|||||||
// 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 osu.Game.Overlays;
|
||||||
|
|
||||||
namespace osu.Desktop.Tests.Visual
|
namespace osu.Desktop.Tests.Visual
|
||||||
{
|
{
|
||||||
public class TestCaseKeyConfiguration : OsuTestCase
|
public class TestCaseKeyConfiguration : OsuTestCase
|
||||||
|
@ -29,10 +29,10 @@ namespace osu.Game.Input.Bindings
|
|||||||
|
|
||||||
[Indexed]
|
[Indexed]
|
||||||
[Column("Action")]
|
[Column("Action")]
|
||||||
public new int Action
|
public int IntAction
|
||||||
{
|
{
|
||||||
get { return (int)base.Action; }
|
get { return (int)Action; }
|
||||||
set { base.Action = value; }
|
set { Action = value; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -74,7 +74,7 @@ namespace osu.Game.Input
|
|||||||
Connection.Insert(new DatabasedKeyBinding
|
Connection.Insert(new DatabasedKeyBinding
|
||||||
{
|
{
|
||||||
KeyCombination = insertable.KeyCombination,
|
KeyCombination = insertable.KeyCombination,
|
||||||
Action = (int)insertable.Action,
|
Action = insertable.Action,
|
||||||
RulesetID = rulesetId,
|
RulesetID = rulesetId,
|
||||||
Variant = variant
|
Variant = variant
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user