mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-11 21:31:10 +01:00
Added the Tools enum from PaintWindow to PaintCanvas.
This commit is contained in:
parent
fff7d1f152
commit
338fc04a75
@ -372,4 +372,16 @@ void PaintCanvas::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method(D_METHOD("get_image_texture"), &PaintCanvas::get_image_texture);
|
||||
ClassDB::bind_method(D_METHOD("get_preview_image_texture"), &PaintCanvas::get_preview_image_texture);
|
||||
|
||||
BIND_ENUM_CONSTANT(PAINT);
|
||||
BIND_ENUM_CONSTANT(BRUSH);
|
||||
BIND_ENUM_CONSTANT(BUCKET);
|
||||
BIND_ENUM_CONSTANT(RAINBOW);
|
||||
BIND_ENUM_CONSTANT(LINE);
|
||||
BIND_ENUM_CONSTANT(RECT);
|
||||
BIND_ENUM_CONSTANT(DARKEN);
|
||||
BIND_ENUM_CONSTANT(BRIGHTEN);
|
||||
BIND_ENUM_CONSTANT(COLORPICKER);
|
||||
BIND_ENUM_CONSTANT(CUT);
|
||||
BIND_ENUM_CONSTANT(PASTECUT);
|
||||
}
|
||||
|
@ -12,6 +12,20 @@ class PaintCanvas : public PaintNode {
|
||||
GDCLASS(PaintCanvas, PaintNode);
|
||||
|
||||
public:
|
||||
enum Tools {
|
||||
PAINT = 0,
|
||||
BRUSH,
|
||||
BUCKET,
|
||||
RAINBOW,
|
||||
LINE,
|
||||
RECT,
|
||||
DARKEN,
|
||||
BRIGHTEN,
|
||||
COLORPICKER,
|
||||
CUT,
|
||||
PASTECUT,
|
||||
};
|
||||
|
||||
bool get_symmetry_x() const;
|
||||
void set_symmetry_x(const bool val);
|
||||
|
||||
@ -83,4 +97,6 @@ protected:
|
||||
Ref<ImageTexture> _preview_image_texture;
|
||||
};
|
||||
|
||||
VARIANT_ENUM_CAST(PaintCanvas::Tools);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user