2022-01-12 10:06:03 +03:00
|
|
|
namespace UnityEditor.Timeline
|
|
|
|
{
|
|
|
|
static class WindowConstants
|
|
|
|
{
|
|
|
|
public const float timeAreaYPosition = 19.0f;
|
|
|
|
public const float timeAreaHeight = 22.0f;
|
|
|
|
public const float timeAreaMinWidth = 50.0f;
|
|
|
|
public const float timeAreaShownRangePadding = 5.0f;
|
|
|
|
|
|
|
|
public const float markerRowHeight = 18.0f;
|
|
|
|
public const float markerRowYPosition = timeAreaYPosition + timeAreaHeight;
|
|
|
|
|
|
|
|
public const float defaultHeaderWidth = 315.0f;
|
|
|
|
public const float defaultBindingAreaWidth = 40.0f;
|
|
|
|
|
|
|
|
public const float minHierarchySplitter = 0.15f;
|
|
|
|
public const float maxHierarchySplitter = 10.50f;
|
|
|
|
public const float hierarchySplitterDefaultPercentage = 0.2f;
|
|
|
|
|
2022-01-12 10:39:15 +03:00
|
|
|
public const float minHeaderWidth = 195.0f;
|
2022-01-12 10:06:03 +03:00
|
|
|
public const float maxHeaderWidth = 650.0f;
|
|
|
|
|
|
|
|
public const float maxTimeAreaScaling = 90000.0f;
|
2022-01-12 10:39:15 +03:00
|
|
|
public const float timeCodeWidth = 100.0f; // Enough space to display up to 9999 without clipping
|
2022-01-12 10:06:03 +03:00
|
|
|
|
|
|
|
public const float sliderWidth = 15;
|
|
|
|
public const float shadowUnderTimelineHeight = 15.0f;
|
|
|
|
public const float createButtonWidth = 70.0f;
|
|
|
|
|
|
|
|
public const float selectorWidth = 23.0f;
|
2022-01-12 10:39:15 +03:00
|
|
|
public const float cogButtonWidth = 25.0f;
|
2022-01-12 10:06:03 +03:00
|
|
|
|
|
|
|
public const float trackHeaderButtonSize = 16.0f;
|
2022-01-12 10:39:15 +03:00
|
|
|
public const float trackHeaderButtonPadding = 2.0f;
|
|
|
|
public const float trackBindingMaxSize = 300.0f;
|
|
|
|
public const float trackBindingPadding = 5.0f;
|
2022-01-12 10:06:03 +03:00
|
|
|
|
|
|
|
public const float trackInsertionMarkerHeight = 1f;
|
2022-01-12 10:39:15 +03:00
|
|
|
public const float trackResizeHandleHeight = 7f;
|
|
|
|
public const float inlineCurveContentPadding = 2.0f;
|
|
|
|
|
|
|
|
public const float playControlsWidth = 300;
|
2022-01-12 10:06:03 +03:00
|
|
|
|
|
|
|
public const int autoPanPaddingInPixels = 50;
|
|
|
|
}
|
|
|
|
}
|