mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 04:16:50 +01:00
Fix overrides and duplicate binds in PolygonEditor.
This commit is contained in:
parent
6e09878f54
commit
f1eced523c
@ -94,11 +94,9 @@ void PolygonEditor::_notification(int p_what) {
|
||||
void PolygonEditor::_bind_methods() {
|
||||
ADD_SIGNAL(MethodInfo("value_changed", PropertyInfo(Variant::OBJECT, "value", PROPERTY_HINT_RESOURCE_TYPE, "PolygonBase")));
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_polygon", "p"), &PolygonEditor::set_polygon);
|
||||
ClassDB::bind_method(D_METHOD("update_controls"), &PolygonEditor::update_controls);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("_on_ControlPoint_moved", "index"), &PolygonEditor::_on_ControlPoint_moved);
|
||||
ClassDB::bind_method(D_METHOD("_on_ControlPoint_removed", "index"), &PolygonEditor::_on_ControlPoint_removed);
|
||||
ClassDB::bind_method(D_METHOD("_on_PolygonEditor_gui_input", "event"), &PolygonEditor::_on_PolygonEditor_gui_input);
|
||||
ClassDB::bind_method(D_METHOD("_on_resize"), &PolygonEditor::_on_resize);
|
||||
}
|
||||
|
@ -27,8 +27,6 @@ protected:
|
||||
void _notification(int p_what);
|
||||
|
||||
static void _bind_methods();
|
||||
|
||||
Ref<PolygonBase> polygon;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -12,7 +12,7 @@ class PolygonView : public Control {
|
||||
|
||||
public:
|
||||
Ref<PolygonBase> get_polygon();
|
||||
void set_polygon(const Ref<PolygonBase> &val);
|
||||
virtual void set_polygon(const Ref<PolygonBase> &val);
|
||||
|
||||
Vector2 get_draw_size();
|
||||
void set_draw_size(const Vector2 &val);
|
||||
@ -27,7 +27,7 @@ public:
|
||||
Vector2 reverse_transform_point(const Vector2 &p);
|
||||
|
||||
void _draw();
|
||||
void _on_resize();
|
||||
virtual void _on_resize();
|
||||
|
||||
PolygonView();
|
||||
~PolygonView();
|
||||
|
Loading…
Reference in New Issue
Block a user