- Fixed shet.
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
<Setting Name="TestRangeFloat" Type="rangeFloat" Min="0" Max="25" Steps="11"/>
|
||||
<Setting Name="TestRangeInt" Type="rangeInt" Min="0" Max="10" Steps="11"/>
|
||||
<Setting Name="TestString" Type="string" />
|
||||
<Setting Name="TestControl" Type="control" Value="A"/>
|
||||
</Settings>
|
||||
<Profiles>
|
||||
<Profile Name="default">
|
||||
|
||||
+8
-2
@@ -50,8 +50,14 @@ public class SettingsEntryRegistrar : ISettingsRegistrationProvider
|
||||
return new SettingRangeFloat.RangeFactory().CreateInstance(cfgInfo.Info, (val) =>
|
||||
IsValueChangeAllowed(cfgInfo.Info, val, valueChangePredicate));
|
||||
});
|
||||
|
||||
// ISettingList : Not Implemented yet
|
||||
|
||||
#if CLIENT
|
||||
configService.RegisterSettingTypeInitializer("control" , cfgInfo =>
|
||||
{
|
||||
return new SettingControl.Factory().CreateInstance(cfgInfo.Info, val =>
|
||||
IsValueChangeAllowed(cfgInfo.Info, val, valueChangePredicate));
|
||||
});
|
||||
#endif
|
||||
}
|
||||
|
||||
private void RegisterSettingEntry<T>(IConfigService configService, string typeName, Func<OneOf<string, XElement, object>, bool> valueChangePredicate) where T : IEquatable<T>, IConvertible
|
||||
|
||||
Reference in New Issue
Block a user