Skip to content

Commit 57b7ed3

Browse files
Copilotchrxh
andcommitted
Add "(cond.)" indicator for conditional signal restriction in GeneEditorWidget
Co-authored-by: chrxh <73127001+chrxh@users.noreply.github.com>
1 parent 3283b83 commit 57b7ed3

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

source/Gui/GeneEditorWidget.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,13 @@ void _GeneEditorWidget::processNodeList()
227227
node._signalRestriction._mode == SignalRestrictionMode_Conditional);
228228
if (hasRestriction) {
229229
if (ImGui::BeginChild("signal", {0, scale(17.0f)}, 0, ImGuiWindowFlags_NoInputs)) {
230-
AlienGui::Text(
230+
std::string restrictionText =
231231
StringHelper::format(node._signalRestriction._baseAngle, 1) + " deg, "
232-
+ StringHelper::format(node._signalRestriction._openingAngle, 1) + " deg");
232+
+ StringHelper::format(node._signalRestriction._openingAngle, 1) + " deg";
233+
if (node._signalRestriction._mode == SignalRestrictionMode_Conditional) {
234+
restrictionText += " (cond.)";
235+
}
236+
AlienGui::Text(restrictionText);
233237
}
234238
ImGui::EndChild();
235239
}

0 commit comments

Comments
 (0)