2
0

InspectableFieldRangeStyle.cs 983 B

1234567891011121314151617181920212223242526272829
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. namespace BansheeEditor
  4. {
  5. /// <summary>
  6. /// Contains info about the range of values a field can store
  7. /// </summary>
  8. public sealed class InspectableFieldRangeStyle : InspectableFieldStyle
  9. {
  10. public InspectableFieldRangeStyle(float min, float max, float step = 0.0f)
  11. {
  12. this.Max = max;
  13. this.Min = min;
  14. this.Step = step;
  15. }
  16. /// <summary>
  17. /// The maximum value the field can be assigned
  18. /// </summary>
  19. public float Max { get; set; }
  20. /// <summary>
  21. /// The minimum value the field can be assigned
  22. /// </summary>
  23. public float Min { get; set; }
  24. public float Step { get; set; }
  25. }
  26. }