A bunch of quality of life fixes, most notably:
- Fixed nested
BeginSection()s inside BeginSection()s to render properly.
- Flag
_guiDebugMode was added which can be set to true which makes it easier to debug added controls incrementally as they are added to the gui
- All control adding methods now take in an optional id (string) parameter as the last one, which can be used to find specific controls (and get their values) doing it like this
const gui = new ImmediateGui(...);
gui.Checkbox('Label text content', true, 'Tooltip text content', null, 'our unique id');
// Somewhere else in your code
const checkboxIsChecked = gui.GetControlValueById('our unique id');
// You can get he control itself also with the id, and not just the associated value
const ourCheckbox = gui.GetControlById('our unique id');
- And a bunch of smaller improvements
Updated documentation will come soon