| 163 | } |
| 164 | |
| 165 | void 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 | |
| 178 | bool UMjPropertyRow::IsBeingDragged() const |
| 179 | { |
nothing calls this directly
no outgoing calls
no test coverage detected