Initial work on WAD extractor + Map builder now loads material if they exists

Alpha not supported atm in wads
This commit is contained in:
Antoine Pilote
2023-09-24 02:42:35 -04:00
parent a09fc40469
commit 9ed40ca652
5 changed files with 2371 additions and 7 deletions

View File

@@ -13,6 +13,8 @@
#include <src/Rendering/Textures/Material.h>
#include "../Misc/PopupHelper.h"
#include "src/Scene/Systems/WadConverter.h"
namespace Nuake
{
Ref<Directory> FileSystemUI::m_CurrentDirectory;
@@ -334,6 +336,14 @@ namespace Nuake
}
}
if (file->GetExtension() == ".wad")
{
if (ImGui::MenuItem("Extract to PNG"))
{
Nuake::ExtractWad(file->GetAbsolutePath(), FileSystem::Root);
}
}
if (ImGui::MenuItem("Rename"))
{
shouldRename = true;