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

dbg_section() should have parameter for controlling whether it's expanded or collapsed #2707

Closed
shdwcat opened this issue Dec 30, 2023 · 2 comments
Assignees
Labels
feature request New feature (or a request for one)
Milestone

Comments

@shdwcat
Copy link

shdwcat commented Dec 30, 2023

Is your feature request related to a problem?

If I want to make a debug overlay with lots of data (such as for my UI system), it's natural to put chunks of data in sections to manage complexity. However, debug sections are expanded by default and can only be collapsed manually one at a time, so making all that data useful to the user is challenging

Describe the solution you'd like

dbg_section should have a parameter to control whether it is expanded or not. Ideally this can either be true, false, or a ref to a boolean variable (this would allow the user to add their own buttons to 'Collapse All', for example).

Describe alternatives you've considered

the only alternative I can think of is to mimic our own sections with buttons (which then involves manually implementing fake section expand/collapse logic)

Additional context

No response

@shdwcat shdwcat added the feature request New feature (or a request for one) label Dec 30, 2023
@rwkay rwkay added this to the 2024.2 milestone Jan 4, 2024
@rwkay
Copy link

rwkay commented Jan 4, 2024

Feature Added in 2024.2 - new optional parameter added to dbg_section to specify true if section is open when created or false if closed when created.

@rwkay rwkay closed this as completed Jan 4, 2024
@iampremo iampremo transferred this issue from another repository Jan 9, 2024
@YYBartT YYBartT moved this from Done to Ready for QA in Team Workload Jan 10, 2024
YYBartT added a commit to YoYoGames/GameMaker-Manual that referenced this issue Jan 11, 2024
…it's expanded or collapsed

YoYoGames/GameMaker-Bugs#2707
* Added the optional argument to syntax & parameter table
@cameron-home
Copy link

Verified in IDE v2024.200.0.469 Runtime v2024.200.0.485

@cameron-home cameron-home moved this from Ready for QA to Verified in Team Workload Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature (or a request for one)
Projects
Archived in project
Development

No branches or pull requests

3 participants