Sim GUI: Add option to disable outputs on DS disable

This commit is contained in:
Peter Johnson
2019-10-21 00:33:51 -07:00
parent 2d3dac99f0
commit acf960f729
6 changed files with 40 additions and 7 deletions

View File

@@ -35,8 +35,12 @@ static void DisplayRelays() {
else
first = false;
bool forward = HALSIM_GetRelayForward(i);
bool reverse = HALSIM_GetRelayReverse(i);
bool forward = false;
bool reverse = false;
if (!HALSimGui::AreOutputsDisabled()) {
reverse = HALSIM_GetRelayReverse(i);
forward = HALSIM_GetRelayForward(i);
}
ImGui::Text("Relay[%d]", i);
ImGui::SameLine();