瀏覽代碼

tools: do not show irrelevant items

Daniele Bartolini 5 年之前
父節點
當前提交
ca77721081
共有 3 個文件被更改,包括 6 次插入2 次删除
  1. 1 0
      docs/changelog.rst
  2. 4 2
      tools/level_editor/project.vala
  3. 1 0
      tools/level_editor/project_browser.vala

+ 1 - 0
docs/changelog.rst

@@ -15,6 +15,7 @@ Changelog
 * Fixed a number of dialog boxes that were not centered to the Level Editor's main window
 * Fixed a number of dialog boxes that were not centered to the Level Editor's main window
 * Fixed an issue that caused Project Browser to show inconsistent folder structured in some circumnstances
 * Fixed an issue that caused Project Browser to show inconsistent folder structured in some circumnstances
 * Fixed modifier keys getting stuck in the wrong state in some circumnstances
 * Fixed modifier keys getting stuck in the wrong state in some circumnstances
+* Improved Project Browser to not show irrelevant items
 * Improved Test Level/Start Game button behavior when game failed to launch
 * Improved Test Level/Start Game button behavior when game failed to launch
 * Level Editor now saves aggregate logs to disk. User can browse logs folder from Help > Browse Logs...
 * Level Editor now saves aggregate logs to disk. User can browse logs folder from Help > Browse Logs...
 * Unified Engine and Run menubar items into a single Debug menubar item
 * Unified Engine and Run menubar items into a single Debug menubar item

+ 4 - 2
tools/level_editor/project.vala

@@ -10,6 +10,8 @@ namespace Crown
 {
 {
 	public class Project
 	public class Project
 	{
 	{
+		public const string LEVEL_EDITOR_TEST_NAME = "_level_editor_test";
+
 		// Data
 		// Data
 		public File _source_dir;
 		public File _source_dir;
 		public File _toolchain_dir;
 		public File _toolchain_dir;
@@ -60,8 +62,8 @@ namespace Crown
 			_toolchain_dir = File.new_for_path(toolchain_dir);
 			_toolchain_dir = File.new_for_path(toolchain_dir);
 			_data_dir      = File.new_for_path(_source_dir.get_path() + "_" + _platform);
 			_data_dir      = File.new_for_path(_source_dir.get_path() + "_" + _platform);
 
 
-			_level_editor_test_level = File.new_for_path(Path.build_filename(_source_dir.get_path(), "_level_editor_test.level"));
-			_level_editor_test_package = File.new_for_path(Path.build_filename(_source_dir.get_path(), "_level_editor_test.package"));
+			_level_editor_test_level = File.new_for_path(Path.build_filename(_source_dir.get_path(), LEVEL_EDITOR_TEST_NAME + ".level"));
+			_level_editor_test_package = File.new_for_path(Path.build_filename(_source_dir.get_path(), LEVEL_EDITOR_TEST_NAME + ".package"));
 
 
 			// Cleanup source directory from previous runs' garbage
 			// Cleanup source directory from previous runs' garbage
 			delete_garbage();
 			delete_garbage();

+ 1 - 0
tools/level_editor/project_browser.vala

@@ -15,6 +15,7 @@ namespace Crown
 			|| type == "wav"
 			|| type == "wav"
 			|| type == "png"
 			|| type == "png"
 			|| type == "importer_settings"
 			|| type == "importer_settings"
+			|| name == Project.LEVEL_EDITOR_TEST_NAME
 			;
 			;
 	}
 	}