protected override string GetVariable() { string dialogText; dialogText = ActorDialog.Get(0x011B, dialog); return(String.Format("Type: {0}, Text: {1}, {2}", (naviIcon) ? "C-up" : "Pop-up", (dialogText.Length < TEXT_CAP) ? dialogText : dialogText.Substring(0, TEXT_CAP), flag.ToString())); }
protected override string GetVariable() { string typeString; string textDialog; switch (type) { case 0: typeString = "Checkable"; break; case 1: typeString = "Instant"; break; case 2: typeString = "Disappears on Switch"; break; default: typeString = "Z-target, no text"; break; } textDialog = ActorDialog.Get(0x0185, dialog); return(string.Format("{0}, dialog {1}, {2}", typeString, (textDialog.Length < 40)? textDialog: textDialog.Substring(0, 40), flag.ToString())); }