// Constructor and Initialization public DialogueBox(DialogueBranch branch) { // Dialogue branch this.branch = branch; // variables font = GameFonts.font; font.LineSpacing = 15; textSpeed = .1f; charIndex = 0; skipable = false; displayedText = ""; boxSize = new Vector2(225, 55); position = new Vector2(GameView.GetView().X / 2 - boxSize.X / 2, GameView.GetView().Y - boxSize.Y - 10); textOffset = new Vector2(4, 3); }
// Add a dialogue branch public void AddDialogueBranch(string key, DialogueBranch branch) { DialogueBranches.Add(key, branch); }