public DialogueEditorContextMenu(
     DialogueEditor editor,
     DialogueRepository dialogueRepository,
     DialogueCsvHandler dialogueCsvHandler
     )
 {
     this.editor             = editor;
     this.dialogueRepository = dialogueRepository;
     this.dialogueCsvHandler = dialogueCsvHandler;
 }
        public static Optional <DialogueNode> GetDialogueNodeBy(
            this DialogueEditor editor, Vector2 mousePosition
            )
        {
            var node = editor.SelectedDialogue
                       .DialogueNodesValues
                       .LastOrDefault(node => node.Rect.Contains(mousePosition));

            if (node == null)
            {
                return(Optional <DialogueNode> .None());
            }

            return(Optional <DialogueNode> .Some(node));
        }
        public DialogueNodeAreaComponent(
            DialogueEditor editor,
            DialogueEditorFactory guiFactory,
            DialogueEditorStyles styles,
            DialogueRepository repository
            )
        {
            this.editor     = editor;
            this.guiFactory = guiFactory;
            this.styles     = styles;
            this.repository = repository;

            if (backgroundTex == null)
            {
                backgroundTex = Resources.Load <Texture2D>("background");
            }
        }
 public void SetDialogueEditor(DialogueEditor editor)
 {
     this.editor = editor;
 }
示例#5
0
 public UpdateMousePositionEvent(DialogueEditor editor) : base(editor)
 {
 }
示例#6
0
 public DragDialogueNodeEvent(DialogueEditor editor) : base(editor)
 {
 }
示例#7
0
 public OnSelectDialogueNodeEvent(DialogueEditor editor) : base(editor)
 {
 }
 public static Vector2 GetMousePosition(this DialogueEditor editor)
 {
     return(Event.current.mousePosition + editor.ScrollviewPosition);
 }
示例#9
0
 public MoveCanvasEvent(DialogueEditor editor) : base(editor)
 {
 }
示例#10
0
 public DialogueEditorFactory(DialogueEditor editor)
 {
     this.editor = editor;
 }
示例#11
0
 protected DialogueEditorEvent(DialogueEditor editor)
 {
     this.editor = editor;
 }
 public ToggleMultiSelectionEvent(DialogueEditor editor) : base(editor)
 {
 }
 public OpenContextMenuEvent(DialogueEditor editor) : base(editor)
 {
 }