Skip to content

SetInt(name,1) unable to collapse all treeNodes #2079

Closed

Description

@yafacex

aa51

I want all the collapseHeaders of treeNode to close using SetInt(name,0) when i click "fold all" button.Top collapseHeader did close as i expect,However when i clicked top collapseHeader,inner treeNodes left expand.Although GetInt("app.scenes.study.play_theme") == 0

Activity

  1. ocornut commented on Sep 12, 2018

    @ocornut
    Owner

    With SetInt(id, 0) you'll only close a single node, there's no way at the moment to close node recursively, other than
    a) iterating the open node and flagging them for closure,
    or b) using a dedicated storage for that tree so you can easily clear the entire storage at once.

  2. yafacex commented on Sep 14, 2018

    @yafacex
    Author

    I did SetInt(id,0) recursively and it doesn't work.I will check my code and tell you later.

  3. ocornut commented on Sep 30, 2018

    @ocornut
    Owner

    @yafacex Any update on this?

  4. ocornut commented on Nov 21, 2018

    @ocornut
    Owner

    Closing as per no repro, probable user error.

  5. added a commit that references this issue on Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    treetree nodes

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ 换网址