2016-02-01 20:29:58 -08:00
|
|
|
#ifndef URDE_PARTICLE_EDITOR_HPP
|
|
|
|
#define URDE_PARTICLE_EDITOR_HPP
|
2016-02-01 12:04:55 -08:00
|
|
|
|
|
|
|
#include "Space.hpp"
|
|
|
|
|
2016-03-04 16:03:41 -08:00
|
|
|
namespace urde
|
2016-02-01 12:04:55 -08:00
|
|
|
{
|
|
|
|
|
|
|
|
class EffectEditor : public EditorSpace
|
|
|
|
{
|
|
|
|
struct State : Space::State
|
|
|
|
{
|
2018-02-21 23:24:51 -08:00
|
|
|
AT_DECL_DNA_YAML
|
|
|
|
AT_DECL_DNAV
|
2016-02-01 12:04:55 -08:00
|
|
|
String<-1> path;
|
|
|
|
} m_state;
|
|
|
|
const Space::State& spaceState() const {return m_state;}
|
|
|
|
|
2016-03-04 15:04:53 -08:00
|
|
|
struct View : specter::View
|
2016-02-01 20:29:58 -08:00
|
|
|
{
|
2016-03-04 15:04:53 -08:00
|
|
|
View(specter::ViewResources& res, specter::View& parent)
|
|
|
|
: specter::View(res, parent) {}
|
2016-02-01 20:29:58 -08:00
|
|
|
};
|
|
|
|
|
2016-03-04 15:04:53 -08:00
|
|
|
specter::View* buildContentView(specter::ViewResources& res)
|
2016-02-01 12:04:55 -08:00
|
|
|
{
|
|
|
|
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-07-08 18:23:34 -07:00
|
|
|
|
|
|
|
bool usesToolbar() const { return true; }
|
2016-02-01 12:04:55 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-02-01 20:29:58 -08:00
|
|
|
#endif // URDE_PARTICLE_EDITOR_HPP
|