MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / HandleToggleChanged

Method HandleToggleChanged

Source/URLab/Private/UI/MjPropertyRow.cpp:165–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165void UMjPropertyRow::HandleToggleChanged(bool bChecked)
166{
167 if (PropertyType == EMjPropertyType::Toggle)
168 {
169 float Val = bChecked ? 1.0f : 0.0f;
170 if (ValueDisplay)
171 {
172 ValueDisplay->SetText(FText::FromString(bChecked ? TEXT("ON") : TEXT("OFF")));
173 }
174 OnValueChanged.Broadcast(Val, PropertyName);
175 }
176}
177
178bool UMjPropertyRow::IsBeingDragged() const
179{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected