amesgames / imgui

Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This amesgames fork of Dear ImGui provides an artist/designer with the ability to generate source code that initializes a default font and color style of their choosing.

These source files can then be checked in and used in downstream projects where ImGui is used.

This addon tool works on Windows only, using DirectX12.

Run the amesgames-style-tool.bat file from a Developer Command Prompt for VS 19 to use the tool.

Passing the following argument to the tool will cause the tool to load a TTF font and render with a particular pixel size.

-f <path-to-ttf-font-file> <size-in-pixels>

Multiple fonts can be provided.

For example, from inside the current directory:

amesgames-style-tool.bat -f misc/fonts/Roboto-Medium.ttf 16 -f misc/fonts/Cousine-Regular.ttf 12

The user can then use the Tools | Style Editor of the Dear ImGui Demo window to change the default font and the style Colors.

The Export to Source button can then be pressed to save the configuration to the source files. imgui_amesgames.h and imgui_amesgames.cpp will be overwritten with the new settings.

Close and re-run amesgames-style-tool.bat to verify the results before checking in.

See: Dear ImGui README for more information on Dear ImGui, itself.

About

Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies

License:MIT License


Languages

Language:C++ 89.9%Language:C 8.5%Language:Objective-C++ 1.4%Language:Objective-C 0.1%Language:GLSL 0.0%Language:GDB 0.0%Language:Shell 0.0%Language:Batchfile 0.0%