public void SetActiveToggles(string[] toggle_labels_text) { string category = ship.GetEditInstructionCategory(selected), text = ship.GetEditInstructionText(selected); for (int i = 0; i < num_toggles; i++) { if (i >= toggle_labels_text.Length && i == num_toggles - 1) { toggle_labels[i].text = MinusCarat + Back; } else if (i >= toggle_labels_text.Length) { toggle_labels[i].text = Carat; } else if (toggle_labels_text[i].Contains(Add_Above) || toggle_labels_text[i].Contains(Add_Below)) { toggle_labels[i].text = PlusCarat + toggle_labels_text[i]; } else if (toggle_labels_text[i].Contains(Delete)) { toggle_labels[i].text = MinusCarat + toggle_labels_text[i]; } else if (toggle_labels_text[i].Contains(Scroll_Up)) { toggle_labels[i].text = UpCarat + toggle_labels_text[i]; } else if (toggle_labels_text[i].Contains(Scroll_Down)) { toggle_labels[i].text = DownCarat + toggle_labels_text[i]; } else { toggle_labels[i].text = Carat + toggle_labels_text[i]; } if (category != "" && text != "" && (toggle_labels[i].text.EndsWith(category) || toggle_labels[i].text.EndsWith(text))) { toggle_labels[i].text = "<b>" + toggle_labels[i].text + "</b>"; } } }