Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/pages/Attributes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void DevTools::drawNodeAttributes(CCNode* node) {
}

void DevTools::drawBasicAttributes(CCNode* node) {
if (ImGui::Button("Deselect")) {
if (ImGui::Button(U8STR(FEATHER_X_CIRCLE " Deselect"))) {
return this->selectNode(nullptr);
}
ImGui::SameLine();
Expand Down Expand Up @@ -101,6 +101,12 @@ void DevTools::drawBasicAttributes(CCNode* node) {
fmt::format("{:#x}", reinterpret_cast<uintptr_t>(node))
);
}
ImGui::SameLine();
if (ImGui::Button(U8STR(FEATHER_TRASH_2 " Delete"))) {
return node->removeFromParentAndCleanup(true);
}
if (ImGui::IsItemHovered())
ImGui::SetTooltip("Deleting nodes cannot be undone and may lead to crashes!");
if (node->getUserData()) {
ImGui::Text("User data: 0x%p", node->getUserData());
}
Expand Down