| 1105 | } |
| 1106 | |
| 1107 | bool radioButtonOrFixedValue( const char* label, int* value, int valButton, std::optional<int> valueOverride ) |
| 1108 | { |
| 1109 | if ( !valueOverride ) |
| 1110 | return radioButton( label, value, valButton ); |
| 1111 | |
| 1112 | StyleParamHolder sh; |
| 1113 | const auto disColor = ImGui::GetStyleColorVec4( ImGuiCol_TextDisabled ); |
| 1114 | sh.addColor( ImGuiCol_Text, Color( disColor.x, disColor.y, disColor.z, disColor.w ) ); |
| 1115 | |
| 1116 | ImGui::PushItemFlag( ImGuiItemFlags_Disabled, true ); |
| 1117 | radioButton( label, &*valueOverride, valButton ); |
| 1118 | ImGui::PopItemFlag(); |
| 1119 | return false; |
| 1120 | } |
| 1121 | |
| 1122 | bool radioButtonOrModifier( const char* label, RadioButtonOrModifierState& value, int valButton, int modifiers, int respectedModifiers, std::optional<int> valueOverride ) |
| 1123 | { |
no test coverage detected