public void InitializeParameterList() { for (int i = 0; i < content.childCount; i++) { DisplayParameter d = content.GetChild(i).GetComponent <DisplayParameter> (); if (d != null) { d.Initialize(this); //Debug.Log ("init : " + d.name); } } contentParent.Init(); }
public static List <DisplayParameter> GenerateDisplayValues(List <VariableWrapper> variables) { List <DisplayParameter> displayValues = new List <DisplayParameter>(); foreach (var variable in variables) { var displayValue = new DisplayParameter { Measure = variable.Measure, Columns = variable.Columns, Alignment = variable.Alignment }; var namedVariables = SpssMath.GetNumberOfGhostVariables(variable.ValueLength) + 1; displayValues.AddRange(Enumerable.Range(1, namedVariables).Select(_ => displayValue)); } return(displayValues); }
public override void Initialize(ParameterListManager parameterListManager) { base.Initialize(parameterListManager); float height = GetComponent <VerticalLayoutGroup> ().preferredHeight; Vector2 s = GetComponent <RectTransform> ().sizeDelta; GetComponent <RectTransform> ().sizeDelta = new Vector2(s.x, height); for (int i = 0; i < transform.childCount; i++) { DisplayParameter d = transform.GetChild(i).GetComponent <DisplayParameter> (); if (d != null) { d.Initialize(parameterListManager); } } }
public void Initialize(string textureName, Texture texture, PlantPart plantPart, PlantCreatorMaterialManager PCMM, int index) { this.name = textureName; this.index = index; this.plantPart = plantPart; rawImage.texture = texture; this.textureName.text = DisplayParameter.NicifyName(textureName); plantCreatorMaterialManager = PCMM; if (plantPart == PlantPart.Leaf) { rawImage.rectTransform.rotation = Quaternion.Euler(0f, 0f, 90f); } if (plantPart == PlantPart.Flower) { rawImage.rectTransform.sizeDelta = new Vector2(rawImage.rectTransform.sizeDelta.x, rawImage.rectTransform.sizeDelta.y * 2f); rawImage.rectTransform.localPosition = new Vector3(0f, 107f, 0f); } }
public bool hasParameter(DisplayParameter parameter) { return(parameters.Contains(parameter)); }
public void addParameter(DisplayParameter toAdd) { parameters.Add(toAdd); }
internal DisplayParameter joinTimes(DisplayParameter parameter) { times.UnionWith(parameter.columnData.Keys); return parameter; }
public DisplayParameter addParameter(ParameterId parameterId, string from, string to) { DisplayParameter result; parameters.Add(result = new DisplayParameter(parameterId, this.id).load(from, to)); return result; }
public virtual void Initialize(ParameterListManager parameterListManager) { this.parameterListManager = parameterListManager; parameterNameUI.text = DisplayParameter.NicifyName(parameterName); }