InspectableFieldRangeStyle.cs 639 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace BansheeEditor
  7. {
  8. /// <summary>
  9. /// Contains info about the range of values a field can store
  10. /// </summary>
  11. public class InspectableFieldRangeStyle : InspectableFieldStyle
  12. {
  13. public float Max { get; set; }
  14. public float Min { get; set; }
  15. public float Step { get; set; }
  16. public InspectableFieldRangeStyle(float min, float max, float step = 0.0f)
  17. {
  18. this.Max = max;
  19. this.Min = min;
  20. this.Step = step;
  21. }
  22. }
  23. }