mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 04:16:50 +01:00
Connect up CurveEdit's button.
This commit is contained in:
parent
2539e01711
commit
e9a02afd37
@ -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")));
|
||||
|
||||
|
@ -20,6 +20,8 @@ public:
|
||||
~CurveEdit();
|
||||
|
||||
protected:
|
||||
void _notification(int p_what);
|
||||
|
||||
static void _bind_methods();
|
||||
|
||||
Ref<CurveBase> value;
|
||||
|
Loading…
Reference in New Issue
Block a user