| 679 | } |
| 680 | |
| 681 | bool GuiImpl::addRadioButtons(const Gui::RadioButtonGroup& buttons, uint32_t& activeID) |
| 682 | { |
| 683 | auto oldValue = activeID; |
| 684 | |
| 685 | for (const auto& button : buttons) |
| 686 | { |
| 687 | if (button.sameLine) |
| 688 | ImGui::SameLine(); |
| 689 | ImGui::RadioButton(button.label.c_str(), (int*)&activeID, button.buttonID); |
| 690 | } |
| 691 | |
| 692 | return oldValue != activeID; |
| 693 | } |
| 694 | |
| 695 | bool GuiImpl::addDirectionWidget(const char label[], float3& direction) |
| 696 | { |
no test coverage detected