Removed the last remnants of Wren QQ

This commit is contained in:
WiggleWizard
2024-09-17 00:08:04 +01:00
parent 4ac7d1cfc9
commit 1b2abced1e
15 changed files with 1 additions and 686 deletions

View File

@@ -11,7 +11,6 @@
#include <src/Rendering/Textures/Material.h>
#include <src/Resource/ResourceLoader.h>
#include <src/Resource/FontAwesome5.h>
#include <src/Scripting/WrenScript.h>
#include <src/FileSystem/FileDialog.h>
#include <Engine.h>
@@ -224,7 +223,6 @@ void EditorSelectionPanel::DrawFile(Ref<Nuake::File> file)
}
case FileType::Script:
{
DrawWrenScriptPanel(CreateRef<WrenScript>(file, true));
break;
}
case FileType::NetScript:
@@ -494,26 +492,6 @@ void EditorSelectionPanel::DrawProjectPanel(Ref<Nuake::Project> project)
ImGui::InputText("Trenchbroom Path", &project->TrenchbroomPath);
}
void EditorSelectionPanel::DrawWrenScriptPanel(Ref<Nuake::WrenScript> wrenFile)
{
auto filePath = wrenFile->GetFile()->GetAbsolutePath();
std::string fileContent = Nuake::FileSystem::ReadFile(filePath, true);
ImGui::Text("Content");
ImGui::SameLine(ImGui::GetWindowWidth()-90);
if(ImGui::Button("Open..."))
{
Nuake::OS::OpenIn(filePath);
}
ImGui::Separator();
ImGui::PushTextWrapPos(ImGui::GetCursorPos().x + ImGui::GetWindowWidth());
ImGui::Text(fileContent.c_str(), ImGui::GetWindowWidth());
ImGui::PopTextWrapPos();
}
void EditorSelectionPanel::DrawNetScriptPanel(Ref<Nuake::File> file)
{
auto filePath = file->GetRelativePath();