protected override void Ports(UnitPortDescriptionCollection ports) { base.Ports(ports); for (int i = 0; i < unit.valueInputs.Count; i++) { ports["tag_" + i.ToString()].label = "Tag"; if (unit.useTags) { ports["value_" + i.ToString()].isLabelVisible = false; } else { ports["value_" + i.ToString()].label = i.ToString(); } } for (int i = 0; i < unit.controlInputs.Count; i++) { ports["enter"].isLabelVisible = false; } for (int i = 0; i < unit.controlOutputs.Count; i++) { ports["exit"].isLabelVisible = false; } for (int i = 0; i < unit.valueOutputs.Count; i++) { ports["currentValueOut"].label = "Value"; } }
protected override void Ports(UnitPortDescriptionCollection ports) { for (int i = 0; i < unit.valueInputs.Count; i++) { ports["databaseOut"].isLabelVisible = false; //ports["playerName"].label = "Name"; //ports["player"].label = "Player"; } base.Ports(ports); }
protected override void Ports(UnitPortDescriptionCollection ports) { base.Ports(ports); for (int i = 0; i < unit.valueInputs.Count; i++) { ports["value"].isLabelVisible = false; ports["valueNull"].isLabelVisible = false; ports["name"].isLabelVisible = false; } for (int i = 0; i < unit.valueOutputs.Count; i++) { ports["variable"].isLabelVisible = false; } }
protected override void Ports(UnitPortDescriptionCollection ports) { base.Ports(ports); //for (int i = 0; i < unit.valueInputs.Count; i++) //{ // ports["tag_" + i.ToString()].label = i.ToString(); //} //for (int i = 0; i < unit.controlInputs.Count; i++) //{ // ports["enter"].isLabelVisible = false; //} for (int i = 0; i < unit.controlOutputs.Count; i++) { ports["broken"].label = "Break"; } }