Added a new PaintProject class.

This commit is contained in:
Relintai 2022-11-15 13:17:37 +01:00
parent 26511bb83b
commit c0bbd6edf7
5 changed files with 32 additions and 1 deletions

View File

@ -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")

View File

@ -26,7 +26,8 @@ def get_doc_classes():
"PaintWindow", "PaintWindow",
"PaintNode", "PaintNode",
"PaintCanvas" "PaintCanvas",
"PaintProject"
] ]
def get_doc_path(): def get_doc_path():

View File

@ -0,0 +1,10 @@
#include "paint_project.h"
PaintProject::PaintProject() {
}
PaintProject::~PaintProject() {
}
void PaintProject::_bind_methods() {
}

View 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

View File

@ -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>();