private void ProfileSectionOverridesContainer(GaugeTarget.Target.Override current, SerializedProperty currentProperty) { LabelWidth(40); PropertyContainer1(currentProperty.FindPropertyRelative("type")); //IndexProperty(currentProperty.FindPropertyRelative("index"),); LabelWidth(46); PropertyContainer1(currentProperty.FindPropertyRelative("index")); LabelWidth(44); PropertyContainer1(currentProperty.FindPropertyRelative("value")); FieldWidth(1); LabelWidth(62); PropertyContainer1(currentProperty.FindPropertyRelative("variable")); FieldWidth(); LabelWidth(); }
private void MainSectionTargetsContainerOverridesContainer(GaugeTarget.Target.Override current, SerializedProperty currentProperty) { LabelWidth(40); PropertyContainer1(currentProperty.FindPropertyRelative("type")); bool lastEnabled = GUI.enabled; GUI.enabled = currentGauge && currentGauge.additionalValues.Count != 0; MainSectionTargetsContainerOverridesContainerIndexContainer(currentProperty.FindPropertyRelative("index")); LabelWidth(44); GUI.enabled = lastEnabled && current.variable == string.Empty; PropertyContainer1(currentProperty.FindPropertyRelative("value")); GUI.enabled = lastEnabled; FieldWidth(1); LabelWidth(); Variable(currentTargetProperty.FindPropertyRelative("source"), ref current.variable, ref current.nameIndex, currentProperty.FindPropertyRelative("variable")); FieldWidth(); }