设置相关
This commit is contained in:
@@ -1,7 +1,17 @@
|
|||||||
namespace NBF.Options.Input
|
namespace NBF.Setting
|
||||||
{
|
{
|
||||||
public class InputAddBobSetting
|
public class InputAddBobSetting : KeyBoardOption
|
||||||
{
|
{
|
||||||
|
private int _defaultKey;
|
||||||
|
public override string Name => "InputAddBob";
|
||||||
|
public override string Group => SettingsDef.Group.Keyboard;
|
||||||
|
public override string Tab => SettingsDef.Tab.Keyboard;
|
||||||
|
|
||||||
|
protected override int DefaultValue => _defaultKey;
|
||||||
|
|
||||||
|
protected override void OnApply()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -15,10 +15,9 @@ namespace NBF.Setting
|
|||||||
|
|
||||||
protected override void OnInitialize()
|
protected override void OnInitialize()
|
||||||
{
|
{
|
||||||
SetValue(10);
|
// SetValue(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
protected override void OnApply()
|
protected override void OnApply()
|
||||||
{
|
{
|
||||||
SoundManager.Inst.SetVolume(AudioChannelType.Ambient, GetValue() / 100f);
|
SoundManager.Inst.SetVolume(AudioChannelType.Ambient, GetValue() / 100f);
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ namespace NBF.Setting
|
|||||||
|
|
||||||
protected override void OnInitialize()
|
protected override void OnInitialize()
|
||||||
{
|
{
|
||||||
SetValue(10);
|
// SetValue(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnApply()
|
protected override void OnApply()
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ namespace NBF.Setting
|
|||||||
|
|
||||||
protected override void OnInitialize()
|
protected override void OnInitialize()
|
||||||
{
|
{
|
||||||
SetValue(10);
|
// SetValue(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnApply()
|
protected override void OnApply()
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ namespace NBF.Setting
|
|||||||
|
|
||||||
protected override void OnInitialize()
|
protected override void OnInitialize()
|
||||||
{
|
{
|
||||||
SetValue(10);
|
// SetValue(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnApply()
|
protected override void OnApply()
|
||||||
|
|||||||
Reference in New Issue
Block a user