示例#1
0
        protected override void OnCreate()
        {
            base.OnCreate();

            m_TypesControl = new ManagedTypesControl(window, GetPrefsKey(() => m_TypesControl), new TreeViewState());
            m_TypesControl.SetTree(m_TypesControl.BuildTree(snapshot));
            m_TypesControl.onSelectionChange += OnListViewSelectionChange;

            m_TypesSearchField = new HeSearchField(window);
            m_TypesSearchField.downOrUpArrowKeyPressed += m_TypesControl.SetFocusAndEnsureSelectedItem;
            m_TypesControl.findPressed += m_TypesSearchField.SetFocus;

            m_SplitterHorz = EditorPrefs.GetFloat(GetPrefsKey(() => m_SplitterHorz), m_SplitterHorz);
            m_SplitterVert = EditorPrefs.GetFloat(GetPrefsKey(() => m_SplitterVert), m_SplitterVert);
        }
示例#2
0
 public void Initialize(ManagedTypesControl owner, PackedMemorySnapshot snapshot, int arrayIndex)
 {
     m_Owner = owner;
     m_Type  = new RichManagedType(snapshot, arrayIndex);
 }