在 ImGui 中的 Sublime Text 或 VSCode 风格的命令面板
This library implements a Sublime Text or VSCode style command palette in ImGui. It is provided in the form of a window that you can choose to open/close based on condition (for example, when user pressed the shortcut Ctrl+Shift+P).
Simply drop all .h and .cpp files in the project root folder to your buildsystem. Minimum of C++11 is required. No external dependencies except Dear ImGui are required.
See the examples for how to use the APIs.
The examples/ folder is organized in the following way:
src/ and fonts/ folders contains source code and assets for the example app. If you want to hack away, the relevant code are all here!app-*/ folders each provide a separate way to build the project. Choose one that works the best for you -- they should all produce the same result.app-vcpkg/ provides CMake + vcpkg build scripts$ pwd
/examples/app-vcpkg
$ mkdir build
$ cd build
$ cmake .. -GNinja -DCMAKE_TOOLCHAIN_FILE="/path/to/your-vcpkg/scripts/buildsystem/vcpkg.cmake"
$ ninjaapp-manual/ provides CMake + system deps + file drop inglfw3 is installed as a system package, available for CMakle find_packageapp-manual/backends/imgui_impl_glfw.hbackends/imgui_impl_glfw.cppbackends/imgui_impl_opengl3.hbackends/imgui_impl_opengl3.cppbackends/imgui_impl_opengl3_loader.h$ pwd
/examples/app-manual
$ mkdir build
$ cd build
$ cmake .. -GNinja
$ ninjaOnce you have it built, run the examples with working directory = examples/.
This is needed because the app uses relative paths to locate fonts.
That is, if the build had produced examples/app-vcpkg/build/imcmd-demo.exe for example, you should run it as:
$ pwd
/examples
$ ./app-vcpkg/build/build/imcmd-demo.exe ⏎暂无开放 Issues,或尚未同步最近议题。