metaforce/Editor/ParticleEditor.hpp

48 lines
1.1 KiB
C++
Raw Normal View History

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"
2016-03-05 00:03:41 +00:00
namespace urde
2016-02-01 20:04:55 +00:00
{
class EffectEditor : public EditorSpace
{
struct State : Space::State
{
DECL_YAML
String<-1> path;
} m_state;
const Space::State& spaceState() const {return m_state;}
2016-03-04 23:04:53 +00:00
struct View : specter::View
2016-02-02 04:29:58 +00:00
{
2016-03-04 23:04:53 +00:00
View(specter::ViewResources& res, specter::View& parent)
: specter::View(res, parent) {}
2016-02-02 04:29:58 +00:00
};
2016-03-04 23:04:53 +00:00
specter::View* buildContentView(specter::ViewResources& res)
2016-02-01 20:04:55 +00: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-09 01:23:34 +00:00
bool usesToolbar() const { return true; }
2016-02-01 20:04:55 +00:00
};
}
2016-02-02 04:29:58 +00:00
#endif // URDE_PARTICLE_EDITOR_HPP