InspectableRangedField.cs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. using BansheeEngine;
  4. namespace BansheeEditor
  5. {
  6. /** @addtogroup Inspector
  7. * @{
  8. */
  9. /// <summary>
  10. /// IsnpectableRangedField is a <see cref="InspectableField"/> that has a Range attribute and must be rendered as a slider.
  11. /// </summary>
  12. public abstract class InspectableRangedField : InspectableField
  13. {
  14. protected InspectableFieldStyleInfo style;
  15. /// <summary>
  16. /// Creates a new inspectable ranged field GUI for the specified property.
  17. /// </summary>
  18. /// <param name="parent">Parent Inspector this field belongs to.</param>
  19. /// <param name="title">Name of the property, or some other value to set as the title.</param>
  20. /// <param name="path">Full path to this property (includes name of this property and all parent properties).</param>
  21. /// <param name="type">Type of property this field will be used for displaying.</param>
  22. /// <param name="depth">Determines how deep within the inspector nesting hierarchy is this field. Some fields may
  23. /// contain other fields, in which case you should increase this value by one.</param>
  24. /// <param name="layout">Parent layout that all the field elements will be added to.</param>
  25. /// <param name="property">Serializable property referencing the array whose contents to display.</param>
  26. /// <param name="style">Contains information about the field style</param>
  27. public InspectableRangedField(Inspector parent, string title, string path, SerializableProperty.FieldType type,
  28. int depth, InspectableFieldLayout layout, SerializableProperty property, InspectableFieldStyleInfo style) : base(parent, title, path, type, depth, layout, property)
  29. {
  30. this.style = style;
  31. }
  32. }
  33. /** @} */
  34. }