RobLoach / RobLoach/nuklear_console
`onshown` for Parents
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 22
- Forks
- 4
- Avg merge
- 4m
- Merged PRs (30d)
- 2
Description
I have a separate nk_label in its own window I use for a none scrolling title to my menu that is being very difficult to re-implement when switching from regular nuklear to nuklear_console. I would have hoped I could have circumvented all of this just by setting the currentPage value each time I click a parent and enter a sub menu but as soon as you set an onclick for a button it will no longer navigate to children defined underneath it. So there is no way to send an event when you click a button that has sub elements.
Sadly the active widget index is useless in this case as I am not looking to change the title until I enter a submenu and the active widget only reports the parents index within the root. ie it only updates while I'm in the root menu when it should read "Paused" but there is currently no way to tell you have left the root and entered a sub.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Trace how parent button onclick handlers, currentPage, and the active widget index behave when entering child menus. Determine where an onshown-style event could report submenu entry without preventing navigation; done means a parent with sub-elements can trigger that event and the title can update for the entered submenu.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100