1
1
// Copyright (c) ppy Pty Ltd <[email protected] >. Licensed under the MIT Licence.
2
2
// See the LICENCE file in the repository root for full licence text.
3
3
4
- using System . ComponentModel ;
5
4
using osu . Framework . Allocation ;
6
5
using osu . Framework . Input . Bindings ;
6
+ using osu . Framework . Localisation ;
7
+ using osu . Game . Localisation ;
7
8
using osu . Game . Rulesets . UI ;
8
9
9
10
namespace osu . Game . Rulesets . Mania
@@ -19,64 +20,64 @@ public ManiaInputManager(RulesetInfo ruleset, int variant)
19
20
20
21
public enum ManiaAction
21
22
{
22
- [ Description ( "Key 1" ) ]
23
+ [ LocalisableDescription ( typeof ( RulesetActionsStrings ) , nameof ( RulesetActionsStrings . ManiaKey1 ) ) ]
23
24
Key1 ,
24
25
25
- [ Description ( "Key 2" ) ]
26
+ [ LocalisableDescription ( typeof ( RulesetActionsStrings ) , nameof ( RulesetActionsStrings . ManiaKey2 ) ) ]
26
27
Key2 ,
27
28
28
- [ Description ( "Key 3" ) ]
29
+ [ LocalisableDescription ( typeof ( RulesetActionsStrings ) , nameof ( RulesetActionsStrings . ManiaKey3 ) ) ]
29
30
Key3 ,
30
31
31
- [ Description ( "Key 4" ) ]
32
+ [ LocalisableDescription ( typeof ( RulesetActionsStrings ) , nameof ( RulesetActionsStrings . ManiaKey4 ) ) ]
32
33
Key4 ,
33
34
34
- [ Description ( "Key 5" ) ]
35
+ [ LocalisableDescription ( typeof ( RulesetActionsStrings ) , nameof ( RulesetActionsStrings . ManiaKey5 ) ) ]
35
36
Key5 ,
36
37
37
- [ Description ( "Key 6" ) ]
38
+ [ LocalisableDescription ( typeof ( RulesetActionsStrings ) , nameof ( RulesetActionsStrings . ManiaKey6 ) ) ]
38
39
Key6 ,
39
40
40
- [ Description ( "Key 7" ) ]
41
+ [ LocalisableDescription ( typeof ( RulesetActionsStrings ) , nameof ( RulesetActionsStrings . ManiaKey7 ) ) ]
41
42
Key7 ,
42
43
43
- [ Description ( "Key 8" ) ]
44
+ [ LocalisableDescription ( typeof ( RulesetActionsStrings ) , nameof ( RulesetActionsStrings . ManiaKey8 ) ) ]
44
45
Key8 ,
45
46
46
- [ Description ( "Key 9" ) ]
47
+ [ LocalisableDescription ( typeof ( RulesetActionsStrings ) , nameof ( RulesetActionsStrings . ManiaKey9 ) ) ]
47
48
Key9 ,
48
49
49
- [ Description ( "Key 10" ) ]
50
+ [ LocalisableDescription ( typeof ( RulesetActionsStrings ) , nameof ( RulesetActionsStrings . ManiaKey10 ) ) ]
50
51
Key10 ,
51
52
52
- [ Description ( "Key 11" ) ]
53
+ [ LocalisableDescription ( typeof ( RulesetActionsStrings ) , nameof ( RulesetActionsStrings . ManiaKey11 ) ) ]
53
54
Key11 ,
54
55
55
- [ Description ( "Key 12" ) ]
56
+ [ LocalisableDescription ( typeof ( RulesetActionsStrings ) , nameof ( RulesetActionsStrings . ManiaKey12 ) ) ]
56
57
Key12 ,
57
58
58
- [ Description ( "Key 13" ) ]
59
+ [ LocalisableDescription ( typeof ( RulesetActionsStrings ) , nameof ( RulesetActionsStrings . ManiaKey13 ) ) ]
59
60
Key13 ,
60
61
61
- [ Description ( "Key 14" ) ]
62
+ [ LocalisableDescription ( typeof ( RulesetActionsStrings ) , nameof ( RulesetActionsStrings . ManiaKey14 ) ) ]
62
63
Key14 ,
63
64
64
- [ Description ( "Key 15" ) ]
65
+ [ LocalisableDescription ( typeof ( RulesetActionsStrings ) , nameof ( RulesetActionsStrings . ManiaKey15 ) ) ]
65
66
Key15 ,
66
67
67
- [ Description ( "Key 16" ) ]
68
+ [ LocalisableDescription ( typeof ( RulesetActionsStrings ) , nameof ( RulesetActionsStrings . ManiaKey16 ) ) ]
68
69
Key16 ,
69
70
70
- [ Description ( "Key 17" ) ]
71
+ [ LocalisableDescription ( typeof ( RulesetActionsStrings ) , nameof ( RulesetActionsStrings . ManiaKey17 ) ) ]
71
72
Key17 ,
72
73
73
- [ Description ( "Key 18" ) ]
74
+ [ LocalisableDescription ( typeof ( RulesetActionsStrings ) , nameof ( RulesetActionsStrings . ManiaKey18 ) ) ]
74
75
Key18 ,
75
76
76
- [ Description ( "Key 19" ) ]
77
+ [ LocalisableDescription ( typeof ( RulesetActionsStrings ) , nameof ( RulesetActionsStrings . ManiaKey19 ) ) ]
77
78
Key19 ,
78
79
79
- [ Description ( "Key 20" ) ]
80
+ [ LocalisableDescription ( typeof ( RulesetActionsStrings ) , nameof ( RulesetActionsStrings . ManiaKey20 ) ) ]
80
81
Key20 ,
81
82
}
82
83
}
0 commit comments