Exemple #1
0
        public void add_dialogue_item(DialogueItem di)
        {
            options.Add(di);

            di.position.X = x;

            if (di.visible)
            {
                di.position.Y    = next_item_pos.Y;
                next_item_pos.Y += bubble_mid.Height;
                tail_pos.Y      += bubble_mid.Height;
            }

            di.center_text(Fonts.DialogueItemFont, bubble_mid.Width, bubble_mid.Height);
        }
Exemple #2
0
        public CutScene get_highlighted_scene()
        {
            //foreach (DialogueItem di in options)
            for (int i = 0; i < options.Count; i++)
            {
                DialogueItem di = options[i];

                if (di.highlighted)
                {
                    next_item_visible(i);
                    di.clicked = true;
                    return(di.scene_to_play);
                }
            }

            return(null);
        }