2016-02-02 04:29:58 +00:00
|
|
|
#ifndef URDE_PARTICLE_EDITOR_HPP
|
|
|
|
#define URDE_PARTICLE_EDITOR_HPP
|
2016-02-01 20:04:55 +00:00
|
|
|
|
|
|
|
#include "Space.hpp"
|
|
|
|
|
|
|
|
namespace URDE
|
|
|
|
{
|
|
|
|
|
|
|
|
class EffectEditor : public EditorSpace
|
|
|
|
{
|
|
|
|
struct State : Space::State
|
|
|
|
{
|
|
|
|
DECL_YAML
|
|
|
|
String<-1> path;
|
|
|
|
} m_state;
|
|
|
|
const Space::State& spaceState() const {return m_state;}
|
|
|
|
|
2016-02-02 04:29:58 +00:00
|
|
|
struct View : Specter::View
|
|
|
|
{
|
|
|
|
View(Specter::ViewResources& res, Specter::View& parent)
|
|
|
|
: Specter::View(res, parent) {}
|
|
|
|
};
|
|
|
|
|
2016-02-01 20:04:55 +00:00
|
|
|
Specter::View* buildContentView(Specter::ViewResources& res)
|
|
|
|
{
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
public:
|
|
|
|
EffectEditor(ViewManager& vm, Space* parent)
|
|
|
|
: EditorSpace(vm, Class::EffectEditor, parent) {}
|
|
|
|
EffectEditor(ViewManager& vm, Space* parent, ConfigReader& r)
|
|
|
|
: EffectEditor(vm, parent) {m_state.read(r);}
|
|
|
|
EffectEditor(ViewManager& vm, Space* parent, const EffectEditor& other)
|
|
|
|
: EffectEditor(vm, parent) {m_state = other.m_state;}
|
|
|
|
|
|
|
|
Space* copy(Space* parent) const
|
|
|
|
{
|
|
|
|
return new EffectEditor(m_vm, parent, *this);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-02-02 04:29:58 +00:00
|
|
|
#endif // URDE_PARTICLE_EDITOR_HPP
|