修改按键绑定
This commit is contained in:
@@ -11,6 +11,7 @@ namespace NBF.Setting
|
||||
void SetValue(int index);
|
||||
bool HaveNotApple();
|
||||
ISettings Root { get; }
|
||||
string GetDisplayString();
|
||||
}
|
||||
|
||||
public abstract class OptionBase : IOptionBase
|
||||
@@ -50,6 +51,8 @@ namespace NBF.Setting
|
||||
}
|
||||
|
||||
public ISettings Root { get; private set; }
|
||||
|
||||
|
||||
|
||||
public void Initialize(ISettings root)
|
||||
{
|
||||
@@ -81,6 +84,11 @@ namespace NBF.Setting
|
||||
Value = DefaultValue;
|
||||
}
|
||||
|
||||
public virtual string GetDisplayString()
|
||||
{
|
||||
return GetValue().ToString();
|
||||
}
|
||||
|
||||
public virtual int GetValue()
|
||||
{
|
||||
return Value;
|
||||
|
||||
Reference in New Issue
Block a user