move slider when new frame is added
This commit is contained in:
@@ -1347,12 +1347,13 @@ void App::initLayout()
|
|||||||
frame_text->set_text(str);
|
frame_text->set_text(str);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
if (auto btn_add = timeline->find<NodeButtonCustom>("btn-add"))
|
||||||
if (auto btn_add = timeline->find<NodeButtonCustom>("btn-add"))
|
{
|
||||||
{
|
btn_add->on_click = [this, slider] (Node*) {
|
||||||
btn_add->on_click = [this] (Node*) {
|
layers->add_layer(true, true);
|
||||||
layers->add_layer(true, true);
|
slider->set_value(1.f, true);
|
||||||
};
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user