static Bootstrap() { Collab.ShowHistoryWindow = CollabHistoryWindow.ShowHistoryWindow; Collab.ShowToolbarAtPosition = CollabToolbarWindow.ShowCenteredAtPosition; Collab.IsToolbarVisible = CollabToolbarWindow.IsVisible; Collab.CloseToolbar = CollabToolbarWindow.CloseToolbar; Toolbar.AddSubToolbar(new CollabToolbarButton { Width = kCollabToolbarButtonWidth }); }
static Bootstrap() { Collab.ShowHistoryWindow = CollabHistoryWindow.ShowHistoryWindow; Collab.ShowToolbarAtPosition = CollabToolbarWindow.ShowCenteredAtPosition; Collab.IsToolbarVisible = CollabToolbarWindow.IsVisible; Collab.CloseToolbar = CollabToolbarWindow.CloseToolbar; Toolbar.AddSubToolbar(new CollabToolbarButton { Width = kCollabToolbarButtonWidth }); // Register get changes callbacks CollabVersionControl.GetChangesFinished += CollabToolbarWindow.OnGetChangesFinish; CollabVersionControl.GetChangesStarted += CollabToolbarWindow.OnGetChangesStart; CollabVersionControl.UpdateCachedChangesFinished += CollabToolbarWindow.OnUpdateCachedChangesFinish; }
static Bootstrap() { var toolbar = new ToolbarButtonV2 { Width = 32f }; Toolbar.AddSubToolbar(toolbar); toolbar.Update(); Collab.ShowHistoryWindow += () => { CollaborateWindow.Init(CollaborateWindow.FocusTarget.History); }; Collab.ShowChangesWindow += () => { CollaborateWindow.Init(CollaborateWindow.FocusTarget.Changes); }; }
static Bootstrap() { Toolbar.AddSubToolbar(new ToolbarButton { Width = 32f }); }