mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 12:26:59 +01:00
Added a new PaintProject class.
This commit is contained in:
parent
26511bb83b
commit
c0bbd6edf7
@ -35,6 +35,7 @@ module_env.add_source_files(env.modules_sources,"bush_prefabs.cpp")
|
|||||||
|
|
||||||
module_env.add_source_files(env.modules_sources,"nodes/paint_node.cpp")
|
module_env.add_source_files(env.modules_sources,"nodes/paint_node.cpp")
|
||||||
module_env.add_source_files(env.modules_sources,"nodes/paint_canvas.cpp")
|
module_env.add_source_files(env.modules_sources,"nodes/paint_canvas.cpp")
|
||||||
|
module_env.add_source_files(env.modules_sources,"nodes/paint_project.cpp")
|
||||||
|
|
||||||
module_env.add_source_files(env.modules_sources,"deprecated/paint_canvas_layer.cpp")
|
module_env.add_source_files(env.modules_sources,"deprecated/paint_canvas_layer.cpp")
|
||||||
module_env.add_source_files(env.modules_sources,"deprecated/paint_canvas.cpp")
|
module_env.add_source_files(env.modules_sources,"deprecated/paint_canvas.cpp")
|
||||||
|
@ -26,7 +26,8 @@ def get_doc_classes():
|
|||||||
"PaintWindow",
|
"PaintWindow",
|
||||||
|
|
||||||
"PaintNode",
|
"PaintNode",
|
||||||
"PaintCanvas"
|
"PaintCanvas",
|
||||||
|
"PaintProject"
|
||||||
]
|
]
|
||||||
|
|
||||||
def get_doc_path():
|
def get_doc_path():
|
||||||
|
10
modules/paint/nodes/paint_project.cpp
Normal file
10
modules/paint/nodes/paint_project.cpp
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#include "paint_project.h"
|
||||||
|
|
||||||
|
PaintProject::PaintProject() {
|
||||||
|
}
|
||||||
|
|
||||||
|
PaintProject::~PaintProject() {
|
||||||
|
}
|
||||||
|
|
||||||
|
void PaintProject::_bind_methods() {
|
||||||
|
}
|
17
modules/paint/nodes/paint_project.h
Normal file
17
modules/paint/nodes/paint_project.h
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#ifndef PAINT_PROJECT_H
|
||||||
|
#define PAINT_PROJECT_H
|
||||||
|
|
||||||
|
#include "paint_node.h"
|
||||||
|
|
||||||
|
class PaintProject : public PaintNode {
|
||||||
|
GDCLASS(PaintProject, PaintNode);
|
||||||
|
|
||||||
|
public:
|
||||||
|
PaintProject();
|
||||||
|
~PaintProject();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
static void _bind_methods();
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
@ -46,6 +46,7 @@ SOFTWARE.
|
|||||||
|
|
||||||
#include "nodes/paint_node.h"
|
#include "nodes/paint_node.h"
|
||||||
#include "nodes/paint_canvas.h"
|
#include "nodes/paint_canvas.h"
|
||||||
|
#include "nodes/paint_project.h"
|
||||||
|
|
||||||
#ifdef TOOLS_ENABLED
|
#ifdef TOOLS_ENABLED
|
||||||
#include "paint_editor_plugin.h"
|
#include "paint_editor_plugin.h"
|
||||||
@ -76,6 +77,7 @@ void register_paint_types() {
|
|||||||
|
|
||||||
ClassDB::register_class<PaintNode>();
|
ClassDB::register_class<PaintNode>();
|
||||||
ClassDB::register_class<PaintCanvas>();
|
ClassDB::register_class<PaintCanvas>();
|
||||||
|
ClassDB::register_class<PaintProject>();
|
||||||
|
|
||||||
#ifdef TOOLS_ENABLED
|
#ifdef TOOLS_ENABLED
|
||||||
EditorPlugins::add_by_type<PaintEditorPlugin>();
|
EditorPlugins::add_by_type<PaintEditorPlugin>();
|
||||||
|
Loading…
Reference in New Issue
Block a user