mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-19 06:09:18 +02:00
feat(ui): imgui 1.91.9b-docking in place of 1.73: local changes of the backends carried over (glad as the gl loader, srgb and gamma of the ui, gles glsl string), BufferingBar/Spinner kept, imgui_tables in cmake; cursor position, cursor enter and focus of the main window passed to the glfw backend, which works with events now; code adapted to the api: ImGuiListClipper::Begin, BeginListBox, ImTextureID as an integer, ImageButton with an id, ImGuiKey without GetKeyIndex, logarithmic sliders in place of the removed power argument; ImGuizmo with the math operators defined before imgui.h and SetNextFrameWantCaptureMouse
This commit is contained in:
@@ -81,7 +81,7 @@ void ui::keymapper_panel::render_contents()
|
||||
|
||||
label += "##" + std::to_string((int)binding.first);
|
||||
|
||||
ImGui::SameLine(ImGui::GetContentRegionAvailWidth() - 150);
|
||||
ImGui::SameLine(ImGui::GetContentRegionAvail().x - 150);
|
||||
if (ImGui::Button(label.c_str(), ImVec2(150, 0))) {
|
||||
if (bind_active == binding.first)
|
||||
bind_active = user_command::none;
|
||||
|
||||
Reference in New Issue
Block a user