Beispiel #1
0
        /// <summary>
        /// Creates a new MenuScreen.
        /// </summary>
        public MenuScreen()
        {
            TransitionOnTime = TimeSpan.FromSeconds(0.5);
            TransitionOffTime = TimeSpan.FromSeconds(0.5);

            inputState = new InputState();
        }
Beispiel #2
0
        /// <summary>
        /// Creates a new message box and addes usage information to the beginning of the message.
        /// </summary>
        /// <param name="message">The string to display</param>
        /// <param name="backgroundContentName">The name (without extension) of the texture content to use as 
        /// the background of this message box.</param>
        public MessageBoxScreen(string message, string backgroundContentName)
        {
            this.backgroundContentName = backgroundContentName;

            const string usageText = "\nA = Ok" + "\nB = Cancel";
            this.message = message + usageText;

            IsPopup = true;

            TransitionOnTime = TimeSpan.FromSeconds(0.2);
            TransitionOffTime = TimeSpan.FromSeconds(0.2);

            inputState = new InputState();
        }