public AddRemoveLineTool(ConversationNodeDataControl node, string name, string text) { this.isAdd = true; this.node = node; var newLine = new ConversationLine(name, text); newLine.addResources(new ResourcesUni()); this.line = new ConversationLineDataControl(newLine); }
private static void DoCorrectEditor(Rect rect, ConversationLineDataControl line) { EditorGUI.BeginChangeCheck(); var correct = EditorGUI.Toggle(rect, line.getXApiCorrect()); if (EditorGUI.EndChangeCheck()) { line.setXApiCorrect(correct); } }
private static BubbleType GetBubbleType(ConversationLineDataControl line) { var matched = ExString.Default(Regex.Match(line.getText(), @"^#([^\s]+)").Groups[1].Value, "-"); var bubbleType = BubbleTypes.FirstOrDefault(b => matched == b.Identifier); if (string.IsNullOrEmpty(bubbleType.Identifier)) { bubbleType = new BubbleType(matched); } return(bubbleType); }
public MoveLineTool(bool isUp, ConversationNodeDataControl node, ConversationLineDataControl line) { this.isUp = isUp; this.node = node; this.line = line; }
public AddRemoveLineTool(ConversationNodeDataControl node, ConversationLineDataControl toRemove) { this.isAdd = false; this.node = node; this.line = toRemove; }
public AddRemoveLineTool(ConversationNodeDataControl node, string name, string text) { this.isAdd = true; this.node = node; this.line = new ConversationLineDataControl(new ConversationLine(name, text)); }
private void DoResourcesEditor(Rect rect, ConversationLineDataControl data) { var hasResources = data.isValidAudio() || data.isValidImage(); ResourcesPopup.DoResourcesButton(rect, data, false, hasResources, noBackgroundSkin.button); }