public DialogueEditorContextMenu( DialogueEditor editor, DialogueRepository dialogueRepository, DialogueCsvHandler dialogueCsvHandler ) { this.editor = editor; this.dialogueRepository = dialogueRepository; this.dialogueCsvHandler = dialogueCsvHandler; }
private void InitializeEditor() { titleContent = new GUIContent($"{windowBaseName} - {selectedDialogue.name}"); dialogueRepository = new DialogueRepository(selectedDialogue); dialogueCsvHandler = new DialogueCsvHandler(selectedDialogue); contextMenu = new DialogueEditorContextMenu( this, dialogueRepository, dialogueCsvHandler ); styles = new DialogueEditorStyles(selectedDialogue); }
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 AddDialogueNode(DialogueRepository repository, DialogueNode parent) { this.repository = repository; this.parent = parent; }
public RemoveDialogueNode(DialogueRepository repository, DialogueNode node) { this.repository = repository; this.node = node; }