-
-
Notifications
You must be signed in to change notification settings - Fork 5
Additional features
This page showcases a bunch of small features that are really useful.
While dear imgui provides a lot of features, we decided to add some additional features on top of it to improve the development experience.
Each UI component has a ComponentState
enum member that looks like this:
enum UImGui_ComponentState
{
UIMGUI_COMPONENT_STATE_PAUSED,
UIMGUI_COMPONENT_STATE_RUNNING,
UIMGUI_COMPONENT_STATE_OFF,
};
When set to RUNNING
(the default mode) it's shown to the screen. If set to PAUSED
it's not shown but is expected
to be rendered at some point. If set to OFF
it's not supposed to be active.
Since UI components have this state enum, we can use it to enable/disable rendering of components. Because it's an enum,
however, we cannot pass it directly as p_open
since dear imgui requires p_open
to be a bool*
.
To fix this, we have added additional overrides that take a void*
to enable you to use the state enum directly
without casting the pointer. The functions can be seen on our dear imgui fork here.
This project is supported by all the people who joined our discord server and became beta testers. If you want to join the discord you can click here.
- Home
- Beginner content
- Install guide
- Creating and using the UI components
- The Instance
- The Init Info struct
- Textures
- Logging
- Unicode support
- Additional features
- Client-side bar
- Custom type definitions
- Memory management
- C API development
- Config files and Folders
- Interfaces
- Internal Event safety
- Customising the build system
- Modules system
- Collaborating with others
- Advanced content
- Developer and contributor resources
- Misc