public override void DrawPopupContent() { DrawTable("propertyValueInputTable", propertyInfo.PropertyType, propertyInfo.Name, errored); if (ImGui.Button("OK")) { errored = !PropertyValueSetter.TrySetValue(propertyInfo, inputText, parentObj); if (errored == false) { doSuccess(); } } }
public override void DrawPopupContent() { DrawTableWithSingleRow("propertyValueInputTable", propertyInfo.PropertyType, propertyInfo.Name, m_Errored); if (ImGui.Button("OK")) { m_Errored = !PropertyValueSetter.TrySetValue(propertyInfo, m_InputText, m_FieldInstance); if (m_Errored == false) { doSuccess(); } } }