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; }
public UpdateMousePositionEvent(DialogueEditor editor) : base(editor) { }
public DragDialogueNodeEvent(DialogueEditor editor) : base(editor) { }
public OnSelectDialogueNodeEvent(DialogueEditor editor) : base(editor) { }
public static Vector2 GetMousePosition(this DialogueEditor editor) { return(Event.current.mousePosition + editor.ScrollviewPosition); }
public MoveCanvasEvent(DialogueEditor editor) : base(editor) { }
public DialogueEditorFactory(DialogueEditor editor) { this.editor = editor; }
protected DialogueEditorEvent(DialogueEditor editor) { this.editor = editor; }
public ToggleMultiSelectionEvent(DialogueEditor editor) : base(editor) { }
public OpenContextMenuEvent(DialogueEditor editor) : base(editor) { }