コード例 #1
0
        public override bool AddDialogBox(CutSceneEventArgs eventArgs)
        {
            DialogBox dialogBox = new DialogBox(
                "",
                eventArgs.ObjectName,
                ScreenManager.ScreenCentre,
                new Vector2(3 * ScreenManager.Viewport.Width / 4, ScreenManager.Viewport.Height),
                Color.Black,
                "Dialog Box",
                1f,
                eventArgs.MoveSpeed);
            AddScreenUIElement(dialogBox);

            return true;
        }
コード例 #2
0
        public virtual bool AddDialogBox(CutSceneEventArgs eventArgs)
        {
            DialogBox dialogBox = new DialogBox(
                "Sprites/UI/Panels/Panel",
                eventArgs.ObjectName,
                eventArgs.MoveDestination,
                new Vector2(ScreenManager.Viewport.Width / 3, ScreenManager.Viewport.Height / 8),
                new Color(0, 0.1f, 0, 0),
                "Dialog Box",
                0.5f,
                eventArgs.MoveSpeed);
            AddScreenUIElement(dialogBox);

            return true;
        }