Beispiel #1
0
        public LoadingDisplay()
        {
            tbox                 = new GameTextBox("m41_lovebit");
            tbox.Text            = "Loading ...";
            tbox.Motion.Position = new Microsoft.Xna.Framework.Vector2(LEFT_POSITION, 0.05f); // TODO consts
            Add(tbox);

            iggNameBox                    = new GameTextBox("GameDescriptionFont");
            iggNameBox.Text               = "Glorious Wreckz Garden        Exit current game or hold ESC to return to the garden";
            iggNameBox.Motion.Position    = new Microsoft.Xna.Framework.Vector2(LEFT_POSITION, 0.94f);
            iggNameBox.Motion.Scale       = 0.75f;
            iggNameBox.DrawInfo.DrawColor = new Color(245, 245, 245, 0);
            iggNameBox.ColorB.Alpha       = 0f;
            iggNameBox.ColorB.AlphaTarget = 0.0f;
            iggNameBox.ColorB.FadeSpeed   = 1.0f;
            Add(iggNameBox);

            helpTextBox                 = new GameTextBox("GameDescriptionFont");
            helpTextBox.Text            = "";
            helpTextBox.Motion.Position = new Microsoft.Xna.Framework.Vector2(LEFT_POSITION, 0.83f);
            helpTextBox.Motion.Scale    = 1.0f;
            Add(helpTextBox);

            gameIcon = new Spritelet();
            //gameIcon.Motion.Position = new Vector2( Screen.Width*0.8f , 0.2f);
            gameIcon.Motion.Position     = Screen.Center;
            gameIcon.DrawInfo.LayerDepth = 1f;
            gameIcon.DrawInfo.DrawColor  = Color.Gray;
            Add(gameIcon);

            // setup initial state
            SetNextState(new StateLoadingDisplay_Loading(this));
        }
        public LoadingDisplay()
        {
            tbox = new GameTextBox("m41_lovebit");
            tbox.Text = "Loading ...";
            tbox.Motion.Position = new Microsoft.Xna.Framework.Vector2(LEFT_POSITION, 0.05f); // TODO consts
            Add(tbox);

            iggNameBox = new GameTextBox("GameDescriptionFont");
            iggNameBox.Text = "Indiegame Garden        Exit this game to return to the garden";
            iggNameBox.Motion.Position = new Microsoft.Xna.Framework.Vector2(LEFT_POSITION, 0.94f);
            iggNameBox.Motion.Scale = 0.7f;
            iggNameBox.DrawInfo.DrawColor = Color.Transparent;
            iggNameBox.ColorB.Intensity = 0f;
            iggNameBox.ColorB.FadeTarget = 0.0f;
            iggNameBox.ColorB.FadeSpeed = 1.0f;
            Add(iggNameBox);

            helpTextBox = new GameTextBox("GameDescriptionFont");
            helpTextBox.Text = "";
            helpTextBox.Motion.Position = new Microsoft.Xna.Framework.Vector2(LEFT_POSITION, 0.83f);
            helpTextBox.Motion.Scale = 1.0f;
            Add(helpTextBox);

            gameIcon = new Spritelet();
            //gameIcon.Motion.Position = new Vector2( Screen.Width*0.8f , 0.2f);
            gameIcon.Motion.Position = Screen.Center;
            gameIcon.DrawInfo.LayerDepth = 1f;
            gameIcon.DrawInfo.DrawColor = Color.Gray;
            Add(gameIcon);

            // setup initial state
            SetNextState(new StateLoadingDisplay_Loading(this));
        }
Beispiel #3
0
        private void InitComponents()
        {
            dlProgressBar = new ProgressBar();
            dlProgressBar.Motion.Position     = new Vector2(Screen.Width, 0f) + PROGRESS_BAR_POSITION_RELATIVE;
            dlProgressBar.Visible             = false;
            dlProgressBar.ProgressValue       = 0f;
            dlProgressBar.ProgressTarget      = 0f;
            dlProgressBar.BarWidth            = 0.4f;
            dlProgressBar.DrawInfo.LayerDepth = 0.04f;
            Add(dlProgressBar);

            titleBox = new GameTextBox("m41_lovebit");
            titleBox.Motion.Position     = new Vector2(0.0f, 0.0f);
            titleBox.DrawInfo.LayerDepth = 0.04f;
            Add(titleBox);

            descriptionBox = new GameTextBox("GameDescriptionFont");
            descriptionBox.Motion.Position     = new Vector2(0.0f, 0.04f);
            descriptionBox.DrawInfo.LayerDepth = 0.04f;
            Add(descriptionBox);

            dlProgressBar.Pulsing = false;

            DarkeningHBar darkBar = new DarkeningHBar(0.5f, 0.63f); // TODO GUI constants?

            darkBar.Motion.Position.Y   = -0.01f;
            darkBar.DrawInfo.LayerDepth = 0.05f;
            Add(darkBar);
        }
        private void InitComponents()
        {
            dlProgressBar = new ProgressBar();
            dlProgressBar.Motion.Position = new Vector2(Screen.Width,0f) + PROGRESS_BAR_POSITION_RELATIVE ;
            dlProgressBar.Visible = false;
            dlProgressBar.ProgressValue = 0f;
            dlProgressBar.ProgressTarget = 0f;
            dlProgressBar.BarWidth = 0.4f;
            dlProgressBar.DrawInfo.LayerDepth = 0.04f;
            Add(dlProgressBar);

            titleBox = new GameTextBox("m41_lovebit");
            titleBox.Motion.Position = new Vector2(0.0f, 0.0f);
            titleBox.DrawInfo.LayerDepth = 0.04f;
            Add(titleBox);

            descriptionBox = new GameTextBox("GameDescriptionFont");
            descriptionBox.Motion.Position = new Vector2(0.0f, 0.04f);
            descriptionBox.DrawInfo.LayerDepth = 0.04f;
            Add(descriptionBox);

            dlProgressBar.Pulsing = false;

            DarkeningHBar darkBar = new DarkeningHBar(0.5f, 0.63f); // TODO GUI constants?
            darkBar.Motion.Position.Y = -0.01f;
            darkBar.DrawInfo.LayerDepth = 0.05f;
            Add(darkBar);
        }