Added layer menu and layer list
This commit is contained in:
parent
a29c5dc926
commit
c9aba47db1
19 changed files with 435 additions and 3 deletions
|
|
@ -68,6 +68,7 @@ void BookmarkManager::setup_list_gui(const std::string& id) {
|
|||
},
|
||||
.drawObjGUI = [&](const GUIStuff::TreeListing::ParentObjectIDPair& idPair) {
|
||||
auto tempPtr = world.netObjMan.get_obj_temporary_ref_from_id<BookmarkListItem>(idPair.object);
|
||||
bool isButtonClicked = false;
|
||||
if(Clay_Hovered() && gui.io->mouse.leftClick >= 2 && !tempPtr->is_folder() && selectionData.objsSelected.contains(idPair.object) && !gui.io->key.leftCtrl && !gui.io->key.leftShift)
|
||||
tempPtr->get_bookmark_data().jump_to(world);
|
||||
CLAY_AUTO_ID({
|
||||
|
|
@ -80,14 +81,14 @@ void BookmarkManager::setup_list_gui(const std::string& id) {
|
|||
}
|
||||
if(!tempPtr->is_folder() && gui.svg_icon_button_transparent("jump button", "data/icons/jump.svg", false, GUIStuff::TreeListing::ENTRY_HEIGHT)) {
|
||||
tempPtr->get_bookmark_data().jump_to(world);
|
||||
return true;
|
||||
isButtonClicked = true;
|
||||
}
|
||||
if(gui.svg_icon_button_transparent("delete button", "data/icons/trash.svg", false, GUIStuff::TreeListing::ENTRY_HEIGHT)) {
|
||||
toDeleteParent = idPair.parent;
|
||||
toDeleteObject = idPair.object;
|
||||
return true;
|
||||
isButtonClicked = true;
|
||||
}
|
||||
return false;
|
||||
return isButtonClicked;
|
||||
},
|
||||
.moveObjectsToListAtIndex = [&](NetObjID listObj, size_t index, const std::vector<GUIStuff::TreeListing::ParentObjectIDPair>& objsToInsert) {
|
||||
world.netObjMan.send_multi_update_messsage([&]() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue