summaryrefslogtreecommitdiff
path: root/editor/plugins/abstract_polygon_2d_editor.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor/plugins/abstract_polygon_2d_editor.h')
-rw-r--r--editor/plugins/abstract_polygon_2d_editor.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/plugins/abstract_polygon_2d_editor.h b/editor/plugins/abstract_polygon_2d_editor.h
index 8dd22958db..915fe0803e 100644
--- a/editor/plugins/abstract_polygon_2d_editor.h
+++ b/editor/plugins/abstract_polygon_2d_editor.h
@@ -46,6 +46,7 @@ class AbstractPolygon2DEditor : public HBoxContainer {
ToolButton *button_create;
ToolButton *button_edit;
+ ToolButton *button_delete;
struct Vertex {
Vertex();
@@ -89,6 +90,7 @@ protected:
MODE_CREATE,
MODE_EDIT,
+ MODE_DELETE,
MODE_CONT,
};
@@ -98,7 +100,9 @@ protected:
UndoRedo *undo_redo;
virtual void _menu_option(int p_option);
+ void _wip_changed();
void _wip_close();
+ bool _delete_point(const Vector2 &p_gpoint);
void _notification(int p_what);
void _node_removed(Node *p_node);
@@ -116,6 +120,7 @@ protected:
virtual Node2D *_get_node() const = 0;
virtual void _set_node(Node *p_polygon) = 0;
+ virtual bool _is_line() const;
virtual int _get_polygon_count() const;
virtual Vector2 _get_offset(int p_idx) const;
virtual Variant _get_polygon(int p_idx) const;