public string GetAllTextFor(Node node) { inspected = this; linkIndex = 0; sortedChunks.Clear(); var sb = ClickableText.instance.stringBuilder; sb.Clear(); var lineOpen = false; foreach (var c in textChunks) { if (lineOpen && c.preNewLine) { sb.Append(Environment.NewLine); } sb.Append(c.GetTextFor(node)); if (c.postNewLine) { sb.Append(Environment.NewLine); lineOpen = false; } else { lineOpen = true; } } return(sb.ToString()); }
public bool Inspect() { inspected = this; var changed = false; pegi.nl(); if (enteredText == -1) { "Text Color".edit(ref textColor).nl(ref changed); "Link color".edit(ref linksColor).nl(ref changed); } else { if ("…".Click("Copy Ellipsis to Clipboard")) { GUIUtility.systemCopyBuffer = "…"; } if ("²".Click("Copy Square to clipboard")) { GUIUtility.systemCopyBuffer = "²"; } if ("ƒ".Click("Copy Function to clipboard")) { GUIUtility.systemCopyBuffer = "ƒ"; } if ("×".Click("Copy Times to clipboard")) { GUIUtility.systemCopyBuffer = "×"; } if ("™".Click("Copy Trademark to clipboard")) { GUIUtility.systemCopyBuffer = "™"; } if ("©".Click("Copy © to clipboard")) { GUIUtility.systemCopyBuffer = "©"; } if ("®".Click("Copy ® to clipboard")) { GUIUtility.systemCopyBuffer = "®"; } pegi.nl(); } "Texts".edit_List(ref textChunks, ref enteredText).nl(ref changed); if (changed) { ClickableText.skipLerpForEditor = true; } return(changed); }