Ejemplo n.º 1
0
        /////////////////////////////////////////
        public GUI_BuildProperty()
        {
            m_HorizontalSplitter = new UnityEditorSplitterState(0.20f, 0.80f);

            m_treeViewL = new TreeView_BuildPropertyL();
            m_treeViewR = new TreeView_BuildPropertyR();
        }
Ejemplo n.º 2
0
        void OnEnable()
        {
            SetTitle("Asmdef Editor", EditorIcon.assetIcon_AssemblyDefinition);
            E.Load();

            m_HorizontalSplitter = new UnityEditorSplitterState(0.4f, 0.6f);

            Refresh();
            m_waitSpinIcon = new IconWaitSpin(Repaint);
        }
Ejemplo n.º 3
0
        void OnEnable()
        {
            s_instance = this;

            m_HorizontalSplitter = new UnityEditorSplitterState(0.3f, 0.7f);

            m_treeView = new SettingsTreeView();

            var settingsMethods = AssemblieUtils.GetAllMethodsWithAttribute <HananokiSettingsRegister>();

            s_settingsItem = settingsMethods.Select(x => (SettingsItem)x.Invoke(null, null)).ToArray();
            //foreach( var p in settingsMethods ) {
            //	//Debug.Log( p.FullName );
            //}
            //if( s_settingsItem == null ) {
            //	var lst = new System.Collections.Generic.List<SettingsItem>();
            //	var t = typeof( SettingsClass );
            //	foreach( Assembly assembly in AppDomain.CurrentDomain.GetAssemblies() ) {
            //		try {
            //			foreach( Type type in assembly.GetTypes() ) {
            //				try {
            //					if( type.GetCustomAttribute( t ) == null ) continue;
            //					var mm = R.Methods( typeof( SettingsMethod ), type.FullName, assembly.FullName.Split( ',' )[ 0 ] );
            //					//s_localizeEvent.AddRange( mm );
            //					var item = (SettingsItem) mm[ 0 ].Invoke( null, null );
            //					lst.Add( item );
            //				}
            //				catch( Exception ee ) {
            //					Debug.LogException( ee );
            //				}
            //			}
            //		}
            //		catch( ReflectionTypeLoadException ) {
            //		}
            //		catch( Exception e ) {
            //			Debug.LogError( e );
            //		}
            //	}
            //	s_settingsItem = lst.ToArray();
            //}

            if (s_settingsItem != null)
            {
                var tot = s_settingsItem.OrderBy(x => x.displayName).ToArray();
                foreach (var item in tot)
                {
                    m_treeView.AddItem(item);
                }
            }

            m_treeView.ReloadAndSorting();
            //m_treeView.ExpandAll();
            selectionOpen = true;
        }
Ejemplo n.º 4
0
        /////////////////////////////////////////
        public GUI_BuildScenes()
        {
            m_HorizontalSplitter = new UnityEditorSplitterState(0.20f, 0.80f);

            m_treeView = new TreeView_BuildScenesL();
        }