mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-04-09 05:21:49 +02:00
Connect up CurveEdit's button.
This commit is contained in:
parent
2539e01711
commit
e9a02afd37
@ -40,6 +40,16 @@ CurveEdit::CurveEdit() {
|
|||||||
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() {
|
void CurveEdit::_bind_methods() {
|
||||||
ADD_SIGNAL(MethodInfo("updated", PropertyInfo(Variant::OBJECT, "curve", PROPERTY_HINT_RESOURCE_TYPE, "CurveBase")));
|
ADD_SIGNAL(MethodInfo("updated", PropertyInfo(Variant::OBJECT, "curve", PROPERTY_HINT_RESOURCE_TYPE, "CurveBase")));
|
||||||
|
|
||||||
|
@ -20,6 +20,8 @@ public:
|
|||||||
~CurveEdit();
|
~CurveEdit();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
void _notification(int p_what);
|
||||||
|
|
||||||
static void _bind_methods();
|
static void _bind_methods();
|
||||||
|
|
||||||
Ref<CurveBase> value;
|
Ref<CurveBase> value;
|
||||||
|
Loading…
Reference in New Issue
Block a user