InspectableFieldStepStyle.cs 769 B

123456789101112131415161718192021
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. namespace bs.Editor
  4. {
  5. /// <summary>
  6. /// Contains information about the minimum change allowed to a field value.
  7. /// </summary>
  8. public sealed class InspectableFieldStepStyle : InspectableFieldStyle
  9. {
  10. public InspectableFieldStepStyle(float step)
  11. {
  12. this.Step = step;
  13. }
  14. /// <summary>
  15. /// Minimum change of the field. Every change will be rounded to a multiple of this value.
  16. /// </summary>
  17. public float Step { get; set; }
  18. }
  19. }