@@ -20,7 +20,7 @@ public sealed class Mod : BaseUnityPlugin
2020 //Mod Details
2121 private const string modGUID = "Distance.DistanceModConfigurationManager" ;
2222 private const string modName = "Distance Mod Configuration Manager" ;
23- public const string modVersion = "1.0.0 " ;
23+ public const string modVersion = "1.0.1 " ;
2424
2525 //Config Entry Settings
2626 public static string ShowVersionKey = "Show Version Info" ;
@@ -176,7 +176,7 @@ private MenuItemBase CreateUIForSetting(SettingEntryBase setting)
176176 {
177177 return new FloatSlider ( MenuDisplayMode . Both , $ "settings:{ Regex . Replace ( setting . DispName , @"\s+" , "_" ) . ToLower ( ) } ", setting . DispName . ToUpper ( ) )
178178 . WithDefaultValue ( ( float ) setting . DefaultValue )
179- . LimitedByRange ( - 180 , 180 )
179+ . LimitedByRange ( ( float ) setting . DefaultValue - 180 , ( float ) setting . DefaultValue + 180 )
180180 . WithGetter ( ( ) => ( float ) setting . Get ( ) )
181181 . WithSetter ( ( x ) => setting . Set ( x ) )
182182 . WithDescription ( $ "{ setting . Description } ") ;
@@ -198,7 +198,7 @@ private MenuItemBase CreateUIForSetting(SettingEntryBase setting)
198198 {
199199 return new IntegerSlider ( MenuDisplayMode . Both , $ "settings:{ Regex . Replace ( setting . DispName , @"\s+" , "_" ) . ToLower ( ) } ", setting . DispName . ToUpper ( ) )
200200 . WithDefaultValue ( ( int ) setting . DefaultValue )
201- . LimitedByRange ( 0 , 60 )
201+ . LimitedByRange ( ( int ) setting . DefaultValue , ( int ) setting . DefaultValue + 60 )
202202 . WithGetter ( ( ) => ( int ) setting . Get ( ) )
203203 . WithSetter ( ( x ) => setting . Set ( x ) )
204204 . WithDescription ( $ "{ setting . Description } ") ;
@@ -225,7 +225,9 @@ private MenuItemBase CreateUIForSetting(SettingEntryBase setting)
225225 . WithDescription ( $ "{ setting . Description } ") ;
226226 }
227227
228- return new ActionButton ( MenuDisplayMode . Both , $ "settings:{ Regex . Replace ( setting . DispName , @"\s+" , "_" ) . ToLower ( ) } ", setting . DispName . ToUpper ( ) )
228+ Logger . LogInfo ( $ "Could not properly display { setting . DispName } in the menu") ;
229+ //This doesn't even display lmao
230+ return new EmptyElement ( MenuDisplayMode . Both , $ "settings:{ Regex . Replace ( setting . DispName , @"\s+" , "_" ) . ToLower ( ) } ", setting . DispName . ToUpper ( ) )
229231 . WithDescription ( "This setting is not properly displayed! Report this problem to the #modding channel on the Distance discord!" ) ;
230232 }
231233 }
0 commit comments