示例#1
0
        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); }));
        }
示例#2
0
        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; }));
        }
示例#3
0
        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; }));
        }