public HistoryWindow(InspectorToolbar m_Window) { this.m_Window = m_Window; //historyItemStyle = new GUIStyle(); //historyItemStyle.contentOffset = new Vector2(4, 0); //historyItemStyle.fixedHeight = 20.0f; //historyItemStyle.stretchWidth = true; }
public static void Init() { InspectorToolbar wnd = GetWindow <InspectorToolbar>(); wnd.titleContent = new GUIContent("InspectorToolbar"); wnd.maxSize = new Vector2(10000f, 24f); wnd.minSize = new Vector2(100f, 24f); InitializeHistoryTracking(); }
void HistoryItemMouseDown(MouseDownEvent evt, Object item) { var mouseStartDrag = false; var mouseClick = true; //mouseStartDrag = (evt.type == EventType.MouseDrag) && evt.button == 0; //mouseClick = (evt.type == EventType.MouseUp) && evt.button == 0 && evt.clickCount == 1; if (mouseClick) { InspectorToolbar.GoToHistoryItem(item); } }