Exemple #1
0
        void OnGUI()
        {
            CurConfigData.Namespace = EditorGUIUtils.GUILabelAndTextField("Namespace", CurConfigData.Namespace);

                        #if NONE_LUA_SUPPORT
            CurConfigData.UIScriptDir = EditorGUIUtils.GUILabelAndTextField("UI Script Generate Dir", CurConfigData.UIScriptDir);
            CurConfigData.UIPrefabDir = EditorGUIUtils.GUILabelAndTextField("UI Prefab Dir", CurConfigData.UIPrefabDir);
                        #endif

            CurConfigData.ResLoaderSupportIndex = EditorGUIUtils.GUILabelAndPopup("AB Support",
                                                                                  CurConfigData.ResLoaderSupportIndex, FrameworkConfigData.RES_LOADER_SUPPORT_TEXTS);
            CurConfigData.LuaSupportIndex = EditorGUIUtils.GUILabelAndPopup("Lua Support", CurConfigData.LuaSupportIndex,
                                                                            FrameworkConfigData.LUA_SUPPORT_TEXTS);
            CurConfigData.CocosSupportIndex = EditorGUIUtils.GUILabelAndPopup("Cocos Support", CurConfigData.CocosSupportIndex,
                                                                              FrameworkConfigData.COCOS_SUPPORT_TEXTS);
            if (GUILayout.Button("Apply"))
            {
                CurConfigData.Save();
                MicroEditor.ApplyAllPlatform();
            }
        }