diff --git a/Editor/src/Windows/FileSystemUI.cpp b/Editor/src/Windows/FileSystemUI.cpp index a62bde55..79064785 100644 --- a/Editor/src/Windows/FileSystemUI.cpp +++ b/Editor/src/Windows/FileSystemUI.cpp @@ -320,7 +320,7 @@ namespace Nuake } - Ref textureImage =TextureManager::Get()->GetTexture("Resources/Images/folder_icon.png"); + Ref textureImage =TextureManager::Get()->GetTexture("Resources/Images/file_icon.png"); const auto textureMgr = TextureManager::Get(); const auto fileType = file->GetFileType(); @@ -335,7 +335,23 @@ namespace Nuake } else if (fileType == FileType::Project) { - textureImage = textureMgr->GetTexture("Resources/Images/logo.png"); + textureImage = textureMgr->GetTexture("Resources/Images/project_icon.png"); + } + else if (fileType == FileType::NetScript) + { + textureImage = textureMgr->GetTexture("Resources/Images/csharp_icon.png"); + } + else if (fileType == FileType::Scene) + { + textureImage = textureMgr->GetTexture("Resources/Images/scene_icon.png"); + } + else if (fileType == FileType::Script) + { + textureImage = textureMgr->GetTexture("Resources/Images/script_file_icon.png"); + } + else if (fileType == FileType::Audio) + { + textureImage = textureMgr->GetTexture("Resources/Images/Audio_file_icon.png"); } ImGui::SetCursorPos(prevCursor); diff --git a/Nuake/src/Core/FileSystem.h b/Nuake/src/Core/FileSystem.h index 3b3b3862..96c4f9f2 100644 --- a/Nuake/src/Core/FileSystem.h +++ b/Nuake/src/Core/FileSystem.h @@ -66,7 +66,8 @@ namespace Nuake Wad, Map, Assembly, - Solution + Solution, + Audio }; class File @@ -87,11 +88,14 @@ namespace Nuake FileType GetFileType() const { std::string ext = GetExtension(); - if (ext == ".png" || ext == "jpg") + if (ext == ".png" || ext == ".jpg") { return FileType::Image; } - + if (ext == ".ogg" || ext == ".wav") + { + return FileType::Audio; + } if (ext == ".material") { return FileType::Material; diff --git a/Nuake/src/Resource/StaticResources.cpp b/Nuake/src/Resource/StaticResources.cpp index 991b291b..92cb0f02 100644 --- a/Nuake/src/Resource/StaticResources.cpp +++ b/Nuake/src/Resource/StaticResources.cpp @@ -107163,6 +107163,72 @@ const std::string Resources_Images_nuake_logo_png_path = R"(Resources/Images/nua }; unsigned int Resources_Images_nuake_logo_png_len = 1675; +// Data for file: Resources_Images_project_icon_png_path +const std::string Resources_Images_project_icon_png_path = R"(Resources/Images/project_icon.png)"; + unsigned char Resources_Images_project_icon_png[] = { + 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, + 0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x64, 0x00, 0x00, 0x00, 0x64, + 0x08, 0x06, 0x00, 0x00, 0x00, 0x70, 0xe2, 0x95, 0x54, 0x00, 0x00, 0x00, + 0x09, 0x70, 0x48, 0x59, 0x73, 0x00, 0x00, 0x0b, 0x13, 0x00, 0x00, 0x0b, + 0x13, 0x01, 0x00, 0x9a, 0x9c, 0x18, 0x00, 0x00, 0x00, 0x01, 0x73, 0x52, + 0x47, 0x42, 0x00, 0xae, 0xce, 0x1c, 0xe9, 0x00, 0x00, 0x00, 0x04, 0x67, + 0x41, 0x4d, 0x41, 0x00, 0x00, 0xb1, 0x8f, 0x0b, 0xfc, 0x61, 0x05, 0x00, + 0x00, 0x02, 0x64, 0x49, 0x44, 0x41, 0x54, 0x78, 0x01, 0xed, 0xd7, 0x81, + 0x71, 0xda, 0x30, 0x14, 0x80, 0x61, 0xd1, 0xeb, 0x00, 0xde, 0x00, 0xba, + 0x01, 0x1b, 0x34, 0x23, 0xb0, 0x01, 0x74, 0x02, 0xd8, 0x80, 0x76, 0x02, + 0xb2, 0x81, 0xaf, 0x13, 0xd0, 0x0d, 0xcc, 0x06, 0x4d, 0x27, 0x80, 0x0d, + 0xec, 0x0d, 0x54, 0xa9, 0x3c, 0x35, 0x8f, 0x17, 0xd9, 0x24, 0x57, 0xd7, + 0xe0, 0xcb, 0xff, 0xdd, 0xe9, 0x6c, 0xcb, 0x7a, 0x4f, 0x8e, 0x84, 0x25, + 0xc7, 0x39, 0x00, 0x00, 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d4, 0xa8, 0x50, 0x00, + 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82 + }; + unsigned int Resources_Images_project_icon_png_len = 719; + // Data for file: Resources_Images_screenshot_png_path const std::string Resources_Images_screenshot_png_path = R"(Resources/Images/screenshot.png)"; unsigned char Resources_Images_screenshot_png[] = { diff --git a/Nuake/src/Resource/StaticResources.h b/Nuake/src/Resource/StaticResources.h index a4596ae1..f5c2cd73 100644 --- a/Nuake/src/Resource/StaticResources.h +++ b/Nuake/src/Resource/StaticResources.h @@ -57,6 +57,9 @@ extern unsigned char Resources_Images_logo_white_png[]; extern const std::string Resources_Images_nuake_logo_png_path; extern unsigned int Resources_Images_nuake_logo_png_len; extern unsigned char Resources_Images_nuake_logo_png[]; +extern const std::string Resources_Images_project_icon_png_path; +extern unsigned int Resources_Images_project_icon_png_len; +extern unsigned char Resources_Images_project_icon_png[]; extern const std::string Resources_Images_screenshot_png_path; extern unsigned int Resources_Images_screenshot_png_len; extern unsigned char Resources_Images_screenshot_png[];