1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-23 07:27:07 +00:00

rogueviz::smoothcam:: added 'copy before

This commit is contained in:
Zeno Rogue 2021-04-07 18:02:09 +02:00
parent 82fcf76005
commit 74abde8437

View File

@ -156,6 +156,13 @@ void edit_segment(int aid) {
anims.push_back(std::move(a));
popScreen();
});
dialog::addItem("copy before", 'c');
dialog::add_action([aid] {
auto a = anims[aid];
anims.insert(anims.begin() + aid, a);
current_segment = nullptr;
popScreen();
});
dialog::addBack();
dialog::display();
}