void showMapFiles() { CustomEditorBase.Separator(); RickEditorGUI.Label("INPUT :", selectedPath); GUILayout.Space(4); if(selectAllToglle){ selectAllToglle = RickEditorGUI.Toggle("Select all",true); if(!selectAllToglle){ for (int i = 0; i < selectedFiles.Length; i++) { selectedFiles[i] = false; } } }else{ selectAllToglle = RickEditorGUI.Toggle("Select all",false); if(selectAllToglle){ for (int i = 0; i < selectedFiles.Length; i++) { selectedFiles[i] = true; } } } GUILayout.Space(8); int index = 0; foreach (FileInfo fileInfo in files) { if(fileInfo.Exists){ selectedFiles[index] = RickEditorGUI.Toggle(fileInfo.Name, selectedFiles[index]); } index++; } }
void showOptions() { loadToPrefab = RickEditorGUI.Toggle("Load As Prefab", loadToPrefab); if (loadToPrefab) { prefabFolder = RickEditorGUI.FolderPath("Asset Prefab Folder", prefabFolder, RickEditorGUI.assetFolder); } CustomEditorBase.Separator(); filePath = RickEditorGUI.FilePath("Map ", filePath, RickEditorGUI.rootFolder, "tmx"); }
protected override void showGUI() { multipleFileMod = RickEditorGUI.Toggle("Multiple file loading", multipleFileMod); if (multipleFileMod) { multipleFilePanel.show(); } else { singleFilePanel.show(); } }
void showOutputPanel() { CustomEditorBase.Separator(); RickEditorGUI.Label("Output",""); GUILayout.Space(4); const string seprateTooltip = "Determine whether the Tiles are loaded in Parent GameObjects based on the Tile's Layer or all tiles are put in the same parent."; separatePrefabByTiledLayers = RickEditorGUI.Toggle("Use Layers", seprateTooltip, separatePrefabByTiledLayers); loadToPrefab = RickEditorGUI.Toggle("Load As Prefab", loadToPrefab); if (loadToPrefab) { prefabFolder = RickEditorGUI.FolderPath("Asset Prefab Folder", prefabFolder, RickEditorGUI.assetFolder); } showButton(); }