| 1369 | } |
| 1370 | |
| 1371 | inline void BeginDisabledControls(bool cond) { |
| 1372 | if (cond) { |
| 1373 | ImGui::PushItemFlag(ImGuiItemFlags_Disabled, true); |
| 1374 | ImGui::PushStyleVar(ImGuiStyleVar_Alpha, ImGui::GetStyle().Alpha * 0.25f); |
| 1375 | } |
| 1376 | } |
| 1377 | |
| 1378 | inline void EndDisabledControls(bool cond) { |
| 1379 | if (cond) { |
no test coverage detected