Connect up CurveEdit's button.

This commit is contained in:
Relintai 2022-06-16 11:36:49 +02:00
parent 2539e01711
commit e9a02afd37
2 changed files with 12 additions and 0 deletions

View File

@ -40,6 +40,16 @@ CurveEdit::CurveEdit() {
CurveEdit::~CurveEdit() {
}
void CurveEdit::_notification(int p_what) {
switch (p_what) {
case NOTIFICATION_POSTINITIALIZE: {
connect("pressed", this, "_on_CurveEdit_pressed");
} break;
default: {
} break;
}
}
void CurveEdit::_bind_methods() {
ADD_SIGNAL(MethodInfo("updated", PropertyInfo(Variant::OBJECT, "curve", PROPERTY_HINT_RESOURCE_TYPE, "CurveBase")));

View File

@ -20,6 +20,8 @@ public:
~CurveEdit();
protected:
void _notification(int p_what);
static void _bind_methods();
Ref<CurveBase> value;