Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BeginTree does not return boolean properly when toggled close/open #90

Closed
flamendless opened this issue Jun 13, 2021 · 1 comment
Closed

Comments

@flamendless
Copy link
Owner

for Slab.Windows this works:

--load
local flags = {is_open = true}

--update
flags.is_open = Slab.BeginWindow("window", {Title = "Window", IsOpen = flags.is_open})
--draw
Slab.EndWindow()

opening/closing the window works

but for Slab.BeginTree it does not, even clicking on the tree arrow, it does not toggle open/close

for Slab.Windows this works:
```lua
--load
local flags = {is_open = true}

--update
flags.is_open = Slab.BeginTree("tree", {Title = "Tree", IsOpen = flags.is_open})
print(flags.is_open) --always true
--draw
Slab.EndTree()
@flamendless
Copy link
Owner Author

flamendless commented Aug 21, 2021

Fixed in f71d42b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant