コード例 #1
0
        public void OnGUI()
        {
            if (BDEditorApplication.BDFrameworkEditorSetting == null)
            {
                return;
            }
            var BuildSqlSetting = BDEditorApplication.BDFrameworkEditorSetting.BuildSqlSetting;

            GUILayout.BeginVertical();
            GUILayout.Label("3.表格打包", EditorGUIHelper.LabelH2);
            GUILayout.Space(5);
            if (GUILayout.Button("表格导出成Sqlite", GUILayout.Width(300), GUILayout.Height(30)))
            {
                //3.打包表格
                Excel2SQLiteTools.AllExcel2SQLite(Application.streamingAssetsPath, BApplication.RuntimePlatform);
                Excel2SQLiteTools.CopySqlToOther(Application.streamingAssetsPath, BApplication.RuntimePlatform);
            }

            GUILayout.Space(10);
            if (BuildSqlSetting != null)
            {
                BuildSqlSetting.IsForceImportChangedExcelOnWillEnterPlaymode = EditorGUILayout.Toggle("PlayMode强制导表", BuildSqlSetting.IsForceImportChangedExcelOnWillEnterPlaymode);
                BuildSqlSetting.IsAutoImportSqlWhenExcelChange = EditorGUILayout.Toggle("Excel修改自动导表", BuildSqlSetting.IsAutoImportSqlWhenExcelChange);
            }
            GUILayout.EndVertical();
        }
コード例 #2
0
        public void OnGUI()
        {
            var setting = BDEditorApplication.BDFrameWorkFrameEditorSetting;

            GUILayout.BeginVertical();
            GUILayout.Label("3.表格打包", EditorGUIHelper.LabelH2);
            GUILayout.Space(5);
            if (GUILayout.Button("表格导出成Sqlite", GUILayout.Width(300), GUILayout.Height(30)))
            {
                //3.打包表格
                Excel2SQLiteTools.AllExcel2SQLite(Application.streamingAssetsPath, BApplication.RuntimePlatform);
                Excel2SQLiteTools.CopySqlToOther(Application.streamingAssetsPath, BApplication.RuntimePlatform);
            }

            GUILayout.Space(10);
            if (setting != null)
            {
                setting.BuildSetting.IsForceImportChangedExcelOnWillEnterPlaymode = EditorGUILayout.Toggle("Playmode导入变动Excel", setting.BuildSetting.IsForceImportChangedExcelOnWillEnterPlaymode);
            }
            GUILayout.EndVertical();
        }