move slider when new frame is added
This commit is contained in:
@@ -1347,14 +1347,15 @@ 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] (Node*) {
|
btn_add->on_click = [this, slider] (Node*) {
|
||||||
layers->add_layer(true, true);
|
layers->add_layer(true, true);
|
||||||
|
slider->set_value(1.f, true);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
// test floating panel
|
// test floating panel
|
||||||
|
|||||||
Reference in New Issue
Block a user