public void removeDialoguePane(CharacterDialogueComponent dialogueComponent) { InteractiveDialoguePane pane = null; for (int i = 0; i < _dialogePanes.Count; i++) { if (_dialogePanes[i].dialogueComponent == dialogueComponent) { pane = _dialogePanes[i]; } } _transitions.Add(new ScaleTransition(pane, 1f, 0.1f, false, 0.1f, () => { pane.showText = false; }, () => { _dialogePanes.Remove(pane); })); }
public void addDialoguePane(CharacterDialogueComponent dialogueComponent) { InteractiveDialoguePane pane = new InteractiveDialoguePane( this, UIAlignment.MiddleCenter, 0, 0, 600, 300, _dialogueFont, _dialogueOptionFont, dialogueComponent); pane.scale = 0f; _dialogePanes.Add(pane); _transitions.Add(new ScaleTransition(pane, 0.1f, 1f, false, 0.1f, null, () => { pane.showText = true; })); }