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