mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-29 00:10:02 -05:00
node: Added arithmetic nodes (add, sub, mul, div, mod)
This commit is contained in:
@@ -165,16 +165,16 @@ namespace hex {
|
||||
}
|
||||
}
|
||||
|
||||
for (const auto &[category, name, function] : ContentRegistry::DataProcessorNode::getEntries()) {
|
||||
if (category.empty() && name.empty()) {
|
||||
for (const auto &[unlocalizedCategory, unlocalizedName, function] : ContentRegistry::DataProcessorNode::getEntries()) {
|
||||
if (unlocalizedCategory.empty() && unlocalizedName.empty()) {
|
||||
ImGui::Separator();
|
||||
} else if (category.empty()) {
|
||||
if (ImGui::MenuItem(name.c_str())) {
|
||||
} else if (unlocalizedCategory.empty()) {
|
||||
if (ImGui::MenuItem(LangEntry(unlocalizedName))) {
|
||||
node = function();
|
||||
}
|
||||
} else {
|
||||
if (ImGui::BeginMenu(category.c_str())) {
|
||||
if (ImGui::MenuItem(name.c_str())) {
|
||||
if (ImGui::BeginMenu(LangEntry(unlocalizedCategory))) {
|
||||
if (ImGui::MenuItem(LangEntry(unlocalizedName))) {
|
||||
node = function();
|
||||
}
|
||||
ImGui::EndMenu();
|
||||
|
||||
Reference in New Issue
Block a user