No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DrawSplitter.cs 623B

12345678910111213141516171819202122232425
  1. using UnityEditor;
  2. using UnityEngine;
  3. namespace Unity.PlasticSCM.Editor.UI
  4. {
  5. internal static class DrawSplitter
  6. {
  7. internal static void ForHorizontalIndicator()
  8. {
  9. ForWidth(EditorGUIUtility.currentViewWidth);
  10. }
  11. internal static void ForWidth(float width)
  12. {
  13. GUIStyle style = UnityStyles.SplitterIndicator;
  14. Rect splitterRect = GUILayoutUtility.GetRect(
  15. width,
  16. UnityConstants.SPLITTER_INDICATOR_HEIGHT,
  17. style);
  18. GUI.Label(splitterRect, string.Empty, style);
  19. }
  20. }
  21. }