protected override void OnEnable()
            {
                base.OnEnable();

                index = new ListPopup <Tab>(serializedObject.FindProperty("index"), target.TabsNames);

                tabs = new InspectorList(serializedObject.FindProperty("tabs"));
            }
Beispiel #2
0
            protected override void OnEnable()
            {
                base.OnEnable();

                index = new ListPopup <Tab>(serializedObject.FindProperty("index"), target.TabsNames);
                CustomGUI.Overrides.Add(index.Property, DrawIndex);

                tabs = new InspectorList(serializedObject.FindProperty("tabs"));
                CustomGUI.Overrides.Add(tabs.serializedProperty, DrawTabs);
            }
 protected virtual void InitIndex()
 {
     if (menu.objectReferenceValue)
     {
         index = new ListPopup <TabMenu.Tab>(serializedObject.FindProperty("index"), MenuObject.Tabs, delegate(TabMenu.Tab tab) { return(tab.Name); });
     }
     else
     {
         index = null;
     }
 }
Beispiel #4
0
 protected virtual void InitValue()
 {
     value = new ListPopup <string>(serializedObject.FindProperty("value"), target.options);
 }