Exemplo n.º 1
0
            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);
            }
Exemplo n.º 2
0
        private static void DoCorrectEditor(Rect rect, ConversationLineDataControl line)
        {
            EditorGUI.BeginChangeCheck();
            var correct = EditorGUI.Toggle(rect, line.getXApiCorrect());

            if (EditorGUI.EndChangeCheck())
            {
                line.setXApiCorrect(correct);
            }
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 public MoveLineTool(bool isUp, ConversationNodeDataControl node, ConversationLineDataControl line)
 {
     this.isUp = isUp;
     this.node = node;
     this.line = line;
 }
Exemplo n.º 5
0
 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);
        }