1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-12 00:14:20 +00:00

TreeNodeEx() wired the display-side ImGuiTreeNodeFlags_Selected flag (#581)

This commit is contained in:
ocornut 2016-05-01 16:06:46 +02:00
parent ab6bc05fc3
commit ec6471ca87
2 changed files with 2 additions and 2 deletions

View file

@ -5712,7 +5712,7 @@ bool ImGui::TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* l
else
{
// Unframed typed for tree nodes
if (hovered)
if (hovered || (flags & ImGuiTreeNodeFlags_Selected))
RenderFrame(bb.Min, bb.Max, col, false);
RenderCollapseTriangle(bb.Min + ImVec2(padding.x, g.FontSize*0.15f + text_base_offset_y), opened, 0.70f, false);