コード例 #1
0
            protected override void OnEnable()
            {
                base.OnEnable();

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

                tabs = new InspectorList(serializedObject.FindProperty("tabs"));
            }
コード例 #2
0
ファイル: TabMenu.cs プロジェクト: moe4b-personal/Moe-Tools
            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);
            }
コード例 #3
0
 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;
     }
 }
コード例 #4
0
 protected virtual void InitValue()
 {
     value = new ListPopup <string>(serializedObject.FindProperty("value"), target.options);
 }