Right now there is only the [RequiredField] attribute which checks for whether or not a field is null (or string.Empty). With that said however, I went ahead and added your request by adding a new virtual method named “OnErrorCheck” that you can override to achieve what you are after.
Please open up Task.cs and add the following in GetWarningOrError method:
1
2
3
4
varuserError=OnErrorCheck();
if(userError!=null){returnuserError;}
Then of course, also add this somewhere in the same class:
1
2
3
4
/// Override and return anything but null to mark the task has an error
virtualprotectedstringOnErrorCheck(){returnnull;}
The above changes will of course exist in the next version update.
Please let me know if that works for you.
Thank you 🙂
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.