移除不用的脚本
This commit is contained in:
@@ -84,10 +84,11 @@ namespace SRDebugger
|
||||
/// <param name="setter">Method to set the value of the property (can be null if read-only)</param>
|
||||
/// <param name="category">Category to display the option in.</param>
|
||||
/// <param name="sortPriority">Sort priority to arrange the option within the category.</param>
|
||||
/// <param name="attributes">Attributes that apply to this option (e.g. NumberRange)</param>
|
||||
/// <returns>The created option definition.</returns>
|
||||
public static OptionDefinition Create<T>(string name, Func<T> getter, Action<T> setter = null, string category = "Default", int sortPriority = 0)
|
||||
public static OptionDefinition Create<T>(string name, Func<T> getter, Action<T> setter = null, string category = "Default", int sortPriority = 0, Attribute[] attributes = null)
|
||||
{
|
||||
return new OptionDefinition(name, category, sortPriority, PropertyReference.FromLambda(getter, setter));
|
||||
return new OptionDefinition(name, category, sortPriority, PropertyReference.FromLambda(getter, setter, attributes));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user