1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- #ifndef CAMERA_EDITOR_PLUGIN_H
- #define CAMERA_EDITOR_PLUGIN_H
- #include "editor/editor_node.h"
- #include "editor/editor_plugin.h"
- #include "scene/3d/camera.h"
- class CameraEditor : public Control {
- GDCLASS(CameraEditor, Control);
- Panel *panel;
- Button *preview;
- Node *node;
- void _pressed();
- protected:
- void _node_removed(Node *p_node);
- static void _bind_methods();
- public:
- void edit(Node *p_camera);
- CameraEditor();
- };
- class CameraEditorPlugin : public EditorPlugin {
- GDCLASS(CameraEditorPlugin, EditorPlugin);
-
- EditorNode *editor;
- public:
- virtual String get_name() const { return "Camera"; }
- bool has_main_screen() const { return false; }
- virtual void edit(Object *p_object);
- virtual bool handles(Object *p_object) const;
- virtual void make_visible(bool p_visible);
- CameraEditorPlugin(EditorNode *p_node);
- ~CameraEditorPlugin();
- };
- #endif
|