Пример #1
0
        void OnEnable()
        {
            mHeaderTexture      = EntitasEditorLayout.LoadTexture("l:EntitasHeader");
            mPreferencesDrawers = AppDomain.CurrentDomain
                                  .GetInstancesOf <IEntitasPreferencesDrawer>()
                                  .OrderBy(drawer => drawer.Priority)
                                  .ToArray();

            try
            {
                mProperties = Preferences.HasProperties()
                    ? Preferences.LoadProperties()
                    : new Properties();
                foreach (var drawer in mPreferencesDrawers)
                {
                    drawer.Initialize(mProperties);
                }
                Preferences.SaveProperties(mProperties);
            }
            catch (Exception ex)
            {
                mConfigException = ex;
            }
        }
Пример #2
0
        public static void OpenPreferences()
        {
//            EntitasEditorLayout.ShowWindow<PreferencesWindow>("QFramework " + CheckForUpdates.GetLocalVersion());
            EntitasEditorLayout.ShowWindow <PreferencesWindow>("QFramework QFramework");
        }