-
-
Notifications
You must be signed in to change notification settings - Fork 5
Text utils module
The text utils module provides a number of rich text rendering widgets to imgui. We use our UntitledImGuiTextUtils library to handle this functionality.
To enable the text utils module, update your uvproj.yaml
so that the text-utils
key under enabled-modules
is set to true like this:
name: "MyProject"
version: "1.0.0.0"
engine-version: "1.0.0.0"
enabled-modules:
text-utils: true
Then, regenerate the modules cache by running the following command:
user $ ./UVKBuildTool --generate <project directory>
After that, refresh your CMake project with cmake ..
!
Next, in your source file, include the Modules.hpp
header in your components like this:
#include <Modules/Modules.hpp>
The entire module is flagged as event safe at All ready
To learn more about using the text utils module, check out the UntitledImGuiTextUtils GitHub wiki.
To check for the module at compile time, use the UIMGUI_TEXT_UTILS_MODULE_ENABLED
macro.
Runtime checking can be done using the text_utils
member of the ModuleSettings
struct. More info can be found
here.
The UntitledImGuiTextUtils library is bundled with its own C API. More info can be found 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