Refactor Layout Manager

This commit is contained in:
IlyaShurupov 2024-10-14 21:31:05 +03:00 committed by Ilya Shurupov
parent e00dec67ba
commit 96b293d1b5
28 changed files with 408 additions and 123 deletions

View file

@ -697,13 +697,13 @@ obj::ObjectsGUI::ViewStackNode obj::ObjectsGUI::listView(obj::ListObject* obj) {
}
if (childo.node()->prev && ImGui::Selectable("Move Up")) {
tp::swap(childo.node()->prev->data, childo.data());
tp::swapV(childo.node()->prev->data, childo.data());
ImGui::EndPopup();
break;
}
if (childo.node()->next && ImGui::Selectable("Move Down")) {
tp::swap(childo.node()->next->data, childo.data());
tp::swapV(childo.node()->next->data, childo.data());
ImGui::EndPopup();
break;
}