Beispiel #1
0
        /// <summary>
        /// Loads the content.
        /// </summary>
        public override void LoadContent()
        {
            text = new GuiText {
                FontName = "MenuFont"
            };
            text.FadeEffect = new FadeEffect
            {
                Speed          = 2,
                MinimumOpacity = 0.25f
            };

            Children.Add(text);

            base.LoadContent();

            text.ActivateEffect("FadeEffect");
        }