Made material resource file editable from engine

This commit is contained in:
antopilo
2022-06-29 18:05:59 -04:00
parent 407ff89df7
commit 162966eeb0
24 changed files with 571 additions and 194 deletions

View File

@@ -8,6 +8,8 @@
#include "../ComponentsPanel/ScriptPanel.h"
#include "../ComponentsPanel/MeshPanel.h"
#include "../ComponentsPanel/QuakeMapPanel.h"
#include "../Actions/EditorSelection.h"
#include <src/Resource/Project.h>
class EditorSelectionPanel {
private:
@@ -16,6 +18,9 @@ private:
ScriptPanel mScriptPanel;
MeshPanel mMeshPanel;
QuakeMapPanel mQuakeMapPanel;
Ref<Nuake::File> currentFile;
Ref<Nuake::Resource> selectedResource;
public:
EditorSelectionPanel();
@@ -27,4 +32,9 @@ public:
void DrawFile(Nuake::File* file);
void DrawResource(Nuake::Resource resource);
private:
void ResolveFile(Ref<Nuake::File> file);
void DrawMaterialPanel(Ref<Nuake::Material> material);
void DrawProjectPanel(Ref<Nuake::Project> project);
};