Bootstrap.cs 724 B

123456789101112131415161718192021222324
  1. using UnityEditor;
  2. using UnityEditor.Collaboration;
  3. using UnityEngine;
  4. namespace CollabProxy.UI
  5. {
  6. [InitializeOnLoad]
  7. public class Bootstrap
  8. {
  9. private const float kCollabToolbarButtonWidth = 78.0f;
  10. static Bootstrap()
  11. {
  12. Collab.ShowHistoryWindow = CollabHistoryWindow.ShowHistoryWindow;
  13. Collab.ShowToolbarAtPosition = CollabToolbarWindow.ShowCenteredAtPosition;
  14. Collab.IsToolbarVisible = CollabToolbarWindow.IsVisible;
  15. Collab.CloseToolbar = CollabToolbarWindow.CloseToolbar;
  16. Toolbar.AddSubToolbar(new CollabToolbarButton
  17. {
  18. Width = kCollabToolbarButtonWidth
  19. });
  20. }
  21. }
  22. }