WindowConstants.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 = 315.0f;
  17. public const float maxHeaderWidth = 650.0f;
  18. public const float maxTimeAreaScaling = 90000.0f;
  19. public const float minTimeCodeWidth = 28.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 refTimeWidth = 50.0f;
  24. public const float selectorWidth = 23.0f;
  25. public const float cogButtonWidth = 32.0f;
  26. public const float cogButtonPadding = 16.0f;
  27. public const float trackHeaderButtonSize = 16.0f;
  28. public const float trackHeaderButtonPadding = 6f;
  29. public const float trackHeaderButtonSpacing = 3.0f;
  30. public const float trackOptionButtonVerticalPadding = 0f;
  31. public const float trackHeaderMaxButtonsWidth = 5 * (trackHeaderButtonSize + trackHeaderButtonPadding);
  32. public const float trackInsertionMarkerHeight = 1f;
  33. public const int autoPanPaddingInPixels = 50;
  34. }
  35. }