WindowConstants.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. namespace UnityEditor.Timeline
  2. {
  3. static class WindowConstants
  4. {
  5. public const float timeAreaYPosition = 19.0f;
  6. public const float timeAreaHeight = 22.0f;
  7. public const float timeAreaMinWidth = 50.0f;
  8. public const float timeAreaShownRangePadding = 5.0f;
  9. public const float markerRowHeight = 18.0f;
  10. public const float markerRowYPosition = timeAreaYPosition + timeAreaHeight;
  11. public const float defaultHeaderWidth = 315.0f;
  12. public const float defaultBindingAreaWidth = 40.0f;
  13. public const float minHierarchySplitter = 0.15f;
  14. public const float maxHierarchySplitter = 10.50f;
  15. public const float hierarchySplitterDefaultPercentage = 0.2f;
  16. public const float minHeaderWidth = 195.0f;
  17. public const float maxHeaderWidth = 650.0f;
  18. public const float maxTimeAreaScaling = 90000.0f;
  19. public const float timeCodeWidth = 100.0f; // Enough space to display up to 9999 without clipping
  20. public const float sliderWidth = 15;
  21. public const float shadowUnderTimelineHeight = 15.0f;
  22. public const float createButtonWidth = 70.0f;
  23. public const float selectorWidth = 23.0f;
  24. public const float cogButtonWidth = 25.0f;
  25. public const float trackHeaderButtonSize = 16.0f;
  26. public const float trackHeaderButtonPadding = 2.0f;
  27. public const float trackBindingMaxSize = 300.0f;
  28. public const float trackBindingPadding = 5.0f;
  29. public const float trackInsertionMarkerHeight = 1f;
  30. public const float trackResizeHandleHeight = 7f;
  31. public const float inlineCurveContentPadding = 2.0f;
  32. public const float playControlsWidth = 300;
  33. public const int autoPanPaddingInPixels = 50;
  34. }
  35. }