Skip to content

Commit

Permalink
v1.10.1 - Imported FloatInputElement via subclass
Browse files Browse the repository at this point in the history
  • Loading branch information
hamstar0 committed Oct 12, 2019
1 parent 428316e commit 2fff2c8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@


namespace Wormholes {
class MyFloatInputElement : FloatInputElement { }




public class WormholesConfig : ModConfig {
public override ConfigScope Mode => ConfigScope.ServerSide;

Expand Down Expand Up @@ -57,17 +62,17 @@ public class WormholesConfig : ModConfig {

[Range( 0f, 10f )]
[DefaultValue( 0.45f )]
[CustomModConfigItem( typeof( FloatInputElement ) )]
[CustomModConfigItem( typeof( MyFloatInputElement ) )]
public float WormholeSoundVolume = 0.45f;

[Range( 0f, 100f )]
[DefaultValue( 1.25f )]
[CustomModConfigItem( typeof( FloatInputElement ) )]
[CustomModConfigItem( typeof( MyFloatInputElement ) )]
public float WormholeLightScale = 1.25f;

[Range( 0f, 10f )]
[DefaultValue( 0.9f )]
[CustomModConfigItem( typeof( FloatInputElement ) )]
[CustomModConfigItem( typeof( MyFloatInputElement ) )]
public float WormholeEntrySoundVolume = 0.9f;


Expand Down

0 comments on commit 2fff2c8

Please sign in to comment.