Skip to content

Commit

Permalink
app: shows component type in project window hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
quesnel committed Aug 22, 2024
1 parent 3dad9f1 commit 18fc76f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/gui/project-window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ static void show_tree_node_children(application& app,
if (is_selected)
flags |= ImGuiTreeNodeFlags_Selected;

bool is_open = ImGui::TreeNodeEx(compo.name.c_str(), flags);
bool is_open = ImGui::TreeNodeExWithHint(
compo.name.c_str(), component_type_names[ordinal(compo.type)], flags);

if (ImGui::IsItemClicked())
app.project_wnd.select(parent);
Expand Down

0 comments on commit 18fc76f

Please sign in to comment.